phy-rockchip-inno-usb2.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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,rk3228-usb2phy"
  5. * "rockchip,rk3328-usb2phy"
  6. * "rockchip,rk3366-usb2phy"
  7. * "rockchip,rk3399-usb2phy"
  8. * "rockchip,rv1108-usb2phy"
  9. - reg : the address offset of grf for usb-phy configuration.
  10. - #clock-cells : should be 0.
  11. - clock-output-names : specify the 480m output clock name.
  12. Optional properties:
  13. - clocks : phandle + phy specifier pair, for the input clock of phy.
  14. - clock-names : input clock name of phy, must be "phyclk".
  15. - assigned-clocks : phandle of usb 480m clock.
  16. - assigned-clock-parents : parent of usb 480m clock, select between
  17. usb-phy output 480m and xin24m.
  18. Refer to clk/clock-bindings.txt for generic clock
  19. consumer properties.
  20. - rockchip,usbgrf : phandle to the syscon managing the "usb general
  21. register files". When set driver will request its
  22. phandle as one companion-grf for some special SoCs
  23. (e.g RV1108).
  24. Required nodes : a sub-node is required for each port the phy provides.
  25. The sub-node name is used to identify host or otg port,
  26. and shall be the following entries:
  27. * "otg-port" : the name of otg port.
  28. * "host-port" : the name of host port.
  29. Required properties (port (child) node):
  30. - #phy-cells : must be 0. See ./phy-bindings.txt for details.
  31. - interrupts : specify an interrupt for each entry in interrupt-names.
  32. - interrupt-names : a list which should be one of the following cases:
  33. Regular case:
  34. * "otg-id" : for the otg id interrupt.
  35. * "otg-bvalid" : for the otg vbus interrupt.
  36. * "linestate" : for the host/otg linestate interrupt.
  37. Some SoCs use one interrupt with the above muxed together, so for these
  38. * "otg-mux" : otg-port interrupt, which mux otg-id/otg-bvalid/linestate
  39. to one.
  40. Optional properties:
  41. - phy-supply : phandle to a regulator that provides power to VBUS.
  42. See ./phy-bindings.txt for details.
  43. Example:
  44. grf: syscon@ff770000 {
  45. compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. ...
  49. u2phy: usb2-phy@700 {
  50. compatible = "rockchip,rk3366-usb2phy";
  51. reg = <0x700 0x2c>;
  52. #clock-cells = <0>;
  53. clock-output-names = "sclk_otgphy0_480m";
  54. u2phy_otg: otg-port {
  55. #phy-cells = <0>;
  56. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
  57. <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
  58. <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  59. interrupt-names = "otg-id", "otg-bvalid", "linestate";
  60. };
  61. u2phy_host: host-port {
  62. #phy-cells = <0>;
  63. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  64. interrupt-names = "linestate";
  65. };
  66. };
  67. };