dts: bindings: 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. Also prescaler is common to all PWM channels of the same timer. This change also prepares the introduction of timer based counter (which requires prescaler at timer level) For compatibility reason temporarily keep pwm binding to avoid breaking boards out of tree. Block st,prescaler property in lptim binding as lptim doesn't use this property for now. Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
f7f0bc7022
commit
37175e8643
|
@ -10,8 +10,13 @@ properties:
|
|||
|
||||
st,prescaler:
|
||||
type: int
|
||||
required: true
|
||||
description: Clock prescaler at the input of the timer
|
||||
required: false
|
||||
deprecated: true
|
||||
description: |
|
||||
Clock prescaler at the input of the timer
|
||||
Note: This property is obsolete and was replaced by "st,prescaler"
|
||||
binding of parent timer node. It is kept temporarily for compatibility
|
||||
reasons.
|
||||
|
||||
pinctrl-0:
|
||||
type: phandles
|
||||
|
|
|
@ -5,4 +5,7 @@ description: STM32 lptim
|
|||
|
||||
compatible: "st,stm32-lptim"
|
||||
|
||||
include: st,stm32-timers.yaml
|
||||
include:
|
||||
- name: st,stm32-timers.yaml
|
||||
property-blocklist:
|
||||
- st,prescaler
|
||||
|
|
|
@ -19,3 +19,10 @@ properties:
|
|||
|
||||
interrupts:
|
||||
required: false
|
||||
|
||||
st,prescaler:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Clock prescaler at the input of the timer
|
||||
Could be in range [0 .. 0xFFFF] for STM32 General Purpose Timers (CLK/(prescaler+1) )
|
||||
|
|
Loading…
Reference in a new issue