devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/3] dt-bindings: usb: gpio-sbu-mux: Add an entry for CBDTU02043
@ 2023-09-26 10:28 Fabio Estevam
  2023-09-26 10:28 ` [PATCH v2 2/3] arm64: dts: imx8qxp-mek: Fix gpio-sbu-mux compatible Fabio Estevam
  2023-09-26 10:28 ` [PATCH v2 3/3] arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch Fabio Estevam
  0 siblings, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2023-09-26 10:28 UTC (permalink / raw)
  To: shawnguo
  Cc: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
	linux-arm-kernel, linux-imx, Fabio Estevam, Conor Dooley

From: Fabio Estevam <festevam@denx.de>

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

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
---
Changes since v1:
- None. Only collected Conor's Ack.

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

diff --git a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml
index f196beb826d8..b61dcf8b4aad 100644
--- a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml
+++ b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml
@@ -19,6 +19,7 @@ properties:
   compatible:
     items:
       - enum:
+          - nxp,cbdtu02043
           - onnn,fsusb43l10x
           - pericom,pi3usb102
       - const: gpio-sbu-mux
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/3] arm64: dts: imx8qxp-mek: Fix gpio-sbu-mux compatible
  2023-09-26 10:28 [PATCH v2 1/3] dt-bindings: usb: gpio-sbu-mux: Add an entry for CBDTU02043 Fabio Estevam
@ 2023-09-26 10:28 ` Fabio Estevam
  2023-09-26 10:28 ` [PATCH v2 3/3] arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch Fabio Estevam
  1 sibling, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2023-09-26 10:28 UTC (permalink / raw)
  To: shawnguo
  Cc: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
	linux-arm-kernel, linux-imx, Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

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#
	
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v1:
- Added space to separate compatible entries. (Krzysztof)

 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
index 7924b0969ad8..a06a6491ef20 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
+++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
@@ -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>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 3/3]  arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch
  2023-09-26 10:28 [PATCH v2 1/3] dt-bindings: usb: gpio-sbu-mux: Add an entry for CBDTU02043 Fabio Estevam
  2023-09-26 10:28 ` [PATCH v2 2/3] arm64: dts: imx8qxp-mek: Fix gpio-sbu-mux compatible Fabio Estevam
@ 2023-09-26 10:28 ` Fabio Estevam
  2023-09-27  3:11   ` Jun Li
  1 sibling, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2023-09-26 10:28 UTC (permalink / raw)
  To: shawnguo
  Cc: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, devicetree,
	linux-arm-kernel, linux-imx, Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

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#

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v1:
- None.

 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
index a06a6491ef20..f95b58c69c6a 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
+++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
@@ -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 {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH v2 3/3]  arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch
  2023-09-26 10:28 ` [PATCH v2 3/3] arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch Fabio Estevam
@ 2023-09-27  3:11   ` Jun Li
  2023-09-27 12:03     ` Fabio Estevam
  0 siblings, 1 reply; 5+ messages in thread
From: Jun Li @ 2023-09-27  3:11 UTC (permalink / raw)
  To: Fabio Estevam, shawnguo@kernel.org
  Cc: gregkh@linuxfoundation.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	dl-linux-imx, Fabio Estevam



> -----Original Message-----
> From: Fabio Estevam <festevam@gmail.com>
> Sent: Tuesday, September 26, 2023 6:28 PM
> To: shawnguo@kernel.org
> Cc: gregkh@linuxfoundation.org; robh+dt@kernel.org;
> krzysztof.kozlowski+dt@linaro.org; conor+dt@kernel.org;
> devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org;
> dl-linux-imx <linux-imx@nxp.com>; Fabio Estevam <festevam@denx.de>
> Subject: [PATCH v2 3/3] arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux
> mode-switch
> 
> From: Fabio Estevam <festevam@denx.de>
> 
> 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:
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevice
> tree.org%2Fschemas%2Fusb%2Fgpio-sbu-mux.yaml%23&data=05%7C01%7Cjun.li%4
> 0nxp.com%7C81075d4568d24477088408dbbe7b67f5%7C686ea1d3bc2b4c6fa92cd99c5
> c301635%7C0%7C0%7C638313209472999434%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC
> 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7
> C&sdata=GfQ15vL%2BIQoX9u8tFW60aO%2FrGDLEOBfQoKqP%2FN7tHXY%3D&reserved=0
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Changes since v1:
> - None.
> 
>  arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
> b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
> index a06a6491ef20..f95b58c69c6a 100644
> --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
> @@ -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;

mode-switch:
    description: Flag the port as possible handle of altmode switching
    type: boolean

I don't think there is altmode enabled on iMX8QXP MEK board, there is
only an orientation switch.

Li Jun

>  		orientation-switch;
> 
>  		port {
> --
> 2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 3/3] arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch
  2023-09-27  3:11   ` Jun Li
@ 2023-09-27 12:03     ` Fabio Estevam
  0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2023-09-27 12:03 UTC (permalink / raw)
  To: Jun Li
  Cc: shawnguo@kernel.org, gregkh@linuxfoundation.org,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	conor+dt@kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, dl-linux-imx, Fabio Estevam

Hi Li Jun,

On Wed, Sep 27, 2023 at 12:11 AM Jun Li <jun.li@nxp.com> wrote:

> mode-switch:
>     description: Flag the port as possible handle of altmode switching
>     type: boolean
>
> I don't think there is altmode enabled on iMX8QXP MEK board, there is
> only an orientation switch.

Okay, so I will send a change that removes mode-switch from the
required properties list then.

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-27 12:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 10:28 [PATCH v2 1/3] dt-bindings: usb: gpio-sbu-mux: Add an entry for CBDTU02043 Fabio Estevam
2023-09-26 10:28 ` [PATCH v2 2/3] arm64: dts: imx8qxp-mek: Fix gpio-sbu-mux compatible Fabio Estevam
2023-09-26 10:28 ` [PATCH v2 3/3] arm64: dts: imx8qxp-mek: Pass gpio-sbu-mux mode-switch Fabio Estevam
2023-09-27  3:11   ` Jun Li
2023-09-27 12:03     ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).