From: Rob Herring <robh@kernel.org>
To: cristian.birsan@microchip.com
Cc: linux@roeck-us.net, heikki.krogerus@linux.intel.com,
gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
Subject: Re: [RFC PATCH v2 1/2] dt-bindings: usb: Add DT bindings for Microchip sama7g5 tcpc
Date: Thu, 1 Apr 2021 12:16:03 -0500 [thread overview]
Message-ID: <20210401171603.GA624021@robh.at.kernel.org> (raw)
In-Reply-To: <20210330205442.981649-2-cristian.birsan@microchip.com>
On Tue, Mar 30, 2021 at 11:54:41PM +0300, cristian.birsan@microchip.com wrote:
> From: Cristian Birsan <cristian.birsan@microchip.com>
>
> This patch adds DT bindings for the new Microchip USB Type-C Port
> Controller (TCPC) embedded in sama7g5 SoC.
>
> Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
> ---
> .../bindings/usb/microchip,sama7g5-tcpc.yaml | 90 +++++++++++++++++++
> 1 file changed, 90 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml
>
> diff --git a/Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml b/Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml
> new file mode 100644
> index 000000000000..2d3289dd9ac9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml
> @@ -0,0 +1,90 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: "http://devicetree.org/schemas/usb/microchip,sama7g5-tcpc.yaml#"
> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
> +
> +title: Microchip SAMA7G5 Type-C port controller bindings
> +
> +maintainers:
> + - Cristian Birsan <cristian.birsan@microchip.com>
> +
> +properties:
> + compatible:
> + enum:
> + - microchip,sama7g5-tcpc
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: Peripheral Bus Clock
> + - description: Generic Clock
> +
> + clock-names:
> + items:
> + - const: pclk
> + - const: gclk
> +
> + vbus-supply:
> + description: vbus power supply (5V) phandle
This belongs in the connector node unless this chip uses Vbus as a
supply.
> +
> + microchip,vbus-gpio:
> + description: vbus detect gpio
We have standard property for this in the connector node.
> +
> + connector:
> + type: object
> +
> + allOf:
> + - $ref: ../connector/usb-connector.yaml
You can drop 'allOf'. And add:
unevaluatedProperties: false
> +
> + properties:
> + compatible:
> + const: usb-c-connector
> +
> + power-role: true
> +
> + required:
> + - compatible
> +
> +required:
> + - compatible
> + - reg
> + - connector
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/at91.h>
> + #include <dt-bindings/usb/pd.h>
> + tcpcb: tcpcb@e0844000 {
> + compatible = "microchip,sama7g5-tcpc";
> + reg = <0xe0844000 0x3fff>;
> + clocks = <&pmc PMC_TYPE_PERIPHERAL 95>, <&pmc PMC_TYPE_GCK 95>;
> + clock-names = "pclk", "gclk";
> +
> + usb_con: connector {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "usb-c-connector";
> + label = "USB-C";
> + data-role = "device";
> + power-role = "sink";
> + try-power-role = "sink";
> + source-pdos = <PDO_FIXED(5000, 500,
> + PDO_FIXED_USB_COMM)>;
> + sink-pdos = <PDO_FIXED(5000, 500,
> + PDO_FIXED_USB_COMM)>;
> + op-sink-microwatt = <2500000>;
> +
> + port@1 {
> + reg = <1>;
> + usb_con_hs: endpoint {
> + remote-endpoint = <&usb_phy1>;
> + };
> + };
> + };
> + };
> +...
> --
> 2.25.1
>
next prev parent reply other threads:[~2021-04-01 17:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 20:54 [RFC PATCH v2 0/2] usb: typec: Add driver for Microchip sama7g5 tcpc cristian.birsan
2021-03-30 20:54 ` [RFC PATCH v2 1/2] dt-bindings: usb: Add DT bindings " cristian.birsan
2021-04-01 17:16 ` Rob Herring [this message]
2021-03-30 20:54 ` [RFC PATCH v2 2/2] usb: typec: sama7g5_tcpc: add driver " cristian.birsan
2021-03-31 8:45 ` Heikki Krogerus
2021-03-31 6:21 ` [RFC PATCH v2 0/2] usb: typec: Add " Greg KH
2021-03-31 19:41 ` Cristian.Birsan
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=20210401171603.GA624021@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=cristian.birsan@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@roeck-us.net \
/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).