dt-bindings: pm8941-misc: Fix usb_id and usb_vbus definitions
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 28 Dec 2022 13:30:57 +0000 (13:30 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 29 May 2023 14:30:15 +0000 (23:30 +0900)
commit347774f7fc34448a44df3933164520b521791128
tree6550686d6b09b9a86d940c28acbbfd932756e3f2
parent33ea262b2b693c63df5f6de96ae81c39f2648836
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>
Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml