phy-rockchip-inno-usb2.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ROCKCHIP USB2.0 PHY WITH INNO IP BLOCK
  2. Required properties (phy (parent) node):
  3. - compatible : should be one of the listed compatibles:
  4. * "rockchip,rk3366-usb2phy"
  5. * "rockchip,rk3399-usb2phy"
  6. - reg : the address offset of grf for usb-phy configuration.
  7. - #clock-cells : should be 0.
  8. - clock-output-names : specify the 480m output clock name.
  9. Optional properties:
  10. - clocks : phandle + phy specifier pair, for the input clock of phy.
  11. - clock-names : input clock name of phy, must be "phyclk".
  12. Required nodes : a sub-node is required for each port the phy provides.
  13. The sub-node name is used to identify host or otg port,
  14. and shall be the following entries:
  15. * "otg-port" : the name of otg port.
  16. * "host-port" : the name of host port.
  17. Required properties (port (child) node):
  18. - #phy-cells : must be 0. See ./phy-bindings.txt for details.
  19. - interrupts : specify an interrupt for each entry in interrupt-names.
  20. - interrupt-names : a list which shall be the following entries:
  21. * "otg-id" : for the otg id interrupt.
  22. * "otg-bvalid" : for the otg vbus interrupt.
  23. * "linestate" : for the host/otg linestate interrupt.
  24. Optional properties:
  25. - phy-supply : phandle to a regulator that provides power to VBUS.
  26. See ./phy-bindings.txt for details.
  27. Example:
  28. grf: syscon@ff770000 {
  29. compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
  30. #address-cells = <1>;
  31. #size-cells = <1>;
  32. ...
  33. u2phy: usb2-phy@700 {
  34. compatible = "rockchip,rk3366-usb2phy";
  35. reg = <0x700 0x2c>;
  36. #clock-cells = <0>;
  37. clock-output-names = "sclk_otgphy0_480m";
  38. u2phy_otg: otg-port {
  39. #phy-cells = <0>;
  40. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
  41. <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
  42. <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  43. interrupt-names = "otg-id", "otg-bvalid", "linestate";
  44. status = "okay";
  45. };
  46. u2phy_host: host-port {
  47. #phy-cells = <0>;
  48. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  49. interrupt-names = "linestate";
  50. status = "okay";
  51. };
  52. };
  53. };