Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: usb: st,st-ohci-300x: convert to DT schema

Convert STMicroelectronics USB OHCI Controller binding to DT schema.

Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260224-st-usb-v2-1-e8b7cb6524c6@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Charan Pedumuru and committed by
Greg Kroah-Hartman
bb375c25 76fc9452

+85 -36
-36
Documentation/devicetree/bindings/usb/ohci-st.txt
··· 1 - ST USB OHCI controller 2 - 3 - Required properties: 4 - 5 - - compatible : must be "st,st-ohci-300x" 6 - - reg : physical base addresses of the controller and length of memory mapped 7 - region 8 - - interrupts : one OHCI controller interrupt should be described here 9 - - clocks : phandle list of usb clocks 10 - - clock-names : should be "ic" for interconnect clock and "clk48" 11 - See: Documentation/devicetree/bindings/clock/clock-bindings.txt 12 - 13 - - phys : phandle for the PHY device 14 - - phy-names : should be "usb" 15 - 16 - - resets : phandle to the powerdown and reset controller for the USB IP 17 - - reset-names : should be "power" and "softreset". 18 - See: Documentation/devicetree/bindings/reset/st,stih407-powerdown.yaml 19 - See: Documentation/devicetree/bindings/reset/reset.txt 20 - 21 - Example: 22 - 23 - ohci0: usb@fe1ffc00 { 24 - compatible = "st,st-ohci-300x"; 25 - reg = <0xfe1ffc00 0x100>; 26 - interrupts = <GIC_SPI 149 IRQ_TYPE_NONE>; 27 - clocks = <&clk_s_a1_ls 0>, 28 - <&clockgen_b0 0>; 29 - clock-names = "ic", "clk48"; 30 - phys = <&usb2_phy>; 31 - phy-names = "usb"; 32 - 33 - resets = <&powerdown STIH416_USB0_POWERDOWN>, 34 - <&softreset STIH416_USB0_SOFTRESET>; 35 - reset-names = "power", "softreset"; 36 - };
+85
Documentation/devicetree/bindings/usb/st,st-ohci-300x.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/usb/st,st-ohci-300x.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics USB OHCI Controller 8 + 9 + maintainers: 10 + - Peter Griffin <peter.griffin@linaro.org> 11 + 12 + description: 13 + The STMicroelectronics USB Open Host Controller Interface (OHCI) 14 + compliant USB host controller found in ST platforms. The controller 15 + provides full- and low-speed USB host functionality and interfaces 16 + with an external USB PHY. It requires dedicated clock, reset, and 17 + interrupt resources for proper operation. 18 + 19 + allOf: 20 + - $ref: /schemas/usb/usb-hcd.yaml# 21 + 22 + properties: 23 + compatible: 24 + const: st,st-ohci-300x 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + interrupts: 30 + maxItems: 1 31 + 32 + clocks: 33 + maxItems: 2 34 + 35 + clock-names: 36 + items: 37 + - const: ic 38 + - const: clk48 39 + 40 + phys: 41 + maxItems: 1 42 + 43 + phy-names: 44 + items: 45 + - const: usb 46 + 47 + resets: 48 + maxItems: 2 49 + 50 + reset-names: 51 + items: 52 + - const: power 53 + - const: softreset 54 + 55 + required: 56 + - compatible 57 + - reg 58 + - interrupts 59 + - clocks 60 + - clock-names 61 + - phys 62 + - phy-names 63 + - resets 64 + - reset-names 65 + 66 + unevaluatedProperties: false 67 + 68 + examples: 69 + - | 70 + #include <dt-bindings/interrupt-controller/arm-gic.h> 71 + #include <dt-bindings/reset/stih407-resets.h> 72 + usb@fe1ffc00 { 73 + compatible = "st,st-ohci-300x"; 74 + reg = <0xfe1ffc00 0x100>; 75 + interrupts = <GIC_SPI 149 IRQ_TYPE_NONE>; 76 + clocks = <&clk_s_a1_ls 0>, 77 + <&clockgen_b0 0>; 78 + clock-names = "ic", "clk48"; 79 + phys = <&usb2_phy>; 80 + phy-names = "usb"; 81 + resets = <&powerdown STIH407_USB2_PORT0_POWERDOWN>, 82 + <&softreset STIH407_USB2_PORT0_SOFTRESET>; 83 + reset-names = "power", "softreset"; 84 + }; 85 + ...