[RFC PATCH] ramips: do not enable unused GPIO controllers

Adrian Schmutzler freifunk at adrianschmutzler.de
Tue Dec 1 09:10:27 EST 2020


Several devices enable GPIO controllers not used in the DTS files.

Drop them.

Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---

Is it really that simple or am I moving along the wrong path here?

---
 target/linux/ramips/dts/mt7620a_engenius_esr600.dts       | 4 ----
 target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts      | 4 ----
 target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts      | 4 ----
 target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts       | 4 ----
 target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi        | 4 ----
 target/linux/ramips/dts/mt7620a_microduino_microwrt.dts   | 8 --------
 target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts        | 4 ----
 target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts        | 8 --------
 target/linux/ramips/dts/mt7620a_sercomm_na930.dts         | 4 ----
 target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts    | 4 ----
 target/linux/ramips/dts/mt7620a_yukai_bocco.dts           | 8 --------
 target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts  | 8 --------
 target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts      | 4 ----
 target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts      | 4 ----
 target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi          | 4 ----
 target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts       | 8 --------
 target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts    | 8 --------
 target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts      | 4 ----
 target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts       | 4 ----
 target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi        | 4 ----
 target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts    | 4 ----
 target/linux/ramips/dts/rt5350_hame_mpr-a1.dts            | 4 ----
 .../linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi | 4 ----
 target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts      | 4 ----
 target/linux/ramips/dts/rt5350_tenda_3g150b.dts           | 4 ----
 target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts       | 4 ----
 target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts       | 4 ----
 27 files changed, 132 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
index 807e18d62b..b8fe2f8cdb 100644
--- a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
+++ b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
@@ -63,10 +63,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &gpio2 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
index 00153fab64..545e11a83f 100644
--- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
+++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
@@ -62,10 +62,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &gpio2 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
index 43dfa0d5f5..575566c5fa 100644
--- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
+++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
@@ -57,10 +57,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &gpio2 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
index e3189a2f9b..75823787bf 100644
--- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
+++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
@@ -57,10 +57,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &gpio2 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
index 06f4054c50..6349ec5365 100644
--- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
+++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
@@ -38,10 +38,6 @@
 	ralink,wdtmux = <1>;
 };
 
-&gpio2 {
-	status = "okay";
-};
-
 &gpio3 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
index b1602a98a1..4307d51424 100644
--- a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
+++ b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
@@ -28,14 +28,6 @@
 	};
 };
 
-&gpio2 {
-	status = "okay";
-};
-
-&gpio3 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
index 908f89d149..07f606fce4 100644
--- a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
+++ b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
@@ -43,10 +43,6 @@
 	};
 };
 
-&gpio2 {
-	status = "okay";
-};
-
 &gpio3 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
index e6374434ed..aa7ddb0a25 100644
--- a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
+++ b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
@@ -44,14 +44,6 @@
 	status = "okay";
 };
 
-&gpio2 {
-	status = "okay";
-};
-
-&gpio3 {
-	status = "okay";
-};
-
 &i2c {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts
index 0d96fd2901..4a91c07ecd 100644
--- a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts
+++ b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts
@@ -128,10 +128,6 @@
 	status = "okay";
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &gpio2 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
index 7d118e32b9..11b1aa38d6 100644
--- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
+++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
@@ -54,10 +54,6 @@
 	status = "okay";
 };
 
-&gpio2 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts
index 6ad52d21ba..9c99a6582e 100644
--- a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts
+++ b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts
@@ -58,14 +58,6 @@
 	status = "okay";
 };
 
-&gpio2 {
-	status = "okay";
-};
-
-&gpio3 {
-	status = "okay";
-};
-
 &i2c {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
index aa26f4ea98..28ae7c3f98 100644
--- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
+++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
@@ -51,14 +51,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
-&gpio2 {
-	status = "okay";
-};
-
 &gpio3 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts
index 2467a766a3..d659262b0e 100644
--- a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts
+++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts
@@ -45,10 +45,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &gpio3 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
index 6c6e98fdd4..19d2f63694 100644
--- a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
+++ b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
@@ -50,10 +50,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &gpio2 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
index 0a724c048b..1597c088bc 100644
--- a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
+++ b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
@@ -34,10 +34,6 @@
 	};
 };
 
-&gpio2 {
-	status = "okay";
-};
-
 &gpio3 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
index 3ac7296f75..144591d48a 100644
--- a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
+++ b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
@@ -27,14 +27,6 @@
 	status = "okay";
 };
 
-&gpio2 {
-	status = "okay";
-};
-
-&gpio3 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
index 35bada9a24..6d018b9e58 100644
--- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
+++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
@@ -50,14 +50,6 @@
 	status = "okay";
 };
 
-&gpio2 {
-	status = "okay";
-};
-
-&gpio3 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
index a6ef51dabb..b29c034140 100644
--- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
+++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
@@ -54,10 +54,6 @@
 	status = "okay";
 };
 
-&gpio2 {
-	status = "okay";
-};
-
 &gpio3 {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
index c0e3193818..a1e7c837d1 100644
--- a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
+++ b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
@@ -130,10 +130,6 @@
 	status = "okay";
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &uartlite {
 	status = "okay";
 };
diff --git a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
index 848c6eed01..0b2c7602d1 100644
--- a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
+++ b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
@@ -16,10 +16,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
index 43769eeb62..3b1fdd4a8e 100644
--- a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
+++ b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
@@ -5,10 +5,6 @@
 	model = "EASYACC WI-STOR WIZARD 8800";
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
index 5054a8c211..1386ec920b 100644
--- a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
+++ b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
@@ -97,10 +97,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &state_default {
 	gpio {
 		groups = "i2c", "jtag", "uartf", "led";
diff --git a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
index 902cc6e522..7d85109bec 100644
--- a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
+++ b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
@@ -49,10 +49,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &state_default {
 	gpio {
 		groups = "jtag";
diff --git a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
index c7e899580c..d3d1ebe26f 100644
--- a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
+++ b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
@@ -35,10 +35,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
diff --git a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts
index a20cd04a26..35ccee1584 100644
--- a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts
+++ b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts
@@ -93,10 +93,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &state_default {
 	gpio {
 		groups = "i2c", "jtag", "uartf", "led";
diff --git a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
index 2173ec4fba..089b85629b 100644
--- a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
+++ b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
@@ -98,10 +98,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &state_default {
 	gpio {
 		groups = "i2c", "jtag", "uartf", "led";
diff --git a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
index 314c4091a4..2cb6101184 100644
--- a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
+++ b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
@@ -72,10 +72,6 @@
 	};
 };
 
-&gpio1 {
-	status = "okay";
-};
-
 &spi0 {
 	status = "okay";
 
-- 
2.20.1




More information about the openwrt-devel mailing list