xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/samsung,s2dos05.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*5f62a964SEmmanuel Vadot%YAML 1.2
3*5f62a964SEmmanuel Vadot---
4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/samsung,s2dos05.yaml#
5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5f62a964SEmmanuel Vadot
7*5f62a964SEmmanuel Vadottitle: Samsung S2DOS05 Power Management IC
8*5f62a964SEmmanuel Vadot
9*5f62a964SEmmanuel Vadotmaintainers:
10*5f62a964SEmmanuel Vadot  - Dzmitry Sankouski <dsankouski@gmail.com>
11*5f62a964SEmmanuel Vadot
12*5f62a964SEmmanuel Vadotdescription:
13*5f62a964SEmmanuel Vadot  This is a device tree bindings for S2DOS family of Power Management IC (PMIC).
14*5f62a964SEmmanuel Vadot
15*5f62a964SEmmanuel Vadot  The S2DOS05 is a companion power management IC for the panel and touchscreen
16*5f62a964SEmmanuel Vadot  in smart phones. Provides voltage regulators and
17*5f62a964SEmmanuel Vadot  ADC for power/current measurements.
18*5f62a964SEmmanuel Vadot
19*5f62a964SEmmanuel Vadot  Regulator section has 4 LDO and 1 BUCK regulators and also
20*5f62a964SEmmanuel Vadot  provides ELVDD, ELVSS, AVDD lines.
21*5f62a964SEmmanuel Vadot
22*5f62a964SEmmanuel Vadotproperties:
23*5f62a964SEmmanuel Vadot  compatible:
24*5f62a964SEmmanuel Vadot    const: samsung,s2dos05
25*5f62a964SEmmanuel Vadot
26*5f62a964SEmmanuel Vadot  reg:
27*5f62a964SEmmanuel Vadot    maxItems: 1
28*5f62a964SEmmanuel Vadot
29*5f62a964SEmmanuel Vadot  regulators:
30*5f62a964SEmmanuel Vadot    patternProperties:
31*5f62a964SEmmanuel Vadot      "^buck|ldo[1-4]$":
32*5f62a964SEmmanuel Vadot        type: object
33*5f62a964SEmmanuel Vadot        $ref: /schemas/regulator/regulator.yaml#
34*5f62a964SEmmanuel Vadot        unevaluatedProperties: false
35*5f62a964SEmmanuel Vadot
36*5f62a964SEmmanuel Vadot        required:
37*5f62a964SEmmanuel Vadot          - regulator-name
38*5f62a964SEmmanuel Vadot
39*5f62a964SEmmanuel Vadot    additionalProperties: false
40*5f62a964SEmmanuel Vadot
41*5f62a964SEmmanuel Vadotrequired:
42*5f62a964SEmmanuel Vadot  - compatible
43*5f62a964SEmmanuel Vadot  - reg
44*5f62a964SEmmanuel Vadot  - regulators
45*5f62a964SEmmanuel Vadot
46*5f62a964SEmmanuel VadotadditionalProperties: false
47*5f62a964SEmmanuel Vadot
48*5f62a964SEmmanuel Vadotexamples:
49*5f62a964SEmmanuel Vadot  - |
50*5f62a964SEmmanuel Vadot    i2c {
51*5f62a964SEmmanuel Vadot        #address-cells = <1>;
52*5f62a964SEmmanuel Vadot        #size-cells = <0>;
53*5f62a964SEmmanuel Vadot
54*5f62a964SEmmanuel Vadot        pmic@60 {
55*5f62a964SEmmanuel Vadot            compatible = "samsung,s2dos05";
56*5f62a964SEmmanuel Vadot            reg = <0x60>;
57*5f62a964SEmmanuel Vadot
58*5f62a964SEmmanuel Vadot            regulators {
59*5f62a964SEmmanuel Vadot                ldo1 {
60*5f62a964SEmmanuel Vadot                    regulator-active-discharge = <1>;
61*5f62a964SEmmanuel Vadot                    regulator-min-microvolt = <1500000>;
62*5f62a964SEmmanuel Vadot                    regulator-max-microvolt = <2000000>;
63*5f62a964SEmmanuel Vadot                    regulator-name = "ldo1";
64*5f62a964SEmmanuel Vadot                };
65*5f62a964SEmmanuel Vadot
66*5f62a964SEmmanuel Vadot                ldo2 {
67*5f62a964SEmmanuel Vadot                    regulator-active-discharge = <1>;
68*5f62a964SEmmanuel Vadot                    regulator-boot-on;
69*5f62a964SEmmanuel Vadot                    regulator-min-microvolt = <1800000>;
70*5f62a964SEmmanuel Vadot                    regulator-max-microvolt = <1800000>;
71*5f62a964SEmmanuel Vadot                    regulator-name = "ldo2";
72*5f62a964SEmmanuel Vadot                };
73*5f62a964SEmmanuel Vadot
74*5f62a964SEmmanuel Vadot                ldo3 {
75*5f62a964SEmmanuel Vadot                    regulator-active-discharge = <1>;
76*5f62a964SEmmanuel Vadot                    regulator-boot-on;
77*5f62a964SEmmanuel Vadot                    regulator-min-microvolt = <3000000>;
78*5f62a964SEmmanuel Vadot                    regulator-max-microvolt = <3000000>;
79*5f62a964SEmmanuel Vadot                    regulator-name = "ldo3";
80*5f62a964SEmmanuel Vadot                };
81*5f62a964SEmmanuel Vadot
82*5f62a964SEmmanuel Vadot                ldo4 {
83*5f62a964SEmmanuel Vadot                    regulator-active-discharge = <1>;
84*5f62a964SEmmanuel Vadot                    regulator-min-microvolt = <2700000>;
85*5f62a964SEmmanuel Vadot                    regulator-max-microvolt = <3775000>;
86*5f62a964SEmmanuel Vadot                    regulator-name = "ldo4";
87*5f62a964SEmmanuel Vadot                };
88*5f62a964SEmmanuel Vadot
89*5f62a964SEmmanuel Vadot                buck {
90*5f62a964SEmmanuel Vadot                    regulator-active-discharge = <1>;
91*5f62a964SEmmanuel Vadot                    regulator-min-microvolt = <850000>;
92*5f62a964SEmmanuel Vadot                    regulator-max-microvolt = <2100000>;
93*5f62a964SEmmanuel Vadot                    regulator-name = "buck";
94*5f62a964SEmmanuel Vadot                };
95*5f62a964SEmmanuel Vadot            };
96*5f62a964SEmmanuel Vadot        };
97*5f62a964SEmmanuel Vadot    };
98*5f62a964SEmmanuel Vadot
99*5f62a964SEmmanuel Vadot...
100