162306a36Sopenharmony_ciST DWC3 glue logic 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThis file documents the parameters for the dwc3-st driver. 462306a36Sopenharmony_ciThis driver controls the glue logic used to configure the dwc3 core on 562306a36Sopenharmony_ciSTiH407 based platforms. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciRequired properties: 862306a36Sopenharmony_ci - compatible : must be "st,stih407-dwc3" 962306a36Sopenharmony_ci - reg : glue logic base address and USB syscfg ctrl register offset 1062306a36Sopenharmony_ci - reg-names : should be "reg-glue" and "syscfg-reg" 1162306a36Sopenharmony_ci - st,syscon : should be phandle to system configuration node which 1262306a36Sopenharmony_ci encompasses the glue registers 1362306a36Sopenharmony_ci - resets : list of phandle and reset specifier pairs. There should be two entries, one 1462306a36Sopenharmony_ci for the powerdown and softreset lines of the usb3 IP 1562306a36Sopenharmony_ci - reset-names : list of reset signal names. Names should be "powerdown" and "softreset" 1662306a36Sopenharmony_ciSee: Documentation/devicetree/bindings/reset/st,stih407-powerdown.yaml 1762306a36Sopenharmony_ciSee: Documentation/devicetree/bindings/reset/reset.txt 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci - #address-cells, #size-cells : should be '1' if the device has sub-nodes 2062306a36Sopenharmony_ci with 'reg' property 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci - pinctl-names : A pinctrl state named "default" must be defined 2362306a36Sopenharmony_ciSee: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci - pinctrl-0 : Pin control group 2662306a36Sopenharmony_ciSee: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci - ranges : allows valid 1:1 translation between child's address space and 2962306a36Sopenharmony_ci parent's address space 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ciSub-nodes: 3262306a36Sopenharmony_ciThe dwc3 core should be added as subnode to ST DWC3 glue as shown in the 3362306a36Sopenharmony_ciexample below. The DT binding details of dwc3 can be found in: 3462306a36Sopenharmony_ciDocumentation/devicetree/bindings/usb/snps,dwc3.yaml 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciNB: The dr_mode property described in [1] is NOT optional for this driver, as the default value 3762306a36Sopenharmony_ciis "otg", which isn't supported by this SoC. Valid dr_mode values for dwc3-st are either "host" 3862306a36Sopenharmony_cior "device". 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci[1] Documentation/devicetree/bindings/usb/usb-drd.yaml 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ciExample: 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_cist_dwc3: dwc3@8f94000 { 4562306a36Sopenharmony_ci compatible = "st,stih407-dwc3"; 4662306a36Sopenharmony_ci reg = <0x08f94000 0x1000>, <0x110 0x4>; 4762306a36Sopenharmony_ci reg-names = "reg-glue", "syscfg-reg"; 4862306a36Sopenharmony_ci st,syscfg = <&syscfg_core>; 4962306a36Sopenharmony_ci resets = <&powerdown STIH407_USB3_POWERDOWN>, 5062306a36Sopenharmony_ci <&softreset STIH407_MIPHY2_SOFTRESET>; 5162306a36Sopenharmony_ci reset-names = "powerdown", "softreset"; 5262306a36Sopenharmony_ci #address-cells = <1>; 5362306a36Sopenharmony_ci #size-cells = <1>; 5462306a36Sopenharmony_ci pinctrl-names = "default"; 5562306a36Sopenharmony_ci pinctrl-0 = <&pinctrl_usb3>; 5662306a36Sopenharmony_ci ranges; 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci dwc3: dwc3@9900000 { 5962306a36Sopenharmony_ci compatible = "snps,dwc3"; 6062306a36Sopenharmony_ci reg = <0x09900000 0x100000>; 6162306a36Sopenharmony_ci interrupts = <GIC_SPI 155 IRQ_TYPE_NONE>; 6262306a36Sopenharmony_ci dr_mode = "host"; 6362306a36Sopenharmony_ci phy-names = "usb2-phy", "usb3-phy"; 6462306a36Sopenharmony_ci phys = <&usb2_picophy2>, <&phy_port2 PHY_TYPE_USB3>; 6562306a36Sopenharmony_ci }; 6662306a36Sopenharmony_ci}; 67