Skip to content

Commit 98537ee

Browse files
committed
Merge tag 'regulator-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator updates from Mark Brown: "A couple of new features in the core, the most interesting one being support for complex regulator coupling configurations initially targeted at nVidia Tegra SoCs, and some new drivers but otherwise quite a quiet release. Summary: - Core support for gradual ramping of voltages for devices that can't manage large changes in hardware from Bartosz Golaszewski. - Core support for systems that have complex coupling requirements best described via code, contributed by Dmitry Osipenko. - New drivers for Dialog SLG51000, Qualcomm PM8005 and ST Microelectronics STM32-Booster" * tag 'regulator-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (52 commits) regulator: max77650: use vsel_step regulator: implement selector stepping regulator: max77650: add MODULE_ALIAS() regulator: max77620: remove redundant assignment to variable ret dt-bindings: regulator: add support for the stm32-booster regulator: add support for the stm32-booster regulator: s2mps11: Adjust supported buck voltages to real values regulator: s2mps11: Fix buck7 and buck8 wrong voltages gpio: Fix return value mismatch of function gpiod_get_from_of_node() regulator: core: Expose some of core functions needed by couplers regulator: core: Introduce API for regulators coupling customization regulator: s2mps11: Add support for disabling S2MPS11 regulators in suspend regulator: s2mps11: Reduce number of rdev_get_id() calls regulator: qcom_spmi: Do NULL check for lvs regulator: qcom_spmi: Fix math of spmi_regulator_set_voltage_time_sel regulator: da9061/62: Adjust LDO voltage selection minimum value regulator: s2mps11: Fix ERR_PTR dereference on GPIO lookup failure regulator: qcom_spmi: add PMS405 SPMI regulator dt-bindings: qcom_spmi: Document pms405 support arm64: dts: msm8998-mtp: Add pm8005_s1 regulator ...
2 parents 12a5146 + 0ed4513 commit 98537ee

50 files changed

Lines changed: 2862 additions & 762 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/regulator/arizona-regulator.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ of analogue I/O.
55

66
This document lists regulator specific bindings, see the primary binding
77
document:
8-
../mfd/arizona.txt
8+
For Wolfson Microelectronic Arizona codecs: ../mfd/arizona.txt
9+
For Cirrus Logic Madera codecs: ../mfd/madera.txt
910

1011
Optional properties:
1112
- wlf,ldoena : GPIO specifier for the GPIO controlling LDOENA

‎Documentation/devicetree/bindings/regulator/fixed-regulator.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ maintainers:
1212

1313
description:
1414
Any property defined as part of the core regulator binding, defined in
15-
regulator.txt, can also be used. However a fixed voltage regulator is
15+
regulator.yaml, can also be used. However a fixed voltage regulator is
1616
expected to have the regulator-min-microvolt and regulator-max-microvolt
1717
to be the same.
1818

19+
allOf:
20+
- $ref: "regulator.yaml#"
21+
1922
properties:
2023
compatible:
2124
const: regulator-fixed

‎Documentation/devicetree/bindings/regulator/gpio-regulator.txt‎

Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/gpio-regulator.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: GPIO controlled regulators
8+
9+
maintainers:
10+
- Liam Girdwood <lgirdwood@gmail.com>
11+
- Mark Brown <broonie@kernel.org>
12+
13+
description:
14+
Any property defined as part of the core regulator binding, defined in
15+
regulator.txt, can also be used.
16+
17+
allOf:
18+
- $ref: "regulator.yaml#"
19+
20+
properties:
21+
compatible:
22+
const: regulator-gpio
23+
24+
regulator-name: true
25+
26+
enable-gpios:
27+
description: GPIO to use to enable/disable the regulator.
28+
Warning, the GPIO phandle flags are ignored and the GPIO polarity is
29+
controlled solely by the presence of "enable-active-high" DT property.
30+
This is due to compatibility with old DTs.
31+
maxItems: 1
32+
33+
gpios:
34+
description: Array of one or more GPIO pins used to select the regulator
35+
voltage/current listed in "states".
36+
minItems: 1
37+
maxItems: 8 # Should be enough...
38+
39+
gpios-states:
40+
description: |
41+
On operating systems, that don't support reading back gpio values in
42+
output mode (most notably linux), this array provides the state of GPIO
43+
pins set when requesting them from the gpio controller. Systems, that are
44+
capable of preserving state when requesting the lines, are free to ignore
45+
this property.
46+
0: LOW
47+
1: HIGH
48+
Default is LOW if nothing else is specified.
49+
allOf:
50+
- $ref: /schemas/types.yaml#/definitions/uint32-array
51+
- maxItems: 8
52+
items:
53+
enum: [ 0, 1 ]
54+
default: 0
55+
56+
states:
57+
description: Selection of available voltages/currents provided by this
58+
regulator and matching GPIO configurations to achieve them. If there are
59+
no states in the "states" array, use a fixed regulator instead.
60+
allOf:
61+
- $ref: /schemas/types.yaml#/definitions/uint32-matrix
62+
- maxItems: 8
63+
items:
64+
items:
65+
- description: Voltage in microvolts
66+
- description: GPIO group state value
67+
68+
startup-delay-us:
69+
description: startup time in microseconds
70+
71+
enable-active-high:
72+
description: Polarity of "enable-gpio" GPIO is active HIGH. Default is
73+
active LOW.
74+
type: boolean
75+
76+
gpio-open-drain:
77+
description:
78+
GPIO is open drain type. If this property is missing then default
79+
assumption is false.
80+
type: boolean
81+
82+
regulator-type:
83+
description: Specifies what is being regulated.
84+
allOf:
85+
- $ref: /schemas/types.yaml#/definitions/string
86+
- enum:
87+
- voltage
88+
- current
89+
default: voltage
90+
91+
required:
92+
- compatible
93+
- regulator-name
94+
- gpios
95+
- states
96+
97+
examples:
98+
- |
99+
gpio-regulator {
100+
compatible = "regulator-gpio";
101+
102+
regulator-name = "mmci-gpio-supply";
103+
regulator-min-microvolt = <1800000>;
104+
regulator-max-microvolt = <2600000>;
105+
regulator-boot-on;
106+
107+
enable-gpios = <&gpio0 23 0x4>;
108+
gpios = <&gpio0 24 0x4
109+
&gpio0 25 0x4>;
110+
states = <1800000 0x3>,
111+
<2200000 0x2>,
112+
<2600000 0x1>,
113+
<2900000 0x0>;
114+
115+
startup-delay-us = <100000>;
116+
enable-active-high;
117+
};
118+
...

