Skip to content

Commit 1724e02

Browse files
committed
Merge tag 'regulator-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator updates from Mark Brown: "This is a fairly small release for the regulator API, there's quite a few new devices supported and some important improvements around coupled regulators in the core but mostly just small fixes and improvements otherwise. Summary: - Fixes and cleanups around the handling of coupled regulators. - A special driver for some Raspberry Pi panels with some unusually custom stuff around them. - Support for Qualcomm PM660/PM660L, PM8950 and PM8953, Richtek RT4801 and RTMV20, Rohm BD9576MUF and BD9573MUF" * tag 'regulator-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (89 commits) regulator: bd9576: Fix print regulator: bd9576: fix regulator binfdings dt node names dt-bindings: regulator: document pm8950 and pm8953 smd regulators regulator: qcom_smd: add pm8953 regulators regulator: Make constraint debug processing conditional on DEBUG regulator: qcom: labibb: Constify static structs regulator: dt-bindings: Document the PM660/PM660L PMICs entries regulator: qcom_smd: Add PM660/PM660L regulator support regulator: dt-bindings: Document the PM660/660L SPMI PMIC entries regulator: qcom_spmi: Add PM660/PM660L regulators regulator: qcom_spmi: Add support for new regulator types regulator: core: Enlarge max OF property name length to 64 chars regulator: tps65910: use regmap accessors regulator: rtmv20: Add missing regcache cache only before marked as dirty regulator: rtmv20: Update DT binding document and property name parsing regulator: rtmv20: Add DT-binding document for Richtek RTMV20 regulator: rtmv20: Adds support for Richtek RTMV20 load switch regulator regulator: resolve supply after creating regulator regulator: print symbolic errors in kernel messages regulator: print state at boot ...
2 parents 57218d7 + c6e70a6 commit 1724e02

77 files changed

Lines changed: 3498 additions & 1033 deletions

File tree

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/mp886x.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/mps,mp886x.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Monolithic Power Systems MP8867/MP8869 voltage regulator
8+
9+
maintainers:
10+
- Jisheng Zhang <jszhang@kernel.org>
11+
12+
allOf:
13+
- $ref: regulator.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- mps,mp8867
19+
- mps,mp8869
20+
21+
reg:
22+
maxItems: 1
23+
24+
enable-gpios:
25+
description: GPIO to enable/disable the regulator.
26+
maxItems: 1
27+
28+
mps,fb-voltage-divider:
29+
description: An array of two integers containing the resistor
30+
values R1 and R2 of the feedback voltage divider in kilo ohms.
31+
$ref: "/schemas/types.yaml#/definitions/uint32-array"
32+
maxItems: 2
33+
34+
mps,switch-frequency-hz:
35+
description: The valid switch frequency in Hertz.
36+
enum: [500000, 750000, 1000000, 1250000, 1500000]
37+
38+
required:
39+
- compatible
40+
- reg
41+
- enable-gpios
42+
- mps,fb-voltage-divider
43+
44+
examples:
45+
- |
46+
#include <dt-bindings/gpio/gpio.h>
47+
i2c {
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
regulator@62 {
51+
compatible = "mps,mp8869";
52+
regulator-name = "vcpu";
53+
regulator-min-microvolt = <800000>;
54+
regulator-max-microvolt = <1150000>;
55+
enable-gpios = <&porta 1 GPIO_ACTIVE_LOW>;
56+
mps,fb-voltage-divider = <80 240>;
57+
reg = <0x62>;
58+
};
59+
};
60+
61+
...
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/mt6360-regulator.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MT6360 Regulator from MediaTek Integrated
8+
9+
maintainers:
10+
- Gene Chen <gene_chen@richtek.com>
11+
12+
description: |
13+
list of regulators provided by this controller, must be named
14+
after their hardware counterparts buck1/2 or ldo1/2/3/5/6/7
15+
16+
properties:
17+
compatible:
18+
const: mediatek,mt6360-regulator
19+
20+
LDO_VIN1-supply:
21+
description: Input supply phandle(s) for LDO1/2/3
22+
LDO_VIN2-supply:
23+
description: Input supply phandle(s) for LDO5
24+
LDO_VIN3-supply:
25+
description: Input supply phandle(s) for LDO6/7
26+
27+
patternProperties:
28+
"^buck[12]$":
29+
$ref: "regulator.yaml#"
30+
31+
"^ldo[123567]$":
32+
$ref: "regulator.yaml#"
33+
34+
required:
35+
- compatible
36+
37+
additionalProperties: false
38+
39+
examples:
40+
- |
41+
#include <dt-bindings/interrupt-controller/irq.h>
42+
#include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
43+
regulator {
44+
compatible = "mediatek,mt6360-regulator";
45+
LDO_VIN3-supply = <&BUCK2>;
46+
buck1 {
47+
regulator-compatible = "BUCK1";
48+
regulator-name = "mt6360,buck1";
49+
regulator-min-microvolt = <300000>;
50+
regulator-max-microvolt = <1300000>;
51+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
52+
MT6360_OPMODE_LP
53+
MT6360_OPMODE_ULP>;
54+
};
55+
BUCK2: buck2 {
56+
regulator-compatible = "BUCK2";
57+
regulator-name = "mt6360,buck2";
58+
regulator-min-microvolt = <300000>;
59+
regulator-max-microvolt = <1300000>;
60+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
61+
MT6360_OPMODE_LP
62+
MT6360_OPMODE_ULP>;
63+
};
64+
ldo6 {
65+
regulator-compatible = "LDO6";
66+
regulator-name = "mt6360,ldo6";
67+
regulator-min-microvolt = <500000>;
68+
regulator-max-microvolt = <2100000>;
69+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
70+
MT6360_OPMODE_LP>;
71+
};
72+
ldo7 {
73+
regulator-compatible = "LDO7";
74+
regulator-name = "mt6360,ldo7";
75+
regulator-min-microvolt = <500000>;
76+
regulator-max-microvolt = <2100000>;
77+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
78+
MT6360_OPMODE_LP>;
79+
};
80+
ldo1 {
81+
regulator-compatible = "LDO1";
82+
regulator-name = "mt6360,ldo1";
83+
regulator-min-microvolt = <1200000>;
84+
regulator-max-microvolt = <3600000>;
85+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
86+
MT6360_OPMODE_LP>;
87+
};
88+
ldo2 {
89+
regulator-compatible = "LDO2";
90+
regulator-name = "mt6360,ldo2";
91+
regulator-min-microvolt = <1200000>;
92+
regulator-max-microvolt = <3600000>;
93+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
94+
MT6360_OPMODE_LP>;
95+
};
96+
ldo3 {
97+
regulator-compatible = "LDO3";
98+
regulator-name = "mt6360,ldo3";
99+
regulator-min-microvolt = <1200000>;
100+
regulator-max-microvolt = <3600000>;
101+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
102+
MT6360_OPMODE_LP>;
103+
};
104+
ldo5 {
105+
regulator-compatible = "LDO5";
106+
regulator-name = "mt6360,ldo5";
107+
regulator-min-microvolt = <2700000>;
108+
regulator-max-microvolt = <3600000>;
109+
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
110+
MT6360_OPMODE_LP>;
111+
};
112+
};
113+
...

0 commit comments

Comments
 (0)