18c2ecf20Sopenharmony_ciMSM SoC HSUSB controllers
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciEHCI
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciRequired properties:
68c2ecf20Sopenharmony_ci- compatible:	Should contain "qcom,ehci-host"
78c2ecf20Sopenharmony_ci- regs:			offset and length of the register set in the memory map
88c2ecf20Sopenharmony_ci- usb-phy:		phandle for the PHY device
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciExample EHCI controller device node:
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci	ehci: ehci@f9a55000 {
138c2ecf20Sopenharmony_ci		compatible = "qcom,ehci-host";
148c2ecf20Sopenharmony_ci		reg = <0xf9a55000 0x400>;
158c2ecf20Sopenharmony_ci		usb-phy = <&usb_otg>;
168c2ecf20Sopenharmony_ci	};
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciUSB PHY with optional OTG:
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciRequired properties:
218c2ecf20Sopenharmony_ci- compatible:   Should contain:
228c2ecf20Sopenharmony_ci  "qcom,usb-otg-ci" for chipsets with ChipIdea 45nm PHY
238c2ecf20Sopenharmony_ci  "qcom,usb-otg-snps" for chipsets with Synopsys 28nm PHY
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci- regs:         Offset and length of the register set in the memory map
268c2ecf20Sopenharmony_ci- interrupts:   interrupt-specifier for the OTG interrupt.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci- clocks:       A list of phandle + clock-specifier pairs for the
298c2ecf20Sopenharmony_ci                clocks listed in clock-names
308c2ecf20Sopenharmony_ci- clock-names:  Should contain the following:
318c2ecf20Sopenharmony_ci  "phy"         USB PHY reference clock
328c2ecf20Sopenharmony_ci  "core"        Protocol engine clock
338c2ecf20Sopenharmony_ci  "iface"       Interface bus clock
348c2ecf20Sopenharmony_ci  "alt_core"    Protocol engine clock for targets with asynchronous
358c2ecf20Sopenharmony_ci                reset methodology. (optional)
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci- vdccx-supply: phandle to the regulator for the vdd supply for
388c2ecf20Sopenharmony_ci                digital circuit operation.
398c2ecf20Sopenharmony_ci- v1p8-supply:  phandle to the regulator for the 1.8V supply
408c2ecf20Sopenharmony_ci- v3p3-supply:  phandle to the regulator for the 3.3V supply
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci- resets:       A list of phandle + reset-specifier pairs for the
438c2ecf20Sopenharmony_ci                resets listed in reset-names
448c2ecf20Sopenharmony_ci- reset-names:  Should contain the following:
458c2ecf20Sopenharmony_ci  "phy"         USB PHY controller reset
468c2ecf20Sopenharmony_ci  "link"        USB LINK controller reset
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci- qcom,otg-control: OTG control (VBUS and ID notifications) can be one of
498c2ecf20Sopenharmony_ci                1 - PHY control
508c2ecf20Sopenharmony_ci                2 - PMIC control
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciOptional properties:
538c2ecf20Sopenharmony_ci- dr_mode:      One of "host", "peripheral" or "otg". Defaults to "otg"
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci- switch-gpio:  A phandle + gpio-specifier pair. Some boards are using Dual
568c2ecf20Sopenharmony_ci                SPDT USB Switch, witch is cotrolled by GPIO to de/multiplex
578c2ecf20Sopenharmony_ci                D+/D- USB lines between connectors.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci- qcom,phy-init-sequence: PHY configuration sequence values. This is related to Device
608c2ecf20Sopenharmony_ci                Mode Eye Diagram test. Start address at which these values will be
618c2ecf20Sopenharmony_ci                written is ULPI_EXT_VENDOR_SPECIFIC. Value of -1 is reserved as
628c2ecf20Sopenharmony_ci                "do not overwrite default value at this address".
638c2ecf20Sopenharmony_ci                For example: qcom,phy-init-sequence = < -1 0x63 >;
648c2ecf20Sopenharmony_ci                Will update only value at address ULPI_EXT_VENDOR_SPECIFIC + 1.
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci- qcom,phy-num: Select number of pyco-phy to use, can be one of
678c2ecf20Sopenharmony_ci                0 - PHY one, default
688c2ecf20Sopenharmony_ci                1 - Second PHY
698c2ecf20Sopenharmony_ci                Some platforms may have configuration to allow USB
708c2ecf20Sopenharmony_ci                controller work with any of the two HSPHYs present.
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci- qcom,vdd-levels: This property must be a list of three integer values
738c2ecf20Sopenharmony_ci                (no, min, max) where each value represents either a voltage
748c2ecf20Sopenharmony_ci                in microvolts or a value corresponding to voltage corner.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci- qcom,manual-pullup: If present, vbus is not routed to USB controller/phy
778c2ecf20Sopenharmony_ci                and controller driver therefore enables pull-up explicitly
788c2ecf20Sopenharmony_ci                before starting controller using usbcmd run/stop bit.
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci- extcon:       phandles to external connector devices. First phandle
818c2ecf20Sopenharmony_ci                should point to external connector, which provide "USB"
828c2ecf20Sopenharmony_ci                cable events, the second should point to external connector
838c2ecf20Sopenharmony_ci                device, which provide "USB-HOST" cable events. If one of
848c2ecf20Sopenharmony_ci                the external connector devices is not required empty <0>
858c2ecf20Sopenharmony_ci                phandle should be specified.
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ciExample HSUSB OTG controller device node:
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci    usb@f9a55000 {
908c2ecf20Sopenharmony_ci        compatible = "qcom,usb-otg-snps";
918c2ecf20Sopenharmony_ci        reg = <0xf9a55000 0x400>;
928c2ecf20Sopenharmony_ci        interrupts = <0 134 0>;
938c2ecf20Sopenharmony_ci        dr_mode = "peripheral";
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci        clocks = <&gcc GCC_XO_CLK>, <&gcc GCC_USB_HS_SYSTEM_CLK>,
968c2ecf20Sopenharmony_ci                <&gcc GCC_USB_HS_AHB_CLK>;
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci        clock-names = "phy", "core", "iface";
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci        vddcx-supply = <&pm8841_s2_corner>;
1018c2ecf20Sopenharmony_ci        v1p8-supply = <&pm8941_l6>;
1028c2ecf20Sopenharmony_ci        v3p3-supply = <&pm8941_l24>;
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ci        resets = <&gcc GCC_USB2A_PHY_BCR>, <&gcc GCC_USB_HS_BCR>;
1058c2ecf20Sopenharmony_ci        reset-names = "phy", "link";
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci        qcom,otg-control = <1>;
1088c2ecf20Sopenharmony_ci        qcom,phy-init-sequence = < -1 0x63 >;
1098c2ecf20Sopenharmony_ci        qcom,vdd-levels = <1 5 7>;
1108c2ecf20Sopenharmony_ci	};
111