diff --git a/samples/basic/blinky_pwm/boards/nucleo_l4r5zi.overlay b/samples/basic/blinky_pwm/boards/nucleo_l4r5zi.overlay new file mode 100644 index 00000000000..7e40a648008 --- /dev/null +++ b/samples/basic/blinky_pwm/boards/nucleo_l4r5zi.overlay @@ -0,0 +1,32 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright (c) 2022 STMicroelectronics + */ + +#include +#include + +/ { + pwmleds { + compatible = "pwm-leds"; + + red_pwm_led: red_pwm_led { + pwms = <&pwm1 2 4 (PWM_POLARITY_NORMAL | PWM_STM32_COMPLEMENTARY)>; + }; + }; + + aliases { + pwm-led0 = &red_pwm_led; + }; +}; + +&timers1 { + status = "okay"; + + pwm1: pwm { + status = "okay"; + pinctrl-0 = <&tim1_ch2n_pb14>; + pinctrl-names = "default"; + }; +};