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: regulator: qcom,usb-vbus-regulator: Mark regulator-*-microamp required

The VBUS driver needs to know the regulator-min-microamp and
regulator-max-microamp so they should both be marked as required.

regulator.yaml defines those two dependencies so include regulator.yaml.

We need to change from additionalProperties: false to
unevaluatedProperties: false.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20230515133643.3621656-3-bryan.odonoghue@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bryan O'Donoghue and committed by
Greg Kroah-Hartman
581d79f7 4c186faa

+8 -1
+8 -1
Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
··· 14 14 regulator will be enabled in situations where the device is required to 15 15 provide power to the connected peripheral. 16 16 17 + allOf: 18 + - $ref: regulator.yaml# 19 + 17 20 properties: 18 21 compatible: 19 22 enum: ··· 29 26 required: 30 27 - compatible 31 28 - reg 29 + - regulator-min-microamp 30 + - regulator-max-microamp 32 31 33 - additionalProperties: false 32 + unevaluatedProperties: false 34 33 35 34 examples: 36 35 - | ··· 42 37 pm8150b_vbus: usb-vbus-regulator@1100 { 43 38 compatible = "qcom,pm8150b-vbus-reg"; 44 39 reg = <0x1100>; 40 + regulator-min-microamp = <500000>; 41 + regulator-max-microamp = <3000000>; 45 42 }; 46 43 }; 47 44 ...