diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-09-20 14:03:02 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2019-10-21 14:19:32 +0200 |
commit | 556ff0987539271647535094309605433f2aa96f (patch) | |
tree | bfa686d602df8d07a1fb1d502ee482581439215f /target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi | |
parent | 02330a655676bbb0432e5fc30bfe7fdd21a9c9c9 (diff) | |
download | upstream-556ff0987539271647535094309605433f2aa96f.tar.gz upstream-556ff0987539271647535094309605433f2aa96f.tar.bz2 upstream-556ff0987539271647535094309605433f2aa96f.zip |
ramips/mt762x: convert devices to interrupt-driven gpio-keys
This converts all remaining devices to use interrupt-driven
gpio-keys compatible instead of gpio-keys-polled.
The poll-interval is removed.
While at it, add/remove newlines in keys and leds node where
necessary.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi')
-rw-r--r-- | target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi index 0776ea7a79..41c6b07dbd 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi @@ -19,16 +19,19 @@ leds { compatible = "gpio-leds"; + led_power: power { label = "zbt-we826:green:power"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; + usb { label = "zbt-we826:green:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; + air { label = "zbt-we826:green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; @@ -36,8 +39,8 @@ }; keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; + compatible = "gpio-keys"; + reset { label = "reset"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |