1*4882a593SmuzhiyunAS3711 is an I2C PMIC from Austria MicroSystems with multiple DCDC and LDO power 2*4882a593Smuzhiyunsupplies, a battery charger and an RTC. So far only bindings for the two stepup 3*4882a593SmuzhiyunDCDC converters are defined. Other DCDC and LDO supplies are configured, using 4*4882a593Smuzhiyunstandard regulator properties, they must belong to a sub-node, called 5*4882a593Smuzhiyun"regulators" and be called "sd1" to "sd4" and "ldo1" to "ldo8." Stepup converter 6*4882a593Smuzhiyunconfiguration should be placed in a subnode, called "backlight." 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunCompulsory properties: 9*4882a593Smuzhiyun- compatible : must be "ams,as3711" 10*4882a593Smuzhiyun- reg : specifies the I2C address 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunTo use the SU1 converter as a backlight source the following two properties must 13*4882a593Smuzhiyunbe provided: 14*4882a593Smuzhiyun- su1-dev : framebuffer phandle 15*4882a593Smuzhiyun- su1-max-uA : maximum current 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunTo use the SU2 converter as a backlight source the following two properties must 18*4882a593Smuzhiyunbe provided: 19*4882a593Smuzhiyun- su2-dev : framebuffer phandle 20*4882a593Smuzhiyun- su1-max-uA : maximum current 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunAdditionally one of these properties must be provided to select the type of 23*4882a593Smuzhiyunfeedback used: 24*4882a593Smuzhiyun- su2-feedback-voltage : voltage feedback is used 25*4882a593Smuzhiyun- su2-feedback-curr1 : CURR1 input used for current feedback 26*4882a593Smuzhiyun- su2-feedback-curr2 : CURR2 input used for current feedback 27*4882a593Smuzhiyun- su2-feedback-curr3 : CURR3 input used for current feedback 28*4882a593Smuzhiyun- su2-feedback-curr-auto: automatic current feedback selection 29*4882a593Smuzhiyun 30*4882a593Smuzhiyunand one of these to select the over-voltage protection pin 31*4882a593Smuzhiyun- su2-fbprot-lx-sd4 : LX_SD4 is used for over-voltage protection 32*4882a593Smuzhiyun- su2-fbprot-gpio2 : GPIO2 is used for over-voltage protection 33*4882a593Smuzhiyun- su2-fbprot-gpio3 : GPIO3 is used for over-voltage protection 34*4882a593Smuzhiyun- su2-fbprot-gpio4 : GPIO4 is used for over-voltage protection 35*4882a593Smuzhiyun 36*4882a593SmuzhiyunIf "su2-feedback-curr-auto" is selected, one or more of the following properties 37*4882a593Smuzhiyunhave to be specified: 38*4882a593Smuzhiyun- su2-auto-curr1 : use CURR1 input for current feedback 39*4882a593Smuzhiyun- su2-auto-curr2 : use CURR2 input for current feedback 40*4882a593Smuzhiyun- su2-auto-curr3 : use CURR3 input for current feedback 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunExample: 43*4882a593Smuzhiyun 44*4882a593Smuzhiyunas3711@40 { 45*4882a593Smuzhiyun compatible = "ams,as3711"; 46*4882a593Smuzhiyun reg = <0x40>; 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun regulators { 49*4882a593Smuzhiyun sd4 { 50*4882a593Smuzhiyun regulator-name = "1.215V"; 51*4882a593Smuzhiyun regulator-min-microvolt = <1215000>; 52*4882a593Smuzhiyun regulator-max-microvolt = <1235000>; 53*4882a593Smuzhiyun }; 54*4882a593Smuzhiyun ldo2 { 55*4882a593Smuzhiyun regulator-name = "2.8V CPU"; 56*4882a593Smuzhiyun regulator-min-microvolt = <2800000>; 57*4882a593Smuzhiyun regulator-max-microvolt = <2800000>; 58*4882a593Smuzhiyun regulator-always-on; 59*4882a593Smuzhiyun regulator-boot-on; 60*4882a593Smuzhiyun }; 61*4882a593Smuzhiyun }; 62*4882a593Smuzhiyun 63*4882a593Smuzhiyun backlight { 64*4882a593Smuzhiyun compatible = "ams,as3711-bl"; 65*4882a593Smuzhiyun su2-dev = <&lcdc>; 66*4882a593Smuzhiyun su2-max-uA = <36000>; 67*4882a593Smuzhiyun su2-feedback-curr-auto; 68*4882a593Smuzhiyun su2-fbprot-gpio4; 69*4882a593Smuzhiyun su2-auto-curr1; 70*4882a593Smuzhiyun su2-auto-curr2; 71*4882a593Smuzhiyun su2-auto-curr3; 72*4882a593Smuzhiyun }; 73*4882a593Smuzhiyun}; 74