dts: stm32: Add Timer and PWM binding
Add new device tree bindings for STM32 Timer and PWM IPs. Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
This commit is contained in:
parent
ad29ec69dd
commit
71e66f06b4
2 changed files with 70 additions and 0 deletions
27
dts/bindings/pwm/st,stm32-pwm.yaml
Normal file
27
dts/bindings/pwm/st,stm32-pwm.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: STM32 PWM
|
||||
id: st,stm32-pwm
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of the STM32 PWM
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
type: string
|
||||
category: required
|
||||
description: compatible strings
|
||||
constraint: "st,stm32-pwm"
|
||||
|
||||
label:
|
||||
type: string
|
||||
category: required
|
||||
description: Human readable string describing the device (used by Zephyr for API name)
|
||||
generation: define
|
||||
|
||||
st,prescaler:
|
||||
type: int
|
||||
category: required
|
||||
description: Clock prescaler at the input of the timer
|
||||
generation: define
|
||||
...
|
43
dts/bindings/timer/st,stm32-timers.yaml
Normal file
43
dts/bindings/timer/st,stm32-timers.yaml
Normal file
|
@ -0,0 +1,43 @@
|
|||
---
|
||||
title: STM32 TIMERS
|
||||
id: st,stm32-timers
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of the STM32 TIMERS
|
||||
|
||||
properties:
|
||||
"#address-cells":
|
||||
type: int
|
||||
category: required
|
||||
description: should be 1.
|
||||
"#size-cells":
|
||||
type: int
|
||||
category: required
|
||||
description: should be 0.
|
||||
|
||||
compatible:
|
||||
type: string
|
||||
category: required
|
||||
description: compatible strings
|
||||
constraint: "st,stm32-timers"
|
||||
|
||||
label:
|
||||
type: string
|
||||
category: required
|
||||
description: Human readable string describing the device (used by Zephyr for API name)
|
||||
generation: define
|
||||
|
||||
reg:
|
||||
type: array
|
||||
description: mmio register space
|
||||
generation: define
|
||||
category: required
|
||||
|
||||
clocks:
|
||||
type: array
|
||||
category: required
|
||||
description: Clock gate information
|
||||
generation: define
|
||||
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue