Skip to content

Commit b356595

Browse files
andredlag-linaro
authored andcommitted
dt-bindings: mfd: samsung,s2mpg10-pmic: Link to its regulators
Update the regulators node to link to the correct and expected samsung,s2mpg10-regulators binding, in order to describe the regulators available on this PMIC. Additionally, describe the supply inputs of the regulator rails, with the supply names matching the datasheet. While at it, update the description and example slightly. Note: S2MPG10 is typically used as the main-PMIC together with an S2MPG11 PMIC in a main/sub configuration, hence the datasheet and the binding both suffix the supplies with an 'm'. Signed-off-by: André Draszik <andre.draszik@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20260122-s2mpg1x-regulators-v7-5-3b1f9831fffd@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 189ccdc commit b356595

1 file changed

Lines changed: 54 additions & 3 deletions

File tree

Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ maintainers:
1010
- André Draszik <andre.draszik@linaro.org>
1111

1212
description: |
13-
This is part of the device tree bindings for the S2MPG family of Power
14-
Management IC (PMIC).
13+
This is part of the device tree bindings for the S2MPG10 Power Management IC
14+
(PMIC).
1515
1616
The Samsung S2MPG10 is a Power Management IC for mobile applications with buck
1717
converters, various LDOs, power meters, RTC, clock outputs, and additional
18-
GPIO interfaces.
18+
GPIO interfaces and is typically complemented by S2MPG10 PMIC in a main/sub
19+
configuration as the main PMIC.
1920
2021
properties:
2122
compatible:
@@ -31,13 +32,40 @@ properties:
3132

3233
regulators:
3334
type: object
35+
$ref: /schemas/regulator/samsung,s2mpg10-regulator.yaml
3436
description:
3537
List of child nodes that specify the regulators.
3638

3739
system-power-controller: true
3840

3941
wakeup-source: true
4042

43+
patternProperties:
44+
"^vinb([1-9]|10)m-supply$":
45+
description:
46+
Phandle to the power supply for each buck rail of this PMIC. There is a
47+
1:1 mapping of supply to rail, e.g. vinb1m-supply supplies buck1m.
48+
49+
"^vinl([1-9]|1[0-5])m-supply$":
50+
description: |
51+
Phandle to the power supply for one or multiple LDO rails of this PMIC.
52+
The mapping of supply to rail(s) is as follows:
53+
vinl1m - ldo13m
54+
vinl2m - ldo15m
55+
vinl3m - ldo1m, ldo5m, ldo7m
56+
vinl4m - ldo3m, ldo8m
57+
vinl5m - ldo16m
58+
vinl6m - ldo17m
59+
vinl7m - ldo6m, ldo11m, ldo24m, ldo28m
60+
vinl8m - ldo12m
61+
vinl9m - ldo2m, ldo4m
62+
vinl10m - ldo9m, ldo14m, ldo18m, 19m, ldo20m, ldo25m
63+
vinl11m - ldo23m, ldo31m
64+
vinl12m - ldo29m
65+
vinl13m - ldo30m
66+
vinl14m - ldo21m
67+
vinl15m - ldo10m, ldo22m, ldo26m, ldo27m
68+
4169
required:
4270
- compatible
4371
- interrupts
@@ -49,6 +77,7 @@ examples:
4977
- |
5078
#include <dt-bindings/gpio/gpio.h>
5179
#include <dt-bindings/interrupt-controller/irq.h>
80+
#include <dt-bindings/regulator/samsung,s2mpg10-regulator.h>
5281
5382
pmic {
5483
compatible = "samsung,s2mpg10-pmic";
@@ -58,12 +87,34 @@ examples:
5887
system-power-controller;
5988
wakeup-source;
6089
90+
vinl3m-supply = <&buck8m>;
91+
6192
clocks {
6293
compatible = "samsung,s2mpg10-clk";
6394
#clock-cells = <1>;
6495
clock-output-names = "rtc32k_ap", "peri32k1", "peri32k2";
6596
};
6697
6798
regulators {
99+
buck8m {
100+
regulator-name = "vdd_mif";
101+
regulator-min-microvolt = <450000>;
102+
regulator-max-microvolt = <1300000>;
103+
regulator-ramp-delay = <6250>;
104+
};
105+
106+
ldo1m {
107+
regulator-name = "vdd_ldo1";
108+
regulator-min-microvolt = <700000>;
109+
regulator-max-microvolt = <1300000>;
110+
};
111+
112+
ldo20m {
113+
regulator-name = "vdd_dmics";
114+
regulator-min-microvolt = <700000>;
115+
regulator-max-microvolt = <1300000>;
116+
regulator-always-on;
117+
samsung,ext-control = <S2MPG10_EXTCTRL_LDO20M_EN2>;
118+
};
68119
};
69120
};

0 commit comments

Comments
 (0)