]> git.itanic.dy.fi Git - linux-stable/commitdiff
dt-bindings: net: dsa: qca8k: fix example
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 22 Mar 2019 00:05:00 +0000 (01:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2019 17:47:10 +0000 (10:47 -0700)
In the example, the phy at phy@0 is clashing with
the switch0@0 at the same address. Usually, the switches
are accessible through pseudo PHYs which in case of the
qca8k are located at 0x10 - 0x18.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/qca8k.txt

index bbcb255c3150230978fba796b320a71c206ddbad..5eda99e6c86eeb034c5ca832790eab057a8147e2 100644 (file)
@@ -55,12 +55,12 @@ Example:
                        reg = <4>;
                };
 
-               switch0@0 {
+               switch@10 {
                        compatible = "qca,qca8337";
                        #address-cells = <1>;
                        #size-cells = <0>;
 
-                       reg = <0>;
+                       reg = <0x10>;
 
                        ports {
                                #address-cells = <1>;