From: Cunhao Lu <1579567540@qq.com> Describe the PHP GRF register used to configure the DWC3 PIPE port before controller discovery. Signed-off-by: Cunhao Lu <1579567540@qq.com> --- .../bindings/usb/rockchip,rk3572-dwc3.yaml | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/rockchip,rk3572-dwc3.yaml b/Documentation/devicetree/bindings/usb/rockchip,rk3572-dwc3.yaml new file mode 100644 index 000000000000..47ff5e16dce6 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/rockchip,rk3572-dwc3.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/rockchip,rk3572-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip RK3572 DWC3 USB controller + +maintainers: + - Heiko Stuebner + - Cunhao Lu <1579567540@qq.com> + +allOf: + - $ref: snps,dwc3-common.yaml# + +properties: + compatible: + const: rockchip,rk3572-dwc3 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + dma-coherent: true + + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + items: + - const: ref_clk + - const: suspend_clk + - const: bus_clk + + phys: + minItems: 1 + items: + - description: USB2 PHY + - description: USB3 PHY + + phy-names: + minItems: 1 + items: + - const: usb2-phy + - const: usb3-phy + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + PHP GRF and the controller's PIPE configuration register offset. + items: + - items: + - description: PHP GRF phandle + - enum: [0x14, 0x34] + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - phys + - phy-names + - power-domains + - resets + - rockchip,grf + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + usb@24400000 { + compatible = "rockchip,rk3572-dwc3"; + reg = <0x24400000 0x400000>; + interrupts = ; + clocks = <&cru CLK_REF_USB3OTG1>, <&cru CLK_SUSPEND_USB3OTG1>, + <&cru ACLK_USB3OTG1>; + clock-names = "ref_clk", "suspend_clk", "bus_clk"; + phys = <&u2phy1_otg>, <&combphy1 PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + power-domains = <&power RK3572_PD_PHP>; + resets = <&cru SRST_ARESETN_USB3OTG1>; + rockchip,grf = <&php_grf 0x34>; + dr_mode = "host"; + }; -- 2.34.1