Skip to contentSkip to conversation

dt-bindings: usb: gpio-sbu-mux: Add an entry for CBDTU02043

PATCH Superseded Fabio Estevam 3 participants 5 messages Sep 9, 2023 – Sep 10, 2023

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/3 dt-bindings: usb: gpio-sbu-mux: Add an entry for CBDTU02043

From: Fabio Estevam <[email protected]>

Add a compatible entry for the NXP CBDTU02043 GPIO-based mux hardware used for connecting, disconnecting and switching orientation of the SBU lines in USB Type-C applications.

CBTU02043 datasheet: https://www.nxp.com/docs/en/data-sheet/CBTU02043.pdf

---
 Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml +1 -0
index f196beb826d8..b61dcf8b4aad 100644
@@ -19,6 +19,7 @@ properties:
   compatible:
     items:
       - enum:
+          - nxp,cbdtu02043
           - onnn,fsusb43l10x
           - pericom,pi3usb102
       - const: gpio-sbu-mux
Signature · 1 line
2.34.1
author reviewer
#1 lore raw

PATCH 2/3 arm64: dts: imx8qxp-mek: Fix gpio-sbu-mux compatible

From: Fabio Estevam <[email protected]>

Per gpio-sbu-mux.yaml, the compatible entry is incomplete.

The imx8qxp-mek board uses a CBDTU02043, so complete the gpio-sbu-mux compatible accordingly.

This fixes the following schema warning:

imx8qxp-mek.dtb: gpio-sbu-mux: compatible:0: 'gpio-sbu-mux' is not one of ['onnn,fsusb43l10x', 'pericom,pi3usb102']
from schema $id: http://devicetree.org/schemas/usb/gpio-sbu-mux.yaml#

---
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +1 -1
index 7924b0969ad8..a06a6491ef20 100644
@@ -31,7 +31,7 @@ reg_usdhc2_vmmc: usdhc2-vmmc {
 	};
 
 	gpio-sbu-mux {
-		compatible = "gpio-sbu-mux";
+		compatible = "nxp,cbdtu02043","gpio-sbu-mux";
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_typec_mux>;
 		select-gpios = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>;
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 2/3] arm64: dts: imx8qxp-mek: Fix gpio-sbu-mux compatible

Quoted 22 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Per gpio-sbu-mux.yaml, the compatible entry is incomplete.

The imx8qxp-mek board uses a CBDTU02043, so complete the gpio-sbu-mux compatible accordingly.

This fixes the following schema warning:

imx8qxp-mek.dtb: gpio-sbu-mux: compatible:0: 'gpio-sbu-mux' is not one of ['onnn,fsusb43l10x', 'pericom,pi3usb102']
from schema $id: http://devicetree.org/schemas/usb/gpio-sbu-mux.yaml#

---
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +0 -0
index 7924b0969ad8..a06a6491ef20 100644

arch/arm64/boot/dts/freescale/imx8qxp-mek.dts reg_usdhc2_vmmc: usdhc2-vmmc { · line 34

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +1 -1
@@ -31,7 +31,7 @@ reg_usdhc2_vmmc: usdhc2-vmmc {
 	};
 
 	gpio-sbu-mux {
-		compatible = "gpio-sbu-mux";
+		compatible = "nxp,cbdtu02043","gpio-sbu-mux";

Missing space after ,

Best regards,
Krzysztof

author reviewer
#3 lore raw

PATCH 3/3 arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

Per gpio-sbu-mux.yaml, the 'mode-switch' property is mandatory.

Pass it to fix the following schema warning:

imx8qxp-mek.dtb: gpio-sbu-mux: 'mode-switch' is a required property
from schema $id: http://devicetree.org/schemas/usb/gpio-sbu-mux.yaml#

---
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +1 -0
index a06a6491ef20..f95b58c69c6a 100644
@@ -36,6 +36,7 @@ gpio-sbu-mux {
 		pinctrl-0 = <&pinctrl_typec_mux>;
 		select-gpios = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>;
 		enable-gpios = <&pca9557_a 7 GPIO_ACTIVE_LOW>;
+		mode-switch;
 		orientation-switch;
 
 		port {
Signature · 1 line
2.34.1
Acked-by on v1 1/3
#4 lore raw
In reply to Fabio Estevam
Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Add a compatible entry for the NXP CBDTU02043 GPIO-based mux hardware used for connecting, disconnecting and switching orientation of the SBU lines in USB Type-C applications.

CBTU02043 datasheet: https://www.nxp.com/docs/en/data-sheet/CBTU02043.pdf

---
 Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml +0 -0
index f196beb826d8..b61dcf8b4aad 100644

Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml properties: · line 25

Quoted 7 lines
Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml +1 -0
@@ -19,6 +19,7 @@ properties:
   compatible:
     items:
       - enum:
+          - nxp,cbdtu02043
           - onnn,fsusb43l10x
           - pericom,pi3usb102
       - const: gpio-sbu-mux

Thanks,
Conor.