From patchwork Thu May 3 00:24:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10376825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B7A6F60384 for ; Thu, 3 May 2018 00:41:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A750629137 for ; Thu, 3 May 2018 00:41:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B31B29159; Thu, 3 May 2018 00:41:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2997629137 for ; Thu, 3 May 2018 00:41:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbeECAlW (ORCPT ); Wed, 2 May 2018 20:41:22 -0400 Received: from mail-eopbgr10088.outbound.protection.outlook.com ([40.107.1.88]:31339 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751747AbeECAlU (ORCPT ); Wed, 2 May 2018 20:41:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/Ebr2vReSgsORQtXglRx/bgrogdvJvvAQ+AcwyJ4VrI=; b=u1ojCIBOuIkUMR4lIxTkSlBfCvelUZVddLd+YKOXylzaC5J1xrYo2Lhm6JDtllXuiP/Jp/29HSfAlEr7tkdwXQRfkKPABdq9BauBKFLivpsmwbBOWAKaiSlKEXqt+dN4qwHsm2YVEnBgCIxGhNFAP2kG26bKbqptMjkyUUr/sK8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jun.li@nxp.com; Received: from b47624-OptiPlex-7040.ap.freescale.net (92.121.68.129) by DB3PR0402MB3914.eurprd04.prod.outlook.com (2603:10a6:8:f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.24; Thu, 3 May 2018 00:41:12 +0000 From: Li Jun To: robh+dt@kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux@roeck-us.net Cc: jun.li@nxp.com, a.hajda@samsung.com, cw00.choi@samsung.com, shufan_lee@richtek.com, peter.chen@nxp.com, gsomlo@gmail.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v5 02/14] dt-bindings: usb: add documentation for typec port controller(TCPCI) Date: Thu, 3 May 2018 08:24:42 +0800 Message-Id: <1525307094-27402-3-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525307094-27402-1-git-send-email-jun.li@nxp.com> References: <1525307094-27402-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: OSAPR01CA0012.jpnprd01.prod.outlook.com (2603:1096:603:2a::24) To DB3PR0402MB3914.eurprd04.prod.outlook.com (2603:10a6:8:f::29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3914; X-Microsoft-Exchange-Diagnostics: 1; DB3PR0402MB3914; 3:VvFB95fonbb0D7sLurOnzWURMSMKsBAH6T5y1/O04kZWyWg57uMRi6afl7qBFIWmdxIqaj38QTWZkwCmaRsi7G8t0b/tT1AtY+qRifoWqO149Mj8F+JogiFwUt+U6FH5b0U9HOthOdYQOECwxXB4Gv7ta4HCfNxTcYQNKqshPK8fQJ55QVy6TcpxWyol2AvuM729uigqXIBJPI3n5Z+cLk/xqJ4Wa5Ny8iKoCt4zkHTnadgPykUOjHe99pODvg0m; 25:BVNSd3yjy1l9WuI8Iolxq98bp5/dhrVtorWDZ+5Ln+mwZCUjzra03rhQmIs3bNNBHK9zrt0NbHeucRdwL0gYQlPcrQWHZ3GdlFFgkQArp6XSEgDSTPoVBcQwU5flksuMFpPEwHBNlwt+4X+Z2Bwoybm27GFVZYCp3bRjYvc76dTEjT/xWIFQcwMI2ZHRLINPrffhzQgdhyzpdIKJxaM0cQpTnnTX+oaC5ovAqDMMQ88/C5wpvzmhHSurbnNKY1zPShV2XmQSeqIXtkwEOkWYxPREiDHZnY4vV48xvWYE85djIychiQVmTkoCQwEmFk7Cs9Z0QmCa5ZlMCVIza2J3kQ==; 31:TroN3HNdR4nL2131RL0XcXpBZotX4U5jtsX64J/AUrA1Vm/kZLiZybtobS/H2iJTQNkcl7+uK4SNy8QkzGMNO5nRAyZr30f24xKUyXSjN+ILmP0CWzac8gAsdaKyRRuWIdLCrmppvsZ+pZqoSi1M2uLngv/9HIJ+dKegXQbkcPt6vBgcpBfNgUzwmv86o8r5fquQtGJRBFzMr7TJahqe+XeUoziwrYXTqSV7VqqPedY= X-MS-TrafficTypeDiagnostic: DB3PR0402MB3914: X-Microsoft-Exchange-Diagnostics: 1; DB3PR0402MB3914; 20:D7ELUleTgR2e0TaL5mthnAesyONAUi0TdSOQritCm1yFakwPU9k8dxMafY6tZNTIORz6xwaEk01m6pibok4gmHgi1CTzHIia0B1/sqVGK1DfLywKp83+q1hcUXzSB14NZBsnVlynrb8MC8YIfodqXyaakSZetcQB0WmFCbzTy2/AgbUmay3/d93IkaNfUgxB1fjDjtRqAAZVpwxX148qm68Ufvqrl9JMZXncS1d5G2Pxtp35r/FBGLJN3inFJ2/+qdxKkpAi4L7FnybDur01Lf+BkfGgqcQdPHCZ2Xv9JjzRO61Gcoe7v+MxzcyIcbvFHWN0HRUrOZz2m9f8Ygp/R+I+r57RFllWA2TrgAnpDY3bR7bvr+l5pc3VTxX5GlfuNmyG+uePHGEOMu5k7Pamlb2cgZILL8FGIgImUxg4E5QSQPKTGnQOGpf3VRduCWSt7sBGR17RsthET0M9c6VhFLx55bG+H1sweRVQN3fE+IVflvz6CZ5PskYLi4FqsT/f; 4:m1fnxxJ/pxe2Zqiw0RaZZQSnP6/OwzNo9SE3M3pzdxChUwJf5goJnixDTnsP7N+lLnuk8tym0wO44I/qzGfNqVtbSkbSSfyH610Xb8CVyDRWcnC9n6MJeJ19wMzgPEeUGVOThMBHM00RS0myyW6d3LWx0/eRJ+0rQI+1ZJXy55B92f4sw2b0ILnflPkvQ3r9kB64wQND7eXxlvm/SQU4s0ZfSxwp5UbPMVMVHmUfTNfFkMLvgGOfJVlGql+cgMMqggtlBTHIw3Vy+gxqy8xXBVoXs2pp7Xw3/YT7H6Pa/GHeMpLPZvMx4jSNJJX1OE0f X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DB3PR0402MB3914; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0402MB3914; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(376002)(39860400002)(346002)(366004)(189003)(199004)(7416002)(47776003)(7736002)(8936002)(66066001)(305945005)(106356001)(2906002)(5660300001)(6486002)(105586002)(6116002)(3846002)(6666003)(81166006)(8676002)(50226002)(68736007)(81156014)(36756003)(956004)(2616005)(386003)(16586007)(476003)(50466002)(6506007)(6512007)(97736004)(316002)(446003)(39060400002)(52116002)(26005)(76176011)(48376002)(4326008)(5890100001)(11346002)(486006)(16526019)(86362001)(51416003)(53936002)(186003)(478600001)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3914; H:b47624-OptiPlex-7040.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB3PR0402MB3914; 23:JTy6GyWhMWsFsIt2lyxSVek6t2x6GLNxilY2sbG?= =?us-ascii?Q?97Ydt5AlTrCt+TX7I40wmy62+GGzdox7U35dwO/9mOctFW/Cqi8THwS20TPV?= =?us-ascii?Q?2uF4CeZ1pFeGI96GAgGAAg0nX2UCC7HbamO7H7R9fczJRZl9/cFVwANlGhtC?= =?us-ascii?Q?xeQHJHtQ/HGIE/F3S2yfIHQLj1ef/LZJb4PyuMC+ILAXMotWWEDQLC3FIj0U?= =?us-ascii?Q?nyUcu1IRtW7Dp6N/ZnVqdS4npoTEm4HhmqhYTcsva6YAiR2lucGtPtFU4a/Q?= =?us-ascii?Q?hZop/G7lDAAm0S/wb5tUtuNpiJYOtVVeYug0oa0MCxAbrV+wSz4ohraa2L/F?= =?us-ascii?Q?ofvZjrrCz4HrvL/LdAoXMePx5CanDLp0l3tkPJx+d1oD3Klk8a3O1FTy6ypF?= =?us-ascii?Q?LV9ZiSuxNdixNS3wgmyCv/NoTc8DyvQiaZuhyTfJoZ6wf1/OJOguahAu+uDq?= =?us-ascii?Q?wFsb8+m2AVChif3+ps3Uqt8WrFxMV3mHbStPccK++o/1ZPIw3VngCrQ9nz+p?= =?us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2uzk1//+T1iDbT7gqOcPHGkj4BBC3cOPkkDa8PTkZGnG+eyXoD/Rx8t6/I3r4bEj+FZXbOdYhnXUdYO8kUDFMtQLfXq X-MS-Office365-Filtering-Correlation-Id: 06ab370b-c33e-4ba1-cc25-08d5b08e9549 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 00:41:12.3497 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06ab370b-c33e-4ba1-cc25-08d5b08e9549 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3914 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP TCPCI stands for typec port controller interface, its implementation has full typec port control with power delivery support, it's a standard i2c slave with GPIO input as irq interface, detail see spec "Universal Serial Bus Type-C Port Controller Interface Specification Revision 1.0, Version 1.1" Signed-off-by: Li Jun Reviewed-by: Rob Herring --- .../devicetree/bindings/usb/typec-tcpci.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/typec-tcpci.txt b/Documentation/devicetree/bindings/usb/typec-tcpci.txt new file mode 100644 index 0000000..0dd1469 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/typec-tcpci.txt @@ -0,0 +1,49 @@ +TCPCI(Typec port cotroller interface) binding +--------------------------------------------- + +Required properties: +- compatible: should be set one of following: + - "nxp,ptn5110" for NXP USB PD TCPC PHY IC ptn5110. + +- reg: the i2c slave address of typec port controller device. +- interrupt-parent: the phandle to the interrupt controller which provides + the interrupt. +- interrupts: interrupt specification for tcpci alert. + +Required sub-node: +- connector: The "usb-c-connector" attached to the tcpci chip, the bindings + of connector node are specified in + Documentation/devicetree/bindings/connector/usb-connector.txt + +Example: + +ptn5110@50 { + compatible = "nxp,ptn5110"; + reg = <0x50>; + interrupt-parent = <&gpio3>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <10000000>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + usb_con_ss: endpoint { + remote-endpoint = <&usb3_data_ss>; + }; + }; + }; + }; +};