* [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board
@ 2018-01-17 9:40 Benjamin Gaignard
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f769 " Benjamin Gaignard
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Benjamin Gaignard @ 2018-01-17 9:40 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, mcoquelin.stm32, alexandre.torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
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";
--
2.15.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: dts: stm32: Add leds support to stm32f769 Discovery board
2018-01-17 9:40 [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board Benjamin Gaignard
@ 2018-01-17 9:40 ` Benjamin Gaignard
2018-02-27 15:54 ` Alexandre Torgue
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f469 " Benjamin Gaignard
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Benjamin Gaignard @ 2018-01-17 9:40 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, mcoquelin.stm32, alexandre.torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
Add nodes for the two user leds.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: dts: stm32: Add push button to stm32f469 Discovery board
2018-01-17 9:40 [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board Benjamin Gaignard
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f769 " Benjamin Gaignard
@ 2018-01-17 9:40 ` Benjamin Gaignard
2018-02-27 15:54 ` Alexandre Torgue
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f769 " Benjamin Gaignard
2018-02-27 15:54 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f469 " Alexandre Torgue
3 siblings, 1 reply; 8+ messages in thread
From: Benjamin Gaignard @ 2018-01-17 9:40 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, mcoquelin.stm32, alexandre.torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
Add node for user push button.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: dts: stm32: Add push button to stm32f769 Discovery board
2018-01-17 9:40 [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board Benjamin Gaignard
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f769 " Benjamin Gaignard
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f469 " Benjamin Gaignard
@ 2018-01-17 9:40 ` Benjamin Gaignard
2018-02-27 15:54 ` Alexandre Torgue
2018-02-27 15:54 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f469 " Alexandre Torgue
3 siblings, 1 reply; 8+ messages in thread
From: Benjamin Gaignard @ 2018-01-17 9:40 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, mcoquelin.stm32, alexandre.torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
Add node for user push button.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board
2018-01-17 9:40 [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board Benjamin Gaignard
` (2 preceding siblings ...)
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f769 " Benjamin Gaignard
@ 2018-02-27 15:54 ` Alexandre Torgue
3 siblings, 0 replies; 8+ messages in thread
From: Alexandre Torgue @ 2018-02-27 15:54 UTC (permalink / raw)
To: Benjamin Gaignard, robh+dt, mark.rutland, linux, mcoquelin.stm32
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: stm32: Add leds support to stm32f769 Discovery board
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f769 " Benjamin Gaignard
@ 2018-02-27 15:54 ` Alexandre Torgue
0 siblings, 0 replies; 8+ messages in thread
From: Alexandre Torgue @ 2018-02-27 15:54 UTC (permalink / raw)
To: Benjamin Gaignard, robh+dt, mark.rutland, linux, mcoquelin.stm32
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
Hi
On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add nodes for the two user leds.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: stm32: Add push button to stm32f469 Discovery board
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f469 " Benjamin Gaignard
@ 2018-02-27 15:54 ` Alexandre Torgue
0 siblings, 0 replies; 8+ messages in thread
From: Alexandre Torgue @ 2018-02-27 15:54 UTC (permalink / raw)
To: Benjamin Gaignard, robh+dt, mark.rutland, linux, mcoquelin.stm32
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
hi
On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add node for user push button.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: stm32: Add push button to stm32f769 Discovery board
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f769 " Benjamin Gaignard
@ 2018-02-27 15:54 ` Alexandre Torgue
0 siblings, 0 replies; 8+ messages in thread
From: Alexandre Torgue @ 2018-02-27 15:54 UTC (permalink / raw)
To: Benjamin Gaignard, robh+dt, mark.rutland, linux, mcoquelin.stm32
Cc: devicetree, linux-arm-kernel, linux-kernel, Benjamin Gaignard
Hi
On 01/17/2018 10:40 AM, Benjamin Gaignard wrote:
> Add node for user push button.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-02-27 15:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-17 9:40 [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board Benjamin Gaignard
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f769 " Benjamin Gaignard
2018-02-27 15:54 ` Alexandre Torgue
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f469 " Benjamin Gaignard
2018-02-27 15:54 ` Alexandre Torgue
2018-01-17 9:40 ` [PATCH] ARM: dts: stm32: Add push button to stm32f769 " Benjamin Gaignard
2018-02-27 15:54 ` Alexandre Torgue
2018-02-27 15:54 ` [PATCH] ARM: dts: stm32: Add leds support to stm32f469 " Alexandre Torgue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).