Re: [PATCH] dt-bindings: usb: st,st-ehci-300x: convert to DT schema

From: Rob Herring

Date: Thu Mar 12 2026 - 11:36:16 EST


On Sat, Mar 07, 2026 at 07:31:42AM +0000, Charan Pedumuru wrote:
> Convert STMicroelectronics USB EHCI Controller binding to DT schema.
>
> Signed-off-by: Charan Pedumuru <charan.pedumuru@xxxxxxxxx>
> ---
> Documentation/devicetree/bindings/usb/ehci-st.txt | 38 ---------
> .../devicetree/bindings/usb/st,st-ehci-300x.yaml | 95 ++++++++++++++++++++++
> 2 files changed, 95 insertions(+), 38 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/ehci-st.txt b/Documentation/devicetree/bindings/usb/ehci-st.txt
> deleted file mode 100644
> index d6f2bdee20fc..000000000000
> --- a/Documentation/devicetree/bindings/usb/ehci-st.txt
> +++ /dev/null
> @@ -1,38 +0,0 @@
> -ST USB EHCI controller
> -
> -Required properties:
> - - compatible : must be "st,st-ehci-300x"
> - - reg : physical base addresses of the controller and length of memory mapped
> - region
> - - interrupts : one EHCI interrupt should be described here
> - - pinctrl-names : a pinctrl state named "default" must be defined
> - - pinctrl-0 : phandle referencing pin configuration of the USB controller
> -See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
> - - clocks : phandle list of usb clocks
> - - clock-names : should be "ic" for interconnect clock and "clk48"
> -See: Documentation/devicetree/bindings/clock/clock-bindings.txt
> -
> - - phys : phandle for the PHY device
> - - phy-names : should be "usb"
> - - resets : phandle + reset specifier pairs to the powerdown and softreset lines
> - of the USB IP
> - - reset-names : should be "power" and "softreset"
> -See: Documentation/devicetree/bindings/reset/st,stih407-powerdown.yaml
> -See: Documentation/devicetree/bindings/reset/reset.txt
> -
> -Example:
> -
> - ehci1: usb@fe203e00 {
> - compatible = "st,st-ehci-300x";
> - reg = <0xfe203e00 0x100>;
> - interrupts = <GIC_SPI 148 IRQ_TYPE_NONE>;
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_usb1>;
> - clocks = <&clk_s_a1_ls 0>;
> - phys = <&usb2_phy>;
> - phy-names = "usb";
> -
> - resets = <&powerdown STIH416_USB1_POWERDOWN>,
> - <&softreset STIH416_USB1_SOFTRESET>;
> - reset-names = "power", "softreset";
> - };
> diff --git a/Documentation/devicetree/bindings/usb/st,st-ehci-300x.yaml b/Documentation/devicetree/bindings/usb/st,st-ehci-300x.yaml
> new file mode 100644
> index 000000000000..0cd625cd003b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/st,st-ehci-300x.yaml
> @@ -0,0 +1,95 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/usb/st,st-ehci-300x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STMicroelectronics USB EHCI Controller (ST EHCI 300x)
> +
> +maintainers:
> + - Peter Griffin <peter.griffin@xxxxxxxxxx>
> +
> +description:
> + The STMicroelectronics EHCI 300x controller is a USB 2.0 Enhanced Host
> + Controller Interface used in several ST SoCs. It provides high-speed USB
> + host functionality and interfaces with an external USB PHY. The controller
> + requires clock, reset, interrupt, and pin control configuration along with
> + PHY connection information to operate correctly.
> +
> +allOf:
> + - $ref: usb-hcd.yaml#
> +
> +properties:
> + compatible:
> + const: st,st-ehci-300x
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +

> + pinctrl-names:
> + const: default
> +
> + pinctrl-0:
> + maxItems: 1

These can be dropped as pinctrl properties are always allowed.

With that,

Reviewed-by: Rob Herring (Arm) <robh@xxxxxxxxxx>