mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
ARM: dts: stm32: Update LED nodes for stm32 MCU boards
Add function porperty for led nodes. Add LED color property for LED nodes. Reorder include dt-bindings. Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-2-45090db9e2e5@foss.st.com Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-3-45090db9e2e5@foss.st.com Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-4-45090db9e2e5@foss.st.com Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-5-45090db9e2e5@foss.st.com Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-6-45090db9e2e5@foss.st.com Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-7-45090db9e2e5@foss.st.com Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-10-45090db9e2e5@foss.st.com Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
This commit is contained in:
parent
256d3e55d8
commit
e89ae0ec2f
|
|
@ -48,8 +48,9 @@
|
|||
/dts-v1/;
|
||||
#include "stm32f429.dtsi"
|
||||
#include "stm32f429-pinctrl.dtsi"
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
#include <dt-bindings/media/video-interfaces.h>
|
||||
|
||||
/ {
|
||||
|
|
@ -85,16 +86,21 @@ soc {
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led-green {
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpiog 6 1>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
led-orange {
|
||||
color = <LED_COLOR_ID_ORANGE>;
|
||||
gpios = <&gpiog 7 1>;
|
||||
};
|
||||
led-red {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
gpios = <&gpiog 10 1>;
|
||||
};
|
||||
led-blue {
|
||||
color = <LED_COLOR_ID_BLUE>;
|
||||
gpios = <&gpiog 12 1>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
#include "stm32f746-pinctrl.dtsi"
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32746g-EVAL board";
|
||||
|
|
@ -67,16 +68,21 @@ aliases {
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led-green {
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpiof 10 1>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
led-orange {
|
||||
color = <LED_COLOR_ID_ORANGE>;
|
||||
gpios = <&stmfx_pinctrl 17 1>;
|
||||
};
|
||||
led-red {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
gpios = <&gpiob 7 1>;
|
||||
};
|
||||
led-blue {
|
||||
color = <LED_COLOR_ID_BLUE>;
|
||||
gpios = <&stmfx_pinctrl 19 1>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -48,9 +48,10 @@
|
|||
/dts-v1/;
|
||||
#include "stm32f429.dtsi"
|
||||
#include "stm32f429-pinctrl.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F429i-DISCO board";
|
||||
|
|
@ -73,9 +74,12 @@ aliases {
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led-red {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
gpios = <&gpiog 14 0>;
|
||||
};
|
||||
led-green {
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpiog 13 0>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@
|
|||
#include "stm32f469-pinctrl.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F469i-DISCO board";
|
||||
|
|
@ -83,16 +84,21 @@ soc {
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led-green {
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
led-orange {
|
||||
color = <LED_COLOR_ID_ORANGE>;
|
||||
gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
led-red {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
gpios = <&gpiod 5 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
led-blue {
|
||||
color = <LED_COLOR_ID_BLUE>;
|
||||
gpios = <&gpiok 3 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F746-DISCO board";
|
||||
|
|
@ -81,6 +82,8 @@ aliases {
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led-usr {
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
#include "stm32f769-pinctrl.dtsi"
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F769-DISCO board";
|
||||
|
|
@ -80,13 +81,17 @@ aliases {
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led-usr2 {
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
led-usr1 {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
led-usr3 {
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpioa 12 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include "stm32h7-pinctrl.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32H747i-Discovery board";
|
||||
|
|
@ -39,16 +40,21 @@ v3v3: regulator-v3v3 {
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led-green {
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&gpioi 12 GPIO_ACTIVE_LOW>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
led-orange {
|
||||
color = <LED_COLOR_ID_ORANGE>;
|
||||
gpios = <&gpioi 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
led-red {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
gpios = <&gpioi 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
led-blue {
|
||||
color = <LED_COLOR_ID_BLUE>;
|
||||
gpios = <&gpioi 15 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user