[openwrt/openwrt] mediatek: also move &slot0 from dtsi down to board dts

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 6 17:45:43 PST 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/2307b049e4c2d4f9aad50342d4d5da4ca4ffdf8e

commit 2307b049e4c2d4f9aad50342d4d5da4ca4ffdf8e
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Wed Dec 7 01:42:53 2022 +0000

    mediatek: also move &slot0 from dtsi down to board dts
    
    As the referenced MTD partition is only present in the dts, also move
    &slot0 down to the dts files.
    
    Fixes: 64e9b62829 ("mediatek: remove redundant flash entry from dtsi")
    Fixes: 7dbac3433f ("mediatek: add support for reyee AX3200-E5")
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/mediatek/dts/mt7622-reyee-ax3200-e5.dts        | 10 ++++++++++
 target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200.dtsi      | 10 ----------
 target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts | 10 ++++++++++
 3 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7622-reyee-ax3200-e5.dts b/target/linux/mediatek/dts/mt7622-reyee-ax3200-e5.dts
index 3aa59b1c6d..d86ea52fcf 100644
--- a/target/linux/mediatek/dts/mt7622-reyee-ax3200-e5.dts
+++ b/target/linux/mediatek/dts/mt7622-reyee-ax3200-e5.dts
@@ -84,3 +84,13 @@
 	pinctrl-0 = <&epa_elna_pins>;
 	mediatek,mtd-eeprom = <&factory 0x0>;
 };
+
+&slot0 {
+	wifi at 0,0 {
+		compatible = "mediatek,mt76";
+		reg = <0x0000 0 0 0 0>;
+		mediatek,mtd-eeprom = <&factory 0x5000>;
+		ieee80211-freq-limit = <5000000 6000000>;
+		mediatek,disable-radar-background;
+	};
+};
diff --git a/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200.dtsi b/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200.dtsi
index 9a04e79235..5a1cd99f61 100644
--- a/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200.dtsi
+++ b/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200.dtsi
@@ -159,16 +159,6 @@
 	pinctrl-0 = <&pcie0_pins>;
 };
 
-&slot0 {
-	wifi at 0,0 {
-		compatible = "mediatek,mt76";
-		reg = <0x0000 0 0 0 0>;
-		mediatek,mtd-eeprom = <&factory 0x5000>;
-		ieee80211-freq-limit = <5000000 6000000>;
-		mediatek,disable-radar-background;
-	};
-};
-
 &pio {
 	epa_elna_pins: epa-elna-pins {
 		mux {
diff --git a/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts b/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts
index 53abf300cd..857f94ae94 100644
--- a/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts
+++ b/target/linux/mediatek/dts/mt7622-ruijie-rg-ew3200gx-pro.dts
@@ -81,3 +81,13 @@
 	pinctrl-0 = <&epa_elna_pins>;
 	mediatek,mtd-eeprom = <&factory 0x0>;
 };
+
+&slot0 {
+	wifi at 0,0 {
+		compatible = "mediatek,mt76";
+		reg = <0x0000 0 0 0 0>;
+		mediatek,mtd-eeprom = <&factory 0x5000>;
+		ieee80211-freq-limit = <5000000 6000000>;
+		mediatek,disable-radar-background;
+	};
+};




More information about the lede-commits mailing list