samples: blinky_pwm: Add nucleo_l476rg support

Enable use of nucleo_l476rg on this sample using a dedicated overlay.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2022-12-06 15:38:40 +01:00 committed by Fabio Baltieri
parent 12fa8335a3
commit 13acbf1b68

View file

@ -0,0 +1,26 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2022 STMicroelectronics
*/
/ {
pwmleds: pwmleds {
compatible = "pwm-leds";
status = "okay";
green_pwm_led: green_pwm_led {
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
aliases {
pwm-led0 = &green_pwm_led;
};
};
&pwm2 {
status = "okay";
};