From: Francesco Dolcini Date: Mon, 3 Jun 2024 08:35:57 +0000 (+0200) Subject: dt-bindings: usb: gpio-sbu-mux: Make 'enable-gpios' optional X-Git-Tag: v6.11-rc1~102^2~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f12e04c39e45b38d60263c41775b0a76b3f8dd0e;p=thirdparty%2Fkernel%2Flinux.git dt-bindings: usb: gpio-sbu-mux: Make 'enable-gpios' optional The enable gpio is not required when the SBU mux is used only for orientation, make enable-gpios required only for alternate mode switch use case. Acked-by: Conor Dooley Signed-off-by: Francesco Dolcini Link: https://lore.kernel.org/r/20240603083558.9629-2-francesco@dolcini.it Signed-off-by: Greg Kroah-Hartman --- diff --git a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml index 88e1607cf053a..30edcce82f970 100644 --- a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml +++ b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml @@ -44,13 +44,18 @@ properties: required: - compatible - - enable-gpios - select-gpios - orientation-switch - port allOf: - $ref: usb-switch.yaml# + - if: + required: + - mode-switch + then: + required: + - enable-gpios additionalProperties: false