xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/ti,tps65086.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/ti,tps65086.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: TPS65086 Power Management Integrated Circuit (PMIC)
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Emil Renner Berthing <kernel@esmil.dk>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel Vadotproperties:
13354d7675SEmmanuel Vadot  compatible:
14354d7675SEmmanuel Vadot    const: ti,tps65086
15354d7675SEmmanuel Vadot
16354d7675SEmmanuel Vadot  reg:
17354d7675SEmmanuel Vadot    const: 0x5e
18354d7675SEmmanuel Vadot    description: I2C slave address
19354d7675SEmmanuel Vadot
20354d7675SEmmanuel Vadot  interrupts:
21354d7675SEmmanuel Vadot    maxItems: 1
22354d7675SEmmanuel Vadot
23354d7675SEmmanuel Vadot  interrupt-controller: true
24354d7675SEmmanuel Vadot
25354d7675SEmmanuel Vadot  '#interrupt-cells':
26354d7675SEmmanuel Vadot    const: 2
27354d7675SEmmanuel Vadot    description: |
28354d7675SEmmanuel Vadot      The first cell is the IRQ number. The second cell is the flags,
29354d7675SEmmanuel Vadot      encoded as trigger masks from ../interrupt-controller/interrupts.txt.
30354d7675SEmmanuel Vadot
31354d7675SEmmanuel Vadot  gpio-controller: true
32354d7675SEmmanuel Vadot
33354d7675SEmmanuel Vadot  '#gpio-cells':
34354d7675SEmmanuel Vadot    const: 2
35354d7675SEmmanuel Vadot    description: |
36354d7675SEmmanuel Vadot      The first cell is the pin number and the second cell is used to specify
37354d7675SEmmanuel Vadot      flags.  See ../gpio/gpio.txt for more information.
38354d7675SEmmanuel Vadot
39354d7675SEmmanuel Vadot  regulators:
40354d7675SEmmanuel Vadot    type: object
417ef62cebSEmmanuel Vadot    additionalProperties: false
42354d7675SEmmanuel Vadot    description: |
43354d7675SEmmanuel Vadot      List of child nodes that specify the regulator initialization data.
44354d7675SEmmanuel Vadot      Child nodes must be named after their hardware counterparts:
45354d7675SEmmanuel Vadot      buck[1-6], ldoa[1-3], swa1, swb[1-2], and vtt.
46354d7675SEmmanuel Vadot      Each child node is defined using the standard binding for regulators and
47354d7675SEmmanuel Vadot      the optional regulator properties defined below.
48354d7675SEmmanuel Vadot
49354d7675SEmmanuel Vadot    patternProperties:
50354d7675SEmmanuel Vadot      "^buck[1-6]$":
51354d7675SEmmanuel Vadot        type: object
52354d7675SEmmanuel Vadot        $ref: ../regulator/regulator.yaml
53354d7675SEmmanuel Vadot
54354d7675SEmmanuel Vadot        properties:
55354d7675SEmmanuel Vadot          regulator-name: true
56354d7675SEmmanuel Vadot          regulator-boot-on: true
57354d7675SEmmanuel Vadot          regulator-always-on: true
58354d7675SEmmanuel Vadot          regulator-min-microvolt: true
59354d7675SEmmanuel Vadot          regulator-max-microvolt: true
60354d7675SEmmanuel Vadot          ti,regulator-step-size-25mv:
61354d7675SEmmanuel Vadot            type: boolean
62354d7675SEmmanuel Vadot            description: |
63354d7675SEmmanuel Vadot              Set this if the regulator is factory set with a 25mv step voltage
64354d7675SEmmanuel Vadot              mapping.
65354d7675SEmmanuel Vadot          ti,regulator-decay:
66354d7675SEmmanuel Vadot            type: boolean
67354d7675SEmmanuel Vadot            description: |
68354d7675SEmmanuel Vadot              Set this if the output needs to decay, default is for the output
69354d7675SEmmanuel Vadot              to slew down.
70354d7675SEmmanuel Vadot
71354d7675SEmmanuel Vadot        additionalProperties: false
72354d7675SEmmanuel Vadot
73354d7675SEmmanuel Vadot      "^(ldoa[1-3]|swa1|swb[1-2]|vtt)$":
74354d7675SEmmanuel Vadot        type: object
75354d7675SEmmanuel Vadot        $ref: ../regulator/regulator.yaml
76354d7675SEmmanuel Vadot
77354d7675SEmmanuel Vadot        properties:
78354d7675SEmmanuel Vadot          regulator-name: true
79354d7675SEmmanuel Vadot          regulator-boot-on: true
80354d7675SEmmanuel Vadot          regulator-always-on: true
81354d7675SEmmanuel Vadot          regulator-min-microvolt: true
82354d7675SEmmanuel Vadot          regulator-max-microvolt: true
83354d7675SEmmanuel Vadot
84354d7675SEmmanuel Vadot        additionalProperties: false
85354d7675SEmmanuel Vadot
86354d7675SEmmanuel VadotadditionalProperties: false
87354d7675SEmmanuel Vadot
88354d7675SEmmanuel Vadotrequired:
89354d7675SEmmanuel Vadot  - compatible
90354d7675SEmmanuel Vadot  - reg
91354d7675SEmmanuel Vadot  - gpio-controller
92354d7675SEmmanuel Vadot  - '#gpio-cells'
93354d7675SEmmanuel Vadot  - regulators
94354d7675SEmmanuel Vadot
95354d7675SEmmanuel Vadotexamples:
96354d7675SEmmanuel Vadot  - |
97354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
98*fac71e4eSEmmanuel Vadot    i2c {
99354d7675SEmmanuel Vadot        #address-cells = <1>;
100354d7675SEmmanuel Vadot        #size-cells = <0>;
101354d7675SEmmanuel Vadot
102354d7675SEmmanuel Vadot        pmic: pmic@5e {
103354d7675SEmmanuel Vadot            compatible = "ti,tps65086";
104354d7675SEmmanuel Vadot            reg = <0x5e>;
105354d7675SEmmanuel Vadot            interrupt-parent = <&gpio1>;
106354d7675SEmmanuel Vadot            interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
107354d7675SEmmanuel Vadot            interrupt-controller;
108354d7675SEmmanuel Vadot            #interrupt-cells = <2>;
109354d7675SEmmanuel Vadot            gpio-controller;
110354d7675SEmmanuel Vadot            #gpio-cells = <2>;
111354d7675SEmmanuel Vadot
112354d7675SEmmanuel Vadot            regulators {
113354d7675SEmmanuel Vadot                buck1 {
114354d7675SEmmanuel Vadot                    regulator-name = "vcc1";
115354d7675SEmmanuel Vadot                    regulator-min-microvolt = <1600000>;
116354d7675SEmmanuel Vadot                    regulator-max-microvolt = <1600000>;
117354d7675SEmmanuel Vadot                    regulator-boot-on;
118354d7675SEmmanuel Vadot                    ti,regulator-decay;
119354d7675SEmmanuel Vadot                    ti,regulator-step-size-25mv;
120354d7675SEmmanuel Vadot                };
121354d7675SEmmanuel Vadot            };
122354d7675SEmmanuel Vadot        };
123354d7675SEmmanuel Vadot    };
124354d7675SEmmanuel Vadot
125354d7675SEmmanuel Vadot...
126