From: Rob Herring <robh@kernel.org>
To: "Alvin Šipraga" <alvin@pqrs.dk>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
�ipraga <alsi@bang-olufsen.dk>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4] dt-bindings: usb: add TUSB320xA Type-C port controller
Date: Wed, 2 Mar 2022 12:16:33 -0600 [thread overview]
Message-ID: <Yh+0gWTmjrAJGAiG@robh.at.kernel.org> (raw)
In-Reply-To: <20220301132010.115258-2-alvin@pqrs.dk>
On Tue, Mar 01, 2022 at 02:20:05PM +0100, Alvin Šipraga wrote:
> From: Alvin Šipraga <alsi@bang-olufsen.dk>
>
> The TUSB320xA is a non-PD Type-C port controller managed over I2C.
>
> Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
> ---
> .../devicetree/bindings/usb/ti,tusb320xa.yaml | 78 +++++++++++++++++++
> 1 file changed, 78 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml
>
> diff --git a/Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml b/Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml
> new file mode 100644
> index 000000000000..a93d53ddd01c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/ti,tusb320xa.yaml
> @@ -0,0 +1,78 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/usb/ti,tusb320xa.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TUSB320xA Type-C port controller DT bindings
> +
> +description:
> + The Texas Instruments TUSB320xA is a USB Type-C port controller which
> + supports role and plug orientation detection using the CC pins. It is
> + compatible with the USB Type-C Cable and Connector Specification v1.1.
> +
> +maintainers:
> + - Alvin Šipraga <alsi@bang-olufsen.dk>
> +
> +properties:
> + compatible:
> + enum:
> + - ti,tusb320la
> + - ti,tusb320ha
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> +
> + patternProperties:
> + '^port@':
Exact port numbers need to be defined. What does port@0 represent?
port@1?
> + $ref: /schemas/graph.yaml#/properties/port
> + description:
> + OF graph bindings modelling any "usb-role-switch" or "accessory" mux.
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + tcpc@47 {
> + compatible = "ti,tusb320la";
> + reg = <0x47>;
> + interrupt-parent = <&gpio5>;
> + interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + typec1_mux: endpoint {
> + remote-endpoint = <&usb_audio_mux1>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + typec1_dr_sw: endpoint {
> + remote-endpoint = <&usbotg1_drd_sw>;
> + };
> + };
> + };
> + };
> + };
> --
> 2.35.1
>
next prev parent reply other threads:[~2022-03-02 18:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-01 13:20 [PATCH 0/4] usb: typec: add drivers for TUSB320xA and TS5USBA224 Alvin Šipraga
2022-03-01 13:20 ` [PATCH 1/4] dt-bindings: usb: add TUSB320xA Type-C port controller Alvin Šipraga
2022-03-02 18:16 ` Rob Herring [this message]
2022-03-01 13:20 ` [PATCH 2/4] dt-bindings: usb: add TS5USBA224 USB/Audio switch mux Alvin Šipraga
2022-03-02 18:21 ` Rob Herring
2022-03-02 18:58 ` Alvin Šipraga
2022-03-01 13:20 ` [PATCH 3/4] usb: typec: add TUSB320xA driver Alvin Šipraga
2022-03-01 16:58 ` kernel test robot
2022-03-01 17:20 ` Alvin Šipraga
2022-03-07 14:36 ` Heikki Krogerus
2022-03-07 22:17 ` Alvin Šipraga
2022-03-08 11:49 ` Heikki Krogerus
2022-03-08 12:30 ` Alvin Šipraga
2022-03-01 13:20 ` [PATCH 4/4] usb: typec: mux: add TS5USBA224 driver Alvin Šipraga
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=Yh+0gWTmjrAJGAiG@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=alsi@bang-olufsen.dk \
--cc=alvin@pqrs.dk \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/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).