From c7842ceaaa27a72146303362e24e10fbb1bcb213 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 24 Oct 2019 13:36:47 +0200 Subject: 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 --- .../ramips/dts/mt7621_netgear_wndr3700-v5.dts | 38 +++++++++++++++++----- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts') 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 -#include +#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 = ; + }; + + wifi { + label = "wifi"; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + + reset { + label = "reset"; + gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + linux,code = ; + }; + }; +}; + +&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"; -- cgit v1.2.3