Skip to contentSkip to conversation

arm64: dts: renesas: eagle: add EtherAVB pins

PATCH Superseded Sergei Shtylyov 2 participants 6 messages Nov 10, 2017 – Nov 16, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 arm64: dts: renesas: eagle: add EtherAVB pins

Add the (previously omitted) EtherAVB pin data to the Eagle board's device tree.

---
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts |    8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +8 -0
Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
===================================================================
@@ -34,6 +34,9 @@
 };
 
 &avb {
+	pinctrl-0 = <&avb_pins>;
+	pinctrl-names = "default";
+
 	renesas,no-ether-link;
 	phy-handle = <&phy0>;
 	status = "okay";
@@ -53,6 +56,11 @@
 };
 
 &pfc {
+	avb_pins: avb {
+		groups = "avb0_mdio", "avb0_mii";
+		function = "avb0";
+	};
+
 	scif0_pins: scif0 {
 		groups = "scif0_data";
 		function = "scif0";
#1 lore raw

PATCH 3/3 arm64: dts: renesas: eagle: add EtherAVB pins

Hi Sergei,

Quoted 4 lines · Sergei Shtylyov

Add the (previously omitted) EtherAVB pin data to the Eagle board's device tree.

Thanks for your patch!

Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +3 -0
@@ -34,6 +34,9 @@
 };
 
 &avb {
+       pinctrl-0 = <&avb_pins>;
+       pinctrl-names = "default";
+
        renesas,no-ether-link;
        phy-handle = <&phy0>;
        status = "okay";

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 60

Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +2 -0
@@ -53,6 +56,11 @@
 };
 
 &pfc {
+       avb_pins: avb {
+               groups = "avb0_mdio", "avb0_mii";

Oh no, its'called "avb0_mdio" here, but "avb(0)_mdc" on all other R-Car Gen3 SoCs?

What about "avb0_link", which is connected through "L_LNK"?

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 63

Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +3 -0
+               function = "avb0";
+       };
+

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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

#2 lore raw

PATCH 3/3 arm64: dts: renesas: eagle: add EtherAVB pins

Hello.

Quoted 10 lines · Geert Uytterhoeven
Quoted 4 lines

Add the (previously omitted) EtherAVB pin data to the Eagle board's device tree.

Thanks for your patch!

Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +0 -0
@@ -34,6 +34,9 @@

[...]

Quoted 9 lines

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 60

Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +2 -0
@@ -53,6 +56,11 @@
  };
 
  &pfc {
+       avb_pins: avb {
+               groups = "avb0_mdio", "avb0_mii";

Oh no, its'called "avb0_mdio" here, but "avb(0)_mdc" on all other R-Car Gen3 SoCs?

Can you remember the reason? I don;t want to follow the bad example. :-)

Quoted 1 line

What about "avb0_link", which is connected through "L_LNK"?

The same as for other gen3 board, the AVB node has renesas,no-ether-link".
I tried to verify that property on Eagle, and left it intact as a result... Will re-test removing it once more.

[...]

Quoted 3 lines

Gr{oetje,eeting}s,

Geert

MBR, Sergei

#3 lore raw

PATCH 3/3 arm64: dts: renesas: eagle: add EtherAVB pins

Hi Sergei,

Quoted 22 lines · Sergei Shtylyov
Quoted 6 lines · Geert Uytterhoeven
Quoted 6 lines

Add the (previously omitted) EtherAVB pin data to the Eagle board's device tree.

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +0 -0
@@ -34,6 +34,9 @@

[...]

Quoted 11 lines

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 60

Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +2 -0
@@ -53,6 +56,11 @@
  };
 
  &pfc {
+       avb_pins: avb {
+               groups = "avb0_mdio", "avb0_mii";

Oh no, its'called "avb0_mdio" here, but "avb(0)_mdc" on all other R-Car Gen3 SoCs?

Quoted 1 line

Can you remember the reason? I don;t want to follow the bad example. :-)

Sorry, I don't know.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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

#4 lore raw

PATCH 3/3 arm64: dts: renesas: eagle: add EtherAVB pins

Hello!

Quoted 21 lines · Geert Uytterhoeven
Quoted 21 lines
Quoted 6 lines
Quoted 6 lines

Add the (previously omitted) EtherAVB pin data to the Eagle board's device tree.

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +0 -0
@@ -34,6 +34,9 @@

[...]

Quoted 11 lines

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 60

Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +2 -0
@@ -53,6 +56,11 @@
   };
 
   &pfc {
+       avb_pins: avb {
+               groups = "avb0_mdio", "avb0_mii";

Oh no, its'called "avb0_mdio" here, but "avb(0)_mdc" on all other R-Car Gen3 SoCs?

Quoted 3 lines
Quoted 1 line

Can you remember the reason? I don;t want to follow the bad example. :-)

Sorry, I don't know.

Hm, you seem to have participated in the related discussions for H2/M3-W...
The reason was that omlu AVB_MDC signal was multiplexed, AVB_MDIO signal (and AVB MII signals) was mapped to a dedicated pin without any multiplexing, so the "avb_mdc" group initially contained only AVB_MDC.

Quoted 1 line

Gr{oetje,eeting}s,

MBR, Sergei

#5 lore raw

PATCH 3/3 arm64: dts: renesas: eagle: add EtherAVB pins

Quoted 21 lines · Sergei Shtylyov
Quoted 21 lines
Quoted 21 lines
Quoted 6 lines
Quoted 6 lines

Add the (previously omitted) EtherAVB pin data to the Eagle board's device tree.

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +0 -0
@@ -34,6 +34,9 @@

[...]

Quoted 11 lines

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 60

Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +2 -0
@@ -53,6 +56,11 @@
   };
 
   &pfc {
+       avb_pins: avb {
+               groups = "avb0_mdio", "avb0_mii";

Oh no, its'called "avb0_mdio" here, but "avb(0)_mdc" on all other R-Car Gen3 SoCs?

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Can you remember the reason? I don;t want to follow the bad example. :-)

Sorry, I don't know.

Hm, you seem to have participated in the related discussions for H2/M3-W...

    H3, of course...
Quoted 1 line

The reason was that omlu AVB_MDC signal was multiplexed, AVB_MDIO signal (and

    s/omlu/only/.
Quoted 4 lines

AVB MII signals) was mapped to a dedicated pin without any multiplexing, so the "avb_mdc" group initially contained only AVB_MDC.

Quoted 1 line

Gr{oetje,eeting}s,

MBR, Sergei