diff options
| author | Patrice Chotard <patrice.chotard@foss.st.com> | 2025-11-13 18:14:05 +0300 |
|---|---|---|
| committer | Alexandre Torgue <alexandre.torgue@foss.st.com> | 2026-01-20 11:48:54 +0300 |
| commit | 86e73410c8bc512d7153a589cb9e13ca7c91c4b0 (patch) | |
| tree | e3a7946172c40246bd7a497bb9697ff53e98d476 | |
| parent | 55fb8865f35336b04b1b27efe6ce2bbafcc2c507 (diff) | |
| download | linux-86e73410c8bc512d7153a589cb9e13ca7c91c4b0.tar.xz | |
arm64: dts: st: Add green and orange LED for stm32mp2 ST boards
Add green and orange LED support on stm32mp235f-dk board.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-14-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-15-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-16-45090db9e2e5@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
| -rw-r--r-- | arch/arm64/boot/dts/st/stm32mp235f-dk.dts | 10 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/st/stm32mp257f-dk.dts | 10 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 23 |
3 files changed, 43 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/st/stm32mp235f-dk.dts b/arch/arm64/boot/dts/st/stm32mp235f-dk.dts index c3e688068223..ab9a30103db7 100644 --- a/arch/arm64/boot/dts/st/stm32mp235f-dk.dts +++ b/arch/arm64/boot/dts/st/stm32mp235f-dk.dts @@ -53,6 +53,16 @@ linux,default-trigger = "heartbeat"; default-state = "off"; }; + + led-green { + color = <LED_COLOR_ID_GREEN>; + gpios = <&gpioh 5 GPIO_ACTIVE_HIGH>; + }; + + led-orange { + color = <LED_COLOR_ID_ORANGE>; + gpios = <&gpioh 6 GPIO_ACTIVE_HIGH>; + }; }; memory@80000000 { diff --git a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts index e718d888ce21..dc1a75f10f49 100644 --- a/arch/arm64/boot/dts/st/stm32mp257f-dk.dts +++ b/arch/arm64/boot/dts/st/stm32mp257f-dk.dts @@ -53,6 +53,16 @@ linux,default-trigger = "heartbeat"; default-state = "off"; }; + + led-green { + color = <LED_COLOR_ID_GREEN>; + gpios = <&gpioh 5 GPIO_ACTIVE_HIGH>; + }; + + led-orange { + color = <LED_COLOR_ID_ORANGE>; + gpios = <&gpioh 6 GPIO_ACTIVE_HIGH>; + }; }; memory@80000000 { diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts index bb6d6393d2e4..6e9aa392ba9a 100644 --- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts +++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts @@ -7,6 +7,7 @@ /dts-v1/; #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> #include <dt-bindings/regulator/st,stm32mp25-regulator.h> #include "stm32mp257.dtsi" #include "stm32mp25xf.dtsi" @@ -42,6 +43,28 @@ }; }; + gpio-leds { + compatible = "gpio-leds"; + + led-blue { + function = LED_FUNCTION_HEARTBEAT; + color = <LED_COLOR_ID_BLUE>; + gpios = <&gpioj 7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; + + led-green { + color = <LED_COLOR_ID_GREEN>; + gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>; + }; + + led-orange { + color = <LED_COLOR_ID_ORANGE>; + gpios = <&gpioj 6 GPIO_ACTIVE_HIGH>; + }; + }; + imx335_2v9: regulator-2v9 { compatible = "regulator-fixed"; regulator-name = "imx335-avdd"; |
