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 <giannis.damigos@gmail.com>
This commit is contained in:
parent
0c6883f25a
commit
2cacb07216
3 changed files with 109 additions and 0 deletions
42
dts/arm/yaml/st,stm32-i2c-v1.yaml
Normal file
42
dts/arm/yaml/st,stm32-i2c-v1.yaml
Normal file
|
@ -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
|
||||
...
|
42
dts/arm/yaml/st,stm32-i2c-v2.yaml
Normal file
42
dts/arm/yaml/st,stm32-i2c-v2.yaml
Normal file
|
@ -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
|
||||
...
|
25
dts/common/yaml/i2c.yaml
Normal file
25
dts/common/yaml/i2c.yaml
Normal file
|
@ -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
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue