From patchwork Mon May 28 02:52:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10429705 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 21E8A60362 for ; Mon, 28 May 2018 03:09:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1079F28AF4 for ; Mon, 28 May 2018 03:09:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0505228AF7; Mon, 28 May 2018 03:09:25 +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 7DE5328AF4 for ; Mon, 28 May 2018 03:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753132AbeE1DJX (ORCPT ); Sun, 27 May 2018 23:09:23 -0400 Received: from mail-eopbgr00084.outbound.protection.outlook.com ([40.107.0.84]:1472 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753114AbeE1DJV (ORCPT ); Sun, 27 May 2018 23:09:21 -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:X-MS-Exchange-SenderADCheck; bh=Isqrhdnby7YN2NkMr9z2iOuQkFj9wW/LgJPpu4HYUPo=; b=R+T28zffOwa2t+vyGEhxrYLmWuZ0BLqdyns0qw4vrsd1DxZ497BK1ekP0nE37yATq94tIURcPS7DeNvNkT0CVq+ycN/NI38lVHShUzZJh4KfW7U4HAPQr/aroZknhyWlxgQ8KtB1OVia4Fd1zUE0PkpMb6GRE/9+q4FJCeGPOwQ= Received: from b47624-OptiPlex-7040.ap.freescale.net (92.121.68.129) by VI1PR0402MB3919.eurprd04.prod.outlook.com (2603:10a6:803:22::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.797.11; Mon, 28 May 2018 03:09:13 +0000 From: Li Jun To: robh+dt@kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux@roeck-us.net Cc: cw00.choi@samsung.com, a.hajda@samsung.com, shufan_lee@richtek.com, peter.chen@nxp.com, garsilva@embeddedor.com, gsomlo@gmail.com, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v6 02/15] dt-bindings: usb: add documentation for typec port controller(TCPCI) Date: Mon, 28 May 2018 10:52:34 +0800 Message-Id: <1527475967-15201-3-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527475967-15201-1-git-send-email-jun.li@nxp.com> References: <1527475967-15201-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK2PR0302CA0015.apcprd03.prod.outlook.com (2603:1096:202::25) To VI1PR0402MB3919.eurprd04.prod.outlook.com (2603:10a6:803:22::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB3919; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3919; 3:QgjSlcNoUOzCvaxy/p/yU1TA9PPRhEOoQkdafdf6IrbXw4P44w+I0/wbQ0puzwcQc2WN11n6Ri+bjV+JPinjxSw9q5gM2lyLjvPoQ5tgglEKiOWMM/spWv3DDlyQ/F2RE61VZNJjbnf/08A7ChfKsf5oWmPu3Kj0JVdsZpBnsLFAfid8J5QkC+1NHa1caGNwCcB1uTBeZrFVR99sZVtp1r56SA6Cp8m1X5gEu0dMDF2ZbiWur3Z/yHyw4khbRg1k; 25:3oGT8yEzcQ3OCH1CgObEKJg+ON8/QyyF7IzU+eFedhmQENoghyx9xpprPydi5qu2xDqPj7ABZvuOJsiucnJEvF5fWp9m8ID/IB/YuVzRsM1XH1L/DSob98A9GARdM7jTVAYVoRwefQnJTV4Mx5+cwaPxwxNjA0bfVEyTenyNS4+c33k6nY9DBLJ5aBE0C+FCAvmhHlXvCQfrkif8aAoxSiG2JmdhTfJSOwCIJdlsIDUJvlr/23DbBiEETPRMK+KyLNyKqiJFkwd2WFlEWt4/CK/3kBLiTVwvDz69Umfj2/8AsCassIFB27RtxfZGyadNx6aJ/RG3WgUqbZ0Nz6JwIw==; 31:NH3JQK0rtBqEkjwFra8RbFg3I46/0ts0awKZldPG4mJp1qURgmTsbOUOiVqdIPqUAs3qjIZBf0a/aZR21iQA+OwLZSp+Lac2i7CTB8xEN/zVjltZIDe2rgYgUJL5DLGQCPBECSf/EbAzJy2IiODvhDP2mMw3q7OlchKvcZWEZ6wyynfkyoNIH+7VLlaiX7km4K67271ihNJ6W1SLCNcHw4rBqZId+b0NxNw3Nja3D94= X-MS-TrafficTypeDiagnostic: VI1PR0402MB3919: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jun.li@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3919; 20:1rwOVwACazAi51rBRvHQlNFl97kGxJOUxbJF8J0ceoySJ3ijKqWud0ncVqEt9MaCR4XF/JuYAyEgw3m5YN7zfHDImJi1rWfWjmRrRRYFQpTwZ7L1R/LspUDR0B6Dr91oR6aMcCybNFfF5ueFE5kB2xHMe3l+RMEcy3Q90r32G1zDU0qfueGSd+I1vaTVK0/OOrzNCwgXb9QCIFY0U5cbjjcsvPShFVwdTol50F9FzP2dYq3tO7zW9f+iW+sno0u6/gTE+0dcokPCiKcGIgRLiljI5Pk2OJr6ylLyTqe59WqqQX3wcjzm40HDB/VWfRx4sBSJIqis/6FynoOQZr1+j+wLIw+EQZJWNuEsS596HcdY063AXcKhPQQob4jhNNlOANSISayq3RjTxW+Hoc5h2W8cLw0hHFJFedHlzokq9VJ/qsDcM+PZnMqa58Djox2IvkxSS3nvfCnzYAxBZ4RJcO6W1TW70a+18YAyCmjkfoAOX7V1nMXB++mvy9D0HZ4n; 4:h5JoNdfluYzWmH+bk8JVidP4jJVOyrEvGbasCuMmlaBAmmMtmlh9PeeuetHnFgNPvOvWXbGpEDqKi6sULsj6dGQyxipskYfrIr8zrWY03tTO2ixra4XlMKdLpY/opqfBnDxNNQA5j0F1wihYx5P9tVaobiuK/EzacTwaty+Vk9EdPgc7ptYE6e3wUXYciNy+XtlIa0+1YWhEm9mkab6qvVqn1zm90NMoRxv193At7/3Uy5R9b+NPAOZh5InWI1Cct0EmEjgQQ+6lvWqW0xjbKGL5CKVuQ+tkd4CT7mES8XUFs9RSvMBJO51Za6ff3pIG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0402MB3919; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB3919; X-Forefront-PRVS: 06860EDC7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(39860400002)(366004)(346002)(376002)(199004)(189003)(6506007)(8676002)(16526019)(305945005)(26005)(7736002)(386003)(486006)(446003)(48376002)(11346002)(956004)(2616005)(2906002)(66066001)(81156014)(186003)(3846002)(81166006)(478600001)(8936002)(50466002)(6486002)(5660300001)(6116002)(6666003)(7416002)(36756003)(50226002)(47776003)(39060400002)(476003)(86362001)(106356001)(68736007)(5890100001)(53936002)(51416003)(105586002)(16586007)(316002)(4326008)(6512007)(76176011)(97736004)(25786009)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3919; H:b47624-OptiPlex-7040.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0402MB3919; 23:cucqYNdhWOs3zO7lS1CYsPT5Ryku+E626lf0Cio?= =?us-ascii?Q?r85xhODRcQogkdGeV4jiHENiIVCrWSOAyLWRJPt2as6pbOZ8l1wK8UWpgAuG?= =?us-ascii?Q?qEGgCV1ibatnMFFlepajbUYYkifnWebdHnJKMbhPtG+iEv75UHfhhsJ51AC5?= =?us-ascii?Q?N/5xDeS69D6Q6/yVPFlGEQbpDtHny0C+qg2rGpGLyi/xLpFCFjZ35tiHZUTb?= =?us-ascii?Q?TyYgat9jpaQP2bkK91m504QIguXEosEgx1keROFoQkx2wlkU4uwZqqunRYi2?= =?us-ascii?Q?MRRO/XK3uu6SNjsC9bxX2kvpbyf7R8Z9yYBv5WHRpRUTpe2MuFkR4boK1bnl?= =?us-ascii?Q?bsqZi5P+qimPGcr9JZEDQD2XaSAFB6Z9m44gJmUYp7KmEWRuRjNXdXK7chEE?= =?us-ascii?Q?Gk5kgvCWHVsLYbVFe3bGbqHM8Iq/hG+quhZmj/S7AkI53/5ZJOMtX6XNd4S2?= =?us-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wI5xEkTFui/FOadO5fppOPle/0kPGiHaaLWwW+auJ4lHO+6JS6oZqBblaXtzFQPNpZAXzJUp3sxMv1k+NHqeV302mnNwD64TjHktg4OMsbKbbEeoUfzZ+MQyBj641FrxqJEgJezYZ+Gox5EcZC+oTPuw/4EcnUxJR+QZg7JFkXs01lhSx9XR X-MS-Office365-Filtering-Correlation-Id: 1e89e472-65d3-47ac-2d37-08d5c4486747 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2018 03:09:13.8762 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e89e472-65d3-47ac-2d37-08d5c4486747 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3919 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" Reviewed-by: Rob Herring Signed-off-by: Li Jun --- .../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>; + }; + }; + }; + }; +};