uniphier-regulator.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Socionext UniPhier Regulator Controller
  2. This describes the devicetree bindings for regulator controller implemented
  3. on Socionext UniPhier SoCs.
  4. USB3 Controller
  5. ---------------
  6. This regulator controls VBUS and belongs to USB3 glue layer. Before using
  7. the regulator, it is necessary to control the clocks and resets to enable
  8. this layer. These clocks and resets should be described in each property.
  9. Required properties:
  10. - compatible: Should be
  11. "socionext,uniphier-pro4-usb3-regulator" - for Pro4 SoC
  12. "socionext,uniphier-pxs2-usb3-regulator" - for PXs2 SoC
  13. "socionext,uniphier-ld20-usb3-regulator" - for LD20 SoC
  14. "socionext,uniphier-pxs3-usb3-regulator" - for PXs3 SoC
  15. - reg: Specifies offset and length of the register set for the device.
  16. - clocks: A list of phandles to the clock gate for USB3 glue layer.
  17. According to the clock-names, appropriate clocks are required.
  18. - clock-names: Should contain
  19. "gio", "link" - for Pro4 SoC
  20. "link" - for others
  21. - resets: A list of phandles to the reset control for USB3 glue layer.
  22. According to the reset-names, appropriate resets are required.
  23. - reset-names: Should contain
  24. "gio", "link" - for Pro4 SoC
  25. "link" - for others
  26. See Documentation/devicetree/bindings/regulator/regulator.txt
  27. for more details about the regulator properties.
  28. Example:
  29. usb-glue@65b00000 {
  30. compatible = "socionext,uniphier-ld20-dwc3-glue",
  31. "simple-mfd";
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. ranges = <0 0x65b00000 0x400>;
  35. usb_vbus0: regulators@100 {
  36. compatible = "socionext,uniphier-ld20-usb3-regulator";
  37. reg = <0x100 0x10>;
  38. clock-names = "link";
  39. clocks = <&sys_clk 14>;
  40. reset-names = "link";
  41. resets = <&sys_rst 14>;
  42. };
  43. phy {
  44. ...
  45. phy-supply = <&usb_vbus0>;
  46. };
  47. ...
  48. };