1*c66ec88fSEmmanuel VadotRegulator of AMS AS3722 PMIC. 2*c66ec88fSEmmanuel VadotName of the regulator subnode must be "regulators". 3*c66ec88fSEmmanuel Vadot 4*c66ec88fSEmmanuel VadotOptional properties: 5*c66ec88fSEmmanuel Vadot-------------------- 6*c66ec88fSEmmanuel VadotThe input supply of regulators are the optional properties on the 7*c66ec88fSEmmanuel Vadotregulator node. The AS3722 is having 7 DCDC step-down regulators as 8*c66ec88fSEmmanuel Vadotsd[0-6], 10 LDOs as ldo[0-7], ldo[9-11]. The input supply of these 9*c66ec88fSEmmanuel Vadotregulators are provided through following properties: 10*c66ec88fSEmmanuel Vadotvsup-sd2-supply: Input supply for SD2. 11*c66ec88fSEmmanuel Vadotvsup-sd3-supply: Input supply for SD3. 12*c66ec88fSEmmanuel Vadotvsup-sd4-supply: Input supply for SD4. 13*c66ec88fSEmmanuel Vadotvsup-sd5-supply: Input supply for SD5. 14*c66ec88fSEmmanuel Vadotvin-ldo0-supply: Input supply for LDO0. 15*c66ec88fSEmmanuel Vadotvin-ldo1-6-supply: Input supply for LDO1 and LDO6. 16*c66ec88fSEmmanuel Vadotvin-ldo2-5-7-supply: Input supply for LDO2, LDO5 and LDO7. 17*c66ec88fSEmmanuel Vadotvin-ldo3-4-supply: Input supply for LDO3 and LDO4. 18*c66ec88fSEmmanuel Vadotvin-ldo9-10-supply: Input supply for LDO9 and LDO10. 19*c66ec88fSEmmanuel Vadotvin-ldo11-supply: Input supply for LDO11. 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel VadotOptional nodes: 22*c66ec88fSEmmanuel Vadot-------------- 23*c66ec88fSEmmanuel Vadot- regulators : Must contain a sub-node per regulator from the list below. 24*c66ec88fSEmmanuel Vadot Each sub-node should contain the constraints and initialization 25*c66ec88fSEmmanuel Vadot information for that regulator. See regulator.txt for a 26*c66ec88fSEmmanuel Vadot description of standard properties for these sub-nodes. 27*c66ec88fSEmmanuel Vadot Additional custom properties are listed below. 28*c66ec88fSEmmanuel Vadot sd[0-6], ldo[0-7], ldo[9-11]. 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel Vadot Optional sub-node properties: 31*c66ec88fSEmmanuel Vadot ---------------------------- 32*c66ec88fSEmmanuel Vadot ams,ext-control: External control of the rail. The option of 33*c66ec88fSEmmanuel Vadot this properties will tell which external input is 34*c66ec88fSEmmanuel Vadot controlling this rail. Valid values are 0, 1, 2 ad 3. 35*c66ec88fSEmmanuel Vadot 0: There is no external control of this rail. 36*c66ec88fSEmmanuel Vadot 1: Rail is controlled by ENABLE1 input pin. 37*c66ec88fSEmmanuel Vadot 2: Rail is controlled by ENABLE2 input pin. 38*c66ec88fSEmmanuel Vadot 3: Rail is controlled by ENABLE3 input pin. 39*c66ec88fSEmmanuel Vadot ams,enable-tracking: Enable tracking with SD1, only supported 40*c66ec88fSEmmanuel Vadot by LDO3. 41*c66ec88fSEmmanuel Vadot 42*c66ec88fSEmmanuel VadotExample: 43*c66ec88fSEmmanuel Vadot------- 44*c66ec88fSEmmanuel Vadot ams3722: ams3722 { 45*c66ec88fSEmmanuel Vadot compatible = "ams,as3722"; 46*c66ec88fSEmmanuel Vadot reg = <0x40>; 47*c66ec88fSEmmanuel Vadot ... 48*c66ec88fSEmmanuel Vadot 49*c66ec88fSEmmanuel Vadot regulators { 50*c66ec88fSEmmanuel Vadot vsup-sd2-supply = <...>; 51*c66ec88fSEmmanuel Vadot ... 52*c66ec88fSEmmanuel Vadot 53*c66ec88fSEmmanuel Vadot sd0 { 54*c66ec88fSEmmanuel Vadot regulator-name = "vdd_cpu"; 55*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <700000>; 56*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1400000>; 57*c66ec88fSEmmanuel Vadot regulator-always-on; 58*c66ec88fSEmmanuel Vadot ams,ext-control = <2>; 59*c66ec88fSEmmanuel Vadot }; 60*c66ec88fSEmmanuel Vadot 61*c66ec88fSEmmanuel Vadot sd1 { 62*c66ec88fSEmmanuel Vadot regulator-name = "vdd_core"; 63*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <700000>; 64*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1400000>; 65*c66ec88fSEmmanuel Vadot regulator-always-on; 66*c66ec88fSEmmanuel Vadot ams,ext-control = <1>; 67*c66ec88fSEmmanuel Vadot }; 68*c66ec88fSEmmanuel Vadot 69*c66ec88fSEmmanuel Vadot sd2 { 70*c66ec88fSEmmanuel Vadot regulator-name = "vddio_ddr"; 71*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1350000>; 72*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 73*c66ec88fSEmmanuel Vadot regulator-always-on; 74*c66ec88fSEmmanuel Vadot }; 75*c66ec88fSEmmanuel Vadot 76*c66ec88fSEmmanuel Vadot sd4 { 77*c66ec88fSEmmanuel Vadot regulator-name = "avdd-hdmi-pex"; 78*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1050000>; 79*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1050000>; 80*c66ec88fSEmmanuel Vadot regulator-always-on; 81*c66ec88fSEmmanuel Vadot }; 82*c66ec88fSEmmanuel Vadot 83*c66ec88fSEmmanuel Vadot sd5 { 84*c66ec88fSEmmanuel Vadot regulator-name = "vdd-1v8"; 85*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 86*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 87*c66ec88fSEmmanuel Vadot regulator-always-on; 88*c66ec88fSEmmanuel Vadot }; 89*c66ec88fSEmmanuel Vadot .... 90*c66ec88fSEmmanuel Vadot }; 91*c66ec88fSEmmanuel Vadot }; 92