diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-28 12:16:51 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-08-13 02:11:39 +0200 |
commit | 32144ba275d163ce6e7d93546ab4414f03f508fb (patch) | |
tree | f6d9a5c88e418551992995cf650b57fdb05ae4a0 /target/linux/ath79/dts | |
parent | 7ec092e64125b920aee6d1767dacea3f61b2fa6f (diff) | |
download | upstream-32144ba275d163ce6e7d93546ab4414f03f508fb.tar.gz upstream-32144ba275d163ce6e7d93546ab4414f03f508fb.tar.bz2 upstream-32144ba275d163ce6e7d93546ab4414f03f508fb.zip |
ath79: update DTS for TP-Link WDR3600/WDR4300 v1
This replaces gpio-export by gpio-hogs and switches buttons
to interrupt-driven gpio-keys.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r-- | target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi index 6be197c0cf..496cf65e26 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi @@ -59,8 +59,7 @@ }; keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; + compatible = "gpio-keys"; reset { linux,code = <KEY_RESTART>; @@ -75,34 +74,6 @@ debounce-interval = <60>; }; }; - - gpio-export { - compatible = "gpio-export"; - - gpio_usb1_power { - gpio-export,name = "tp-link:power:usb1"; - gpio-export,output = <1>; - gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; - }; - - gpio_usb2_power { - gpio-export,name = "tp-link:power:usb2"; - gpio-export,output = <1>; - gpios = <&gpio 21 GPIO_ACTIVE_HIGH>; - }; - - gpio_ext_lna0 { - gpio-export,name = "tp-link:ext:lna0"; - gpio-export,output = <1>; - gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; - }; - - gpio_ext_lna1 { - gpio-export,name = "tp-link:ext:lna1"; - gpio-export,output = <1>; - gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; - }; - }; }; &ref { @@ -115,6 +86,34 @@ &gpio { status = "okay"; + + lna0 { + gpio-hog; + gpios = <18 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "tp-link:ext:lna0"; + }; + + lna1 { + gpio-hog; + gpios = <19 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "tp-link:ext:lna1"; + }; + + usb1_power { + gpio-hog; + gpios = <22 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "tp-link:power:usb1"; + }; + + usb2_power { + gpio-hog; + gpios = <21 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "tp-link:power:usb2"; + }; }; &spi { |