ARM: dts: stm32: Add leds support to stm32f469 Discovery board

Message ID 20180117094005.20728-1-benjamin.gaignard@st.com
State New
Headers show
Series
  • ARM: dts: stm32: Add leds support to stm32f469 Discovery board
Related show

Commit Message

Benjamin Gaignard Jan. 17, 2018, 9:40 a.m.
Add nodes for the four user leds.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

---
 arch/arm/boot/dts/stm32f469-disco.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

-- 
2.15.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Alexandre Torgue Feb. 27, 2018, 3:54 p.m. | #1
Hi,

On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add nodes for the four user leds.

> 

> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

> ---

>   arch/arm/boot/dts/stm32f469-disco.dts | 16 ++++++++++++++++

>   1 file changed, 16 insertions(+)

> 

> diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts

> index c18acbe4cf4e..5e9994840a24 100644

> --- a/arch/arm/boot/dts/stm32f469-disco.dts

> +++ b/arch/arm/boot/dts/stm32f469-disco.dts

> @@ -70,6 +70,22 @@

>   		dma-ranges = <0xc0000000 0x0 0x10000000>;

>   	};

>   

> +	leds {

> +		compatible = "gpio-leds";

> +		green {

> +			gpios = <&gpiog 6 1>;

> +			linux,default-trigger = "heartbeat";

> +		};

> +		orange {

> +			gpios = <&gpiod 4 1>;

> +		};

> +		red {

> +			gpios = <&gpiod 5 1>;

> +		};

> +		blue {

> +			gpios = <&gpiok 3 1>;

> +	};

> +

>   	/* This turns on vbus for otg for host mode (dwc2) */

>   	vcc5v_otg: vcc5v-otg-regulator {

>   		compatible = "regulator-fixed";

> 


Applied on stm32-next.

thanks
alex
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
index c18acbe4cf4e..5e9994840a24 100644
--- a/arch/arm/boot/dts/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
@@ -70,6 +70,22 @@ 
 		dma-ranges = <0xc0000000 0x0 0x10000000>;
 	};
 
+	leds {
+		compatible = "gpio-leds";
+		green {
+			gpios = <&gpiog 6 1>;
+			linux,default-trigger = "heartbeat";
+		};
+		orange {
+			gpios = <&gpiod 4 1>;
+		};
+		red {
+			gpios = <&gpiod 5 1>;
+		};
+		blue {
+			gpios = <&gpiok 3 1>;
+	};
+
 	/* This turns on vbus for otg for host mode (dwc2) */
 	vcc5v_otg: vcc5v-otg-regulator {
 		compatible = "regulator-fixed";