From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 28 Mar 2019 10:35:47 -0500 From: Rob Herring Subject: Re: [PATCH v2 1/7] dt-bindings: usb: hd3ss3220 device tree binding document Message-ID: <20190328153547.GA12413@bogus> References: <1552552775-51667-1-git-send-email-biju.das@bp.renesas.com> <1552552775-51667-2-git-send-email-biju.das@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1552552775-51667-2-git-send-email-biju.das@bp.renesas.com> To: Biju Das Cc: Mark Rutland , Greg Kroah-Hartman , Heikki Krogerus , Felipe Balbi , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Simon Horman , Yoshihiro Shimoda , Geert Uytterhoeven , Chris Paterson , Fabrizio Castro , linux-renesas-soc@vger.kernel.org List-ID: On Thu, Mar 14, 2019 at 08:39:29AM +0000, Biju Das wrote: > Add device tree binding document for TI HD3SS3220 Type-C DRP port > controller driver. > > Signed-off-by: Biju Das > --- > V1-->V2 > * Added connector node. > * updated the example with connector node. > --- > .../devicetree/bindings/usb/ti,hd3ss3220.txt | 37 ++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/ti,hd3ss3220.txt Reviewed-by: Rob Herring > diff --git a/Documentation/devicetree/bindings/usb/ti,hd3ss3220.txt b/Documentation/devicetree/bindings/usb/ti,hd3ss3220.txt > new file mode 100644 > index 0000000..7f41400 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/ti,hd3ss3220.txt > @@ -0,0 +1,37 @@ > +TI HD3SS3220 TypeC DRP Port Controller. > + > +Required properties: > + - compatible: Must be "ti,hd3ss3220". > + - reg: I2C slave address, must be 0x47 or 0x67 based on ADDR pin. > + - interrupts: where a is the interrupt number and b represents an > + encoding of the sense and level information for the interrupt. > + > +Required sub-node: > + - connector : The "usb-c-connector" attached to the hd3ss3220 chip. The > + bindings of the connector node are specified in: > + > + Documentation/devicetree/bindings/connector/usb-connector.txt > + > +Example: > +hd3ss3220@47 { > + compatible = "ti,hd3ss3220"; > + reg = <0x47>; > + interrupt-parent = <&gpio6>; > + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; > + > + usb_con: connector { > + compatible = "usb-c-connector"; > + label = "USB-C"; Arguably, not that useful of a label as it doesn't describe which USB C connector. > + data-role = "dual"; > + }; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; > + > + hd3ss3220_ep: endpoint@0 { > + reg = <0>; > + remote-endpoint = <&usb3peri_role_switch>; > + }; > + }; > +}; > -- > 2.7.4 >