* [PATCH] ARM: Kirkwood: Fix DT based DSA.
@ 2014-08-30 16:54 Andrew Lunn
2014-08-31 20:15 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Lunn @ 2014-08-30 16:54 UTC (permalink / raw)
To: linux-arm-kernel
During the conversion of boards to use DT to instantiate Distributed
Switch Architecture, nobody volunteered to test. As to be expected,
the conversion was flawed. Testers and access to hardware has now
become available, and this patch hopefully fixes the problems.
dsa,mii-bus must be a phandle to the top level mdio node, not the port
specific subnode of the mdio device.
dsa,ethernet must be a phandle to the port subnode within the ethernet
DT node, not the ethernet node.
Fixes: e2eaa339af441b3d51cdaa16870065c4154ce13c
Fixes: e7c8f3808be854379c9784745663a55371cbf232
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
---
NOTE: This is a request for testing. Please do not commit unless it
gains a Tested-by: There is a user out there of one of these boards,
so hopefully it will get tested.
arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts | 16 ++++++----------
arch/arm/boot/dts/kirkwood-rd88f6281.dtsi | 13 ++++---------
arch/arm/boot/dts/kirkwood.dtsi | 4 ++--
3 files changed, 12 insertions(+), 21 deletions(-)
diff --git a/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts b/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
index 8f76d28759a3..f82827d6fcff 100644
--- a/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
+++ b/arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
@@ -123,11 +123,11 @@
dsa at 0 {
compatible = "marvell,dsa";
- #address-cells = <2>;
+ #address-cells = <1>;
#size-cells = <0>;
- dsa,ethernet = <ð0>;
- dsa,mii-bus = <ðphy0>;
+ dsa,ethernet = <ð0port>;
+ dsa,mii-bus = <&mdio>;
switch at 0 {
#address-cells = <1>;
@@ -169,17 +169,13 @@
&mdio {
status = "okay";
-
- ethphy0: ethernet-phy at ff {
- reg = <0xff>; /* No phy attached */
- speed = <1000>;
- duplex = <1>;
- };
};
ð0 {
status = "okay";
+
ethernet0-port at 0 {
- phy-handle = <ðphy0>;
+ speed = <1000>;
+ duplex = <1>;
};
};
diff --git a/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi b/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
index 26cf0e0ccefd..57e5213c11cf 100644
--- a/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
+++ b/arch/arm/boot/dts/kirkwood-rd88f6281.dtsi
@@ -69,8 +69,8 @@
#address-cells = <2>;
#size-cells = <0>;
- dsa,ethernet = <ð0>;
- dsa,mii-bus = <ðphy1>;
+ dsa,ethernet = <ð0port>;
+ dsa,mii-bus = <&mdio>;
switch at 0 {
#address-cells = <1>;
@@ -130,12 +130,6 @@
ethphy0: ethernet-phy at 0 {
reg = <0>;
};
-
- ethphy1: ethernet-phy at ff {
- reg = <0xff>; /* No PHY attached */
- speed = <1000>;
- duple = <1>;
- };
};
ð0 {
@@ -148,6 +142,7 @@
ð1 {
status = "okay";
ethernet1-port at 0 {
- phy-handle = <ðphy1>;
+ speed = <1000>;
+ duple = <1>;
};
};
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi
index afc640cd80c5..464f09a1a4a5 100644
--- a/arch/arm/boot/dts/kirkwood.dtsi
+++ b/arch/arm/boot/dts/kirkwood.dtsi
@@ -309,7 +309,7 @@
marvell,tx-checksum-limit = <1600>;
status = "disabled";
- ethernet0-port at 0 {
+ eth0port: ethernet0-port at 0 {
compatible = "marvell,kirkwood-eth-port";
reg = <0>;
interrupts = <11>;
@@ -342,7 +342,7 @@
pinctrl-names = "default";
status = "disabled";
- ethernet1-port at 0 {
+ eth1port: ethernet1-port at 0 {
compatible = "marvell,kirkwood-eth-port";
reg = <0>;
interrupts = <15>;
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: Kirkwood: Fix DT based DSA.
2014-08-30 16:54 [PATCH] ARM: Kirkwood: Fix DT based DSA Andrew Lunn
@ 2014-08-31 20:15 ` Florian Fainelli
0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2014-08-31 20:15 UTC (permalink / raw)
To: linux-arm-kernel
On 08/30/14 09:54, Andrew Lunn wrote:
> During the conversion of boards to use DT to instantiate Distributed
> Switch Architecture, nobody volunteered to test. As to be expected,
> the conversion was flawed. Testers and access to hardware has now
> become available, and this patch hopefully fixes the problems.
>
> dsa,mii-bus must be a phandle to the top level mdio node, not the port
> specific subnode of the mdio device.
>
> dsa,ethernet must be a phandle to the port subnode within the ethernet
> DT node, not the ethernet node.
>
> Fixes: e2eaa339af441b3d51cdaa16870065c4154ce13c
> Fixes: e7c8f3808be854379c9784745663a55371cbf232
Your changes look good with respect to how the binding is defined.
>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> ---
[snip]
> ð0 {
> @@ -148,6 +142,7 @@
> ð1 {
> status = "okay";
> ethernet1-port at 0 {
> - phy-handle = <ðphy1>;
> + speed = <1000>;
> + duple = <1>;
Typo here: should be "duplex".
> };
> };
> diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi
> index afc640cd80c5..464f09a1a4a5 100644
> --- a/arch/arm/boot/dts/kirkwood.dtsi
> +++ b/arch/arm/boot/dts/kirkwood.dtsi
> @@ -309,7 +309,7 @@
> marvell,tx-checksum-limit = <1600>;
> status = "disabled";
>
> - ethernet0-port at 0 {
> + eth0port: ethernet0-port at 0 {
> compatible = "marvell,kirkwood-eth-port";
> reg = <0>;
> interrupts = <11>;
> @@ -342,7 +342,7 @@
> pinctrl-names = "default";
> status = "disabled";
>
> - ethernet1-port at 0 {
> + eth1port: ethernet1-port at 0 {
> compatible = "marvell,kirkwood-eth-port";
> reg = <0>;
> interrupts = <15>;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-31 20:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-30 16:54 [PATCH] ARM: Kirkwood: Fix DT based DSA Andrew Lunn
2014-08-31 20:15 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).