xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/tps6105x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Device tree bindings for TI TPS61050/61052 Boost Converters
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe TP61050/TPS61052 is a high-power "white LED driver". The
4*4882a593Smuzhiyundevice provides LED, GPIO and regulator functionalities.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun- compatible:		"ti,tps61050" or "ti,tps61052"
8*4882a593Smuzhiyun- reg:			Specifies the I2C slave address
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunOptional sub-node:
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunThis subnode selects the chip's operational mode.
13*4882a593SmuzhiyunThere can be at most one single available subnode.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun- regulator: presence of this sub-node puts the chip in regulator mode.
16*4882a593Smuzhiyun	see ../regulator/regulator.yaml
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun- led: presence of this sub-node puts the chip in led mode.
19*4882a593Smuzhiyun	Optional properties:
20*4882a593Smuzhiyun	- function : see ../leds/common.txt
21*4882a593Smuzhiyun	- color    : see ../leds/common.txt
22*4882a593Smuzhiyun	- label    : see ../leds/common.txt
23*4882a593Smuzhiyun			(deprecated)
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunExample (GPIO operation only):
26*4882a593Smuzhiyun
27*4882a593Smuzhiyuni2c0 {
28*4882a593Smuzhiyun	tps61052@33 {
29*4882a593Smuzhiyun		compatible = "ti,tps61052";
30*4882a593Smuzhiyun		reg = <0x33>;
31*4882a593Smuzhiyun	};
32*4882a593Smuzhiyun};
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunExample (GPIO + regulator operation):
35*4882a593Smuzhiyun
36*4882a593Smuzhiyuni2c0 {
37*4882a593Smuzhiyun	tps61052@33 {
38*4882a593Smuzhiyun		compatible = "ti,tps61052";
39*4882a593Smuzhiyun		reg = <0x33>;
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun		regulator {
42*4882a593Smuzhiyun			regulator-min-microvolt = <5000000>;
43*4882a593Smuzhiyun			regulator-max-microvolt = <5000000>;
44*4882a593Smuzhiyun			regulator-always-on;
45*4882a593Smuzhiyun		};
46*4882a593Smuzhiyun	};
47*4882a593Smuzhiyun};
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunExample (GPIO + led operation):
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun#include <dt-bindings/leds/common.h>
52*4882a593Smuzhiyun
53*4882a593Smuzhiyuni2c0 {
54*4882a593Smuzhiyun	tps61052@33 {
55*4882a593Smuzhiyun		compatible = "ti,tps61052";
56*4882a593Smuzhiyun		reg = <0x33>;
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun		led {
59*4882a593Smuzhiyun			color = <LED_COLOR_ID_WHITE>;
60*4882a593Smuzhiyun		};
61*4882a593Smuzhiyun	};
62*4882a593Smuzhiyun};
63