xref: /openbmc/linux/Documentation/devicetree/bindings/mfd/ti,tps65086.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
168f0ba70SEmil Renner Berthing# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
268f0ba70SEmil Renner Berthing%YAML 1.2
368f0ba70SEmil Renner Berthing---
468f0ba70SEmil Renner Berthing$id: http://devicetree.org/schemas/mfd/ti,tps65086.yaml#
568f0ba70SEmil Renner Berthing$schema: http://devicetree.org/meta-schemas/core.yaml#
668f0ba70SEmil Renner Berthing
768f0ba70SEmil Renner Berthingtitle: TPS65086 Power Management Integrated Circuit (PMIC)
868f0ba70SEmil Renner Berthing
968f0ba70SEmil Renner Berthingmaintainers:
1068f0ba70SEmil Renner Berthing  - Emil Renner Berthing <kernel@esmil.dk>
1168f0ba70SEmil Renner Berthing
1268f0ba70SEmil Renner Berthingproperties:
1368f0ba70SEmil Renner Berthing  compatible:
1468f0ba70SEmil Renner Berthing    const: ti,tps65086
1568f0ba70SEmil Renner Berthing
1668f0ba70SEmil Renner Berthing  reg:
1768f0ba70SEmil Renner Berthing    const: 0x5e
1868f0ba70SEmil Renner Berthing    description: I2C slave address
1968f0ba70SEmil Renner Berthing
2068f0ba70SEmil Renner Berthing  interrupts:
2168f0ba70SEmil Renner Berthing    maxItems: 1
2268f0ba70SEmil Renner Berthing
2368f0ba70SEmil Renner Berthing  interrupt-controller: true
2468f0ba70SEmil Renner Berthing
2568f0ba70SEmil Renner Berthing  '#interrupt-cells':
2668f0ba70SEmil Renner Berthing    const: 2
2768f0ba70SEmil Renner Berthing    description: |
2868f0ba70SEmil Renner Berthing      The first cell is the IRQ number. The second cell is the flags,
2968f0ba70SEmil Renner Berthing      encoded as trigger masks from ../interrupt-controller/interrupts.txt.
3068f0ba70SEmil Renner Berthing
3168f0ba70SEmil Renner Berthing  gpio-controller: true
3268f0ba70SEmil Renner Berthing
3368f0ba70SEmil Renner Berthing  '#gpio-cells':
3468f0ba70SEmil Renner Berthing    const: 2
3568f0ba70SEmil Renner Berthing    description: |
3668f0ba70SEmil Renner Berthing      The first cell is the pin number and the second cell is used to specify
3768f0ba70SEmil Renner Berthing      flags.  See ../gpio/gpio.txt for more information.
3868f0ba70SEmil Renner Berthing
3968f0ba70SEmil Renner Berthing  regulators:
4068f0ba70SEmil Renner Berthing    type: object
4142839dcaSRob Herring    additionalProperties: false
4268f0ba70SEmil Renner Berthing    description: |
4368f0ba70SEmil Renner Berthing      List of child nodes that specify the regulator initialization data.
4468f0ba70SEmil Renner Berthing      Child nodes must be named after their hardware counterparts:
4568f0ba70SEmil Renner Berthing      buck[1-6], ldoa[1-3], swa1, swb[1-2], and vtt.
4668f0ba70SEmil Renner Berthing      Each child node is defined using the standard binding for regulators and
4768f0ba70SEmil Renner Berthing      the optional regulator properties defined below.
4868f0ba70SEmil Renner Berthing
4968f0ba70SEmil Renner Berthing    patternProperties:
5068f0ba70SEmil Renner Berthing      "^buck[1-6]$":
5168f0ba70SEmil Renner Berthing        type: object
5268f0ba70SEmil Renner Berthing        $ref: ../regulator/regulator.yaml
5368f0ba70SEmil Renner Berthing
5468f0ba70SEmil Renner Berthing        properties:
5568f0ba70SEmil Renner Berthing          regulator-name: true
5668f0ba70SEmil Renner Berthing          regulator-boot-on: true
5768f0ba70SEmil Renner Berthing          regulator-always-on: true
5868f0ba70SEmil Renner Berthing          regulator-min-microvolt: true
5968f0ba70SEmil Renner Berthing          regulator-max-microvolt: true
6068f0ba70SEmil Renner Berthing          ti,regulator-step-size-25mv:
6168f0ba70SEmil Renner Berthing            type: boolean
6268f0ba70SEmil Renner Berthing            description: |
6368f0ba70SEmil Renner Berthing              Set this if the regulator is factory set with a 25mv step voltage
6468f0ba70SEmil Renner Berthing              mapping.
6568f0ba70SEmil Renner Berthing          ti,regulator-decay:
6668f0ba70SEmil Renner Berthing            type: boolean
6768f0ba70SEmil Renner Berthing            description: |
6868f0ba70SEmil Renner Berthing              Set this if the output needs to decay, default is for the output
6968f0ba70SEmil Renner Berthing              to slew down.
7068f0ba70SEmil Renner Berthing
7168f0ba70SEmil Renner Berthing        additionalProperties: false
7268f0ba70SEmil Renner Berthing
7368f0ba70SEmil Renner Berthing      "^(ldoa[1-3]|swa1|swb[1-2]|vtt)$":
7468f0ba70SEmil Renner Berthing        type: object
7568f0ba70SEmil Renner Berthing        $ref: ../regulator/regulator.yaml
7668f0ba70SEmil Renner Berthing
7768f0ba70SEmil Renner Berthing        properties:
7868f0ba70SEmil Renner Berthing          regulator-name: true
7968f0ba70SEmil Renner Berthing          regulator-boot-on: true
8068f0ba70SEmil Renner Berthing          regulator-always-on: true
8168f0ba70SEmil Renner Berthing          regulator-min-microvolt: true
8268f0ba70SEmil Renner Berthing          regulator-max-microvolt: true
8368f0ba70SEmil Renner Berthing
8468f0ba70SEmil Renner Berthing        additionalProperties: false
8568f0ba70SEmil Renner Berthing
8668f0ba70SEmil Renner BerthingadditionalProperties: false
8768f0ba70SEmil Renner Berthing
8868f0ba70SEmil Renner Berthingrequired:
8968f0ba70SEmil Renner Berthing  - compatible
9068f0ba70SEmil Renner Berthing  - reg
9168f0ba70SEmil Renner Berthing  - gpio-controller
9268f0ba70SEmil Renner Berthing  - '#gpio-cells'
9368f0ba70SEmil Renner Berthing  - regulators
9468f0ba70SEmil Renner Berthing
9568f0ba70SEmil Renner Berthingexamples:
9668f0ba70SEmil Renner Berthing  - |
9768f0ba70SEmil Renner Berthing    #include <dt-bindings/interrupt-controller/irq.h>
98*20a72af1SRob Herring    i2c {
9968f0ba70SEmil Renner Berthing        #address-cells = <1>;
10068f0ba70SEmil Renner Berthing        #size-cells = <0>;
10168f0ba70SEmil Renner Berthing
10268f0ba70SEmil Renner Berthing        pmic: pmic@5e {
10368f0ba70SEmil Renner Berthing            compatible = "ti,tps65086";
10468f0ba70SEmil Renner Berthing            reg = <0x5e>;
10568f0ba70SEmil Renner Berthing            interrupt-parent = <&gpio1>;
10668f0ba70SEmil Renner Berthing            interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
10768f0ba70SEmil Renner Berthing            interrupt-controller;
10868f0ba70SEmil Renner Berthing            #interrupt-cells = <2>;
10968f0ba70SEmil Renner Berthing            gpio-controller;
11068f0ba70SEmil Renner Berthing            #gpio-cells = <2>;
11168f0ba70SEmil Renner Berthing
11268f0ba70SEmil Renner Berthing            regulators {
11368f0ba70SEmil Renner Berthing                buck1 {
11468f0ba70SEmil Renner Berthing                    regulator-name = "vcc1";
11568f0ba70SEmil Renner Berthing                    regulator-min-microvolt = <1600000>;
11668f0ba70SEmil Renner Berthing                    regulator-max-microvolt = <1600000>;
11768f0ba70SEmil Renner Berthing                    regulator-boot-on;
11868f0ba70SEmil Renner Berthing                    ti,regulator-decay;
11968f0ba70SEmil Renner Berthing                    ti,regulator-step-size-25mv;
12068f0ba70SEmil Renner Berthing                };
12168f0ba70SEmil Renner Berthing            };
12268f0ba70SEmil Renner Berthing        };
12368f0ba70SEmil Renner Berthing    };
12468f0ba70SEmil Renner Berthing
12568f0ba70SEmil Renner Berthing...
126