Skip to content
Snippets Groups Projects
Commit 39dca582 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti Committed by Tobias Kahlki
Browse files

[D18] add ethernet support: eth0, eth1

* DP83867 Gigabit Ethernet PHY transceiver
parent 80213e6c
No related branches found
No related tags found
2 merge requests!455CI: Update gitlab-ci,!374dts:d18: Add support for D18 SMARC (aka Levy) module
......@@ -7,6 +7,7 @@
#include <dt-bindings/usb/pd.h>
#include "include/imx8mp.dtsi"
#include "dt-bindings/net/ti-dp83867.h"
/ {
model = "SECO i.MX8MPlus LPDDR4 D18 board";
......@@ -129,6 +130,9 @@ &eqos {
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <&ethphy0>;
phy-reset-gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
phy-reset-active-low;
phy-reset-duration = <1>;
status = "okay";
mdio {
......@@ -137,11 +141,12 @@ mdio {
#size-cells = <0>;
ethphy0: ethernet-phy@1 {
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
eee-broken-1000t;
rtl821x,aldps-disable;
rtl821x,clkout-disable;
};
};
};
......@@ -151,18 +156,21 @@ &fec {
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
phy-handle = <&ethphy1>;
fsl,magic-packet;
phy-reset-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
phy-reset-active-low;
phy-reset-duration = <1>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@1 {
ethphy1: ethernet-phy@2 {
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
eee-broken-1000t;
rtl821x,clkout-disable;
reg = <2>;
};
};
};
......@@ -582,7 +590,7 @@ MX8MP_IOMUXC_ENET_TD2__ENET_QOS_RGMII_TD2 0x1f
MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3 0x1f
MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x1f
MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x1f
MX8MP_IOMUXC_SAI2_RXC__GPIO4_IO22 0x19
MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21 0x19
>;
};
......@@ -602,7 +610,7 @@ MX8MP_IOMUXC_SAI1_TXD2__ENET1_RGMII_TD2 0x1f
MX8MP_IOMUXC_SAI1_TXD3__ENET1_RGMII_TD3 0x1f
MX8MP_IOMUXC_SAI1_TXD4__ENET1_RGMII_TX_CTL 0x1f
MX8MP_IOMUXC_SAI1_TXD5__ENET1_RGMII_TXC 0x1f
MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02 0x19
MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x19
>;
};
......@@ -721,12 +729,6 @@ MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x1c4
>;
};
pinctrl_typec_mux: typec1muxgrp {
fsl,pins = <
MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x16
>;
};
pinctrl_uart2: uart2grp {
fsl,pins = <
MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x49
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment