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