From: Rob Herring <robh@kernel.org>
To: Xu Yang <xu.yang_2@nxp.com>
Cc: heikki.krogerus@linux.intel.com, peda@axentia.se,
shawnguo@kernel.org, gregkh@linuxfoundation.org,
linux@roeck-us.net, jun.li@nxp.com, linux-usb@vger.kernel.org,
linux-imx@nxp.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/4] dt-bindings: connector: Add typec orientation switch properties
Date: Tue, 30 Aug 2022 13:19:45 -0500 [thread overview]
Message-ID: <20220830181945.GA1770115-robh@kernel.org> (raw)
In-Reply-To: <20220823195429.1243516-2-xu.yang_2@nxp.com>
On Wed, Aug 24, 2022 at 03:54:26AM +0800, Xu Yang wrote:
> Typec orientation switch can be implemented as a consumer of mux
> controller. So we can use mux controller to control simple gpio switch
> or other types of switch. This will cover the following typec switch
> use case: High Speed, Super Speed and Sideband switch.
>
> Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Please see and participate in the recent discussions around USB-C
connectors:
https://lore.kernel.org/all/20220810204750.3672362-2-bjorn.andersson@linaro.org/
https://lore.kernel.org/all/20220622173605.1168416-1-pmalani@chromium.org/
As mentioned there, I want to see block diagrams of the h/w for these
bindings.
The mux binding may be a good solution here, but different muxing
scenarios need to be considered.
> ---
> Changes since v1:
> - No changes.
>
> .../bindings/connector/usb-connector.yaml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml
> index ae515651fc6b..47f53cdbf31a 100644
> --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml
> +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml
> @@ -221,6 +221,24 @@ properties:
> SNK_READY for non-pd link.
> type: boolean
>
> + # The following are optional properties for "usb-c-connector".
> + mux-controls:
> + description: Mux controller node to use for orientation switch selection. This mux controller
> + could handle High Speed, Super Speed and Sideband switch use case one time. In orde to do so,
> + besides mux settings need to be properly configured for each switch under mux-controller node,
> + correct states should also be assigned to typec-switch-states parameter.
Wrap lines at 80 char.
> + maxItems: 1
> +
> + typec-switch-states:
> + description: An ordered u32 array describing the mux state value for each typec orientations.
> + Three states correspond to NONE(high impedance), NORMAL, REVERSE respectively. If there is
> + no HW mux state for NONE, use value of NORMAL or REVERSE for it. If this mux controller
> + handle more than 1 switch, correct states value need to be caculated according to the mux
> + settings.
> + minItems: 3
> + maxItems: 3
> + $ref: /schemas/types.yaml#/definitions/uint32-array
I think that 'mux-states' is what you want to use here.
Rob
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Xu Yang <xu.yang_2@nxp.com>
Cc: heikki.krogerus@linux.intel.com, peda@axentia.se,
shawnguo@kernel.org, gregkh@linuxfoundation.org,
linux@roeck-us.net, jun.li@nxp.com, linux-usb@vger.kernel.org,
linux-imx@nxp.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/4] dt-bindings: connector: Add typec orientation switch properties
Date: Tue, 30 Aug 2022 13:19:45 -0500 [thread overview]
Message-ID: <20220830181945.GA1770115-robh@kernel.org> (raw)
In-Reply-To: <20220823195429.1243516-2-xu.yang_2@nxp.com>
On Wed, Aug 24, 2022 at 03:54:26AM +0800, Xu Yang wrote:
> Typec orientation switch can be implemented as a consumer of mux
> controller. So we can use mux controller to control simple gpio switch
> or other types of switch. This will cover the following typec switch
> use case: High Speed, Super Speed and Sideband switch.
>
> Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Please see and participate in the recent discussions around USB-C
connectors:
https://lore.kernel.org/all/20220810204750.3672362-2-bjorn.andersson@linaro.org/
https://lore.kernel.org/all/20220622173605.1168416-1-pmalani@chromium.org/
As mentioned there, I want to see block diagrams of the h/w for these
bindings.
The mux binding may be a good solution here, but different muxing
scenarios need to be considered.
> ---
> Changes since v1:
> - No changes.
>
> .../bindings/connector/usb-connector.yaml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml
> index ae515651fc6b..47f53cdbf31a 100644
> --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml
> +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml
> @@ -221,6 +221,24 @@ properties:
> SNK_READY for non-pd link.
> type: boolean
>
> + # The following are optional properties for "usb-c-connector".
> + mux-controls:
> + description: Mux controller node to use for orientation switch selection. This mux controller
> + could handle High Speed, Super Speed and Sideband switch use case one time. In orde to do so,
> + besides mux settings need to be properly configured for each switch under mux-controller node,
> + correct states should also be assigned to typec-switch-states parameter.
Wrap lines at 80 char.
> + maxItems: 1
> +
> + typec-switch-states:
> + description: An ordered u32 array describing the mux state value for each typec orientations.
> + Three states correspond to NONE(high impedance), NORMAL, REVERSE respectively. If there is
> + no HW mux state for NONE, use value of NORMAL or REVERSE for it. If this mux controller
> + handle more than 1 switch, correct states value need to be caculated according to the mux
> + settings.
> + minItems: 3
> + maxItems: 3
> + $ref: /schemas/types.yaml#/definitions/uint32-array
I think that 'mux-states' is what you want to use here.
Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-08-30 18:19 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 19:54 [PATCH v2 0/4] typec orientation switch support via mux controller Xu Yang
2022-08-23 19:54 ` Xu Yang
2022-08-23 19:54 ` [PATCH v2 1/4] dt-bindings: connector: Add typec orientation switch properties Xu Yang
2022-08-23 19:54 ` Xu Yang
2022-08-30 18:19 ` Rob Herring [this message]
2022-08-30 18:19 ` Rob Herring
2022-08-23 19:54 ` [PATCH v2 2/4] mux: convert to use fwnode interface Xu Yang
2022-08-23 19:54 ` Xu Yang
2022-08-25 9:14 ` Peter Rosin
2022-08-25 9:14 ` Peter Rosin
2022-08-25 9:40 ` [EXT] " Xu Yang
2022-08-25 9:40 ` Xu Yang
2022-08-23 19:54 ` [PATCH v2 3/4] usb: typec: mux: add typec orientation switch support via mux controller Xu Yang
2022-08-23 19:54 ` Xu Yang
2022-08-24 11:50 ` Peter Rosin
2022-08-24 11:50 ` Peter Rosin
2022-08-25 9:37 ` [EXT] " Xu Yang
2022-08-25 9:37 ` Xu Yang
2022-08-24 14:39 ` Heikki Krogerus
2022-08-24 14:39 ` Heikki Krogerus
2022-08-23 19:54 ` [PATCH v2 4/4] arm64: dts: imx8mp-evk: add typec node Xu Yang
2022-08-23 19:54 ` Xu Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220830181945.GA1770115-robh@kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=jun.li@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-usb@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=peda@axentia.se \
--cc=shawnguo@kernel.org \
--cc=xu.yang_2@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.