From 5673dd151a8656b8b31213a5c9928befcfe5fb9f Mon Sep 17 00:00:00 2001 From: "Oshri Alkoby (NTIL)" Date: Tue, 5 Jun 2018 22:30:35 +0300 Subject: [PATCH] add LEDs to dts --- arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 14 ++++++++++++++ arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi | 2 ++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts index 0ef66482c442fc..f56cc1e204c344 100644 --- a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts +++ b/arch/arm/boot/dts/nuvoton-npcm750-evb.dts @@ -65,6 +65,20 @@ reg = <0 0x40000000>; }; + leds { + compatible = "gpio-leds"; + + heartbeat { + label = "heartbeat"; + gpios = <&pinctrl 146 0>; + }; + + identify { + label = "identify"; + gpios = <&pinctrl 147 0>; + }; + }; + ahb { gmac0: eth@f0802000 { status = "okay"; diff --git a/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi b/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi index 567fbe1892e227..6c7c3787453bb8 100644 --- a/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi +++ b/arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi @@ -13,6 +13,8 @@ / { pinctrl: pinctrl@0 { + #gpio-cells = <2>; + gpio0o_pins: gpio0o_pins { pins = "GPIO0/IOX1DI"; output-high;