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: pm8941-misc: Fix usb_id and usb_vbus definitions

dts validation is throwing an error for me on 8916 and 8939 with
extcon@1300. In that case we have usb_vbus but not usb_id.

It wasn't immediately obvious if there was a valid use-case for the
existing code for usb_id in isolation, however discussing further, we
concluded that usb_id, usb_vbus or (usb_id | usb_vbus) are valid
combinations as an external IC may be responsible for usb_id or usb_vbus.

Expand the definition with anyOf to capture the three different valid
modes.

Fixes: 4fcdd677c4ea ("bindings: pm8941-misc: Add support for VBUS detection")
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Bryan O'Donoghue and committed by
Chanwoo Choi
347774f7 33ea262b

+8 -4
+8 -4
Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml
··· 27 27 28 28 interrupt-names: 29 29 minItems: 1 30 - items: 31 - - const: usb_id 32 - - const: usb_vbus 33 - 30 + anyOf: 31 + - items: 32 + - const: usb_id 33 + - const: usb_vbus 34 + - items: 35 + - const: usb_id 36 + - items: 37 + - const: usb_vbus 34 38 required: 35 39 - compatible 36 40 - reg