Skip to content

Commit 8f128f3

Browse files
paulkocialkowskiwens
authored andcommitted
arm64: dts: allwinner: a133-liontron-h-a133l: Add Ethernet support
The Liontron H-A133L board features an Ethernet controller with a JLSemi JL1101 PHY. Its reset pin is tied to the PH12 GPIO. Note that the reset pin must be handled as a bus-wide reset GPIO in order to let the MDIO core properly reset it before trying to read its identification registers. There's no other device on the MDIO bus. The datasheet of the PHY mentions that the reset signal must be held for 1 ms to take effect. Make it 2 ms (and the same for post-delay) to be on the safe side without wasting too much time during boot. Signed-off-by: Paul Kocialkowski <[email protected]> Reviewed-by: Andre Przywara <[email protected]> Tested-by: Andre Przywara <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 4e3be56 commit 8f128f3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a133-liontron-h-a133l.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,25 @@
6565
status = "okay";
6666
};
6767

68+
&emac0 {
69+
pinctrl-names = "default";
70+
pinctrl-0 = <&rmii0_pins>;
71+
phy-handle = <&rmii_phy>;
72+
phy-mode = "rmii";
73+
status = "okay";
74+
};
75+
76+
&mdio0 {
77+
reset-gpios = <&pio 7 12 GPIO_ACTIVE_LOW>; /* PH12 */
78+
reset-delay-us = <2000>;
79+
reset-post-delay-us = <2000>;
80+
81+
rmii_phy: ethernet-phy@1 {
82+
compatible = "ethernet-phy-ieee802.3-c22";
83+
reg = <1>;
84+
};
85+
};
86+
6887
&mmc0 {
6988
vmmc-supply = <&reg_dcdc1>;
7089
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */

0 commit comments

Comments
 (0)