162306a36Sopenharmony_ciAS3711 is an I2C PMIC from Austria MicroSystems with multiple DCDC and LDO power
262306a36Sopenharmony_cisupplies, a battery charger and an RTC. So far only bindings for the two stepup
362306a36Sopenharmony_ciDCDC converters are defined. Other DCDC and LDO supplies are configured, using
462306a36Sopenharmony_cistandard regulator properties, they must belong to a sub-node, called
562306a36Sopenharmony_ci"regulators" and be called "sd1" to "sd4" and "ldo1" to "ldo8." Stepup converter
662306a36Sopenharmony_ciconfiguration should be placed in a subnode, called "backlight."
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciCompulsory properties:
962306a36Sopenharmony_ci- compatible		: must be "ams,as3711"
1062306a36Sopenharmony_ci- reg			: specifies the I2C address
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciTo use the SU1 converter as a backlight source the following two properties must
1362306a36Sopenharmony_cibe provided:
1462306a36Sopenharmony_ci- su1-dev		: framebuffer phandle
1562306a36Sopenharmony_ci- su1-max-uA		: maximum current
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciTo use the SU2 converter as a backlight source the following two properties must
1862306a36Sopenharmony_cibe provided:
1962306a36Sopenharmony_ci- su2-dev		: framebuffer phandle
2062306a36Sopenharmony_ci- su1-max-uA		: maximum current
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciAdditionally one of these properties must be provided to select the type of
2362306a36Sopenharmony_cifeedback used:
2462306a36Sopenharmony_ci- su2-feedback-voltage	: voltage feedback is used
2562306a36Sopenharmony_ci- su2-feedback-curr1	: CURR1 input used for current feedback
2662306a36Sopenharmony_ci- su2-feedback-curr2	: CURR2 input used for current feedback
2762306a36Sopenharmony_ci- su2-feedback-curr3	: CURR3 input used for current feedback
2862306a36Sopenharmony_ci- su2-feedback-curr-auto: automatic current feedback selection
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciand one of these to select the over-voltage protection pin
3162306a36Sopenharmony_ci- su2-fbprot-lx-sd4	: LX_SD4 is used for over-voltage protection
3262306a36Sopenharmony_ci- su2-fbprot-gpio2	: GPIO2 is used for over-voltage protection
3362306a36Sopenharmony_ci- su2-fbprot-gpio3	: GPIO3 is used for over-voltage protection
3462306a36Sopenharmony_ci- su2-fbprot-gpio4	: GPIO4 is used for over-voltage protection
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciIf "su2-feedback-curr-auto" is selected, one or more of the following properties
3762306a36Sopenharmony_cihave to be specified:
3862306a36Sopenharmony_ci- su2-auto-curr1	: use CURR1 input for current feedback
3962306a36Sopenharmony_ci- su2-auto-curr2	: use CURR2 input for current feedback
4062306a36Sopenharmony_ci- su2-auto-curr3	: use CURR3 input for current feedback
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciExample:
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_cias3711@40 {
4562306a36Sopenharmony_ci	compatible = "ams,as3711";
4662306a36Sopenharmony_ci	reg = <0x40>;
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci	regulators {
4962306a36Sopenharmony_ci		sd4 {
5062306a36Sopenharmony_ci			regulator-name = "1.215V";
5162306a36Sopenharmony_ci			regulator-min-microvolt = <1215000>;
5262306a36Sopenharmony_ci			regulator-max-microvolt = <1235000>;
5362306a36Sopenharmony_ci		};
5462306a36Sopenharmony_ci		ldo2 {
5562306a36Sopenharmony_ci			regulator-name = "2.8V CPU";
5662306a36Sopenharmony_ci			regulator-min-microvolt = <2800000>;
5762306a36Sopenharmony_ci			regulator-max-microvolt = <2800000>;
5862306a36Sopenharmony_ci			regulator-always-on;
5962306a36Sopenharmony_ci			regulator-boot-on;
6062306a36Sopenharmony_ci		};
6162306a36Sopenharmony_ci	};
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci	backlight {
6462306a36Sopenharmony_ci		compatible = "ams,as3711-bl";
6562306a36Sopenharmony_ci		su2-dev = <&lcdc>;
6662306a36Sopenharmony_ci		su2-max-uA = <36000>;
6762306a36Sopenharmony_ci		su2-feedback-curr-auto;
6862306a36Sopenharmony_ci		su2-fbprot-gpio4;
6962306a36Sopenharmony_ci		su2-auto-curr1;
7062306a36Sopenharmony_ci		su2-auto-curr2;
7162306a36Sopenharmony_ci		su2-auto-curr3;
7262306a36Sopenharmony_ci	};
7362306a36Sopenharmony_ci};
74