dts: bindings: Add yaml files for STM32 USB support to DT
Add yaml files to DT for initial support of STM32 USB Origin: original Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
1827fcf07a
commit
c431152147
4 changed files with 153 additions and 0 deletions
45
dts/bindings/usb/st,stm32-otgfs.yaml
Normal file
45
dts/bindings/usb/st,stm32-otgfs.yaml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017, I-SENSE group of ICCS
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
---
|
||||||
|
title: STM32 OTGFS
|
||||||
|
id: st,stm32-otgfs
|
||||||
|
version: 0.1
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This binding gives a base representation of the STM32 OTGFS controller
|
||||||
|
|
||||||
|
inherits:
|
||||||
|
!include usb-ep.yaml
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
constraint: "st,stm32-otgfs"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
ram-size:
|
||||||
|
type: int
|
||||||
|
category: required
|
||||||
|
description: Size of USB dedicated RAM. STM32 SOC's reference
|
||||||
|
manual defines a shared FIFO size.
|
||||||
|
generation: define
|
||||||
|
...
|
45
dts/bindings/usb/st,stm32-usb.yaml
Normal file
45
dts/bindings/usb/st,stm32-usb.yaml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017, I-SENSE group of ICCS
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
---
|
||||||
|
title: STM32 USB
|
||||||
|
id: st,stm32-usb
|
||||||
|
version: 0.1
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This binding gives a base representation of the STM32 USB controller
|
||||||
|
|
||||||
|
inherits:
|
||||||
|
!include usb-ep.yaml
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
constraint: "st,stm32-usb"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
ram-size:
|
||||||
|
type: int
|
||||||
|
category: required
|
||||||
|
description: Size of USB dedicated RAM. STM32 SOC's reference
|
||||||
|
manual defines USB packet SRAM size.
|
||||||
|
generation: define
|
||||||
|
...
|
38
dts/bindings/usb/usb-ep.yaml
Normal file
38
dts/bindings/usb/usb-ep.yaml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018, I-SENSE group of ICCS
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
---
|
||||||
|
title: USB Endpoints' properties
|
||||||
|
id: USB-EP
|
||||||
|
version: 0.1
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This binding gives number of endpoints that the USB hardware supports
|
||||||
|
|
||||||
|
inherits:
|
||||||
|
!include usb.yaml
|
||||||
|
|
||||||
|
properties:
|
||||||
|
num-bidir-endpoints:
|
||||||
|
type: int
|
||||||
|
category: required
|
||||||
|
description: Number of bi-directional endpoints supported by hardware
|
||||||
|
(including EP0)
|
||||||
|
generation: define
|
||||||
|
|
||||||
|
num-in-endpoints:
|
||||||
|
type: int
|
||||||
|
category: optional
|
||||||
|
description: Number of IN endpoints supported by hardware
|
||||||
|
(including EP0 IN)
|
||||||
|
generation: define
|
||||||
|
|
||||||
|
num-out-endpoints:
|
||||||
|
type: int
|
||||||
|
category: optional
|
||||||
|
description: Number of OUT endpoints supported by hardware
|
||||||
|
(including EP0 OUT)
|
||||||
|
generation: define
|
||||||
|
...
|
25
dts/bindings/usb/usb.yaml
Normal file
25
dts/bindings/usb/usb.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018, I-SENSE group of ICCS
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
---
|
||||||
|
title: USB Base Structure
|
||||||
|
id: USB
|
||||||
|
version: 0.1
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This binding gives the base structures for all USB devices
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
type: string
|
||||||
|
category: required
|
||||||
|
description: compatible strings
|
||||||
|
|
||||||
|
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