xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/dlg,slg51000.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*aa1a8ff2SEmmanuel Vadot%YAML 1.2
3*aa1a8ff2SEmmanuel Vadot---
4*aa1a8ff2SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/dlg,slg51000.yaml#
5*aa1a8ff2SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*aa1a8ff2SEmmanuel Vadot
7*aa1a8ff2SEmmanuel Vadottitle: Dialog Semiconductor SLG51000 Voltage Regulator
8*aa1a8ff2SEmmanuel Vadot
9*aa1a8ff2SEmmanuel Vadotmaintainers:
10*aa1a8ff2SEmmanuel Vadot  - Eric Jeong <eric.jeong.opensource@diasemi.com>
11*aa1a8ff2SEmmanuel Vadot  - Support Opensource <support.opensource@diasemi.com>
12*aa1a8ff2SEmmanuel Vadot
13*aa1a8ff2SEmmanuel Vadotproperties:
14*aa1a8ff2SEmmanuel Vadot  compatible:
15*aa1a8ff2SEmmanuel Vadot    const: dlg,slg51000
16*aa1a8ff2SEmmanuel Vadot
17*aa1a8ff2SEmmanuel Vadot  reg:
18*aa1a8ff2SEmmanuel Vadot    maxItems: 1
19*aa1a8ff2SEmmanuel Vadot
20*aa1a8ff2SEmmanuel Vadot  interrupts:
21*aa1a8ff2SEmmanuel Vadot    maxItems: 1
22*aa1a8ff2SEmmanuel Vadot
23*aa1a8ff2SEmmanuel Vadot  dlg,cs-gpios:
24*aa1a8ff2SEmmanuel Vadot    maxItems: 1
25*aa1a8ff2SEmmanuel Vadot    description:
26*aa1a8ff2SEmmanuel Vadot      GPIO for chip select
27*aa1a8ff2SEmmanuel Vadot
28*aa1a8ff2SEmmanuel Vadot  vin3-supply:
29*aa1a8ff2SEmmanuel Vadot    description:
30*aa1a8ff2SEmmanuel Vadot      Input supply for ldo3, required if regulator is enabled
31*aa1a8ff2SEmmanuel Vadot
32*aa1a8ff2SEmmanuel Vadot  vin4-supply:
33*aa1a8ff2SEmmanuel Vadot    description:
34*aa1a8ff2SEmmanuel Vadot      Input supply for ldo4, required if regulator is enabled
35*aa1a8ff2SEmmanuel Vadot
36*aa1a8ff2SEmmanuel Vadot  vin5-supply:
37*aa1a8ff2SEmmanuel Vadot    description:
38*aa1a8ff2SEmmanuel Vadot      Input supply for ldo5, required if regulator is enabled
39*aa1a8ff2SEmmanuel Vadot
40*aa1a8ff2SEmmanuel Vadot  vin6-supply:
41*aa1a8ff2SEmmanuel Vadot    description:
42*aa1a8ff2SEmmanuel Vadot      Input supply for ldo6, required if regulator is enabled
43*aa1a8ff2SEmmanuel Vadot
44*aa1a8ff2SEmmanuel Vadot  vin7-supply:
45*aa1a8ff2SEmmanuel Vadot    description:
46*aa1a8ff2SEmmanuel Vadot      Input supply for ldo7, required if regulator is enabled
47*aa1a8ff2SEmmanuel Vadot
48*aa1a8ff2SEmmanuel Vadot  regulators:
49*aa1a8ff2SEmmanuel Vadot    type: object
50*aa1a8ff2SEmmanuel Vadot    additionalProperties: false
51*aa1a8ff2SEmmanuel Vadot
52*aa1a8ff2SEmmanuel Vadot    patternProperties:
53*aa1a8ff2SEmmanuel Vadot      "^ldo[1-7]$":
54*aa1a8ff2SEmmanuel Vadot        type: object
55*aa1a8ff2SEmmanuel Vadot        $ref: /schemas/regulator/regulator.yaml#
56*aa1a8ff2SEmmanuel Vadot        unevaluatedProperties: false
57*aa1a8ff2SEmmanuel Vadot
58*aa1a8ff2SEmmanuel Vadot        properties:
59*aa1a8ff2SEmmanuel Vadot          enable-gpios:
60*aa1a8ff2SEmmanuel Vadot            maxItems: 1
61*aa1a8ff2SEmmanuel Vadot
62*aa1a8ff2SEmmanuel Vadot        required:
63*aa1a8ff2SEmmanuel Vadot          - regulator-name
64*aa1a8ff2SEmmanuel Vadot
65*aa1a8ff2SEmmanuel Vadotrequired:
66*aa1a8ff2SEmmanuel Vadot  - compatible
67*aa1a8ff2SEmmanuel Vadot  - reg
68*aa1a8ff2SEmmanuel Vadot  - regulators
69*aa1a8ff2SEmmanuel Vadot
70*aa1a8ff2SEmmanuel VadotadditionalProperties: false
71*aa1a8ff2SEmmanuel Vadot
72*aa1a8ff2SEmmanuel Vadotexamples:
73*aa1a8ff2SEmmanuel Vadot  - |
74*aa1a8ff2SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
75*aa1a8ff2SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
76*aa1a8ff2SEmmanuel Vadot    #include <dt-bindings/regulator/dlg,da9121-regulator.h>
77*aa1a8ff2SEmmanuel Vadot    i2c {
78*aa1a8ff2SEmmanuel Vadot        #address-cells = <1>;
79*aa1a8ff2SEmmanuel Vadot        #size-cells = <0>;
80*aa1a8ff2SEmmanuel Vadot
81*aa1a8ff2SEmmanuel Vadot        pmic@75 {
82*aa1a8ff2SEmmanuel Vadot            compatible = "dlg,slg51000";
83*aa1a8ff2SEmmanuel Vadot            reg = <0x75>;
84*aa1a8ff2SEmmanuel Vadot            dlg,cs-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>;
85*aa1a8ff2SEmmanuel Vadot            vin5-supply = <&vreg_s1f_1p2>;
86*aa1a8ff2SEmmanuel Vadot            vin6-supply = <&vreg_s1f_1p2>;
87*aa1a8ff2SEmmanuel Vadot
88*aa1a8ff2SEmmanuel Vadot            regulators {
89*aa1a8ff2SEmmanuel Vadot                ldo1 {
90*aa1a8ff2SEmmanuel Vadot                    regulator-name = "slg51000_b_ldo1";
91*aa1a8ff2SEmmanuel Vadot                    regulator-min-microvolt = <2400000>;
92*aa1a8ff2SEmmanuel Vadot                    regulator-max-microvolt = <3300000>;
93*aa1a8ff2SEmmanuel Vadot                };
94*aa1a8ff2SEmmanuel Vadot
95*aa1a8ff2SEmmanuel Vadot                ldo2 {
96*aa1a8ff2SEmmanuel Vadot                    regulator-name = "slg51000_b_ldo2";
97*aa1a8ff2SEmmanuel Vadot                    regulator-min-microvolt = <2400000>;
98*aa1a8ff2SEmmanuel Vadot                    regulator-max-microvolt = <3300000>;
99*aa1a8ff2SEmmanuel Vadot                };
100*aa1a8ff2SEmmanuel Vadot
101*aa1a8ff2SEmmanuel Vadot                ldo3 {
102*aa1a8ff2SEmmanuel Vadot                    regulator-name = "slg51000_b_ldo3";
103*aa1a8ff2SEmmanuel Vadot                    regulator-min-microvolt = <1200000>;
104*aa1a8ff2SEmmanuel Vadot                    regulator-max-microvolt = <3750000>;
105*aa1a8ff2SEmmanuel Vadot                };
106*aa1a8ff2SEmmanuel Vadot
107*aa1a8ff2SEmmanuel Vadot                ldo4 {
108*aa1a8ff2SEmmanuel Vadot                    regulator-name = "slg51000_b_ldo4";
109*aa1a8ff2SEmmanuel Vadot                    regulator-min-microvolt = <1200000>;
110*aa1a8ff2SEmmanuel Vadot                    regulator-max-microvolt = <3750000>;
111*aa1a8ff2SEmmanuel Vadot                };
112*aa1a8ff2SEmmanuel Vadot
113*aa1a8ff2SEmmanuel Vadot                ldo5 {
114*aa1a8ff2SEmmanuel Vadot                    regulator-name = "slg51000_b_ldo5";
115*aa1a8ff2SEmmanuel Vadot                    regulator-min-microvolt = <500000>;
116*aa1a8ff2SEmmanuel Vadot                    regulator-max-microvolt = <1200000>;
117*aa1a8ff2SEmmanuel Vadot                };
118*aa1a8ff2SEmmanuel Vadot
119*aa1a8ff2SEmmanuel Vadot                ldo6 {
120*aa1a8ff2SEmmanuel Vadot                    regulator-name = "slg51000_b_ldo6";
121*aa1a8ff2SEmmanuel Vadot                    regulator-min-microvolt = <500000>;
122*aa1a8ff2SEmmanuel Vadot                    regulator-max-microvolt = <1200000>;
123*aa1a8ff2SEmmanuel Vadot                };
124*aa1a8ff2SEmmanuel Vadot
125*aa1a8ff2SEmmanuel Vadot                ldo7 {
126*aa1a8ff2SEmmanuel Vadot                    regulator-name = "slg51000_b_ldo7";
127*aa1a8ff2SEmmanuel Vadot                    regulator-min-microvolt = <1200000>;
128*aa1a8ff2SEmmanuel Vadot                    regulator-max-microvolt = <3750000>;
129*aa1a8ff2SEmmanuel Vadot                };
130*aa1a8ff2SEmmanuel Vadot            };
131*aa1a8ff2SEmmanuel Vadot        };
132*aa1a8ff2SEmmanuel Vadot    };
133