Back to home page

OSCL-LXR

 
 

    


0001 * Device tree bindings for TI TPS61050/61052 Boost Converters
0002 
0003 The TP61050/TPS61052 is a high-power "white LED driver". The
0004 device provides LED, GPIO and regulator functionalities.
0005 
0006 Required properties:
0007 - compatible:           "ti,tps61050" or "ti,tps61052"
0008 - reg:                  Specifies the I2C slave address
0009 
0010 Optional sub-node:
0011 
0012 This subnode selects the chip's operational mode.
0013 There can be at most one single available subnode.
0014 
0015 - regulator: presence of this sub-node puts the chip in regulator mode.
0016         see ../regulator/regulator.yaml
0017 
0018 - led: presence of this sub-node puts the chip in led mode.
0019         Optional properties:
0020         - function : see ../leds/common.txt
0021         - color    : see ../leds/common.txt
0022         - label    : see ../leds/common.txt
0023                         (deprecated)
0024 
0025 Example (GPIO operation only):
0026 
0027 i2c0 {
0028         tps61052@33 {
0029                 compatible = "ti,tps61052";
0030                 reg = <0x33>;
0031         };
0032 };
0033 
0034 Example (GPIO + regulator operation):
0035 
0036 i2c0 {
0037         tps61052@33 {
0038                 compatible = "ti,tps61052";
0039                 reg = <0x33>;
0040 
0041                 regulator {
0042                         regulator-min-microvolt = <5000000>;
0043                         regulator-max-microvolt = <5000000>;
0044                         regulator-always-on;
0045                 };
0046         };
0047 };
0048 
0049 Example (GPIO + led operation):
0050 
0051 #include <dt-bindings/leds/common.h>
0052 
0053 i2c0 {
0054         tps61052@33 {
0055                 compatible = "ti,tps61052";
0056                 reg = <0x33>;
0057 
0058                 led {
0059                         color = <LED_COLOR_ID_WHITE>;
0060                 };
0061         };
0062 };