lkml.org 
[lkml]   [2022]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 net-next 02/10] dt-bindings: net: dsa: mediatek,mt7530: change mt7530 switch address
Date
In the case of muxing phy0 of the MT7530 switch, the switch and the phy
will have the same address on the mdio bus, 0. This causes the ethernet
driver to fail since devices on the mdio bus cannot share an address.

Any address can be used for the switch, therefore, change the switch
address to 0x1f.

Suggested-by: Sungbo Eo <mans0n@gorani.run>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Acked-by: Rob Herring <robh@kernel.org>
---
.../bindings/net/dsa/mediatek,mt7530.yaml | 24 +++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
index f9e7b6e20b35..2c73d13adf14 100644
--- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
@@ -294,9 +294,9 @@ examples:
#address-cells = <1>;
#size-cells = <0>;

- switch@0 {
+ switch@1f {
compatible = "mediatek,mt7530";
- reg = <0>;
+ reg = <0x1f>;

reset-gpios = <&pio 33 0>;

@@ -356,9 +356,9 @@ examples:
#address-cells = <1>;
#size-cells = <0>;

- switch@0 {
+ switch@1f {
compatible = "mediatek,mt7530";
- reg = <0>;
+ reg = <0x1f>;

mediatek,mcm;
resets = <&ethsys MT2701_ETHSYS_MCM_RST>;
@@ -486,9 +486,9 @@ examples:
#address-cells = <1>;
#size-cells = <0>;

- switch@0 {
+ switch@1f {
compatible = "mediatek,mt7621";
- reg = <0>;
+ reg = <0x1f>;

mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
@@ -573,9 +573,9 @@ examples:
reg = <4>;
};

- switch@0 {
+ switch@1f {
compatible = "mediatek,mt7621";
- reg = <0>;
+ reg = <0x1f>;

mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
@@ -664,9 +664,9 @@ examples:
phy-mode = "rgmii";
};

- switch@0 {
+ switch@1f {
compatible = "mediatek,mt7621";
- reg = <0>;
+ reg = <0x1f>;

mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
@@ -745,9 +745,9 @@ examples:
phy-mode = "rgmii";
};

- switch@0 {
+ switch@1f {
compatible = "mediatek,mt7621";
- reg = <0>;
+ reg = <0x1f>;

mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
--
2.34.1
\
 
 \ /
  Last update: 2022-09-18 15:43    [W:0.081 / U:1.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site