ath79: convert devices to interrupt-driven gpio-keys
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 10 Aug 2019 17:22:40 +0000 (19:22 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 22 Sep 2019 16:28:11 +0000 (18:28 +0200)
This converts all remaining devices to use interrupt-driven
gpio-keys compatible instead of gpio-keys-polled.
The poll-interval is removed.

Only ar7240_netgear_wnr612-v2 is kept at gpio-keys-polled, as
this one is using ath9k keys.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Karl Palsson <karlp@etactica.com>
Tested-by: Dmitry Tunin <hanipouspilot@gmail.com>
47 files changed:
target/linux/ath79/dts/ar1022_iodata_wn-ag300dgr.dts
target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dts
target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi
target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts
target/linux/ath79/dts/ar7240_tplink_tl-wr74xn-v1.dtsi
target/linux/ath79/dts/ar7241_tplink.dtsi
target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts
target/linux/ath79/dts/ar7241_ubnt_unifi.dts
target/linux/ath79/dts/ar7241_ubnt_xm.dtsi
target/linux/ath79/dts/ar7242_avm_fritz300e.dts
target/linux/ath79/dts/ar7242_buffalo_wzr-bhr.dtsi
target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g302h-a1a0.dts
target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts
target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts
target/linux/ath79/dts/ar9330_pqi_air-pen.dts
target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
target/linux/ath79/dts/ar9331_etactica_eg200.dts
target/linux/ath79/dts/ar9331_pisen_wmm003n.dts
target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts
target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi
target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v1.dts
target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
target/linux/ath79/dts/ar9341_pcs_cr3000.dts
target/linux/ath79/dts/ar9342_iodata_etg3-r.dts
target/linux/ath79/dts/ar9344_comfast_cf-e120a-v3.dts
target/linux/ath79/dts/ar9344_ocedo_raccoon.dts
target/linux/ath79/dts/ar9344_pcs_cap324.dts
target/linux/ath79/dts/ar9344_pcs_cr5000.dts
target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
target/linux/ath79/dts/qca9531_comfast_cf-e5.dts
target/linux/ath79/dts/qca9531_engenius_ews511ap.dts
target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
target/linux/ath79/dts/qca9531_glinet_gl-x750.dts
target/linux/ath79/dts/qca9533_comfast_cf-e110n-v2.dts
target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi
target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts
target/linux/ath79/dts/qca9557_iodata_wn-ac-dgr.dtsi
target/linux/ath79/dts/qca9558_engenius_epg5000.dts
target/linux/ath79/dts/qca9558_ocedo_koala.dts
target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts
target/linux/ath79/dts/qca9561_avm_fritz4020.dts
target/linux/ath79/dts/qca9561_tplink_archer-c5x.dtsi
target/linux/ath79/dts/qca9561_xiaomi_mi-router-4q.dts
target/linux/ath79/dts/qca9563_dlink_dir-859-a1.dts
target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dts
target/linux/ath79/dts/qca9563_phicomm_k2t.dts

index 5ad8196a152e928f748fffc05cae1f3bffe36708..64f471649e68f18c25d504e78e64315f5d4b5e32 100644 (file)
@@ -55,8 +55,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                eco {
                        label = "eco";
index df22eb8dc4ce681df2d7280f38dd525b6cb49956..f51bc0f7710be9d51977e62e08a12eca3dc80651 100644 (file)
@@ -81,8 +81,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        linux,code = <KEY_RESTART>;
index b983d1b994061bd59dca58424865c9920edf2d67..9dc92a482d1327ef506b21260cecf35972964d33 100644 (file)
@@ -53,8 +53,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                sw1 {
                        label = "sw1";
index 6e4361f10f248e8cb0a5ff1e1be81b5a96d8faf7..f21ffecc050258a2a789ffe6eafb4b893683ff2a 100644 (file)
@@ -35,8 +35,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                wps {
                        label = "sw4";
index 042219b2344c10d0cb7d5e63872fd8179b534413..fcd17b8d13f1c596c5e62f559accbe6076a0a8b6 100644 (file)
@@ -17,8 +17,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                router_on {
                        label = "router_on";
index 89c11762b5d05c8a25c069259230bff27b3145fa..b017aa35972ea6b0aa8740998bab9664d89b26db 100644 (file)
@@ -15,8 +15,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 827c51ba8b43599701b01e16d9ffdb57bf0d2102..536f49b83580e0141868727737dbbb3cbb1e6233 100644 (file)
@@ -15,8 +15,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 15cb22b5184a7ae0183773a5ae14fb00eabe0593..162b5f283898763b8ba87245be51f177207fc531 100644 (file)
@@ -19,8 +19,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                rfkill {
                        label = "rfkill";
index 44a5fdd0bd5f2f27e4f98444b9186b07d0350496..25e3fe027829766ef48de4248875ba8e6e452c45 100644 (file)
@@ -25,8 +25,8 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
+
                reset {
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
index d330a56ee2a0376431e352022ef8889ffd300f16..687aef1112b6afbe2f384a971f9310d7507dc851 100644 (file)
@@ -16,8 +16,8 @@
        };
 */
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
+
                reset {
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
index a7fdc977809a4585c7fe79310033b68af6f41698..dbf4569980f8df8e13af50541a2a3fde08e8df0d 100644 (file)
@@ -19,8 +19,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                wps {
                        label = "wps";
index 70ce41b84de3ebea68162a02f2090d62def290f8..3b5a4dd13d6faee868f0d8d5660463d774a0b72d 100644 (file)
@@ -20,8 +20,7 @@
        };
 
        keys: keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                usb {
                        label = "usb";
index 97bfd0f842a0d5754459670e007a1ef5f7e7895a..8ac4df2194e086ee64d1201e4a82eaa5c2bb4204 100644 (file)
@@ -23,8 +23,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 08f82a871013624f892054f509d08ca2eb7cc511..e683de5aeef31a434778a13be065c95a9dc29494 100644 (file)
@@ -29,8 +29,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index e4ea4c95af2e1bcbe67a8f3ffde2363a6d081564..a8433532f1780f7b5e495c95b5bbfa0d14251721 100644 (file)
@@ -39,8 +39,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                manual {
                        label = "manual";
index 06f728b26764477ed53a36ef4c742a879938a091..ffb28c7417edadd39e61ff1a9178603b7de91021 100644 (file)
@@ -33,8 +33,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                wps {
                        label = "wps";
index d0e0169f1b9cd15ab2f4a5e3a11dbae8c2cad9cf..311a506b5de7b9e5b064070570620edaa9a0e1bd 100644 (file)
@@ -28,8 +28,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                wps {
                        label = "wps";
index 9160aa2b2ef09c5fd38f8b739f24b1d42acec720..5b9dbede970ba01513caa7305b341d85852e7086 100644 (file)
@@ -18,8 +18,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <50>;
+               compatible = "gpio-keys";
 
                restore {
                        linux,code = <KEY_RESTART>;
index b3bc2e4c451254c014683c66821a523ee56f4ee0..6fb11545adabfd096fb3750f57d1074058ba59ac 100644 (file)
@@ -19,8 +19,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 1644799235ec1923ef71925479d820a132709db8..005e263894588fd89448d0b64ecc01fbeb3e7564 100644 (file)
@@ -41,8 +41,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index a0f54850c1c92becefa1e092cc8a19c46ff67aec..e11a1c58b2e67c5117bdc331ae946df31d187dc9 100644 (file)
@@ -17,8 +17,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 0254b40aaef71222c2721b7f201adc656302712c..2660fe59dc9b9d218fecb3502739c7da12d5970e 100644 (file)
@@ -20,8 +20,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 9fef023f80cb1b4a5f33c7a53c6c5c969937d46b..c9be157cc966352ba3f95c7e620823b0672fe6c0 100644 (file)
@@ -20,8 +20,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 9a0b084a72fe0c893f41d98c192e518112e160e2..79611a687d98d93efa86d9775e62581f5a49ca3f 100644 (file)
@@ -19,8 +19,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
index bd2489aa2820c8fad0a98d799d173aff8086f3bb..5daa06711b36b45a9e6639c9fb50985a95404e10 100644 (file)
@@ -33,8 +33,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 8fe45f64a37705ec7137ab6db8da3264141abeff..33c117b2f4a0b970ac913ab573343d9d1f84d571 100644 (file)
@@ -62,8 +62,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 812da3dea585e2c8385c49960a2cfd81ed18de54..9e3177acae5db3cfd9639fb59efc3715d19f0de8 100644 (file)
@@ -53,8 +53,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        linux,code = <KEY_RESTART>;
index 7a211e90880b773e44e08f2d110d176ea83ed8be..390beebab570cf6072627f5879dc5e9364e15976 100644 (file)
@@ -19,8 +19,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
index 0b4a0ea374c367c4657238f76ea085211ca5acd7..211e339f302db1d145ac6640de03b4f7b388afa8 100644 (file)
@@ -19,8 +19,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
index 6895a22e126c99a29770f36097811d7eb6b93021..4ee3ace8290b12fe4c08554647892477cd89065f 100644 (file)
@@ -59,8 +59,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <50>;
+               compatible = "gpio-keys";
 
                reset {
                        linux,code = <KEY_RESTART>;
index 3851f77f6a300f3d32b7baad3a88af2f374d729c..fb329232130ca778c40e803b8bfba0abdee45bf5 100644 (file)
@@ -15,8 +15,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                button0 {
                        label = "reset";
index 4e0ae73d0d4a3c81a1e65be5d6841345d150d9a4..2ece81e0c99b89ff4411b30b740139d2f862775e 100644 (file)
@@ -11,9 +11,8 @@
        model = "EnGenius EWS511AP";
 
        keys {
-               compatible = "gpio-keys-polled";
+               compatible = "gpio-keys";
 
-               poll-interval = <20>;
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
index 5d0dd74c3ffb1f7d08a3661d9c76fe3abebdfaf2..267f2f478fcfb42b4256b93d5c4ce367417bcd0d 100644 (file)
@@ -15,8 +15,8 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
+
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
index ddaf7709b73c319071c028fb27aaacb53b42c0d4..de28f6c3f0bd48b43a2a2e0d20e335f711372566 100644 (file)
@@ -11,9 +11,8 @@
        model = "GL.iNet GL-X750";
 
        keys {
-               compatible = "gpio-keys-polled";
+               compatible = "gpio-keys";
 
-               poll-interval = <20>;
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
index 4bada93452a61c52efb5ecca40706d320671fbc2..d6eef42f3f5e3eb59efd7c27aabeba09329c1815 100644 (file)
@@ -65,8 +65,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index f61b05d746b839a3d5906784a066e1cded94ee39..dc8d92e0b92813e80289dc07016d7e2e55ac6a84 100644 (file)
@@ -49,8 +49,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                reset_button {
                        label = "Reset button";
index 995ecb3b73790acf11b41272ecad825bb32fe550..fc5df53fa974dd71c24a33d1791f887733ff14b5 100644 (file)
@@ -47,8 +47,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 86b97437ea140e867e1b724bcc8639e52d587fd8..0f7838fd56dd651f8084bb6609d5b0665556cb4c 100644 (file)
@@ -51,8 +51,7 @@
        };
 
        keys: keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                eco {
                        label = "eco";
index 6179150fdb899656eba46ea3c2eb78c59ec42380..9545a85d62f474ddb873651120b59113b449dd26 100644 (file)
@@ -54,8 +54,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index 5b5554155779522f8a2f0bb786da5a119960cfe8..b110929eacc4988fdbca391d06ec5c52934954ba 100644 (file)
@@ -50,8 +50,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
index b6dc43fbfca5269a273434a163228077854c5ff3..7d7433d44e1a58bbe5c9913697d7793e2ae1751f 100644 (file)
@@ -42,8 +42,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                button0 {
                        label = "reset";
index e98d6688d1421b9c5192527bc70a14fac025d525..5a850c7064066fd7c82f03a4ebc99c6ce4fbe07f 100644 (file)
@@ -84,8 +84,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                wps_button {
                        label = "WPS button";
index 80d8e707bbc58b574add8aca8729523ee99a7f02..0c8a8bac8f578efd0479c28445586c5734f97c32 100644 (file)
@@ -83,8 +83,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                wps_button {
                        label = "WPS button";
index 8b8818c82fbc628f25ba4d7ae087d4d76dd25aa7..e4c737b8ffd03c45b08a494e9bd01db4585734a9 100644 (file)
@@ -22,8 +22,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <100>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "Reset button";
index 8bd9067afa34384e7107a38cc58bc81cf22de0d1..a17d9f263a11a8215512758cca498c71148005c7 100644 (file)
@@ -47,8 +47,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                wps {
                        linux,code = <KEY_RESTART>;
index 0145a24fbae2cdbe6fb6445607795af6b792352d..24198e80436d003adbc6dd698a24ee642474163d 100644 (file)
@@ -22,8 +22,8 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
+
                pinctrl-names = "default";
                pinctrl-0 = <&jtag_disable_pins>;
 
index d819a76fd24a9610c1dab5279b55797732e01b8d..cb5c01b01cd682f8c7ae11705dfff7a59b9032f7 100644 (file)
@@ -41,8 +41,7 @@
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        linux,code = <KEY_RESTART>;