18c2ecf20Sopenharmony_ciMediatek MT6397 Regulator
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible: "mediatek,mt6397-regulator"
58c2ecf20Sopenharmony_ci- mt6397regulator: List of regulators provided by this controller. It is named
68c2ecf20Sopenharmony_ci  according to its regulator type, buck_<name> and ldo_<name>.
78c2ecf20Sopenharmony_ci  The definition for each of these nodes is defined using the standard binding
88c2ecf20Sopenharmony_ci  for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciThe valid names for regulators are::
118c2ecf20Sopenharmony_ciBUCK:
128c2ecf20Sopenharmony_ci  buck_vpca15, buck_vpca7, buck_vsramca15, buck_vsramca7, buck_vcore, buck_vgpu,
138c2ecf20Sopenharmony_ci  buck_vdrm, buck_vio18
148c2ecf20Sopenharmony_ciLDO:
158c2ecf20Sopenharmony_ci  ldo_vtcxo, ldo_va28, ldo_vcama, ldo_vio28, ldo_vusb, ldo_vmc, ldo_vmch,
168c2ecf20Sopenharmony_ci  ldo_vemc3v3, ldo_vgp1, ldo_vgp2, ldo_vgp3, ldo_vgp4, ldo_vgp5, ldo_vgp6,
178c2ecf20Sopenharmony_ci  ldo_vibr
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciBUCK regulators can set regulator-initial-mode and regulator-allowed-modes to
208c2ecf20Sopenharmony_civalues specified in dt-bindings/regulator/mediatek,mt6397-regulator.h
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciExample:
238c2ecf20Sopenharmony_ci	pmic {
248c2ecf20Sopenharmony_ci		compatible = "mediatek,mt6397";
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci		mt6397regulator: mt6397regulator {
278c2ecf20Sopenharmony_ci			compatible = "mediatek,mt6397-regulator";
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci			mt6397_vpca15_reg: buck_vpca15 {
308c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vpca15";
318c2ecf20Sopenharmony_ci				regulator-name = "vpca15";
328c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 850000>;
338c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
348c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
358c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <200>;
368c2ecf20Sopenharmony_ci			};
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci			mt6397_vpca7_reg: buck_vpca7 {
398c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vpca7";
408c2ecf20Sopenharmony_ci				regulator-name = "vpca7";
418c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 850000>;
428c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
438c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
448c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <115>;
458c2ecf20Sopenharmony_ci			};
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci			mt6397_vsramca15_reg: buck_vsramca15 {
488c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vsramca15";
498c2ecf20Sopenharmony_ci				regulator-name = "vsramca15";
508c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 850000>;
518c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
528c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
538c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <115>;
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci			};
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci			mt6397_vsramca7_reg: buck_vsramca7 {
588c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vsramca7";
598c2ecf20Sopenharmony_ci				regulator-name = "vsramca7";
608c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 850000>;
618c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
628c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
638c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <115>;
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci			};
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci			mt6397_vcore_reg: buck_vcore {
688c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vcore";
698c2ecf20Sopenharmony_ci				regulator-name = "vcore";
708c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 850000>;
718c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
728c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
738c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <115>;
748c2ecf20Sopenharmony_ci			};
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci			mt6397_vgpu_reg: buck_vgpu {
778c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vgpu";
788c2ecf20Sopenharmony_ci				regulator-name = "vgpu";
798c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
808c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
818c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
828c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <115>;
838c2ecf20Sopenharmony_ci			};
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci			mt6397_vdrm_reg: buck_vdrm {
868c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vdrm";
878c2ecf20Sopenharmony_ci				regulator-name = "vdrm";
888c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 800000>;
898c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1400000>;
908c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
918c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <500>;
928c2ecf20Sopenharmony_ci			};
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci			mt6397_vio18_reg: buck_vio18 {
958c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vio18";
968c2ecf20Sopenharmony_ci				regulator-name = "vio18";
978c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1500000>;
988c2ecf20Sopenharmony_ci				regulator-max-microvolt = <2120000>;
998c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
1008c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <500>;
1018c2ecf20Sopenharmony_ci			};
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci			mt6397_vtcxo_reg: ldo_vtcxo {
1048c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vtcxo";
1058c2ecf20Sopenharmony_ci				regulator-name = "vtcxo";
1068c2ecf20Sopenharmony_ci				regulator-min-microvolt = <2800000>;
1078c2ecf20Sopenharmony_ci				regulator-max-microvolt = <2800000>;
1088c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <90>;
1098c2ecf20Sopenharmony_ci			};
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ci			mt6397_va28_reg: ldo_va28 {
1128c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_va28";
1138c2ecf20Sopenharmony_ci				regulator-name = "va28";
1148c2ecf20Sopenharmony_ci				/* fixed output 2.8 V */
1158c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1168c2ecf20Sopenharmony_ci			};
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_ci			mt6397_vcama_reg: ldo_vcama {
1198c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vcama";
1208c2ecf20Sopenharmony_ci				regulator-name = "vcama";
1218c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1500000>;
1228c2ecf20Sopenharmony_ci				regulator-max-microvolt = <2800000>;
1238c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1248c2ecf20Sopenharmony_ci			};
1258c2ecf20Sopenharmony_ci
1268c2ecf20Sopenharmony_ci			mt6397_vio28_reg: ldo_vio28 {
1278c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vio28";
1288c2ecf20Sopenharmony_ci				regulator-name = "vio28";
1298c2ecf20Sopenharmony_ci				/* fixed output 2.8 V */
1308c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <240>;
1318c2ecf20Sopenharmony_ci			};
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ci			mt6397_usb_reg: ldo_vusb {
1348c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vusb";
1358c2ecf20Sopenharmony_ci				regulator-name = "vusb";
1368c2ecf20Sopenharmony_ci				/* fixed output 3.3 V */
1378c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1388c2ecf20Sopenharmony_ci			};
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ci			mt6397_vmc_reg: ldo_vmc {
1418c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vmc";
1428c2ecf20Sopenharmony_ci				regulator-name = "vmc";
1438c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
1448c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
1458c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1468c2ecf20Sopenharmony_ci			};
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci			mt6397_vmch_reg: ldo_vmch {
1498c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vmch";
1508c2ecf20Sopenharmony_ci				regulator-name = "vmch";
1518c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
1528c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
1538c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1548c2ecf20Sopenharmony_ci			};
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci			mt6397_vemc_3v3_reg: ldo_vemc3v3 {
1578c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vemc3v3";
1588c2ecf20Sopenharmony_ci				regulator-name = "vemc_3v3";
1598c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
1608c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
1618c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1628c2ecf20Sopenharmony_ci			};
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ci			mt6397_vgp1_reg: ldo_vgp1 {
1658c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp1";
1668c2ecf20Sopenharmony_ci				regulator-name = "vcamd";
1678c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1220000>;
1688c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
1698c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <240>;
1708c2ecf20Sopenharmony_ci			};
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_ci			mt6397_vgp2_reg: ldo_vgp2 {
1738c2ecf20Sopenharmony_ci				egulator-compatible = "ldo_vgp2";
1748c2ecf20Sopenharmony_ci				regulator-name = "vcamio";
1758c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1000000>;
1768c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
1778c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1788c2ecf20Sopenharmony_ci			};
1798c2ecf20Sopenharmony_ci
1808c2ecf20Sopenharmony_ci			mt6397_vgp3_reg: ldo_vgp3 {
1818c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp3";
1828c2ecf20Sopenharmony_ci				regulator-name = "vcamaf";
1838c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
1848c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
1858c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1868c2ecf20Sopenharmony_ci			};
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ci			mt6397_vgp4_reg: ldo_vgp4 {
1898c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp4";
1908c2ecf20Sopenharmony_ci				regulator-name = "vgp4";
1918c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
1928c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
1938c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
1948c2ecf20Sopenharmony_ci			};
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci			mt6397_vgp5_reg: ldo_vgp5 {
1978c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp5";
1988c2ecf20Sopenharmony_ci				regulator-name = "vgp5";
1998c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
2008c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
2018c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
2028c2ecf20Sopenharmony_ci			};
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci			mt6397_vgp6_reg: ldo_vgp6 {
2058c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp6";
2068c2ecf20Sopenharmony_ci				regulator-name = "vgp6";
2078c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
2088c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
2098c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
2108c2ecf20Sopenharmony_ci			};
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci			mt6397_vibr_reg: ldo_vibr {
2138c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vibr";
2148c2ecf20Sopenharmony_ci				regulator-name = "vibr";
2158c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
2168c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
2178c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
2188c2ecf20Sopenharmony_ci			};
2198c2ecf20Sopenharmony_ci		};
2208c2ecf20Sopenharmony_ci	};
221