Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: dt-bindings: mt6357: Drop fixed compatible requirement

Some of the regulators on the MT6357 PMIC currently reference the
fixed-regulator dt-binding, which enforces the presence of a
regulator-fixed compatible. However since all regulators on the MT6357
PMIC are handled by a single mt6357-regulator driver, probed through
MFD, the compatibles don't serve any purpose. In fact they cause
failures in the DT kselftest since they aren't probed by the fixed
regulator driver as would be expected. Furthermore this is the only
dt-binding in this family like this: mt6359-regulator and
mt6358-regulator don't require those compatibles.

Commit d77e89b7b03f ("arm64: dts: mediatek: mt6357: Drop regulator-fixed
compatibles") removed the compatibles from Devicetree, but missed
updating the binding, which still requires them, introducing dt-binding
errors. Remove the compatible requirement by referencing the plain
regulator dt-binding instead to fix the dt-binding errors.

Fixes: d77e89b7b03f ("arm64: dts: mediatek: mt6357: Drop regulator-fixed compatibles")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://patch.msgid.link/20250514-mt6357-regulator-fixed-compatibles-removal-bindings-v1-1-2421e9cc6cc7@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Nícolas F. R. A. Prado and committed by
Mark Brown
9cfdd775 cad915e4

+1 -11
+1 -11
Documentation/devicetree/bindings/regulator/mediatek,mt6357-regulator.yaml
··· 33 33 34 34 "^ldo-v(camio18|aud28|aux18|io18|io28|rf12|rf18|cn18|cn28|fe28)$": 35 35 type: object 36 - $ref: fixed-regulator.yaml# 36 + $ref: regulator.yaml# 37 37 unevaluatedProperties: false 38 38 description: 39 39 Properties for single fixed LDO regulator. ··· 112 112 regulator-enable-ramp-delay = <220>; 113 113 }; 114 114 mt6357_vfe28_reg: ldo-vfe28 { 115 - compatible = "regulator-fixed"; 116 115 regulator-name = "vfe28"; 117 116 regulator-min-microvolt = <2800000>; 118 117 regulator-max-microvolt = <2800000>; ··· 124 125 regulator-enable-ramp-delay = <110>; 125 126 }; 126 127 mt6357_vrf18_reg: ldo-vrf18 { 127 - compatible = "regulator-fixed"; 128 128 regulator-name = "vrf18"; 129 129 regulator-min-microvolt = <1800000>; 130 130 regulator-max-microvolt = <1800000>; 131 131 regulator-enable-ramp-delay = <110>; 132 132 }; 133 133 mt6357_vrf12_reg: ldo-vrf12 { 134 - compatible = "regulator-fixed"; 135 134 regulator-name = "vrf12"; 136 135 regulator-min-microvolt = <1200000>; 137 136 regulator-max-microvolt = <1200000>; ··· 154 157 regulator-enable-ramp-delay = <264>; 155 158 }; 156 159 mt6357_vcn28_reg: ldo-vcn28 { 157 - compatible = "regulator-fixed"; 158 160 regulator-name = "vcn28"; 159 161 regulator-min-microvolt = <2800000>; 160 162 regulator-max-microvolt = <2800000>; 161 163 regulator-enable-ramp-delay = <264>; 162 164 }; 163 165 mt6357_vcn18_reg: ldo-vcn18 { 164 - compatible = "regulator-fixed"; 165 166 regulator-name = "vcn18"; 166 167 regulator-min-microvolt = <1800000>; 167 168 regulator-max-microvolt = <1800000>; ··· 178 183 regulator-enable-ramp-delay = <264>; 179 184 }; 180 185 mt6357_vcamio_reg: ldo-vcamio18 { 181 - compatible = "regulator-fixed"; 182 186 regulator-name = "vcamio"; 183 187 regulator-min-microvolt = <1800000>; 184 188 regulator-max-microvolt = <1800000>; ··· 206 212 regulator-always-on; 207 213 }; 208 214 mt6357_vaux18_reg: ldo-vaux18 { 209 - compatible = "regulator-fixed"; 210 215 regulator-name = "vaux18"; 211 216 regulator-min-microvolt = <1800000>; 212 217 regulator-max-microvolt = <1800000>; 213 218 regulator-enable-ramp-delay = <264>; 214 219 }; 215 220 mt6357_vaud28_reg: ldo-vaud28 { 216 - compatible = "regulator-fixed"; 217 221 regulator-name = "vaud28"; 218 222 regulator-min-microvolt = <2800000>; 219 223 regulator-max-microvolt = <2800000>; 220 224 regulator-enable-ramp-delay = <264>; 221 225 }; 222 226 mt6357_vio28_reg: ldo-vio28 { 223 - compatible = "regulator-fixed"; 224 227 regulator-name = "vio28"; 225 228 regulator-min-microvolt = <2800000>; 226 229 regulator-max-microvolt = <2800000>; 227 230 regulator-enable-ramp-delay = <264>; 228 231 }; 229 232 mt6357_vio18_reg: ldo-vio18 { 230 - compatible = "regulator-fixed"; 231 233 regulator-name = "vio18"; 232 234 regulator-min-microvolt = <1800000>; 233 235 regulator-max-microvolt = <1800000>;