* [PATCH] arm64: dts: r8a7796: salvator-x: Set drive-strength for ravb pins
@ 2017-04-20 9:50 Geert Uytterhoeven
2017-04-20 11:50 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2017-04-20 9:50 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: Niklas Söderlund, linux-renesas-soc, Geert Uytterhoeven
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.
Based on commit 7d73a4da2681dc5d ("arm64: dts: r8a7795: salvator-x: Set
drive-strength for ravb pins").
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
While technically this depends on "pinctrl: sh-pfc: r8a7796: Add group
for AVB MDIO and MII pins", and despite a scary message if that patch
hasn't been applied:
sh-pfc e6060000.pin-controller: invalid group "avb_mii" for function "avb"
Ethernet still works fine without it.
---
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
index 18b478be484cfd83..31f02219ed2fb18a 100644
--- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts
@@ -110,8 +110,22 @@
pinctrl-names = "default";
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>;
+ };
};
scif1_pins: scif1 {
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: r8a7796: salvator-x: Set drive-strength for ravb pins
2017-04-20 9:50 [PATCH] arm64: dts: r8a7796: salvator-x: Set drive-strength for ravb pins Geert Uytterhoeven
@ 2017-04-20 11:50 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2017-04-20 11:50 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Magnus Damm, Niklas Söderlund, linux-renesas-soc
On Thu, Apr 20, 2017 at 11:50:47AM +0200, Geert Uytterhoeven wrote:
> 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.
>
> Based on commit 7d73a4da2681dc5d ("arm64: dts: r8a7795: salvator-x: Set
> drive-strength for ravb pins").
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> While technically this depends on "pinctrl: sh-pfc: r8a7796: Add group
> for AVB MDIO and MII pins", and despite a scary message if that patch
> hasn't been applied:
>
> sh-pfc e6060000.pin-controller: invalid group "avb_mii" for function "avb"
>
> Ethernet still works fine without it.
Thanks, I have queued this up.
It looks like we also need to consider something like this for [hm]3ulcb.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-20 11:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20 9:50 [PATCH] arm64: dts: r8a7796: salvator-x: Set drive-strength for ravb pins Geert Uytterhoeven
2017-04-20 11:50 ` Simon Horman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.