Skip to content

Commit 8a51f9e

Browse files
sigurdnevioannisg
authored andcommitted
boards: arm: nrf5340: Add pwm-led0 alias
The `pwm-led0` alias is required for building fade_led and blinky_pwm samples. Signed-off-by: Sigurd Olav Nevstad <[email protected]>
1 parent 9e219e4 commit 8a51f9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@
3434
};
3535
};
3636

37+
pwmleds {
38+
compatible = "pwm-leds";
39+
pwm_led0: pwm_led_0 {
40+
pwms = <&pwm0 28>;
41+
};
42+
};
43+
3744
buttons {
3845
compatible = "gpio-keys";
3946
button0: button_0 {
@@ -100,6 +107,7 @@
100107
led1 = &led1;
101108
led2 = &led2;
102109
led3 = &led3;
110+
pwm-led0 = &pwm_led0;
103111
sw0 = &button0;
104112
sw1 = &button1;
105113
sw2 = &button2;

0 commit comments

Comments
 (0)