mediatek: fix remaining invalid MT7531 switch reg IDs
authorFelix Fietkau <nbd@nbd.name>
Mon, 29 Apr 2024 09:56:26 +0000 (11:56 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 29 Apr 2024 10:00:09 +0000 (12:00 +0200)
See commit 8b66f1a06d05afbc1450978f6e20516c8308da25:
"mediatek: correct address of MT753x switch IC"

Fixes: ac8bfe316b81 ("generic: 6.1, 6.6: mt7530: import accepted patches")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/mediatek/patches-6.6/107-mt7622_fix_dts_mt7531_reg.patch [new file with mode: 0644]

diff --git a/target/linux/mediatek/patches-6.6/107-mt7622_fix_dts_mt7531_reg.patch b/target/linux/mediatek/patches-6.6/107-mt7622_fix_dts_mt7531_reg.patch
new file mode 100644 (file)
index 0000000..75a9c55
--- /dev/null
@@ -0,0 +1,28 @@
+--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
++++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+@@ -145,9 +145,9 @@
+               #address-cells = <1>;
+               #size-cells = <0>;
+-              switch@0 {
++              switch@1f {
+                       compatible = "mediatek,mt7531";
+-                      reg = <0>;
++                      reg = <31>;
+                       interrupt-controller;
+                       #interrupt-cells = <1>;
+                       interrupt-parent = <&pio>;
+--- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
++++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
+@@ -117,9 +117,9 @@
+               #address-cells = <1>;
+               #size-cells = <0>;
+-              switch@0 {
++              switch@1f {
+                       compatible = "mediatek,mt7531";
+-                      reg = <0>;
++                      reg = <31>;
+                       reset-gpios = <&pio 54 0>;
+                       ports {