diff --git a/dts/bindings/usb/st,stm32-otghs-common.yaml b/dts/bindings/usb/st,stm32-otghs-common.yaml new file mode 100644 index 00000000000..d1aab33d93a --- /dev/null +++ b/dts/bindings/usb/st,stm32-otghs-common.yaml @@ -0,0 +1,27 @@ +# Copyright (c) 2025, STMicroelectronics +# SPDX-License-Identifier: Apache-2.0 + +# Common fields for STM32 OTGHS controller + +include: [usb-ep.yaml, pinctrl-device.yaml] + +properties: + reg: + required: true + + interrupts: + required: true + + ram-size: + type: int + required: true + description: | + Size of USB dedicated RAM. STM32 SOC's reference + manual defines a shared FIFO size. + + phys: + type: phandle + description: PHY provider specifier + + clocks: + required: true diff --git a/dts/bindings/usb/st,stm32-otghs.yaml b/dts/bindings/usb/st,stm32-otghs.yaml index dfd40a9ed3d..58f4f5b5523 100644 --- a/dts/bindings/usb/st,stm32-otghs.yaml +++ b/dts/bindings/usb/st,stm32-otghs.yaml @@ -1,35 +1,16 @@ # Copyright (c) 2017, I-SENSE group of ICCS +# Copyright (c) 2025, STMicroelectronics # SPDX-License-Identifier: Apache-2.0 description: STM32 OTGHS controller compatible: "st,stm32-otghs" -include: [usb-ep.yaml, pinctrl-device.yaml] +include: st,stm32-otghs-common.yaml properties: - reg: - required: true - - interrupts: - required: true - pinctrl-0: required: true pinctrl-names: required: true - - ram-size: - type: int - required: true - description: | - Size of USB dedicated RAM. STM32 SOC's reference - manual defines a shared FIFO size. - - phys: - type: phandle - description: PHY provider specifier - - clocks: - required: true diff --git a/dts/bindings/usb/st,stm32n6-otghs.yaml b/dts/bindings/usb/st,stm32n6-otghs.yaml new file mode 100644 index 00000000000..b7c73fb7287 --- /dev/null +++ b/dts/bindings/usb/st,stm32n6-otghs.yaml @@ -0,0 +1,13 @@ +# Copyright (c) 2025, STMicroelectronics +# SPDX-License-Identifier: Apache-2.0 + +description: | + STM32N6 OTGHS controller + + In the STM32N6 series, the `pinctrl-0` and `pinctrl-names` properties are not required + for the USB OTG HS peripheral configuration. This is because the pin multiplexing + for the USB OTG HS peripheral are handled automatically by the hardware. + +compatible: "st,stm32n6-otghs" + +include: st,stm32-otghs-common.yaml