Skip to content

Commit 2a17ddf

Browse files
robherringbroonie
authored andcommitted
dt-bindings: Add missing 'unevaluatedProperties' to regulator nodes
Several regulator schemas are missing 'unevaluatedProperties' constraint which means any extra properties are allowed. Upon adding the constraint, there's numerous warnings from using the deprecated 'regulator-compatible' property. Remove the usage as examples shouldn't be using long since deprecated properties. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Lee Jones <lee@kernel.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://lore.kernel.org/r/20221206211554.92005-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent cf34ac6 commit 2a17ddf

File tree

6 files changed

+6
-26
lines changed

6 files changed

+6
-26
lines changed

Documentation/devicetree/bindings/mfd/max77650.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,12 @@ examples:
100100
compatible = "maxim,max77650-regulator";
101101
102102
max77650_ldo: regulator-ldo {
103-
regulator-compatible = "ldo";
104103
regulator-name = "max77650-ldo";
105104
regulator-min-microvolt = <1350000>;
106105
regulator-max-microvolt = <2937500>;
107106
};
108107
109108
max77650_sbb0: regulator-sbb0 {
110-
regulator-compatible = "sbb0";
111109
regulator-name = "max77650-sbb0";
112110
regulator-min-microvolt = <800000>;
113111
regulator-max-microvolt = <1587500>;

Documentation/devicetree/bindings/mfd/mediatek,mt6360.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ examples:
8383
richtek,vinovp-microvolt = <14500000>;
8484
8585
otg_vbus_regulator: usb-otg-vbus-regulator {
86-
regulator-compatible = "usb-otg-vbus";
8786
regulator-name = "usb-otg-vbus";
8887
regulator-min-microvolt = <4425000>;
8988
regulator-max-microvolt = <5825000>;
@@ -145,7 +144,6 @@ examples:
145144
compatible = "mediatek,mt6360-regulator";
146145
LDO_VIN3-supply = <&BUCK2>;
147146
buck1 {
148-
regulator-compatible = "BUCK1";
149147
regulator-name = "mt6360,buck1";
150148
regulator-min-microvolt = <300000>;
151149
regulator-max-microvolt = <1300000>;
@@ -154,7 +152,6 @@ examples:
154152
MT6360_OPMODE_ULP>;
155153
};
156154
BUCK2: buck2 {
157-
regulator-compatible = "BUCK2";
158155
regulator-name = "mt6360,buck2";
159156
regulator-min-microvolt = <300000>;
160157
regulator-max-microvolt = <1300000>;
@@ -163,47 +160,41 @@ examples:
163160
MT6360_OPMODE_ULP>;
164161
};
165162
ldo6 {
166-
regulator-compatible = "LDO6";
167163
regulator-name = "mt6360,ldo6";
168164
regulator-min-microvolt = <500000>;
169165
regulator-max-microvolt = <2100000>;
170166
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
171167
MT6360_OPMODE_LP>;
172168
};
173169
ldo7 {
174-
regulator-compatible = "LDO7";
175170
regulator-name = "mt6360,ldo7";
176171
regulator-min-microvolt = <500000>;
177172
regulator-max-microvolt = <2100000>;
178173
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
179174
MT6360_OPMODE_LP>;
180175
};
181176
ldo1 {
182-
regulator-compatible = "LDO1";
183177
regulator-name = "mt6360,ldo1";
184178
regulator-min-microvolt = <1200000>;
185179
regulator-max-microvolt = <3600000>;
186180
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
187181
MT6360_OPMODE_LP>;
188182
};
189183
ldo2 {
190-
regulator-compatible = "LDO2";
191184
regulator-name = "mt6360,ldo2";
192185
regulator-min-microvolt = <1200000>;
193186
regulator-max-microvolt = <3600000>;
194187
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
195188
MT6360_OPMODE_LP>;
196189
};
197190
ldo3 {
198-
regulator-compatible = "LDO3";
199191
regulator-name = "mt6360,ldo3";
200192
regulator-min-microvolt = <1200000>;
201193
regulator-max-microvolt = <3600000>;
202194
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
203195
MT6360_OPMODE_LP>;
204196
};
205197
ldo5 {
206-
regulator-compatible = "LDO5";
207198
regulator-name = "mt6360,ldo5";
208199
regulator-min-microvolt = <2700000>;
209200
regulator-max-microvolt = <3600000>;

Documentation/devicetree/bindings/power/supply/mt6360_charger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
type: object
2727
description: OTG boost regulator.
2828
$ref: /schemas/regulator/regulator.yaml#
29+
unevaluatedProperties: false
2930

3031
required:
3132
- compatible
@@ -39,7 +40,6 @@ examples:
3940
richtek,vinovp-microvolt = <14500000>;
4041
4142
otg_vbus_regulator: usb-otg-vbus-regulator {
42-
regulator-compatible = "usb-otg-vbus";
4343
regulator-name = "usb-otg-vbus";
4444
regulator-min-microvolt = <4425000>;
4545
regulator-max-microvolt = <5825000>;

Documentation/devicetree/bindings/regulator/max77650-regulator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
patternProperties:
2727
"^regulator-(ldo|sbb[0-2])$":
2828
$ref: "regulator.yaml#"
29+
unevaluatedProperties: false
2930

3031
required:
3132
- compatible

Documentation/devicetree/bindings/regulator/max8660.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
patternProperties:
2727
"regulator-.+":
2828
$ref: "regulator.yaml#"
29+
unevaluatedProperties: false
2930

3031
additionalProperties: false
3132

@@ -43,31 +44,26 @@ examples:
4344
4445
regulators {
4546
regulator-V3 {
46-
regulator-compatible= "V3(DCDC)";
4747
regulator-min-microvolt = <725000>;
4848
regulator-max-microvolt = <1800000>;
4949
};
5050
5151
regulator-V4 {
52-
regulator-compatible= "V4(DCDC)";
5352
regulator-min-microvolt = <725000>;
5453
regulator-max-microvolt = <1800000>;
5554
};
5655
5756
regulator-V5 {
58-
regulator-compatible= "V5(LDO)";
5957
regulator-min-microvolt = <1700000>;
6058
regulator-max-microvolt = <2000000>;
6159
};
6260
6361
regulator-V6 {
64-
regulator-compatible= "V6(LDO)";
6562
regulator-min-microvolt = <1800000>;
6663
regulator-max-microvolt = <3300000>;
6764
};
6865
6966
regulator-V7 {
70-
regulator-compatible= "V7(LDO)";
7167
regulator-min-microvolt = <1800000>;
7268
regulator-max-microvolt = <3300000>;
7369
};

Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ properties:
2727
patternProperties:
2828
"^buck[12]$":
2929
$ref: "regulator.yaml#"
30+
unevaluatedProperties: false
3031

3132
"^ldo[123567]$":
3233
$ref: "regulator.yaml#"
34+
unevaluatedProperties: false
3335

3436
required:
3537
- compatible
@@ -44,7 +46,6 @@ examples:
4446
compatible = "mediatek,mt6360-regulator";
4547
LDO_VIN3-supply = <&BUCK2>;
4648
buck1 {
47-
regulator-compatible = "BUCK1";
4849
regulator-name = "mt6360,buck1";
4950
regulator-min-microvolt = <300000>;
5051
regulator-max-microvolt = <1300000>;
@@ -53,7 +54,6 @@ examples:
5354
MT6360_OPMODE_ULP>;
5455
};
5556
BUCK2: buck2 {
56-
regulator-compatible = "BUCK2";
5757
regulator-name = "mt6360,buck2";
5858
regulator-min-microvolt = <300000>;
5959
regulator-max-microvolt = <1300000>;
@@ -62,47 +62,41 @@ examples:
6262
MT6360_OPMODE_ULP>;
6363
};
6464
ldo6 {
65-
regulator-compatible = "LDO6";
6665
regulator-name = "mt6360,ldo6";
6766
regulator-min-microvolt = <500000>;
6867
regulator-max-microvolt = <2100000>;
6968
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
7069
MT6360_OPMODE_LP>;
7170
};
7271
ldo7 {
73-
regulator-compatible = "LDO7";
7472
regulator-name = "mt6360,ldo7";
7573
regulator-min-microvolt = <500000>;
7674
regulator-max-microvolt = <2100000>;
7775
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
7876
MT6360_OPMODE_LP>;
7977
};
8078
ldo1 {
81-
regulator-compatible = "LDO1";
8279
regulator-name = "mt6360,ldo1";
8380
regulator-min-microvolt = <1200000>;
8481
regulator-max-microvolt = <3600000>;
8582
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
8683
MT6360_OPMODE_LP>;
8784
};
88-
ldo2 {
89-
regulator-compatible = "LDO2";
85+
ldo2 {
9086
regulator-name = "mt6360,ldo2";
9187
regulator-min-microvolt = <1200000>;
9288
regulator-max-microvolt = <3600000>;
9389
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
9490
MT6360_OPMODE_LP>;
9591
};
9692
ldo3 {
97-
regulator-compatible = "LDO3";
9893
regulator-name = "mt6360,ldo3";
9994
regulator-min-microvolt = <1200000>;
10095
regulator-max-microvolt = <3600000>;
10196
regulator-allowed-modes = <MT6360_OPMODE_NORMAL
10297
MT6360_OPMODE_LP>;
10398
};
10499
ldo5 {
105-
regulator-compatible = "LDO5";
106100
regulator-name = "mt6360,ldo5";
107101
regulator-min-microvolt = <2700000>;
108102
regulator-max-microvolt = <3600000>;

0 commit comments

Comments
 (0)