18c2ecf20Sopenharmony_ciRegulator of AMS AS3722 PMIC. 28c2ecf20Sopenharmony_ciName of the regulator subnode must be "regulators". 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciOptional properties: 58c2ecf20Sopenharmony_ci-------------------- 68c2ecf20Sopenharmony_ciThe input supply of regulators are the optional properties on the 78c2ecf20Sopenharmony_ciregulator node. The AS3722 is having 7 DCDC step-down regulators as 88c2ecf20Sopenharmony_cisd[0-6], 10 LDOs as ldo[0-7], ldo[9-11]. The input supply of these 98c2ecf20Sopenharmony_ciregulators are provided through following properties: 108c2ecf20Sopenharmony_civsup-sd2-supply: Input supply for SD2. 118c2ecf20Sopenharmony_civsup-sd3-supply: Input supply for SD3. 128c2ecf20Sopenharmony_civsup-sd4-supply: Input supply for SD4. 138c2ecf20Sopenharmony_civsup-sd5-supply: Input supply for SD5. 148c2ecf20Sopenharmony_civin-ldo0-supply: Input supply for LDO0. 158c2ecf20Sopenharmony_civin-ldo1-6-supply: Input supply for LDO1 and LDO6. 168c2ecf20Sopenharmony_civin-ldo2-5-7-supply: Input supply for LDO2, LDO5 and LDO7. 178c2ecf20Sopenharmony_civin-ldo3-4-supply: Input supply for LDO3 and LDO4. 188c2ecf20Sopenharmony_civin-ldo9-10-supply: Input supply for LDO9 and LDO10. 198c2ecf20Sopenharmony_civin-ldo11-supply: Input supply for LDO11. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciOptional nodes: 228c2ecf20Sopenharmony_ci-------------- 238c2ecf20Sopenharmony_ci- regulators : Must contain a sub-node per regulator from the list below. 248c2ecf20Sopenharmony_ci Each sub-node should contain the constraints and initialization 258c2ecf20Sopenharmony_ci information for that regulator. See regulator.txt for a 268c2ecf20Sopenharmony_ci description of standard properties for these sub-nodes. 278c2ecf20Sopenharmony_ci Additional custom properties are listed below. 288c2ecf20Sopenharmony_ci sd[0-6], ldo[0-7], ldo[9-11]. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci Optional sub-node properties: 318c2ecf20Sopenharmony_ci ---------------------------- 328c2ecf20Sopenharmony_ci ams,ext-control: External control of the rail. The option of 338c2ecf20Sopenharmony_ci this properties will tell which external input is 348c2ecf20Sopenharmony_ci controlling this rail. Valid values are 0, 1, 2 ad 3. 358c2ecf20Sopenharmony_ci 0: There is no external control of this rail. 368c2ecf20Sopenharmony_ci 1: Rail is controlled by ENABLE1 input pin. 378c2ecf20Sopenharmony_ci 2: Rail is controlled by ENABLE2 input pin. 388c2ecf20Sopenharmony_ci 3: Rail is controlled by ENABLE3 input pin. 398c2ecf20Sopenharmony_ci ams,enable-tracking: Enable tracking with SD1, only supported 408c2ecf20Sopenharmony_ci by LDO3. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciExample: 438c2ecf20Sopenharmony_ci------- 448c2ecf20Sopenharmony_ci ams3722: ams3722 { 458c2ecf20Sopenharmony_ci compatible = "ams,as3722"; 468c2ecf20Sopenharmony_ci reg = <0x40>; 478c2ecf20Sopenharmony_ci ... 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci regulators { 508c2ecf20Sopenharmony_ci vsup-sd2-supply = <...>; 518c2ecf20Sopenharmony_ci ... 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci sd0 { 548c2ecf20Sopenharmony_ci regulator-name = "vdd_cpu"; 558c2ecf20Sopenharmony_ci regulator-min-microvolt = <700000>; 568c2ecf20Sopenharmony_ci regulator-max-microvolt = <1400000>; 578c2ecf20Sopenharmony_ci regulator-always-on; 588c2ecf20Sopenharmony_ci ams,ext-control = <2>; 598c2ecf20Sopenharmony_ci }; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci sd1 { 628c2ecf20Sopenharmony_ci regulator-name = "vdd_core"; 638c2ecf20Sopenharmony_ci regulator-min-microvolt = <700000>; 648c2ecf20Sopenharmony_ci regulator-max-microvolt = <1400000>; 658c2ecf20Sopenharmony_ci regulator-always-on; 668c2ecf20Sopenharmony_ci ams,ext-control = <1>; 678c2ecf20Sopenharmony_ci }; 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci sd2 { 708c2ecf20Sopenharmony_ci regulator-name = "vddio_ddr"; 718c2ecf20Sopenharmony_ci regulator-min-microvolt = <1350000>; 728c2ecf20Sopenharmony_ci regulator-max-microvolt = <1350000>; 738c2ecf20Sopenharmony_ci regulator-always-on; 748c2ecf20Sopenharmony_ci }; 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci sd4 { 778c2ecf20Sopenharmony_ci regulator-name = "avdd-hdmi-pex"; 788c2ecf20Sopenharmony_ci regulator-min-microvolt = <1050000>; 798c2ecf20Sopenharmony_ci regulator-max-microvolt = <1050000>; 808c2ecf20Sopenharmony_ci regulator-always-on; 818c2ecf20Sopenharmony_ci }; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci sd5 { 848c2ecf20Sopenharmony_ci regulator-name = "vdd-1v8"; 858c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 868c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 878c2ecf20Sopenharmony_ci regulator-always-on; 888c2ecf20Sopenharmony_ci }; 898c2ecf20Sopenharmony_ci .... 908c2ecf20Sopenharmony_ci }; 918c2ecf20Sopenharmony_ci }; 92