From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [PATCHv2 8/8] ARM: socfpga: dts: Add LED framework to A10-SR GPIO Date: Thu, 2 Jun 2016 12:52:28 -0500 Message-ID: <1464889948-28793-9-git-send-email-tthayer@opensource.altera.com> References: <1464889948-28793-1-git-send-email-tthayer@opensource.altera.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mail-bn1bon0058.outbound.protection.outlook.com ([157.56.111.58]:20963 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933003AbcFBRr5 (ORCPT ); Thu, 2 Jun 2016 13:47:57 -0400 In-Reply-To: <1464889948-28793-1-git-send-email-tthayer@opensource.altera.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: lee.jones@linaro.org, linus.walleij@linaro.org, gnurou@gmail.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, dinguyen@opensource.altera.com Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Thor Thayer From: Thor Thayer Add the LED framework to the Arria10 System Resource chip GPIO hooks. Signed-off-by: Thor Thayer --- v2 No change --- arch/arm/boot/dts/socfpga_arria10_socdk.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi b/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi index 2655fae..3ff6321 100644 --- a/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi +++ b/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi @@ -31,6 +31,30 @@ reg = <0x0 0x40000000>; /* 1GB */ }; + a10leds { + compatible = "gpio-leds"; + + a10sr_led0 { + label = "a10sr-led0"; + gpios = <&a10sr_gpio 0 1>; + }; + + a10sr_led1 { + label = "a10sr-led1"; + gpios = <&a10sr_gpio 1 1>; + }; + + a10sr_led2 { + label = "a10sr-led2"; + gpios = <&a10sr_gpio 2 1>; + }; + + a10sr_led3 { + label = "a10sr-led3"; + gpios = <&a10sr_gpio 3 1>; + }; + }; + soc { clkmgr@ffd04000 { clocks { -- 1.7.9.5