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