From 71e66f06b4eefda7ea991cf008db4a684c15743c Mon Sep 17 00:00:00 2001 From: Florian Vaussard Date: Wed, 28 Feb 2018 22:14:00 +0100 Subject: [PATCH] dts: stm32: Add Timer and PWM binding Add new device tree bindings for STM32 Timer and PWM IPs. Signed-off-by: Florian Vaussard --- dts/bindings/pwm/st,stm32-pwm.yaml | 27 ++++++++++++++++ dts/bindings/timer/st,stm32-timers.yaml | 43 +++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 dts/bindings/pwm/st,stm32-pwm.yaml create mode 100644 dts/bindings/timer/st,stm32-timers.yaml diff --git a/dts/bindings/pwm/st,stm32-pwm.yaml b/dts/bindings/pwm/st,stm32-pwm.yaml new file mode 100644 index 00000000000..b9e9a62a2e8 --- /dev/null +++ b/dts/bindings/pwm/st,stm32-pwm.yaml @@ -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 +... diff --git a/dts/bindings/timer/st,stm32-timers.yaml b/dts/bindings/timer/st,stm32-timers.yaml new file mode 100644 index 00000000000..5d92337fd3d --- /dev/null +++ b/dts/bindings/timer/st,stm32-timers.yaml @@ -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 + +...