boards: arm: stm32: move "st,prescaler" to timers instead of pwm
Prescaler was misplaced in pwm binding, instead of timers binding. For example, TIM6/TIM7 doesn't have PWM capability, but have a prescaler. This change also prepares the introduction of timer based counter (which requires prescaler at timer level) Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
3a60344522
commit
877379fba4
25 changed files with 52 additions and 53 deletions
|
@ -147,8 +147,6 @@
|
|||
};
|
||||
|
||||
&timers3 {
|
||||
pwm3: pwm {
|
||||
pinctrl-0 = <&tim3_ch3_pb0>;
|
||||
/*
|
||||
* The maximum period needed on Legend devices for activity LED
|
||||
* hardware blinking is 250ms (i.e. "error" fast blink at 4 Hz).
|
||||
|
@ -174,6 +172,9 @@
|
|||
* levels.
|
||||
*/
|
||||
st,prescaler = <200>;
|
||||
|
||||
pwm3: pwm {
|
||||
pinctrl-0 = <&tim3_ch3_pb0>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -98,11 +98,11 @@
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pwm_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -93,11 +93,11 @@
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -116,11 +116,11 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch3_pe13>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -114,11 +114,11 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch3_pe13>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -114,11 +114,11 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch3_pe13>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -117,11 +117,11 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch3_pe13>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -100,10 +100,10 @@
|
|||
};
|
||||
|
||||
&timers3 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
pwm3: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim3_ch1_pa6>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -106,19 +106,19 @@ zephyr_udc0: &usb {
|
|||
};
|
||||
|
||||
&timers3 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
pwm3: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim3_ch1_pb4>;
|
||||
};
|
||||
};
|
||||
|
||||
&timers15 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
pwm15: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim15_ch1_pb14>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -121,10 +121,10 @@
|
|||
};
|
||||
|
||||
&timers3 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
pwm3: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim3_ch1_pb4>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -116,11 +116,11 @@
|
|||
};
|
||||
|
||||
&timers12 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm12: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim12_ch1_pb14>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -107,11 +107,11 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&timers12 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm12: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim12_ch1_pb14>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -83,11 +83,11 @@
|
|||
};
|
||||
|
||||
&timers12 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm12: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim12_ch1_pb14>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -107,11 +107,11 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&timers12 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm12: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim12_ch1_pb14>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -145,11 +145,11 @@
|
|||
};
|
||||
|
||||
&timers3 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm3: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim3_ch1_pb4>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -101,11 +101,11 @@
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pe9
|
||||
&tim1_ch2_pe11
|
||||
&tim1_ch3_pe13>;
|
||||
|
@ -122,11 +122,11 @@
|
|||
};
|
||||
|
||||
&timers15 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm15: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim15_ch1_pb14>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -134,11 +134,11 @@
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -101,11 +101,11 @@
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pwm_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -126,11 +126,11 @@ zephyr_udc0: &usb {
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pwm_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -90,11 +90,11 @@
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pwm_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -182,10 +182,10 @@ zephyr_udc0: &usb {
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -99,11 +99,11 @@
|
|||
};
|
||||
|
||||
&timers4 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm4: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim4_ch1_pd12
|
||||
&tim4_ch2_pd13
|
||||
&tim4_ch3_pd14
|
||||
|
|
|
@ -110,11 +110,11 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&timers3 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm3: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim3_ch1_pb4>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -40,10 +40,8 @@
|
|||
};
|
||||
|
||||
&timers2 {
|
||||
pwm {
|
||||
st,prescaler = <10000>;
|
||||
};
|
||||
};
|
||||
|
||||
&iwdg {
|
||||
status = "okay";
|
||||
|
|
|
@ -107,11 +107,11 @@
|
|||
};
|
||||
|
||||
&timers1 {
|
||||
st,prescaler = <10000>;
|
||||
status = "okay";
|
||||
|
||||
pwm1: pwm {
|
||||
status = "okay";
|
||||
st,prescaler = <10000>;
|
||||
pinctrl-0 = <&tim1_ch1_pwm_pa8>;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue