From: Rob Herring <robh@kernel.org>
To: Macpaul Lin <macpaul.lin@mediatek.com>
Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
ChiYuan Huang <cy_huang@richtek.com>,
linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Bear Wang <bear.wang@mediatek.com>,
Pablo Sun <pablo.sun@mediatek.com>,
Macpaul Lin <macpaul@gmail.com>,
Project_Global_Chrome_Upstream_Group@mediatek.com,
Chris-qj chen <chris-qj.chen@mediatek.com>
Subject: Re: [PATCH 1/2] dt-bindings: usb: mediatek,mt6360-tcpc: add ports properties
Date: Tue, 15 Oct 2024 15:54:05 -0500 [thread overview]
Message-ID: <20241015205405.GA1934266-robh@kernel.org> (raw)
In-Reply-To: <20241015103337.20479-1-macpaul.lin@mediatek.com>
On Tue, Oct 15, 2024 at 06:33:36PM +0800, Macpaul Lin wrote:
> Add 'ports' and sub node 'port' properties to specify connectors on the
> High-Speed/Super-Speed data bus, or Sideband Use (SBU) AUX lines
> endpoints of the USB controller.
>
> Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
> ---
> .../bindings/usb/mediatek,mt6360-tcpc.yaml | 21 +++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
> index 053264e60583..5b6ea0d734ea 100644
> --- a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
> +++ b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
> @@ -32,6 +32,27 @@ properties:
> description:
> Properties for usb c connector.
>
> + ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> + description:
> + Any connector to the data bus of this controller should be specified.
> + properties:
> + "#address-cells":
> + const: 1
> +
> + "#size-cells":
> + const: 0
No need for these, already defined in the $ref'ed schema.
> +
> + patternProperties:
> + "port@[0-2]$":
> + $ref: /schemas/graph.yaml#/properties/port
> + description:
> + It could be one of the following interface types. High-Speed
> + (HS) data bus endpoint to the Type-C connector, SuperSpeed (SS)
> + data bus endpoint to the Type-C connector, or Sideband Use (SBU)
> + AUX lines endpoint to the Type-C connector for the purpose of
> + handling altmode muxing and orientation switching.
You have to define what each port number is.
However, I'm completely confused as to why you need any of this. The
description sounds like the usb-c-connector which is already defined as
a child node.
Rob
next prev parent reply other threads:[~2024-10-15 20:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 10:33 [PATCH 1/2] dt-bindings: usb: mediatek,mt6360-tcpc: add ports properties Macpaul Lin
2024-10-15 10:33 ` [PATCH 2/2] arm64: dts: mediatek: mt8395-genio-1200-evk: add support for TCPC port Macpaul Lin
2024-10-15 20:56 ` Rob Herring
2024-10-23 7:19 ` Macpaul Lin
2024-10-15 14:17 ` [PATCH 1/2] dt-bindings: usb: mediatek,mt6360-tcpc: add ports properties Rob Herring (Arm)
2024-10-15 20:54 ` Rob Herring [this message]
2024-10-23 7:16 ` Macpaul Lin
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=20241015205405.GA1934266-robh@kernel.org \
--to=robh@kernel.org \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=bear.wang@mediatek.com \
--cc=chris-qj.chen@mediatek.com \
--cc=chunfeng.yun@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=cy_huang@richtek.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=macpaul.lin@mediatek.com \
--cc=macpaul@gmail.com \
--cc=matthias.bgg@gmail.com \
--cc=pablo.sun@mediatek.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 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).