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