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 --- target/linux/ramips/dts/mt7621_netgear_r6220.dts | 38 +++++++++++++++++++----- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'target/linux/ramips/dts/mt7621_netgear_r6220.dts') diff --git a/target/linux/ramips/dts/mt7621_netgear_r6220.dts b/target/linux/ramips/dts/mt7621_netgear_r6220.dts index 8fdbf912eb..281c0d5331 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6220.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6220.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,r6220", "mediatek,mt7621-soc"; model = "Netgear R6220"; + + 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 = "r6220:green:wps"; + }; }; &led_power { @@ -27,10 +53,6 @@ label = "r6220:green:wifi"; }; -&led_wps { - label = "r6220:green:wps"; -}; - &nand { status = "okay"; -- cgit v1.2.3