All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Arınç ÜNAL" <arinc.unal@arinc9.com>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Matthias Brugger <matthias.bgg@gmail.com>
Cc: devicetree@vger.kernel.org, "Sean Wang" <sean.wang@mediatek.com>,
	"Arınç ÜNAL" <arinc.unal@arinc9.com>,
	linux-kernel@vger.kernel.org, "DENG Qingfang" <dqfext@gmail.com>,
	linux-mediatek@lists.infradead.org, erkin.bozoglu@xeront.com,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] arm: dts: mt7623: change mt7530 switch address
Date: Fri, 20 Jan 2023 23:53:16 +0300	[thread overview]
Message-ID: <20230120205318.519493-4-arinc.unal@arinc9.com> (raw)
In-Reply-To: <20230120205318.519493-1-arinc.unal@arinc9.com>

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.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
---
 arch/arm/boot/dts/mt7623a.dtsi                | 4 ++--
 arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 4 ++--
 arch/arm/boot/dts/mt7623n-rfb-emmc.dts        | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi
index 5207e0183f3a..a1a393028629 100644
--- a/arch/arm/boot/dts/mt7623a.dtsi
+++ b/arch/arm/boot/dts/mt7623a.dtsi
@@ -35,9 +35,9 @@ mdio: mdio-bus {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		switch0: switch@0 {
+		switch0: switch@1f {
 			compatible = "mediatek,mt7530";
-			reg = <0>;
+			reg = <0x1f>;
 			mediatek,mcm;
 			resets = <&ethsys MT2701_ETHSYS_MCM_RST>;
 			reset-names = "mcm";
diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index a5800a524302..94174cb2b7e1 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -188,9 +188,9 @@ mdio: mdio-bus {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		switch@0 {
+		switch@1f {
 			compatible = "mediatek,mt7530";
-			reg = <0>;
+			reg = <0x1f>;
 			reset-gpios = <&pio 33 0>;
 			core-supply = <&mt6323_vpa_reg>;
 			io-supply = <&mt6323_vemc3v3_reg>;
diff --git a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts
index 2a869a6476eb..7c3298a92887 100644
--- a/arch/arm/boot/dts/mt7623n-rfb-emmc.dts
+++ b/arch/arm/boot/dts/mt7623n-rfb-emmc.dts
@@ -183,9 +183,9 @@ phy5: ethernet-phy@5 {
 			phy-mode = "rgmii-rxid";
 		};
 
-		switch@0 {
+		switch@1f {
 			compatible = "mediatek,mt7530";
-			reg = <0>;
+			reg = <0x1f>;
 			reset-gpios = <&pio 33 0>;
 			core-supply = <&mt6323_vpa_reg>;
 			io-supply = <&mt6323_vemc3v3_reg>;
-- 
2.37.2



  parent reply	other threads:[~2023-01-20 20:54 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20 20:53 [PATCH 0/5] arm: dts: mt7623: relocate gmacs, mt7530 switch, and mux phy Arınç ÜNAL
2023-01-20 20:53 ` [PATCH 1/5] arm: dts: mt7623: add gmacs to mt7623.dtsi Arınç ÜNAL
2023-01-25 16:45   ` Frank Wunderlich
2023-01-25 16:45     ` Frank Wunderlich
2023-01-25 16:52     ` Arınç ÜNAL
2023-01-25 16:52       ` Arınç ÜNAL
2023-01-31 11:53       ` Matthias Brugger
2023-01-31 11:53         ` Matthias Brugger
2023-01-20 20:53 ` [PATCH 2/5] arm: dts: mt7623: add mt7530 switch to mt7623a.dtsi Arınç ÜNAL
2023-01-20 20:53 ` Arınç ÜNAL [this message]
2023-01-20 20:53 ` [PATCH 4/5] arm: dts: mt7623: mux phy0 on Bananapi BPI-R2 Arınç ÜNAL
2023-01-25 16:41   ` Frank Wunderlich
2023-01-25 16:41     ` Frank Wunderlich
2023-01-25 16:54     ` Arınç ÜNAL
2023-01-25 16:54       ` Arınç ÜNAL
2023-01-31 11:55       ` Matthias Brugger
2023-01-31 11:55         ` Matthias Brugger
2023-01-31 16:39         ` Aw: " Frank Wunderlich
2023-01-31 16:39           ` Frank Wunderlich
2023-02-01 17:49           ` Arınç ÜNAL
2023-02-01 17:49             ` Arınç ÜNAL
2023-01-20 20:53 ` [PATCH 5/5] arm: dts: mt7623: enable flow control on port@6 Arınç ÜNAL
2023-01-25 15:03 ` [PATCH 0/5] arm: dts: mt7623: relocate gmacs, mt7530 switch, and mux phy Matthias Brugger
2023-01-25 15:03   ` Matthias Brugger
2023-01-25 15:03   ` Matthias Brugger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230120205318.519493-4-arinc.unal@arinc9.com \
    --to=arinc.unal@arinc9.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dqfext@gmail.com \
    --cc=erkin.bozoglu@xeront.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=sean.wang@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.