‎Documentation/devicetree/bindings/regulator/max8660.txt‎

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/max8660.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Maxim MAX8660 voltage regulator
8+
9+
maintainers:
10+
- Daniel Mack <zonque@gmail.com>
11+
12+
properties:
13+
$nodename:
14+
pattern: "pmic@[0-9a-f]{1,2}"
15+
compatible:
16+
enum:
17+
- maxim,max8660
18+
- maxim,max8661
19+
20+
reg:
21+
maxItems: 1
22+
23+
regulators:
24+
type: object
25+
26+
patternProperties:
27+
"regulator-.+":
28+
$ref: "regulator.yaml#"
29+
30+
additionalProperties: false
31+
32+
additionalProperties: false
33+
34+
examples:
35+
- |
36+
i2c {
37+
#address-cells = <1>;
38+
#size-cells = <0>;
39+
40+
pmic@34 {
41+
compatible = "maxim,max8660";
42+
reg = <0x34>;
43+
44+
regulators {
45+
regulator-V3 {
46+
regulator-compatible= "V3(DCDC)";
47+
regulator-min-microvolt = <725000>;
48+
regulator-max-microvolt = <1800000>;
49+
};
50+
51+
regulator-V4 {
52+
regulator-compatible= "V4(DCDC)";
53+
regulator-min-microvolt = <725000>;
54+
regulator-max-microvolt = <1800000>;
55+
};
56+
57+
regulator-V5 {
58+
regulator-compatible= "V5(LDO)";
59+
regulator-min-microvolt = <1700000>;
60+
regulator-max-microvolt = <2000000>;
61+
};
62+
63+
regulator-V6 {
64+
regulator-compatible= "V6(LDO)";
65+
regulator-min-microvolt = <1800000>;
66+
regulator-max-microvolt = <3300000>;
67+
};
68+
69+
regulator-V7 {
70+
regulator-compatible= "V7(LDO)";
71+
regulator-min-microvolt = <1800000>;
72+
regulator-max-microvolt = <3300000>;
73+
};
74+
};
75+
};
76+
};
77+
...

‎Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ Qualcomm SPMI Regulators
44
Usage: required
55
Value type: <string>
66
Definition: must be one of:
7+
"qcom,pm8005-regulators"
78
"qcom,pm8841-regulators"
89
"qcom,pm8916-regulators"
910
"qcom,pm8941-regulators"
1011
"qcom,pm8994-regulators"
1112
"qcom,pmi8994-regulators"
13+
"qcom,pms405-regulators"
1214

1315
- interrupts:
1416
Usage: optional
@@ -110,6 +112,23 @@ Qualcomm SPMI Regulators
110112
Definition: Reference to regulator supplying the input pin, as
111113
described in the data sheet.
112114

115+
- vdd_l1_l2-supply:
116+
- vdd_l3_l8-supply:
117+
- vdd_l4-supply:
118+
- vdd_l5_l6-supply:
119+
- vdd_l10_l11_l12_l13-supply:
120+
- vdd_l7-supply:
121+
- vdd_l9-supply:
122+
- vdd_s1-supply:
123+
- vdd_s2-supply:
124+
- vdd_s3-supply:
125+
- vdd_s4-supply:
126+
- vdd_s5-supply
127+
Usage: optional (pms405 only)
128+
Value type: <phandle>
129+
Definition: Reference to regulator supplying the input pin, as
130+
described in the data sheet.
131+
113132
- qcom,saw-reg:
114133
Usage: optional
115134
Value type: <phandle>
@@ -120,6 +139,9 @@ The regulator node houses sub-nodes for each regulator within the device. Each
120139
sub-node is identified using the node's name, with valid values listed for each
121140
of the PMICs below.
122141

142+
pm8005:
143+
s1, s2, s3, s4
144+
123145
pm8841:
124146
s1, s2, s3, s4, s5, s6, s7, s8
125147

0 commit comments

Comments
 (0)