dts: bindings: Add yaml files for STM32 SPI support to DT
Add yaml files to DT for initial support of STM32 SPI Origin: original Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
28c2079c63
commit
e10e324be9
3 changed files with 113 additions and 0 deletions
28
dts/bindings/spi/spi.yaml
Normal file
28
dts/bindings/spi/spi.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
#
|
||||
# Copyright (c) 2018, I-SENSE group of ICCS
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: SPI Base Structure
|
||||
id: spi
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives the base structures for all SPI devices
|
||||
|
||||
properties:
|
||||
"#address-cells":
|
||||
type: int
|
||||
category: required
|
||||
description: should be 1.
|
||||
"#size-cells":
|
||||
type: int
|
||||
category: required
|
||||
description: should be 0.
|
||||
label:
|
||||
type: string
|
||||
category: required
|
||||
description: Human readable string describing the device (used by Zephyr for API name)
|
||||
generation: define
|
||||
...
|
43
dts/bindings/spi/st,stm32-spi-fifo.yaml
Normal file
43
dts/bindings/spi/st,stm32-spi-fifo.yaml
Normal file
|
@ -0,0 +1,43 @@
|
|||
#
|
||||
# Copyright (c) 2018, I-SENSE group of ICCS
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: STM32 SPI FIFO
|
||||
id: st,stm32-spi-fifo
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of the STM32 SPI controller with
|
||||
embedded Rx and Tx FIFOs
|
||||
|
||||
inherits:
|
||||
!include spi.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
type: string
|
||||
category: required
|
||||
description: compatible strings
|
||||
constraint: "st,stm32-spi-fifo"
|
||||
|
||||
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
|
||||
|
||||
...
|
42
dts/bindings/spi/st,stm32-spi.yaml
Normal file
42
dts/bindings/spi/st,stm32-spi.yaml
Normal file
|
@ -0,0 +1,42 @@
|
|||
#
|
||||
# Copyright (c) 2018, I-SENSE group of ICCS
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: STM32 SPI
|
||||
id: st,stm32-spi
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of the STM32 SPI controller
|
||||
|
||||
inherits:
|
||||
!include spi.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
type: string
|
||||
category: required
|
||||
description: compatible strings
|
||||
constraint: "st,stm32-spi"
|
||||
|
||||
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
|
||||
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue