Skip to contentSkip to conversation

arm64: dts: r8a7795: salvator-x: Set drive-strength for ravb pins

PATCH In review Niklas Söderlund 4 participants 5 messages Dec 5, 2016 – Mar 6, 2017

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

PATCH v2 1/1 arm64: dts: r8a7795: salvator-x: Set drive-strength for ravb pins

The EthernetAVB should not depend on the bootloader to setup correct drive-strength values. Values for drive-strength where found by examining the registers after the bootloader has configured the registers and successfully used the EthernetAVB.

---

Changes since v1:
- Only set drive-strength for output pins, thanks Geert.
- Add all used pin groups to the mux section.

 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +16 -2
index b1eab68..784ced9 100644
@@ -225,8 +225,22 @@
 	};
 
 	avb_pins: avb {
-		groups = "avb_mdc";
-		function = "avb";
+		mux {
+			groups = "avb_link", "avb_phy_int", "avb_mdc",
+				 "avb_mii";
+			function = "avb";
+		};
+
+		pins_mdc {
+			groups = "avb_mdc";
+			drive-strength = <24>;
+		};
+
+		pins_mii_tx {
+			pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
+			       "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
+			drive-strength = <12>;
+		};
 	};
 
 	du_pins: du {
Signature · 1 line
2.10.2
#1 lore raw
Quoted 6 lines · Niklas Söderlund

The EthernetAVB should not depend on the bootloader to setup correct drive-strength values. Values for drive-strength where found by examining the registers after the bootloader has configured the registers and successfully used the EthernetAVB.

I believe this patch has run-time dependencies on PFC patches and will result in a regression without them. Please resubmit or otherwise ping me once chose changes are present in an (rc) release or immutable branch.

Thanks!

#2 lore raw

Hi Simon,

Quoted 11 lines · Simon Horman
Quoted 6 lines · Niklas S�derlund

The EthernetAVB should not depend on the bootloader to setup correct drive-strength values. Values for drive-strength where found by examining the registers after the bootloader has configured the registers and successfully used the EthernetAVB.

I believe this patch has run-time dependencies on PFC patches and will result in a regression without them. Please resubmit or otherwise ping me once chose changes are present in an (rc) release or immutable branch.

The dependency for this DT change is now present in v4.11-rc1, see 1. If it's convenient for you feel free to pick up this patch.

1. b25719eb938eb39a ("pinctrl: sh-pfc: r8a7795: Add group for AVB MDIO and MII pins")

Quoted 2 lines

Thanks!

Signature · 2 lines
Regards,
Niklas S�derlund
#3 lore raw
Quoted 15 lines · Niklas Söderlund

Hi Simon,

Quoted 11 lines · Simon Horman
Quoted 6 lines · Niklas Söderlund

The EthernetAVB should not depend on the bootloader to setup correct drive-strength values. Values for drive-strength where found by examining the registers after the bootloader has configured the registers and successfully used the EthernetAVB.

I believe this patch has run-time dependencies on PFC patches and will result in a regression without them. Please resubmit or otherwise ping me once chose changes are present in an (rc) release or immutable branch.

Quoted 5 lines

The dependency for this DT change is now present in v4.11-rc1, see 1. If it's convenient for you feel free to pick up this patch.

1. b25719eb938eb39a ("pinctrl: sh-pfc: r8a7795: Add group for AVB MDIO and MII pins")

Thanks Niklas,

I am in the process of rebasing my branches on top of v4.11-rc1 and I have queued up this patch. It should appear in the next push of renesas-next and renesas-revel.

Reviewed-by on v2 1/1
#4 lore raw
In reply to Niklas Söderlund
Quoted 6 lines · Niklas Söderlund

The EthernetAVB should not depend on the bootloader to setup correct drive-strength values. Values for drive-strength where found by examining the registers after the bootloader has configured the registers and successfully used the EthernetAVB.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds