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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mfd: st,stpmic1: Merge patterns for nodes

Properties should be described only once, thus having separate pattern
for children just to specify the $ref to regulator.yaml is not correct.
It also makes impossible to finish it with
additional/unevaluatedProperties:false to restrict allowed properties in
regulator node.

Merge the patterns, so each regulator subnode has regulator.yaml $ref,
additional properties and ends with additionalProperties:false. This
points to missing regulator-min/max-microvolt in LDO4 node.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230726065633.74924-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
70d39151 881e367a

+9 -3
+9 -3
Documentation/devicetree/bindings/mfd/st,stpmic1.yaml
··· 106 106 const: st,stpmic1-regulators 107 107 108 108 ldo3: 109 + $ref: /schemas/regulator/regulator.yaml 109 110 type: object 110 111 111 112 properties: ··· 129 128 additionalProperties: false 130 129 131 130 ldo4: 131 + $ref: /schemas/regulator/regulator.yaml 132 132 type: object 133 133 134 134 properties: ··· 144 142 regulator-name: true 145 143 regulator-boot-on: true 146 144 regulator-always-on: true 145 + regulator-min-microvolt: true 146 + regulator-max-microvolt: true 147 147 regulator-over-current-protection: true 148 148 149 149 additionalProperties: false 150 150 151 151 vref_ddr: 152 + $ref: /schemas/regulator/regulator.yaml 152 153 type: object 153 154 154 155 properties: ··· 170 165 additionalProperties: false 171 166 172 167 boost: 168 + $ref: /schemas/regulator/regulator.yaml 173 169 type: object 174 170 175 171 properties: ··· 193 187 "^(buck[1-4]|ldo[1-6]|vref_ddr|boost|pwr_sw[1-2])-supply$": 194 188 description: STPMIC1 voltage regulators supplies 195 189 196 - "^(buck[1-4]|ldo[1-6]|boost|vref_ddr|pwr_sw[1-2])$": 197 - $ref: ../regulator/regulator.yaml 198 - 199 190 "^ldo[1-2,5-6]$": 191 + $ref: /schemas/regulator/regulator.yaml 200 192 type: object 201 193 202 194 properties: ··· 217 213 additionalProperties: false 218 214 219 215 "^buck[1-4]$": 216 + $ref: /schemas/regulator/regulator.yaml 220 217 type: object 221 218 222 219 properties: ··· 242 237 additionalProperties: false 243 238 244 239 "^pwr_sw[1-2]$": 240 + $ref: /schemas/regulator/regulator.yaml 245 241 type: object 246 242 247 243 properties: