From 2cacb07216c5d6e8700d1d63dda25b7c92fac4aa Mon Sep 17 00:00:00 2001 From: Yannis Damigos Date: Thu, 29 Jun 2017 17:20:30 +0300 Subject: [PATCH] dts: yaml: Add yaml files for STM32 I2C support to DT Add yaml files to DT for initial support of STM32 I2C Origin: original Signed-off-by: Yannis Damigos --- dts/arm/yaml/st,stm32-i2c-v1.yaml | 42 +++++++++++++++++++++++++++++++ dts/arm/yaml/st,stm32-i2c-v2.yaml | 42 +++++++++++++++++++++++++++++++ dts/common/yaml/i2c.yaml | 25 ++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 dts/arm/yaml/st,stm32-i2c-v1.yaml create mode 100644 dts/arm/yaml/st,stm32-i2c-v2.yaml create mode 100644 dts/common/yaml/i2c.yaml diff --git a/dts/arm/yaml/st,stm32-i2c-v1.yaml b/dts/arm/yaml/st,stm32-i2c-v1.yaml new file mode 100644 index 00000000000..3a112677ce8 --- /dev/null +++ b/dts/arm/yaml/st,stm32-i2c-v1.yaml @@ -0,0 +1,42 @@ +--- +title: STM32 I2C V1 +id: st,stm32-i2c-v1 +version: 0.1 + +description: > + This binding gives a base representation of the STM32 I2C V1 controller + +inherits: + - !include i2c.yaml + +properties: + - compatible: + type: string + category: required + description: compatible strings + constraint: "st,stm32-i2c-v1" + + - reg: + type: array + description: mmio register space + generation: define + category: required + + - interrupts: + type: array + category: required + description: required interrupts + generation: define + + - interrupt-names: + type: stringlist + category: optional + description: readable string describing the interrupts + generation: define + + - clocks: + type: array + category: required + description: Clock gate control information + generation: define +... diff --git a/dts/arm/yaml/st,stm32-i2c-v2.yaml b/dts/arm/yaml/st,stm32-i2c-v2.yaml new file mode 100644 index 00000000000..684275fd610 --- /dev/null +++ b/dts/arm/yaml/st,stm32-i2c-v2.yaml @@ -0,0 +1,42 @@ +--- +title: STM32 I2C V2 +id: st,stm32-i2c-v2 +version: 0.1 + +description: > + This binding gives a base representation of the STM32 I2C V2 controller + +inherits: + - !include i2c.yaml + +properties: + - compatible: + type: string + category: required + description: compatible strings + constraint: "st,stm32-i2c-v2" + + - reg: + type: array + description: mmio register space + generation: define + category: required + + - interrupts: + type: array + category: required + description: required interrupts + generation: define + + - interrupt-names: + type: stringlist + category: optional + description: readable string describing the interrupts + generation: define + + - clocks: + type: array + category: required + description: Clock gate control information + generation: define +... diff --git a/dts/common/yaml/i2c.yaml b/dts/common/yaml/i2c.yaml new file mode 100644 index 00000000000..8f6ae26a382 --- /dev/null +++ b/dts/common/yaml/i2c.yaml @@ -0,0 +1,25 @@ +--- +title: I2C Base Structure +id: i2c +version: 0.1 + +description: > + This binding gives the base structures for all I2C devices + +properties: + - clock-frequency : + type: int + category: optional + description: Maximum I2C bus clock frequency in Hz + generation: define + - clocks: + type: array + category: required + description: Clock gate information + generation: define + - label: + type: string + category: required + description: Human readable string describing the device (used by Zephyr for API name) + generation: define +...