dts: bindings: add new bindings snps,dwc2 and st,stm32f4-fsotg
Although snps,designware-usb bindings already exist, this one is prolematic. Compatible is too general and does not reflect the actual controller IP. It has Zephyr-specific properties, but has no zephyr prefix. It forces properties that are not necessary for this controller. We start here with new bare minimum properties for DesignWare OTG USB 2.0 controller. The STM32F4 SoC family USB controllers, which are also implement DesignWare OTG USB 2.0 IP, can also be used with existing drivers, but require certain quirks. To use these we need special compatible. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
4d2645a734
commit
104d6dd53b
2 changed files with 38 additions and 0 deletions
20
dts/bindings/usb/snps,dwc2.yaml
Normal file
20
dts/bindings/usb/snps,dwc2.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Copyright (c) 2023 Nordic Semiconductor ASA
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
description: DesignWare OTG USB 2.0 controller
|
||||||
|
|
||||||
|
compatible: "snps,dwc2"
|
||||||
|
|
||||||
|
include: [base.yaml]
|
||||||
|
|
||||||
|
bus: usb
|
||||||
|
|
||||||
|
properties:
|
||||||
|
reg:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
interrupts:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
phys:
|
||||||
|
type: phandle
|
18
dts/bindings/usb/st,stm32f4-fsotg.yaml
Normal file
18
dts/bindings/usb/st,stm32f4-fsotg.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Copyright (c) 2023 Nordic Semiconductor ASA
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
description: STM32F4 SoC series OTG_FS DWC2 compatible controller
|
||||||
|
|
||||||
|
compatible: "st,stm32f4-fsotg"
|
||||||
|
|
||||||
|
include: ["snps,dwc2.yaml", pinctrl-device.yaml]
|
||||||
|
|
||||||
|
properties:
|
||||||
|
clocks:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
pinctrl-0:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
pinctrl-names:
|
||||||
|
required: true
|
Loading…
Add table
Add a link
Reference in a new issue