]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: extcon: linux,extcon-usb-gpio: GPIO must be provided
authorDavid Heidelberg <david@ixit.cz>
Thu, 4 Sep 2025 20:41:44 +0000 (22:41 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Sep 2025 06:13:06 +0000 (15:13 +0900)
Without providing either ID or VBUS GPIO the driver is not able to operate.
Original text binding says:
  "Either one of id-gpio or vbus-gpio must be present."

Fixes: 79a31ce03f41 ("dt-bindings: extcon: convert extcon-usb-gpio.txt to yaml format")
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/lkml/20250904-yaml-extcon-usb-gpio-v2-1-a5c4afa496c3@ixit.cz/
Documentation/devicetree/bindings/extcon/linux,extcon-usb-gpio.yaml

index 8856107bdd33b8654812ab9c97e85e23dc2ef75a..8f29d333602b95fe5ccd8464aa64e2d1f0c1c781 100644 (file)
@@ -25,6 +25,12 @@ properties:
 required:
   - compatible
 
+anyOf:
+  - required:
+      - id-gpios
+  - required:
+      - vbus-gpios
+
 additionalProperties: false
 
 examples: