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:
Florian Vaussard 2018-02-28 22:14:00 +01:00 committed by Kumar Gala
commit 71e66f06b4
2 changed files with 70 additions and 0 deletions

View 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
...

View 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
...