summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMieczyslaw Nalewaj <namiltd@yahoo.com>2024-05-09 13:11:16 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2024-05-09 19:43:54 +0200
commit9dae0ac0bc61385b77639fa1397c0fc302a0abeb (patch)
treeb92f47a9a3b618ecdad3a8952f4bd355aec2b5c0 /target
parent2cd414c33e511235db6d339e1268faf9749a14e1 (diff)
downloadopenwrt-9dae0ac0bc61385b77639fa1397c0fc302a0abeb.tar.gz
openwrt-9dae0ac0bc61385b77639fa1397c0fc302a0abeb.tar.bz2
openwrt-9dae0ac0bc61385b77639fa1397c0fc302a0abeb.zip
mediatek: correct address of MT753x switch IC
Continuation of commit 8b66f1a. Set the switch address on the MDIO bus to 31. This is required for all boards currently working with the mt7530 DSA driver. Fixes: #15419 Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/mediatek/dts/mt7622-netgear-wax206.dts4
-rw-r--r--target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi5
2 files changed, 4 insertions, 5 deletions
diff --git a/target/linux/mediatek/dts/mt7622-netgear-wax206.dts b/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
index ce1cd46d2d..524a498740 100644
--- a/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
+++ b/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
@@ -143,13 +143,13 @@
#address-cells = <1>;
#size-cells = <0>;
- switch@0 {
+ switch@1f {
compatible = "mediatek,mt7531";
+ reg = <31>;
#interrupt-cells = <1>;
interrupt-controller;
interrupt-parent = <&pio>;
interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
- reg = <0>;
reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
ports {
diff --git a/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi b/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi
index a4e443a0fb..fedf8b8596 100644
--- a/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi
+++ b/target/linux/mediatek/dts/mt7623a-unielec-u7623-02.dtsi
@@ -121,17 +121,16 @@
#address-cells = <1>;
#size-cells = <0>;
- mt7530: switch@0 {
- compatible = "mediatek,mt7530";
+ mt7530: switch@1f {
};
};
};
&mt7530 {
compatible = "mediatek,mt7530";
+ reg = <31>;
#address-cells = <1>;
#size-cells = <0>;
- reg = <0>;
pinctrl-names = "default";
mediatek,mcm;
resets = <&ethsys 2>;