Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions boards/st/stm32f4_disco/stm32f4_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,26 @@
};
};

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

orange_pwm_led: orange_pwm_led {
pwms = <&pwm4 2 PWM_USEC(100) PWM_POLARITY_NORMAL>;
};

green_pwm_led: green_pwm_led {
pwms = <&pwm4 1 PWM_USEC(100) PWM_POLARITY_NORMAL>;
};

red_pwm_led: red_pwm_led {
pwms = <&pwm4 3 PWM_USEC(100) PWM_POLARITY_NORMAL>;
};

blue_pwm_led: blue_pwm_led {
pwms = <&pwm4 4 PWM_USEC(100) PWM_POLARITY_NORMAL>;
};
};

aliases {
led0 = &green_led_4;
led1 = &orange_led_3;
Expand Down Expand Up @@ -110,6 +130,16 @@
};
};

&timers4 {
status = "okay";

pwm4: pwm {
status = "okay";
pinctrl-0 = <&tim4_ch1_pd12 &tim4_ch2_pd13 &tim4_ch3_pd14 &tim4_ch4_pd15>;
pinctrl-names = "default";
};
};

&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
Expand Down
Loading