[openwrt/openwrt] ath79: enable gpio on ar933x by default

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 3 11:37:22 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/dc1280ef652c6522269c7a864810c19362d33dc4

commit dc1280ef652c6522269c7a864810c19362d33dc4
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Fri Jul 3 17:21:12 2020 +0200

    ath79: enable gpio on ar933x by default
    
    All other SoC DTSI files have gpio enabled by default, only
    ar9330/ar9331 disable it by default, only to have it enabled again
    afterwards for each individual device.
    
    So, do not disable it in the first place, and drop all device-specific
    status statements afterwards.
    
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ath79/dts/ar9330.dtsi                           | 2 --
 target/linux/ath79/dts/ar9330_dlink_dir-505.dts              | 2 --
 target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts            | 4 ----
 target/linux/ath79/dts/ar9330_pqi_air-pen.dts                | 4 ----
 target/linux/ath79/dts/ar9331_8dev_carambola2.dts            | 4 ----
 target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts        | 4 ----
 target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts     | 4 ----
 target/linux/ath79/dts/ar9331_etactica_eg200.dts             | 4 ----
 target/linux/ath79/dts/ar9331_glinet_64xx.dtsi               | 4 ----
 target/linux/ath79/dts/ar9331_pisen_ts-d084.dts              | 4 ----
 target/linux/ath79/dts/ar9331_pisen_wmm003n.dts              | 4 ----
 target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts        | 4 ----
 target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts        | 4 ----
 target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi | 4 ----
 target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v1.dts        | 4 ----
 target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi      | 4 ----
 16 files changed, 60 deletions(-)

diff --git a/target/linux/ath79/dts/ar9330.dtsi b/target/linux/ath79/dts/ar9330.dtsi
index 8e52ae8fdb..7d2f74122a 100644
--- a/target/linux/ath79/dts/ar9330.dtsi
+++ b/target/linux/ath79/dts/ar9330.dtsi
@@ -57,8 +57,6 @@
 
 				interrupt-controller;
 				#interrupt-cells = <2>;
-
-				status = "disabled";
 			};
 
 			pinmux: pinmux at 18040028 {
diff --git a/target/linux/ath79/dts/ar9330_dlink_dir-505.dts b/target/linux/ath79/dts/ar9330_dlink_dir-505.dts
index 6984176daa..7fe5c8abe4 100644
--- a/target/linux/ath79/dts/ar9330_dlink_dir-505.dts
+++ b/target/linux/ath79/dts/ar9330_dlink_dir-505.dts
@@ -56,8 +56,6 @@
 };
 
 &gpio {
-	status = "okay";
-
 	led_enable {
 		gpio-hog;
 		output-low;
diff --git a/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts b/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
index d81d477227..b8c6959d5d 100644
--- a/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
+++ b/target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
@@ -67,10 +67,6 @@
 	status = "okay";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &usb {
 	dr_mode = "host";
 	status = "okay";
diff --git a/target/linux/ath79/dts/ar9330_pqi_air-pen.dts b/target/linux/ath79/dts/ar9330_pqi_air-pen.dts
index 8537faa0f9..2d7f79ee87 100644
--- a/target/linux/ath79/dts/ar9330_pqi_air-pen.dts
+++ b/target/linux/ath79/dts/ar9330_pqi_air-pen.dts
@@ -55,10 +55,6 @@
 	status = "okay";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &usb {
 	dr_mode = "host";
 	status = "okay";
diff --git a/target/linux/ath79/dts/ar9331_8dev_carambola2.dts b/target/linux/ath79/dts/ar9331_8dev_carambola2.dts
index ffb9745e03..f35f1850f2 100644
--- a/target/linux/ath79/dts/ar9331_8dev_carambola2.dts
+++ b/target/linux/ath79/dts/ar9331_8dev_carambola2.dts
@@ -54,10 +54,6 @@
 	status = "okay";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &usb {
 	dr_mode = "host";
 	status = "okay";
diff --git a/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts b/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts
index 971d158faf..d1b49b2c25 100644
--- a/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts
+++ b/target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts
@@ -73,10 +73,6 @@
 	compatible = "syscon", "simple-mfd";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &spi {
 	status = "okay";
 
diff --git a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
index 349c7ffc4d..614c31e1e7 100644
--- a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
+++ b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
@@ -48,10 +48,6 @@
 	status = "okay";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &usb {
 	dr_mode = "host";
 	status = "okay";
diff --git a/target/linux/ath79/dts/ar9331_etactica_eg200.dts b/target/linux/ath79/dts/ar9331_etactica_eg200.dts
index 079cc88767..3cf72a321a 100644
--- a/target/linux/ath79/dts/ar9331_etactica_eg200.dts
+++ b/target/linux/ath79/dts/ar9331_etactica_eg200.dts
@@ -58,10 +58,6 @@
 	status = "okay";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &usb {
 	dr_mode = "host";
 	status = "okay";
diff --git a/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi b/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi
index 2fa970248a..fd6791915f 100644
--- a/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi
+++ b/target/linux/ath79/dts/ar9331_glinet_64xx.dtsi
@@ -65,10 +65,6 @@
 	mtd-mac-address = <&uboot 0x1fc00>;
 };
 
-&gpio {
-	status = "okay";
-};
-
 &uart {
 	status = "okay";
 };
diff --git a/target/linux/ath79/dts/ar9331_pisen_ts-d084.dts b/target/linux/ath79/dts/ar9331_pisen_ts-d084.dts
index 8b8e304c9b..565c236f67 100644
--- a/target/linux/ath79/dts/ar9331_pisen_ts-d084.dts
+++ b/target/linux/ath79/dts/ar9331_pisen_ts-d084.dts
@@ -92,10 +92,6 @@
 	compatible = "syscon", "simple-mfd";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &uart {
 	status = "okay";
 };
diff --git a/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts b/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts
index 6fb11545ad..6b746bb152 100644
--- a/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts
+++ b/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts
@@ -101,10 +101,6 @@
 	compatible = "syscon", "simple-mfd";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &uart {
 	status = "okay";
 };
diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts
index 8f4147b7f7..704f7c41a8 100644
--- a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts
+++ b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts
@@ -91,10 +91,6 @@
 	status = "okay";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &usb {
 	#address-cells = <1>;
 	#size-cells = <0>;
diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts b/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts
index 85ab924009..d0a479712d 100644
--- a/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts
+++ b/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts
@@ -87,10 +87,6 @@
 	status = "okay";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &usb {
 	#address-cells = <1>;
 	#size-cells = <0>;
diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi
index 2bacd08245..c2bc50a505 100644
--- a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi
+++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi
@@ -99,10 +99,6 @@
 	compatible = "syscon", "simple-mfd";
 };
 
-&gpio {
-	status = "okay";
-};
-
 &uart {
 	status = "okay";
 };
diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v1.dts b/target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v1.dts
index 49dd11469c..493dbfe7b6 100644
--- a/target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v1.dts
+++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v1.dts
@@ -104,10 +104,6 @@
 	mtd-mac-address-increment = <(-1)>;
 };
 
-&gpio {
-	status = "okay";
-};
-
 &uart {
 	status = "okay";
 };
diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
index 4f11d5d7a4..8e36c6851c 100644
--- a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
+++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
@@ -142,10 +142,6 @@
 	mtd-mac-address-increment = <(-1)>;
 };
 
-&gpio {
-	status = "okay";
-};
-
 &uart {
 	status = "okay";
 };



More information about the lede-commits mailing list