2024-05-24 07:11:16

by Francesco Dolcini

[permalink] [raw]
Subject: [PATCH v1 0/2] usb: typec: mux: gpio-sbu: Make enable gpio optional

From: Francesco Dolcini <[email protected]>

The enable gpio is not required when the SBU mux is used only for orientation,
make it optional.

Francesco Dolcini (2):
dt-bindings: usb: gpio-sbu-mux: Make 'enable-gpios' optional
usb: typec: mux: gpio-sbu: Make enable gpio optional

.../devicetree/bindings/usb/gpio-sbu-mux.yaml | 7 ++++++-
drivers/usb/typec/mux/gpio-sbu-mux.c | 11 ++++++++---
2 files changed, 14 insertions(+), 4 deletions(-)

--
2.39.2



2024-05-24 07:11:20

by Francesco Dolcini

[permalink] [raw]
Subject: [PATCH v1 1/2] dt-bindings: usb: gpio-sbu-mux: Make 'enable-gpios' optional

From: Francesco Dolcini <[email protected]>

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.

Signed-off-by: Francesco Dolcini <[email protected]>
---
Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

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

--
2.39.2


2024-05-24 18:34:16

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] dt-bindings: usb: gpio-sbu-mux: Make 'enable-gpios' optional

On Fri, May 24, 2024 at 09:10:33AM +0200, Francesco Dolcini wrote:
> From: Francesco Dolcini <[email protected]>
>
> 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.
>
> Signed-off-by: Francesco Dolcini <[email protected]>

Acked-by: Conor Dooley <[email protected]>

Cheers,
Conor.


Attachments:
(No filename) (433.00 B)
signature.asc (235.00 B)
Download all attachments