From patchwork Mon Jun 25 08:08: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: 10485241 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 455316031B for ; Mon, 25 Jun 2018 08:26:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3104528845 for ; Mon, 25 Jun 2018 08:26:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 251182889E; Mon, 25 Jun 2018 08:26:01 +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 A764328845 for ; Mon, 25 Jun 2018 08:26:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753044AbeFYIZ6 (ORCPT ); Mon, 25 Jun 2018 04:25:58 -0400 Received: from mail-db5eur01on0040.outbound.protection.outlook.com ([104.47.2.40]:13184 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752363AbeFYIZ4 (ORCPT ); Mon, 25 Jun 2018 04:25:56 -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=t9XYfz0MEKut3L9IZ6MWrZUCxCMJW0dJiaUNClItnoVTnYnHqtlOAtSi7C1ruYLdkb02QQeiGUr2fuQtWFWTv1RopPBU5lXeIx/0fEiWLkBqVgffI8rf+9AysLnbx7sRnnl7Ds2UVH8cgk0EEpC0GVKLZ0nQHIHdpMqlsvq2QOQ= 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 VI1PR0402MB3920.eurprd04.prod.outlook.com (2603:10a6:803:23::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.24; Mon, 25 Jun 2018 08:25:48 +0000 From: Li Jun To: robh+dt@kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux@roeck-us.net Cc: a.hajda@samsung.com, jun.li@nxp.com, cw00.choi@samsung.com, shufan_lee@richtek.com, peter.chen@nxp.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v7 02/14] dt-bindings: usb: add documentation for typec port controller(TCPCI) Date: Mon, 25 Jun 2018 16:08:34 +0800 Message-Id: <1529914126-22550-3-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529914126-22550-1-git-send-email-jun.li@nxp.com> References: <1529914126-22550-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK0PR04CA0004.apcprd04.prod.outlook.com (2603:1096:203:36::16) To VI1PR0402MB3920.eurprd04.prod.outlook.com (2603:10a6:803:23::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d4e2dd88-aaf9-4455-737d-08d5da7543e1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB3920; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3920; 3:EIPFnv1MkWEU8Qx3dNC7vxgI23JGE3gQwX2jZTg+9bh0qOJEAaBeWVJmTi0PjhFfkxsGcjmXZCChgJLAYpXLkfyQ7xscdHf4iem0EnMjPm8cq+Bdb3BDJkEf1BMWY/haJSZXiIHol6/RTEFAUY4RndXMfDyvOoIbVOTkVPn2+Gi3fmZay8NCk2cpMn+af/gWikDATRneuLlUcMtYWUQTMnIzmzHfP9tFQ3ZJlF5jgXU5JyPCuvToapXe62UH2S+1; 25:ivbV0D3Y76jDe+5R8HHwrPEc0Wd4UsDib+L68SzUrhKtm8c+WLlbuM7gbx5p4XiHABbJdPNLLjMfocqKX50NkZmWM+t1i1WU5JcUrbnbAoUzMF5Hb9IUCjWrlsNXQ3M0rZH8K8Y4PydCeOHFTOWWAA+jiaJ2dGQB3UIhRe1C+zD3GjynsnS0V78gf2e1AZAFg3eDkykEvI1QNgBM9iLP8KKS/qs4RWzEKaj1y+ZUlfYLYpi2kR5hsx/uBvoPEf3A8jBL1WTnfXe0WwrNOn5SgWxmBpU4pq7oeVn4ojUSp8FRN13/5Hjrojzvyo8bWGQm20ERGB/x3hwgOn+KxfwbcA==; 31:3Gg/NtJPP4tgZzLFkhoTUW5mM3ZDoPkGuNwDkCYjcRx62C35S2ZkiE6coJrXkLMkP/8/GK9g2OppauuVnuYuuqhR/pX1rrUW5istOB78/UuW1NYFQklKlfFFP7q5/WXIu12a/cM5+FMoewrszWj+5GOd7nzq1B078pIC0vuoAgOTHVZUQgsvqj4xKOh7tkwX3fq7Y4un0v8v6b3w4nx7BWtHGDHejk98qDPjyCQY1g0= X-MS-TrafficTypeDiagnostic: VI1PR0402MB3920: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3920; 20:yW91M1lNzOPKIXWh5XjJ7KF1U8G5qkxnnldiQ/k56DlASFCfT+YvQxKm3b+pm348kXTGqsqXGenT1QUalSXqpaD7+VgbSDWyeXsjM2AZkn3NUbtFoYBRfezcInU0mmuTtwb5nbQ3O9Ve3HnJIzh7apgrADueuSZwZ1bsQFNx0mlBRkKPiSJXpD/qFXizdlv+cjStncepExsyMyXizV1/fXTWbGFqquwHUF78maCpr+zspYtsMUTE7Z4Rgl0p6oXTjaZH6ezPtWU31xXZSLgfzM77QuJFmlsqGjPb32WczEWM5KFMVqY6+EOLirBdyLhaKkNdmwx6NbW9P53uKWIXetmljf8qximz2fZLvl3pc05NczYB15TbJJ+L7Wt+PX4OCBEwPwNo3MKBhJc0iYfx95b9rp9MfQ5xibu4Tf9S/OlDN2QrcnrcKtDvh3WQCNUvvr29OzfTojDuxbsGks9FE5SA4ex+ZO7/O199jXokLNjLO6AedxdGe9lwbvzesqPd; 4:MiFY8E+e1r6q5yW2XFgKu7Dtcvj4QlA2nSF7FD8muhzLKCvNUG+S1BRUX/jy/u46MRyRN2PHlMrQLuhzwzRXVpSelLz2WrnebmYObzFVX0OKsVNljp7rFwRRd7diWzDBOCXxkRQaxijfSsv+jS+XS6aheqzi1610Ip/GqJ8fvxXu2chrcP0L6pm2YjOROw532WbzJNV+UfWN8LWi+tMY1WYJIPhX+ue68goy5rP7uwqMdsVidepr/Cnj0fxBbdAXVwKjD948bjX5/aA29tgD5Ap5982R/Fkdt4D/EMOHaBy4sQzThY2vKk5PdlbRAVLG 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)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0402MB3920; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB3920; X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(39380400002)(39860400002)(396003)(376002)(199004)(189003)(53936002)(25786009)(47776003)(316002)(2906002)(5890100001)(16586007)(6486002)(36756003)(4326008)(386003)(6506007)(186003)(6512007)(478600001)(26005)(16526019)(97736004)(8936002)(86362001)(50226002)(52116002)(476003)(81166006)(81156014)(486006)(76176011)(305945005)(51416003)(8676002)(2616005)(6666003)(105586002)(68736007)(446003)(11346002)(66066001)(5660300001)(7736002)(50466002)(3846002)(106356001)(48376002)(6116002)(956004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3920; 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; VI1PR0402MB3920; 23:4qiolwJjmto2mby0x3SINpzPTFLsKCb26tO3uta?= =?us-ascii?Q?jWl4kW3f0Z7I7/7+wWv6VvKC2n1Gx75raE5ici53MRUFeIYfbWZDPX+gkM7h?= =?us-ascii?Q?1NkZrN7ExkOwGz3YkR2JCH6MxCT0Dq142qVRtusvw+QEaddPy9DtB7ZuyGdx?= =?us-ascii?Q?HUsTpv3tO/xp6PSNRo/09YD90qLu5952VBrZOb9Zu/u+MmjcWxCos34TE4Dm?= =?us-ascii?Q?2JEOEr+32aM0oDqXLiAMIg5cnDIV9qgsJax1AYronqITtZ7YUcmHZbHUBhSk?= =?us-ascii?Q?qGVIcXgdUbXeg6zjJaT+GI1slAWVNBsT75bZkcW5+/CmxqjZDAZoQArAyvMQ?= =?us-ascii?Q?iuaoeNkGbDa7GOpEdgM4Z122g5ABT919wjv1geE1Jary8lnd/NS0hvW3L8WR?= =?us-ascii?Q?1in4wKLY10mXhBb1Y7Hl8aof0KQE5OeaMaKrYshzOzP5JkbByjrmhFBoVv8t?= =?us-ascii?Q?VPxrluaGqth5MXgYIpjc3E77fwTEcDYcDXqVfbECXs8+6be0lQuRL8R+8zL7?= =?us-ascii?Q?ARMUb2brAL4TxRpQ3BtfC6+j2senUjpt9uKyfuFNolPCmSUMOpqHyM/tXyGY?= =?us-ascii?Q?RnnLURpWd0bvm7049fTKvkadA6gTjy+PDMkfXFd+ZBxZOrIWP0p3XFSif4Oz?= =?us-ascii?Q?XSRh67LNuwRBWM6o3vOaAgEaYgF08fEE0a/hHgEyVWwkh/61lfmxW6R5vnAb?= =?us-ascii?Q?8354BnfKI2E4GRwWbmaNioiXE/paIJmWrOFchtWh1f/kdWHmQVcLPv1NDtbT?= =?us-ascii?Q?Yz02dh+bKoAjbvdljryP8LNqcVt1hHrn42WH3vp+5JypfLNaR4Fm71HidEGy?= =?us-ascii?Q?nmICSKNmckJkNnnpoSBrZOwJAklltm8qUwjY3rFfmmMu32CXv/Xgdj/3d4io?= =?us-ascii?Q?zpnX/6CYd7eyLX98yhhYEokV9UPRZ8anaUSghRo7yltzRW4ExqecR4QSKLh1?= =?us-ascii?Q?MNc/t+dGohj2wcXcNisJvv/v5+2RTDvkLO0h1mPDOpEcf4oGQupodXx/Uzw3?= =?us-ascii?Q?xEGbjIGJmsOnAw17BEj535ooCprjeUeJqd6RgiE1rPJNJ/1g4r8SzVPYj2r8?= =?us-ascii?Q?0EXr3jEuVtJYHaVxGw88eetLjp67B+B2Pw4L9pMi5/ZjE7KQC205vnzymLOC?= =?us-ascii?Q?Kiu7ZKnsjSq15jcddBOvTS9nnKesahGveESmo/TfgRHOWB9tizF1H+GcBF/t?= =?us-ascii?Q?FE3Jx0bwYSkL/iS0=3D?= X-Microsoft-Antispam-Message-Info: FjYK/6y4RIY5LbEiE2svV9E2+7AQjbYhQSBgWJIaDx1IDC/gsGlhsskYldMcg/hAtRZblHL/wsgvicCA+0NICpyZnTNVLLXcO2jMHFxFtQkN6qO9fM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Output: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB3920; 7:5dIdQUkJ4ouY8v50WyQkNNh7zcLKr2GlL3wH054puGtvdpCIC43JWVnt7ZwLeQtumTM1dXiJHk6vrRMONYmcEo3pE2tiuTiHpd48bS0Z54Zea78jlOjhZSrnCC4qcTbUO9rIXHifDYuc154NLsQLNUddQa/bzOYS5fYVuFD/jZGtI7P4lSFwpVL2i4Nn2ymscvVaHp3eSpPEgsEZ9BQJ+doNTwtDSHtnSogChXdOpJ+kP253wuGNaMQdfluLYMPc X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2018 08:25:48.1420 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d4e2dd88-aaf9-4455-737d-08d5da7543e1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3920 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>; + }; + }; + }; + }; +};