18c2ecf20Sopenharmony_ciUSB NOP PHY
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible: should be usb-nop-xceiv
58c2ecf20Sopenharmony_ci- #phy-cells: Must be 0
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciOptional properties:
88c2ecf20Sopenharmony_ci- clocks: phandle to the PHY clock. Use as per Documentation/devicetree
98c2ecf20Sopenharmony_ci  /bindings/clock/clock-bindings.txt
108c2ecf20Sopenharmony_ci  This property is required if clock-frequency is specified.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci- clock-names: Should be "main_clk"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci- clock-frequency: the clock frequency (in Hz) that the PHY clock must
158c2ecf20Sopenharmony_ci  be configured to.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci- vcc-supply: phandle to the regulator that provides power to the PHY.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci- reset-gpios: Should specify the GPIO for reset.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci- vbus-detect-gpio: should specify the GPIO detecting a VBus insertion
228c2ecf20Sopenharmony_ci                    (see Documentation/devicetree/bindings/gpio/gpio.txt)
238c2ecf20Sopenharmony_ci- vbus-regulator : should specifiy the regulator supplying current drawn from
248c2ecf20Sopenharmony_ci  the VBus line (see Documentation/devicetree/bindings/regulator/regulator.txt).
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciExample:
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	hsusb1_phy {
298c2ecf20Sopenharmony_ci		compatible = "usb-nop-xceiv";
308c2ecf20Sopenharmony_ci		clock-frequency = <19200000>;
318c2ecf20Sopenharmony_ci		clocks = <&osc 0>;
328c2ecf20Sopenharmony_ci		clock-names = "main_clk";
338c2ecf20Sopenharmony_ci		vcc-supply = <&hsusb1_vcc_regulator>;
348c2ecf20Sopenharmony_ci		reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
358c2ecf20Sopenharmony_ci		vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
368c2ecf20Sopenharmony_ci		vbus-regulator = <&vbus_regulator>;
378c2ecf20Sopenharmony_ci		#phy-cells = <0>;
388c2ecf20Sopenharmony_ci	};
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_cihsusb1_phy is a NOP USB PHY device that gets its clock from an oscillator
418c2ecf20Sopenharmony_ciand expects that clock to be configured to 19.2MHz by the NOP PHY driver.
428c2ecf20Sopenharmony_cihsusb1_vcc_regulator provides power to the PHY and GPIO 7 controls RESET.
438c2ecf20Sopenharmony_ciGPIO 13 detects VBus insertion, and accordingly notifies the vbus-regulator.
44