dt-bindings: usb: st,st-ohci-300x: convert to DT schema
Subsystems (2)
PATCH 1/1 dt-bindings: usb: st,st-ohci-300x: convert to DT schema
Convert STMicroelectronics USB OHCI Controller binding to DT schema.
--- Documentation/devicetree/bindings/usb/ohci-st.txt | 36 --------- .../devicetree/bindings/usb/st,st-ohci-300x.yaml | 87 ++++++++++++++++++++++ 2 files changed, 87 insertions(+), 36 deletions(-)
Documentation/devicetree/bindings/usb/ohci-st.txt deleted +0 -36
@@ -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"; - };
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +87 -0
87 lines not on this page · raw message
---
base-commit: 4c87cdd0328495759f6e9f9f4e1e53ef8032a76f
change-id: 20260201-st-usb-f1348562ad65
Best regards,
Signature · 1 line
Charan Pedumuru <[email protected]>
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml line 20
Quoted 9 lines · Charan Pedumuru
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +9
-0+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
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml line 33
Quoted 13 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +13
-0+ +properties: + compatible: + const: st,st-ohci-300x + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 2
Drop
Quoted 6 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +6
-0+ maxItems: 2 + + clock-names: + items: + - const: ic + - const: clk48
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml line 49
Quoted 10 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +10
-0+ + phys: + maxItems: 1 + + phy-names: + items: + - const: usb + + resets: + minItems: 2
Drop
Quoted 1 line
+ maxItems: 2
Best regards,
Krzysztof
Quoted 12 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml line 20
Quoted 9 lines · Charan Pedumuru
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +9
-0+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.
Quoted 16 lines
Quoted 4 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +3
-0+ +properties: + compatible:Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml line 33
Quoted 10 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +10
-0+ const: st,st-ohci-300x + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 2Drop
Okay.
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +10
-0+ maxItems: 2 + + clock-names: + items: + - const: ic + - const: clk48 + + phys: + maxItems: 1 +
Quoted 8 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml line 49
Quoted 6 lines
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml new file +6
-0+ phy-names: + items: + - const: usb + + resets: + minItems: 2Drop
Okay.
Quoted 6 lines
Quoted 2 lines
+ maxItems: 2
Best regards,
Krzysztof
Signature · 2 lines
Best Regards, Charan.