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