Message ID | 20180706085210.17952-5-andre.przywara@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Friday, 06.07.2018 at 09:52, Andre Przywara wrote: > Add the DT nodes required to enable the Gigabit Ethernet on the board. > The PHY is powered by the always-on power rail VDD_SYS_3.3V (DCDC1). > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > --- This may not be directly related to just the DT, but: While this patch does result in detecting and enabling the onboard Ethernet correctly, I am failing to successfully transmit any packets. Receive does work. For details see this thread: https://groups.google.com/forum/#!topic/linux-sunxi/J9w_gXYVRgw -mato
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts index f945c70f3a80..73ddb665a995 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts @@ -64,6 +64,22 @@ }; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dcdc1>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>;
Add the DT nodes required to enable the Gigabit Ethernet on the board. The PHY is powered by the always-on power rail VDD_SYS_3.3V (DCDC1). Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)