diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-10-24 13:36:47 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-06 14:43:04 +0100 |
commit | c7842ceaaa27a72146303362e24e10fbb1bcb213 (patch) | |
tree | 56a1c00d65137b54ebec2ff8facf36fdb211eec6 /target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts | |
parent | 62b1559b569c47e3b5596b190f3e077f8e70d7f0 (diff) | |
download | upstream-c7842ceaaa27a72146303362e24e10fbb1bcb213.tar.gz upstream-c7842ceaaa27a72146303362e24e10fbb1bcb213.tar.bz2 upstream-c7842ceaaa27a72146303362e24e10fbb1bcb213.zip |
ramips: reorganize DTSI files for Netgear R devices
This reorganizes DTSI files for the Netgear R devices in mt7621
(and the WNDR3700 v5). It creates a common DTSI for all R (sercomm)
devices and distributes the remaining code in r6220.dtsi to R6220
and WNDR3700 v5.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts index 090020d5e0..a8e4b5c632 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts @@ -1,14 +1,40 @@ // SPDX-License-Identifier: GPL-2.0 /dts-v1/; -#include "mt7621_netgear_r6220.dtsi" - -#include <dt-bindings/gpio/gpio.h> -#include <dt-bindings/input/input.h> +#include "mt7621_netgear_sercomm.dtsi" / { compatible = "netgear,wndr3700-v5", "mediatek,mt7621-soc"; model = "Netgear WNDR3700 v5"; + + keys { + compatible = "gpio-keys"; + + wps { + label = "wps"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_WPS_BUTTON>; + }; + + wifi { + label = "wifi"; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_RFKILL>; + }; + + reset { + label = "reset"; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_RESTART>; + }; + }; +}; + +&leds { + wps { + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + label = "wndr3700-v5:green:wps"; + }; }; &led_power { @@ -27,10 +53,6 @@ label = "wndr3700-v5:green:wifi"; }; -&led_wps { - label = "wndr3700-v5:green:wps"; -}; - &spi0 { status = "okay"; |