Skip to content

Commit 86e7341

Browse files
Patrice ChotardAlexandre Torgue
authored andcommitted
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>
1 parent 55fb886 commit 86e7341

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

arch/arm64/boot/dts/st/stm32mp235f-dk.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@
5353
linux,default-trigger = "heartbeat";
5454
default-state = "off";
5555
};
56+
57+
led-green {
58+
color = <LED_COLOR_ID_GREEN>;
59+
gpios = <&gpioh 5 GPIO_ACTIVE_HIGH>;
60+
};
61+
62+
led-orange {
63+
color = <LED_COLOR_ID_ORANGE>;
64+
gpios = <&gpioh 6 GPIO_ACTIVE_HIGH>;
65+
};
5666
};
5767

5868
memory@80000000 {

arch/arm64/boot/dts/st/stm32mp257f-dk.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@
5353
linux,default-trigger = "heartbeat";
5454
default-state = "off";
5555
};
56+
57+
led-green {
58+
color = <LED_COLOR_ID_GREEN>;
59+
gpios = <&gpioh 5 GPIO_ACTIVE_HIGH>;
60+
};
61+
62+
led-orange {
63+
color = <LED_COLOR_ID_ORANGE>;
64+
gpios = <&gpioh 6 GPIO_ACTIVE_HIGH>;
65+
};
5666
};
5767

5868
memory@80000000 {

arch/arm64/boot/dts/st/stm32mp257f-ev1.dts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/dts-v1/;
88

99
#include <dt-bindings/gpio/gpio.h>
10+
#include <dt-bindings/leds/common.h>
1011
#include <dt-bindings/regulator/st,stm32mp25-regulator.h>
1112
#include "stm32mp257.dtsi"
1213
#include "stm32mp25xf.dtsi"
@@ -42,6 +43,28 @@
4243
};
4344
};
4445

46+
gpio-leds {
47+
compatible = "gpio-leds";
48+
49+
led-blue {
50+
function = LED_FUNCTION_HEARTBEAT;
51+
color = <LED_COLOR_ID_BLUE>;
52+
gpios = <&gpioj 7 GPIO_ACTIVE_HIGH>;
53+
linux,default-trigger = "heartbeat";
54+
default-state = "off";
55+
};
56+
57+
led-green {
58+
color = <LED_COLOR_ID_GREEN>;
59+
gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>;
60+
};
61+
62+
led-orange {
63+
color = <LED_COLOR_ID_ORANGE>;
64+
gpios = <&gpioj 6 GPIO_ACTIVE_HIGH>;
65+
};
66+
};
67+
4568
imx335_2v9: regulator-2v9 {
4669
compatible = "regulator-fixed";
4770
regulator-name = "imx335-avdd";

0 commit comments

Comments
 (0)