* [PATCH] dt-bindings: usb: st,st-ohci-300x: convert to DT schema
@ 2026-02-17 14:55 Charan Pedumuru
2026-02-18 7:42 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Charan Pedumuru @ 2026-02-17 14:55 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Peter Griffin
Cc: linux-usb, devicetree, linux-kernel, Charan Pedumuru
Convert STMicroelectronics USB OHCI Controller binding to DT schema.
Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
---
Documentation/devicetree/bindings/usb/ohci-st.txt | 36 ---------
.../devicetree/bindings/usb/st,st-ohci-300x.yaml | 87 ++++++++++++++++++++++
2 files changed, 87 insertions(+), 36 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/ohci-st.txt b/Documentation/devicetree/bindings/usb/ohci-st.txt
deleted file mode 100644
index 1c735573abc0..000000000000
--- a/Documentation/devicetree/bindings/usb/ohci-st.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-ST USB OHCI controller
-
-Required properties:
-
- - compatible : must be "st,st-ohci-300x"
- - reg : physical base addresses of the controller and length of memory mapped
- region
- - interrupts : one OHCI controller interrupt should be described here
- - 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 to the powerdown and reset controller for 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:
-
- ohci0: usb@fe1ffc00 {
- compatible = "st,st-ohci-300x";
- reg = <0xfe1ffc00 0x100>;
- interrupts = <GIC_SPI 149 IRQ_TYPE_NONE>;
- clocks = <&clk_s_a1_ls 0>,
- <&clockgen_b0 0>;
- clock-names = "ic", "clk48";
- phys = <&usb2_phy>;
- phy-names = "usb";
-
- resets = <&powerdown STIH416_USB0_POWERDOWN>,
- <&softreset STIH416_USB0_SOFTRESET>;
- reset-names = "power", "softreset";
- };
diff --git a/Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml b/Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml
new file mode 100644
index 000000000000..35544fd288ed
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml
@@ -0,0 +1,87 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/st,st-ohci-300x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMicroelectronics USB OHCI Controller
+
+maintainers:
+ - Peter Griffin <peter.griffin@linaro.org>
+
+description:
+ The STMicroelectronics USB Open Host Controller Interface (OHCI)
+ compliant USB host controller found in ST platforms. The controller
+ provides full- and low-speed USB host functionality and interfaces
+ with an external USB PHY. It requires dedicated clock, reset, and
+ interrupt resources for proper operation.
+
+allOf:
+ - $ref: /schemas/usb/usb.yaml#
+
+properties:
+ compatible:
+ const: st,st-ohci-300x
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ minItems: 2
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: ic
+ - const: clk48
+
+ phys:
+ maxItems: 1
+
+ phy-names:
+ items:
+ - const: usb
+
+ resets:
+ minItems: 2
+ maxItems: 2
+
+ reset-names:
+ items:
+ - const: power
+ - const: softreset
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - clock-names
+ - phys
+ - phy-names
+ - resets
+ - reset-names
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/reset/stih407-resets.h>
+ usb@fe1ffc00 {
+ compatible = "st,st-ohci-300x";
+ reg = <0xfe1ffc00 0x100>;
+ interrupts = <GIC_SPI 149 IRQ_TYPE_NONE>;
+ clocks = <&clk_s_a1_ls 0>,
+ <&clockgen_b0 0>;
+ clock-names = "ic", "clk48";
+ phys = <&usb2_phy>;
+ phy-names = "usb";
+ resets = <&powerdown STIH407_USB2_PORT0_POWERDOWN>,
+ <&softreset STIH407_USB2_PORT0_SOFTRESET>;
+ reset-names = "power", "softreset";
+ };
+...
---
base-commit: 4c87cdd0328495759f6e9f9f4e1e53ef8032a76f
change-id: 20260201-st-usb-f1348562ad65
Best regards,
--
Charan Pedumuru <charan.pedumuru@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: usb: st,st-ohci-300x: convert to DT schema
2026-02-17 14:55 [PATCH] dt-bindings: usb: st,st-ohci-300x: convert to DT schema Charan Pedumuru
@ 2026-02-18 7:42 ` Krzysztof Kozlowski
2026-02-24 13:26 ` Charan Pedumuru
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-02-18 7:42 UTC (permalink / raw)
To: Charan Pedumuru
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Peter Griffin, linux-usb, devicetree, linux-kernel
On Tue, Feb 17, 2026 at 02:55:34PM +0000, Charan Pedumuru wrote:
> +description:
> + The STMicroelectronics USB Open Host Controller Interface (OHCI)
> + compliant USB host controller found in ST platforms. The controller
> + provides full- and low-speed USB host functionality and interfaces
> + with an external USB PHY. It requires dedicated clock, reset, and
> + interrupt resources for proper operation.
> +
> +allOf:
> + - $ref: /schemas/usb/usb.yaml#
You should reference rather usb-hcd.yaml
> +
> +properties:
> + compatible:
> + const: st,st-ohci-300x
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + minItems: 2
Drop
> + maxItems: 2
> +
> + clock-names:
> + items:
> + - const: ic
> + - const: clk48
> +
> + phys:
> + maxItems: 1
> +
> + phy-names:
> + items:
> + - const: usb
> +
> + resets:
> + minItems: 2
Drop
> + maxItems: 2
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: usb: st,st-ohci-300x: convert to DT schema
2026-02-18 7:42 ` Krzysztof Kozlowski
@ 2026-02-24 13:26 ` Charan Pedumuru
0 siblings, 0 replies; 3+ messages in thread
From: Charan Pedumuru @ 2026-02-24 13:26 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Peter Griffin, linux-usb, devicetree, linux-kernel
On 18-02-2026 13:12, Krzysztof Kozlowski wrote:
> On Tue, Feb 17, 2026 at 02:55:34PM +0000, Charan Pedumuru wrote:
>> +description:
>> + The STMicroelectronics USB Open Host Controller Interface (OHCI)
>> + compliant USB host controller found in ST platforms. The controller
>> + provides full- and low-speed USB host functionality and interfaces
>> + with an external USB PHY. It requires dedicated clock, reset, and
>> + interrupt resources for proper operation.
>> +
>> +allOf:
>> + - $ref: /schemas/usb/usb.yaml#
>
> You should reference rather usb-hcd.yaml
Sure.
>
>> +
>> +properties:
>> + compatible:
>> + const: st,st-ohci-300x
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + interrupts:
>> + maxItems: 1
>> +
>> + clocks:
>> + minItems: 2
>
> Drop
Okay.
>
>> + maxItems: 2
>> +
>> + clock-names:
>> + items:
>> + - const: ic
>> + - const: clk48
>> +
>> + phys:
>> + maxItems: 1
>> +
>> + phy-names:
>> + items:
>> + - const: usb
>> +
>> + resets:
>> + minItems: 2
>
> Drop
Okay.
>
>> + maxItems: 2
>
> Best regards,
> Krzysztof
>
--
Best Regards,
Charan.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-24 13:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-17 14:55 [PATCH] dt-bindings: usb: st,st-ohci-300x: convert to DT schema Charan Pedumuru
2026-02-18 7:42 ` Krzysztof Kozlowski
2026-02-24 13:26 ` Charan Pedumuru
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®