From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZeW98-0007MM-Eg for barebox@lists.infradead.org; Tue, 22 Sep 2015 22:34:47 +0000 Received: by lagj9 with SMTP id j9so30572669lag.2 for ; Tue, 22 Sep 2015 15:34:22 -0700 (PDT) From: Antony Pavlov Date: Wed, 23 Sep 2015 01:34:12 +0300 Message-Id: <1442961253-24762-6-git-send-email-antonynpavlov@gmail.com> In-Reply-To: <1442961253-24762-1-git-send-email-antonynpavlov@gmail.com> References: <1442961253-24762-1-git-send-email-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/6] MIPS: dts: tplink-mr3020.dts: enable gpio & leds To: barebox@lists.infradead.org Signed-off-by: Antony Pavlov --- arch/mips/dts/tplink-mr3020.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts index e155de3..804d290 100644 --- a/arch/mips/dts/tplink-mr3020.dts +++ b/arch/mips/dts/tplink-mr3020.dts @@ -1,6 +1,7 @@ /dts-v1/; #include "ar9331.dtsi" +#include / { model = "TP-LINK MR3020"; @@ -13,12 +14,44 @@ aliases { spiflash = &spiflash; }; + + leds { + compatible = "gpio-leds"; + + wlan { + label = "tp-link:green:wlan"; + gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + lan { + label = "tp-link:green:lan"; + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + wps { + label = "tp-link:green:wps"; + gpios = <&gpio 26 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + led3g { + label = "tp-link:green:3g"; + gpios = <&gpio 27 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + }; }; &serial0 { status = "okay"; }; +&gpio { + status = "okay"; +}; + &spi { num-chipselects = <1>; status = "okay"; -- 2.5.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox