diff options
| author | Francesco Dolcini <[email protected]> | 2024-06-03 10:35:57 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-06-04 15:44:57 +0200 |
| commit | f12e04c39e45b38d60263c41775b0a76b3f8dd0e (patch) | |
| tree | 5e4782d172948df3d6abc5198b9e073673b8ba58 | |
| parent | c313a44ac9cda60431bdc7dcdb4b135eaef31785 (diff) | |
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 <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml index 88e1607cf053..30edcce82f97 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 |