2018-01-17 09:40:21

by Benjamin Gaignard

[permalink] [raw]
Subject: [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board

Add nodes for the four user leds.

Signed-off-by: Benjamin Gaignard <[email protected]>
---
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";
--
2.15.0


2018-01-17 09:40:26

by Benjamin Gaignard

[permalink] [raw]
Subject: [PATCH] ARM: dts: stm32: Add push button to stm32f469 Discovery board

Add node for user push button.

Signed-off-by: Benjamin Gaignard <[email protected]>
---
arch/arm/boot/dts/stm32f469-disco.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
index 5e9994840a24..c93d83d53bc8 100644
--- a/arch/arm/boot/dts/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
@@ -86,6 +86,18 @@
gpios = <&gpiok 3 1>;
};

+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+ button@0 {
+ label = "User";
+ linux,code = <KEY_WAKEUP>;
+ gpios = <&gpioa 0 0>;
+ };
+ };
+
/* This turns on vbus for otg for host mode (dwc2) */
vcc5v_otg: vcc5v-otg-regulator {
compatible = "regulator-fixed";
--
2.15.0

2018-01-17 09:41:07

by Benjamin Gaignard

[permalink] [raw]
Subject: [PATCH] ARM: dts: stm32: Add push button to stm32f769 Discovery board

Add node for user push button.

Signed-off-by: Benjamin Gaignard <[email protected]>
---
arch/arm/boot/dts/stm32f769-disco.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts
index 25a4b71f0317..8b3e1b518570 100644
--- a/arch/arm/boot/dts/stm32f769-disco.dts
+++ b/arch/arm/boot/dts/stm32f769-disco.dts
@@ -71,6 +71,18 @@
gpios = <&gpioj 13 0>;
};
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+ button@0 {
+ label = "User";
+ linux,code = <KEY_HOME>;
+ gpios = <&gpioa 0 0>;
+ };
+ };
};

&cec {
--
2.15.0

2018-01-17 09:42:37

by Benjamin Gaignard

[permalink] [raw]
Subject: [PATCH] ARM: dts: stm32: Add leds support to stm32f769 Discovery board

Add nodes for the two user leds.

Signed-off-by: Benjamin Gaignard <[email protected]>
---
arch/arm/boot/dts/stm32f769-disco.dts | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts
index 4463ca13a740..25a4b71f0317 100644
--- a/arch/arm/boot/dts/stm32f769-disco.dts
+++ b/arch/arm/boot/dts/stm32f769-disco.dts
@@ -61,6 +61,16 @@
serial0 = &usart1;
};

+ leds {
+ compatible = "gpio-leds";
+ green {
+ gpios = <&gpioj 5 0>;
+ linux,default-trigger = "heartbeat";
+ };
+ red {
+ gpios = <&gpioj 13 0>;
+ };
+ };
};

&cec {
--
2.15.0

2018-02-27 15:55:53

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board

Hi,

On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add nodes for the four user leds.
>
> Signed-off-by: Benjamin Gaignard <[email protected]>
> ---
> 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

2018-02-27 15:56:17

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: stm32: Add push button to stm32f769 Discovery board

Hi

On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add node for user push button.
>
> Signed-off-by: Benjamin Gaignard <[email protected]>
> ---
> arch/arm/boot/dts/stm32f769-disco.dts | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts
> index 25a4b71f0317..8b3e1b518570 100644
> --- a/arch/arm/boot/dts/stm32f769-disco.dts
> +++ b/arch/arm/boot/dts/stm32f769-disco.dts
> @@ -71,6 +71,18 @@
> gpios = <&gpioj 13 0>;
> };
> };
> +
> + gpio_keys {
> + compatible = "gpio-keys";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + autorepeat;
> + button@0 {
> + label = "User";
> + linux,code = <KEY_HOME>;
> + gpios = <&gpioa 0 0>;
> + };
> + };
> };
>
> &cec {
>


Applied on stm32-next.

thanks
alex

2018-02-27 15:56:30

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: stm32: Add push button to stm32f469 Discovery board

hi

On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add node for user push button.
>
> Signed-off-by: Benjamin Gaignard <[email protected]>
> ---
> arch/arm/boot/dts/stm32f469-disco.dts | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
> index 5e9994840a24..c93d83d53bc8 100644
> --- a/arch/arm/boot/dts/stm32f469-disco.dts
> +++ b/arch/arm/boot/dts/stm32f469-disco.dts
> @@ -86,6 +86,18 @@
> gpios = <&gpiok 3 1>;
> };
>
> + gpio_keys {
> + compatible = "gpio-keys";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + autorepeat;
> + button@0 {
> + label = "User";
> + linux,code = <KEY_WAKEUP>;
> + gpios = <&gpioa 0 0>;
> + };
> + };
> +
> /* This turns on vbus for otg for host mode (dwc2) */
> vcc5v_otg: vcc5v-otg-regulator {
> compatible = "regulator-fixed";
>


Applied on stm32-next.

thanks
alex

2018-02-27 15:58:35

by Alexandre Torgue

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: stm32: Add leds support to stm32f769 Discovery board

Hi

On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add nodes for the two user leds.
>
> Signed-off-by: Benjamin Gaignard <[email protected]>
> ---
> arch/arm/boot/dts/stm32f769-disco.dts | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts
> index 4463ca13a740..25a4b71f0317 100644
> --- a/arch/arm/boot/dts/stm32f769-disco.dts
> +++ b/arch/arm/boot/dts/stm32f769-disco.dts
> @@ -61,6 +61,16 @@
> serial0 = &usart1;
> };
>
> + leds {
> + compatible = "gpio-leds";
> + green {
> + gpios = <&gpioj 5 0>;
> + linux,default-trigger = "heartbeat";
> + };
> + red {
> + gpios = <&gpioj 13 0>;
> + };
> + };
> };
>
> &cec {
>

Applied on stm32-next.

thanks
alex