Commit 44dfa8b2 authored by Lubos Koudelka's avatar Lubos Koudelka Committed by Benjamin Cabé
Browse files

boards: nucleo_wba55cg: Add timer3 and pwmleds configuration

Added timer3 and pwmleds configuration to the nucleo_wba55cg board DTS
file. This includes setting the prescaler, enabling the pwm3 node with the
appropriate pin control settings, and configuring the pwmleds node with
green_pwm_led.

Signed-off-by: default avatarLubos Koudelka <lubos.koudelka@st.com>
parent 0085b34e
Loading
Loading
Loading
Loading
+20 −0
Changes for boards/st/nucleo_wba55cg/nucleo_wba55cg.dts: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -43,6 +43,14 @@
		};
	};

	pwmleds: pwmleds {
		compatible = "pwm-leds";

		green_pwm_led: green_pwm_led {
			pwms = <&pwm3 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		user_button_1: button_0 {
@@ -66,6 +74,7 @@
		led0 = &blue_led_1;
		led1 = &green_led_2;
		led2 = &red_led_3;
		pwm-led0 = &green_pwm_led;
		sw0 = &user_button_1;
		sw1 = &user_button_2;
		sw2 = &user_button_3;
@@ -166,6 +175,17 @@
	status = "okay";
};

&timers3 {
	st,prescaler = <10000>;
	status = "okay";

	pwm3: pwm {
		status = "okay";
		pinctrl-0 = <&tim3_ch2_pa9>;
		pinctrl-names = "default";
	};
};

stm32_lp_tick_source: &lptim1 {
	clocks = <&rcc STM32_CLOCK_BUS_APB7 0x00000800>,
		 <&rcc STM32_SRC_LSE LPTIM1_SEL(3)>;