Documentation / devicetree / bindings / leds / backlight / ti,tps65217.yaml


Based on kernel version 7.3. Page generated on 2026-10-19 13:17 EDT.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/leds/backlight/ti,tps65217.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TPS65217 family of regulators

maintainers:
  - Eduard Bostina <egbostina@gmail.com>

description:
  The TPS65217 chip contains a boost converter and current sinks which can be
  used to drive LEDs for use as backlights.

properties:
  compatible:
    const: ti,tps65217

  reg:
    maxItems: 1
    description: I2C slave address

  interrupts:
    maxItems: 1

  interrupt-controller: true
 
  "#interrupt-cells":
    const: 1

  ti,pmic-shutdown-controller:
    type: boolean
    description:
      Set the PMIC to shutdown on PWR_EN toggle.

  backlight:
    type: object
    additionalProperties: false
    description:
      Node for specifying WLED1 and WLED2 lines in TPS65217.

    properties:
      isel:
        $ref: /schemas/types.yaml#/definitions/uint32
        enum: [1, 2]
        description: |
          Selection bit. Valid values:
            1 - ISEL1 (low-level)
            2 - ISEL2 (high-level)

      fdim:
        $ref: /schemas/types.yaml#/definitions/uint32
        enum: [100, 200, 500, 1000]
        description:
          PWM dimming frequency in Hz.

      default-brightness:
        $ref: /schemas/types.yaml#/definitions/uint32
        minimum: 0
        maximum: 100

    required:
      - isel
      - fdim
      - default-brightness

  regulators:
    type: object
    additionalProperties: false
    description:
      List of child nodes that specify the regulator initialization data.
      Not all regulators for the given device need to be present.

    patternProperties:
      "^(dcdc[1-3]|ldo[1-4])$":
        type: object
        $ref: /schemas/regulator/regulator.yaml#
        unevaluatedProperties: false

  charger:
    $ref: /schemas/power/supply/tps65217-charger.yaml#
    unevaluatedProperties: false

  pwrbutton:
    $ref: /schemas/input/ti,tps65217-pwrbutton.yaml#
    unevaluatedProperties: false

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        pmic@24 {
            compatible = "ti,tps65217";
            reg = <0x24>;
            interrupt-controller;
            #interrupt-cells = <1>;
            ti,pmic-shutdown-controller;
 
            backlight {
                isel = <1>;   /* 1 - ISET1, 2 ISET2 */
                fdim = <100>; /* TPS65217_BL_FDIM_100HZ */
                default-brightness = <50>;
            };
 
            charger {
                compatible = "ti,tps65217-charger";
                interrupts = <0>, <1>;
                interrupt-names = "USB", "AC";
            };
 
            pwrbutton {
                compatible = "ti,tps65217-pwrbutton";
                interrupts = <2>;
            };
 
            regulators {
                dcdc1 {
                    regulator-name = "vdds_dpr";
                    regulator-always-on;
                };
 
                dcdc2 {
                    regulator-name = "vdd_mpu";
                    regulator-min-microvolt = <925000>;
                    regulator-max-microvolt = <1351500>;
                    regulator-boot-on;
                    regulator-always-on;
                };
 
                dcdc3 {
                    regulator-name = "vdd_core";
                    regulator-min-microvolt = <925000>;
                    regulator-max-microvolt = <1150000>;
                    regulator-boot-on;
                    regulator-always-on;
                };
 
                ldo1 {
                    regulator-name = "vio,vrtc,vdds";
                    regulator-always-on;
                };
 
                ldo2 {
                    regulator-name = "vdd_3v3aux";
                    regulator-always-on;
                };
 
                ldo3 {
                    regulator-name = "vdd_1v8";
                    regulator-min-microvolt = <1800000>;
                    regulator-max-microvolt = <1800000>;
                    regulator-always-on;
                };
 
                ldo4 {
                    regulator-name = "vdd_3v3a";
                    regulator-always-on;
                };
            };
        };
    };