Skip to content

Commit 61ba02c

Browse files
rclaveau-techsuperna9999
authored andcommitted
arm64: dts: amlogic: t7: khadas-vim4: add PWM-driven status LED
The VIM4 board exposes a status LED wired to the PWM_AO_C_D output. Enable the pwm_ao_cd controller with its pinmux, and declare a pwm-leds node with a heartbeat trigger. Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr> Link: https://patch.msgid.link/20260513-add-kvim4-sysled-v2-3-3ec9779e8875@aliel.fr Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent a63d58b commit 61ba02c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@
5353
regulator-always-on;
5454
};
5555

56+
pwm-leds {
57+
compatible = "pwm-leds";
58+
59+
status {
60+
linux,default-trigger="heartbeat";
61+
max-brightness = <255>;
62+
pwms = <&pwm_ao_cd 0 30040 0>;
63+
};
64+
};
65+
5666
sd_3v3: regulator-sdcard-3v3 {
5767
compatible = "regulator-fixed";
5868
regulator-name = "SD_3V3";
@@ -163,6 +173,12 @@
163173
pinctrl-names = "default";
164174
};
165175

176+
&pwm_ao_cd {
177+
status = "okay";
178+
pinctrl-0 = <&pwm_ao_c_d_pins>;
179+
pinctrl-names = "default";
180+
};
181+
166182
/* SDIO */
167183
&sd_emmc_a {
168184
status = "okay";

0 commit comments

Comments
 (0)