Skip to content

Commit 9b606d2

Browse files
openedevmmind
authored andcommitted
arm64: dts: rockchip: Add LED_GREEN for edgeble-neu6a
Edgeble NCM6A, NCM6B SoM has Green LED on the module. Enable them with heartbeat function. Signed-off-by: Jagan Teki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 762751c commit 9b606d2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-common.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,27 @@
33
* Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd.
44
*/
55

6+
#include <dt-bindings/gpio/gpio.h>
7+
#include <dt-bindings/leds/common.h>
8+
69
/ {
710
aliases {
811
mmc0 = &sdhci;
912
};
1013

14+
gpio-leds {
15+
compatible = "gpio-leds";
16+
17+
led_user: led-0 {
18+
color = <LED_COLOR_ID_GREEN>;
19+
function = LED_FUNCTION_HEARTBEAT;
20+
gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
21+
linux,default-trigger = "heartbeat";
22+
pinctrl-names = "default";
23+
pinctrl-0 = <&led_user_en>;
24+
};
25+
};
26+
1127
vcc12v_dcin: vcc12v-dcin-regulator {
1228
compatible = "regulator-fixed";
1329
regulator-name = "vcc12v_dcin";
@@ -110,6 +126,14 @@
110126
};
111127
};
112128

129+
&pinctrl {
130+
leds {
131+
led_user_en: led_user_en {
132+
rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
133+
};
134+
};
135+
};
136+
113137
&sdhci {
114138
bus-width = <8>;
115139
no-sdio;

0 commit comments

Comments
 (0)