18c2ecf20Sopenharmony_ciSocionext UniPhier Regulator Controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis describes the devicetree bindings for regulator controller implemented
48c2ecf20Sopenharmony_cion Socionext UniPhier SoCs.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciUSB3 Controller
78c2ecf20Sopenharmony_ci---------------
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciThis regulator controls VBUS and belongs to USB3 glue layer. Before using
108c2ecf20Sopenharmony_cithe regulator, it is necessary to control the clocks and resets to enable
118c2ecf20Sopenharmony_cithis layer. These clocks and resets should be described in each property.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciRequired properties:
148c2ecf20Sopenharmony_ci- compatible: Should be
158c2ecf20Sopenharmony_ci    "socionext,uniphier-pro4-usb3-regulator" - for Pro4 SoC
168c2ecf20Sopenharmony_ci    "socionext,uniphier-pro5-usb3-regulator" - for Pro5 SoC
178c2ecf20Sopenharmony_ci    "socionext,uniphier-pxs2-usb3-regulator" - for PXs2 SoC
188c2ecf20Sopenharmony_ci    "socionext,uniphier-ld20-usb3-regulator" - for LD20 SoC
198c2ecf20Sopenharmony_ci    "socionext,uniphier-pxs3-usb3-regulator" - for PXs3 SoC
208c2ecf20Sopenharmony_ci- reg: Specifies offset and length of the register set for the device.
218c2ecf20Sopenharmony_ci- clocks: A list of phandles to the clock gate for USB3 glue layer.
228c2ecf20Sopenharmony_ci	According to the clock-names, appropriate clocks are required.
238c2ecf20Sopenharmony_ci- clock-names: Should contain
248c2ecf20Sopenharmony_ci    "gio", "link" - for Pro4 and Pro5 SoCs
258c2ecf20Sopenharmony_ci    "link"        - for others
268c2ecf20Sopenharmony_ci- resets: A list of phandles to the reset control for USB3 glue layer.
278c2ecf20Sopenharmony_ci	According to the reset-names, appropriate resets are required.
288c2ecf20Sopenharmony_ci- reset-names: Should contain
298c2ecf20Sopenharmony_ci    "gio", "link" - for Pro4 and Pro5 SoCs
308c2ecf20Sopenharmony_ci    "link"        - for others
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciSee Documentation/devicetree/bindings/regulator/regulator.txt
338c2ecf20Sopenharmony_cifor more details about the regulator properties.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciExample:
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci	usb-glue@65b00000 {
388c2ecf20Sopenharmony_ci		compatible = "socionext,uniphier-ld20-dwc3-glue",
398c2ecf20Sopenharmony_ci			     "simple-mfd";
408c2ecf20Sopenharmony_ci		#address-cells = <1>;
418c2ecf20Sopenharmony_ci		#size-cells = <1>;
428c2ecf20Sopenharmony_ci		ranges = <0 0x65b00000 0x400>;
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci		usb_vbus0: regulators@100 {
458c2ecf20Sopenharmony_ci			compatible = "socionext,uniphier-ld20-usb3-regulator";
468c2ecf20Sopenharmony_ci			reg = <0x100 0x10>;
478c2ecf20Sopenharmony_ci			clock-names = "link";
488c2ecf20Sopenharmony_ci			clocks = <&sys_clk 14>;
498c2ecf20Sopenharmony_ci			reset-names = "link";
508c2ecf20Sopenharmony_ci			resets = <&sys_rst 14>;
518c2ecf20Sopenharmony_ci		};
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci		phy {
548c2ecf20Sopenharmony_ci			...
558c2ecf20Sopenharmony_ci			phy-supply = <&usb_vbus0>;
568c2ecf20Sopenharmony_ci		};
578c2ecf20Sopenharmony_ci		...
588c2ecf20Sopenharmony_ci	};
59