Skip to contentSkip to conversation

ARM: dts: sun6i: hummingbird: Add ethernet phy reset gpio properties

PATCH New Chen-Yu Tsai 2 participants 2 messages Dec 3, 2014 – Dec 8, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun6i: hummingbird: Add ethernet phy reset gpio properties

On the Hummingbird A31 board, the RTL8211E ethernet phy has its reset line connect to a gpio pin, instead of floating like on other boards. Add the stmmac properties for describing the reset gpio.

The reset delays were taken from the RTL8211E datasheet.

---
 arch/arm/boot/dts/sun6i-a31-hummingbird.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/sun6i-a31-hummingbird.dts +3 -0
index 6e924d9..55a367a 100644
@@ -139,6 +139,9 @@
 			pinctrl-0 = <&gmac_pins_rgmii_a>;
 			phy = <&phy1>;
 			phy-mode = "rgmii";
+			snps,reset-gpio = <&pio 0 21 0>;
+			snps,reset-active-low;
+			snps,reset-delays-us = <0 10000 30000>;
 			status = "okay";
 
 			phy1: ethernet-phy at 1 {
Signature · 1 line
2.1.3
#1 lore raw

PATCH 1/1 ARM: dts: sun6i: hummingbird: Add ethernet phy reset gpio properties

Quoted 7 lines · Chen-Yu Tsai

On the Hummingbird A31 board, the RTL8211E ethernet phy has its reset line connect to a gpio pin, instead of floating like on other boards. Add the stmmac properties for describing the reset gpio.

The reset delays were taken from the RTL8211E datasheet.

Queued, thanks.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141208/a345d5c7/attachment.sig>