18c2ecf20Sopenharmony_ciAS3711 is an I2C PMIC from Austria MicroSystems with multiple DCDC and LDO power 28c2ecf20Sopenharmony_cisupplies, a battery charger and an RTC. So far only bindings for the two stepup 38c2ecf20Sopenharmony_ciDCDC converters are defined. Other DCDC and LDO supplies are configured, using 48c2ecf20Sopenharmony_cistandard regulator properties, they must belong to a sub-node, called 58c2ecf20Sopenharmony_ci"regulators" and be called "sd1" to "sd4" and "ldo1" to "ldo8." Stepup converter 68c2ecf20Sopenharmony_ciconfiguration should be placed in a subnode, called "backlight." 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciCompulsory properties: 98c2ecf20Sopenharmony_ci- compatible : must be "ams,as3711" 108c2ecf20Sopenharmony_ci- reg : specifies the I2C address 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciTo use the SU1 converter as a backlight source the following two properties must 138c2ecf20Sopenharmony_cibe provided: 148c2ecf20Sopenharmony_ci- su1-dev : framebuffer phandle 158c2ecf20Sopenharmony_ci- su1-max-uA : maximum current 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciTo use the SU2 converter as a backlight source the following two properties must 188c2ecf20Sopenharmony_cibe provided: 198c2ecf20Sopenharmony_ci- su2-dev : framebuffer phandle 208c2ecf20Sopenharmony_ci- su1-max-uA : maximum current 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciAdditionally one of these properties must be provided to select the type of 238c2ecf20Sopenharmony_cifeedback used: 248c2ecf20Sopenharmony_ci- su2-feedback-voltage : voltage feedback is used 258c2ecf20Sopenharmony_ci- su2-feedback-curr1 : CURR1 input used for current feedback 268c2ecf20Sopenharmony_ci- su2-feedback-curr2 : CURR2 input used for current feedback 278c2ecf20Sopenharmony_ci- su2-feedback-curr3 : CURR3 input used for current feedback 288c2ecf20Sopenharmony_ci- su2-feedback-curr-auto: automatic current feedback selection 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciand one of these to select the over-voltage protection pin 318c2ecf20Sopenharmony_ci- su2-fbprot-lx-sd4 : LX_SD4 is used for over-voltage protection 328c2ecf20Sopenharmony_ci- su2-fbprot-gpio2 : GPIO2 is used for over-voltage protection 338c2ecf20Sopenharmony_ci- su2-fbprot-gpio3 : GPIO3 is used for over-voltage protection 348c2ecf20Sopenharmony_ci- su2-fbprot-gpio4 : GPIO4 is used for over-voltage protection 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciIf "su2-feedback-curr-auto" is selected, one or more of the following properties 378c2ecf20Sopenharmony_cihave to be specified: 388c2ecf20Sopenharmony_ci- su2-auto-curr1 : use CURR1 input for current feedback 398c2ecf20Sopenharmony_ci- su2-auto-curr2 : use CURR2 input for current feedback 408c2ecf20Sopenharmony_ci- su2-auto-curr3 : use CURR3 input for current feedback 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciExample: 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_cias3711@40 { 458c2ecf20Sopenharmony_ci compatible = "ams,as3711"; 468c2ecf20Sopenharmony_ci reg = <0x40>; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci regulators { 498c2ecf20Sopenharmony_ci sd4 { 508c2ecf20Sopenharmony_ci regulator-name = "1.215V"; 518c2ecf20Sopenharmony_ci regulator-min-microvolt = <1215000>; 528c2ecf20Sopenharmony_ci regulator-max-microvolt = <1235000>; 538c2ecf20Sopenharmony_ci }; 548c2ecf20Sopenharmony_ci ldo2 { 558c2ecf20Sopenharmony_ci regulator-name = "2.8V CPU"; 568c2ecf20Sopenharmony_ci regulator-min-microvolt = <2800000>; 578c2ecf20Sopenharmony_ci regulator-max-microvolt = <2800000>; 588c2ecf20Sopenharmony_ci regulator-always-on; 598c2ecf20Sopenharmony_ci regulator-boot-on; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci }; 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci backlight { 648c2ecf20Sopenharmony_ci compatible = "ams,as3711-bl"; 658c2ecf20Sopenharmony_ci su2-dev = <&lcdc>; 668c2ecf20Sopenharmony_ci su2-max-uA = <36000>; 678c2ecf20Sopenharmony_ci su2-feedback-curr-auto; 688c2ecf20Sopenharmony_ci su2-fbprot-gpio4; 698c2ecf20Sopenharmony_ci su2-auto-curr1; 708c2ecf20Sopenharmony_ci su2-auto-curr2; 718c2ecf20Sopenharmony_ci su2-auto-curr3; 728c2ecf20Sopenharmony_ci }; 738c2ecf20Sopenharmony_ci}; 74