ARM: dts: Switch to new DSA binding
v3 cover ARM: dts: Switch to new DSA binding
Hi all,
This patch series converts the in-tree users to utilize the new (relatively) DSA binding that was introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled.
Changes in v3:
- collected tags from Andrew and Russell
- added missing change to arch/arm/boot/dts/kirkwood-rd88f6281-a.dts
Changes in v2:
- patch 1: Use an hexadecimal reg property
- patch 2: fixed the subject
- patch 3: s/okay/disabled/ for the legacy DSA node
- patches 7/8: fixed a stray whitespace
In about 2-3 releases we may consider removing the old DSA binding entirely from the kernel.
Thank you!
Florian Fainelli (8):
ARM: dts: armada-370-rd: Utilize new DSA binding
ARM: dts: armada-385-linksys: Utilize new DSA binding
ARM: dts: armada-388-clearfog: Utilize new DSA binding
ARM: dts: armada-xp-linksys-mamba: Utilize new DSA binding
ARM: dts: kirkwood-dir665: Utilize new DSA binding
ARM: dts: kirkwood-linksys-viper: Utilize new DSA binding
ARM: dts: kirkwood-mv88f6281gtw-ge: Utilize new DSA binding
ARM: dts: kirkwood-rd88f6281: Utilize new DSA binding
arch/arm/boot/dts/armada-370-rd.dts | 44 +++++++++++++++++ arch/arm/boot/dts/armada-385-linksys.dtsi | 52 ++++++++++++++++++++- arch/arm/boot/dts/armada-388-clearfog.dts | 65 ++++++++++++++++++++++++++ arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 53 +++++++++++++++++++++ arch/arm/boot/dts/kirkwood-dir665.dts | 49 +++++++++++++++++++ arch/arm/boot/dts/kirkwood-linksys-viper.dts | 49 +++++++++++++++++++ arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts | 49 +++++++++++++++++++ arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts | 11 +++++ arch/arm/boot/dts/kirkwood-rd88f6281.dtsi | 44 +++++++++++++++++ 9 files changed, 415 insertions(+), 1 deletion(-)
Signature · 1 line
2.9.3
PATCH v3 1/8 ARM: dts: armada-370-rd: Utilize new DSA binding
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/armada-370-rd.dts | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
arch/arm/boot/dts/armada-370-rd.dts +44 -0
@@ -173,6 +173,8 @@ }; dsa { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>;
@@ -235,6 +237,48 @@ phy0: ethernet-phy at 0 { reg = <0>; }; + + switch: switch at 10 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x10>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + label = "lan0"; + }; + + port at 1 { + reg = <1>; + label = "lan1"; + }; + + port at 2 { + reg = <2>; + label = "lan2"; + }; + + port at 3 { + reg = <3>; + label = "lan3"; + }; + + port at 5 { + reg = <5>; + label = "cpu"; + ethernet = <ð1>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; };
Signature · 1 line
2.9.3
PATCH v3 2/8 ARM: dts: armada-385-linksys: Utilize new DSA binding
In reply to Florian FainelliUtilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/armada-385-linksys.dtsi | 52 ++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-)
arch/arm/boot/dts/armada-385-linksys.dtsi +51 -1
@@ -103,8 +103,56 @@ }; }; - mdio { + mdio at 72004 { status = "okay"; + + switch at 0 { + compatible = "marvell,mv88e6095"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + label = "lan4"; + }; + + port at 1 { + reg = <1>; + label = "lan3"; + }; + + port at 2 { + reg = <2>; + label = "lan2"; + }; + + port at 3 { + reg = <3>; + label = "lan1"; + }; + + port at 4 { + reg = <4>; + label = "wan"; + }; + + port at 5 { + reg = <5>; + label = "cpu"; + ethernet = <ð2>; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; }; sata at a8000 {
@@ -261,6 +309,8 @@ }; dsa at 0 { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>;
Signature · 1 line
2.9.3
PATCH v3 3/8 ARM: dts: armada-388-clearfog: Utilize new DSA binding
In reply to Florian FainelliUtilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net:
dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/armada-388-clearfog.dts | 65 +++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)
arch/arm/boot/dts/armada-388-clearfog.dts +65 -0
@@ -351,6 +351,8 @@ }; dsa at 0 { + status = "disabled"; + compatible = "marvell,dsa"; dsa,ethernet = <ð1>; dsa,mii-bus = <&mdio>;
@@ -444,3 +446,66 @@ status = "disabled"; }; }; + +&mdio { + status = "okay"; + + switch at 4 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + pinctrl-0 = <&clearfog_dsa0_clk_pins &clearfog_dsa0_pins>; + pinctrl-names = "default"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + label = "lan5"; + }; + + port at 1 { + reg = <1>; + label = "lan4"; + }; + + port at 2 { + reg = <2>; + label = "lan3"; + }; + + port at 3 { + reg = <3>; + label = "lan2"; + }; + + port at 4 { + reg = <4>; + label = "lan1"; + }; + + port at 5 { + reg = <5>; + label = "cpu"; + ethernet = <ð1>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + port at 6 { + /* 88E1512 external phy */ + reg = <6>; + label = "lan6"; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; +};
Signature · 1 line
2.9.3
PATCH v3 4/8 ARM: dts: armada-xp-linksys-mamba: Utilize new DSA binding
In reply to Florian FainelliUtilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+)
arch/arm/boot/dts/armada-xp-linksys-mamba.dts +53 -0
@@ -302,6 +302,8 @@ }; dsa { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>;
@@ -398,3 +400,54 @@ spi-max-frequency = <40000000>; }; }; + +&mdio { + status = "okay"; + + switch at 0 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + label = "lan4"; + }; + + port at 1 { + reg = <1>; + label = "lan3"; + }; + + port at 2 { + reg = <2>; + label = "lan2"; + }; + + port at 3 { + reg = <3>; + label = "lan1"; + }; + + port at 4 { + reg = <4>; + label = "internet"; + }; + + port at 5 { + reg = <5>; + label = "cpu"; + ethernet = <ð0>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; +};
Signature · 1 line
2.9.3
PATCH v3 5/8 ARM: dts: kirkwood-dir665: Utilize new DSA binding
In reply to Florian FainelliUtilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/kirkwood-dir665.dts | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)
arch/arm/boot/dts/kirkwood-dir665.dts +49 -0
@@ -194,6 +194,8 @@ }; dsa { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>;
@@ -241,6 +243,53 @@ &mdio { status = "okay"; + + switch at 0 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + label = "lan4"; + }; + + port at 1 { + reg = <1>; + label = "lan3"; + }; + + port at 2 { + reg = <2>; + label = "lan2"; + }; + + port at 3 { + reg = <3>; + label = "lan1"; + }; + + port at 4 { + reg = <4>; + label = "wan"; + }; + + port at 6 { + reg = <6>; + label = "cpu"; + ethernet = <ð0port>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; }; /* eth0 is connected to a Marvell 88E6171 switch, without a PHY. So set
Signature · 1 line
2.9.3
PATCH v3 6/8 ARM: dts: kirkwood-linksys-viper: Utilize new DSA binding
In reply to Florian FainelliUtilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/kirkwood-linksys-viper.dts | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)
arch/arm/boot/dts/kirkwood-linksys-viper.dts +49 -0
@@ -70,6 +70,8 @@ }; dsa { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <2>; #size-cells = <0>;
@@ -207,6 +209,53 @@ &mdio { status = "okay"; + + switch at 10 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <16>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + label = "ethernet1"; + }; + + port at 1 { + reg = <1>; + label = "ethernet2"; + }; + + port at 2 { + reg = <2>; + label = "ethernet3"; + }; + + port at 3 { + reg = <3>; + label = "ethernet4"; + }; + + port at 4 { + reg = <4>; + label = "internet"; + }; + + port at 5 { + reg = <5>; + label = "cpu"; + ethernet = <ð0port>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; }; &uart0 {
Signature · 1 line
2.9.3
PATCH v3 7/8 ARM: dts: kirkwood-mv88f6281gtw-ge: Utilize new DSA binding
In reply to Florian FainelliUtilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)
arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts +49 -0
@@ -112,6 +112,8 @@ }; dsa { + status = "disabled"; + compatible = "marvell,dsa"; #address-cells = <1>; #size-cells = <0>;
@@ -159,6 +161,53 @@ &mdio { status = "okay"; + + switch at 0 { + compatible = "marvell,mv88e6085"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + label = "lan1"; + }; + + port at 1 { + reg = <1>; + label = "lan2"; + }; + + port at 2 { + reg = <2>; + label = "lan3"; + }; + + port at 3 { + reg = <3>; + label = "lan4"; + }; + + port at 4 { + reg = <4>; + label = "wan"; + }; + + port at 5 { + reg = <5>; + label = "cpu"; + ethernet = <ð0port>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; }; ð0 {
Signature · 1 line
2.9.3
PATCH v3 8/8 ARM: dts: kirkwood-rd88f6281: Utilize new DSA binding
In reply to Florian FainelliUtilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.
--- arch/arm/boot/dts/kirkwood-rd88f6281-a.dts | 9 +++--- arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts | 11 ++++++++ arch/arm/boot/dts/kirkwood-rd88f6281.dtsi | 44 +++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 5 deletions(-)
arch/arm/boot/dts/kirkwood-rd88f6281-a.dts +4 -5
@@ -19,11 +19,6 @@ model = "Marvell RD88f6281 Reference design, with A0 or higher SoC"; compatible = "marvell,rd88f6281-a", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood"; - dsa { - switch at 0 { - reg = <10 0>; /* MDIO address 10, switch 0 in tree */ - }; - }; }; &mdio {
@@ -34,6 +29,10 @@ }; }; +&switch { + reg = <10>; +}; + ð1 { status = "okay";
arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts +11 -0
@@ -33,3 +33,14 @@ ð1 { status = "disabled"; }; + +&switch { + reg = <0>; + + ports { + port at 4 { + reg = <4>; + label = "wan"; + }; + }; +};
arch/arm/boot/dts/kirkwood-rd88f6281.dtsi +44 -0
56 lines not on this page · raw message
Signature · 1 line
2.9.3
Re: [PATCH v3 8/8] ARM: dts: kirkwood-rd88f6281: Utilize new DSA binding
Quoted 5 lines · Florian Fainelli
Utilize the new DSA binding, introduced with commit
8c5ad1d6179d("net: dsa:
Document new binding"). The legacy binding node is kept included, but is marked disabled.Signed-off-by Florian Fainelli <[email protected]>
Andrew
Quoted 14 lines · Florian Fainelli
Hi all,
This patch series converts the in-tree users to utilize the new (relatively) DSA binding that was introduced with commit
8c5ad1d6179d("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled.Changes in v3:
- collected tags from Andrew and Russell
- added missing change toarch/arm/boot/dts/kirkwood-rd88f6281-a.dtsChanges in v2:
Quoted 7 lines
- patch 1: Use an hexadecimal reg property
- patch 2: fixed the subject
- patch 3: s/okay/disabled/ for the legacy DSA node
- patches 7/8: fixed a stray whitespaceIn about 2-3 releases we may consider removing the old DSA binding entirely from the kernel.
Gregory, all patches have been reviewed/tested now, can you take this for an upcoming 4.11 pull request? Thanks!
Signature · 1 line
Florian
Hi Florian,
Quoted 20 lines · Florian Fainelli
Quoted 19 lines · Florian Fainelli
Hi all,
This patch series converts the in-tree users to utilize the new (relatively) DSA binding that was introduced with commit
8c5ad1d6179d("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled.Changes in v3:
- collected tags from Andrew and Russell
- added missing change toarch/arm/boot/dts/kirkwood-rd88f6281-a.dtsChanges in v2:
- patch 1: Use an hexadecimal reg property
- patch 2: fixed the subject
- patch 3: s/okay/disabled/ for the legacy DSA node
- patches 7/8: fixed a stray whitespace
Quoted 5 lines
Quoted 2 lines
In about 2-3 releases we may consider removing the old DSA binding entirely from the kernel.
Gregory, all patches have been reviewed/tested now, can you take this for an upcoming 4.11 pull request? Thanks!
All the series applied on mvebu/dt
Thanks,
Gregory
Quoted 2 lines
Signature · 1 line
Florian
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 24 lines · Gregory CLEMENT
Hi Florian,
Quoted 20 lines · Florian Fainelli
Quoted 19 lines · Florian Fainelli
Hi all,
This patch series converts the in-tree users to utilize the new (relatively) DSA binding that was introduced with commit
8c5ad1d6179d("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled.Changes in v3:
- collected tags from Andrew and Russell
- added missing change toarch/arm/boot/dts/kirkwood-rd88f6281-a.dtsChanges in v2:
- patch 1: Use an hexadecimal reg property
- patch 2: fixed the subject
- patch 3: s/okay/disabled/ for the legacy DSA node
- patches 7/8: fixed a stray whitespace
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
In about 2-3 releases we may consider removing the old DSA binding entirely from the kernel.
Gregory, all patches have been reviewed/tested now, can you take this for an upcoming 4.11 pull request? Thanks!
All the series applied on mvebu/dt
Awesome, merci !
Signature · 1 line
Florian