From patchwork Tue Jun 26 23:45:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10490327 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 47C1D60325 for ; Wed, 27 Jun 2018 00:02:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3923A1FF13 for ; Wed, 27 Jun 2018 00:02:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C89026E54; Wed, 27 Jun 2018 00:02:40 +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 AEB341FF13 for ; Wed, 27 Jun 2018 00:02:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754277AbeF0ACi (ORCPT ); Tue, 26 Jun 2018 20:02:38 -0400 Received: from mail-eopbgr00087.outbound.protection.outlook.com ([40.107.0.87]:53173 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753093AbeF0ACg (ORCPT ); Tue, 26 Jun 2018 20:02:36 -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=A+A97TVbL9WYcJt93UPyOIT8WnvSMWSO8oI3r3Zj3ZKjPqqYY8dD0Npj8e00go7HlIFPLsJFHcWaRPJC/5ClgkSA2tnJJKCsUX65hreAOKbWwqwSPpfZp+nsthLzd7iimJXr6Fxy2KzVwbVnDSQ0uzgSCFHrwBwnLuoMxgPmd3s= 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 AM0PR0402MB3908.eurprd04.prod.outlook.com (2603:10a6:208:f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.22; Wed, 27 Jun 2018 00:02:29 +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 v8 02/14] dt-bindings: usb: add documentation for typec port controller(TCPCI) Date: Wed, 27 Jun 2018 07:45:20 +0800 Message-Id: <1530056732-9640-3-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530056732-9640-1-git-send-email-jun.li@nxp.com> References: <1530056732-9640-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK0P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::23) To AM0PR0402MB3908.eurprd04.prod.outlook.com (2603:10a6:208:f::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df7309db-bda4-46b4-ad61-08d5dbc14921 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:AM0PR0402MB3908; X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3908; 3:Z+0sPh1IVUKrAbW6x4V2l0AidZqeAjH2dWsDxwa9nmA0S97fcbSfVKgnSWKRdwLVYocO5mN5FqhMy6lW+9SVXGzYLs1qae+bu3xRCGPmEPcZejD5rOAuvt4bLqWcbKOjPIU8GPjcQqrtRZN50mEb85qvi7QMIoa0LE+qXkA4j/74QhEeFVzkWKLqPg/5GJ1rKo+fK2MHVyhErz6fhpKBNyCJjx8iiqNaZtDaseIROwdBcguBGR6ybfWAve45SAEa; 25:zHaM/9qYbf8bU1zs7pNNh9z4T10DP5GKEaYaURA8OE0hTOLCHI/UgOQQyYvy7hB5tDi1B3/L3lwCdiOfbKYMMEBRMALFX7hlZ9iUaW/HYKWzhGBhfy9o5zDxRi25yfojZf0WOSMRM/2fB+hAjemdWKJoe6v58ZFr8Lc/MrJiFjuoHD47puuG8Cu1JDvgAmz/6CCF1HHBnohduCZkyCIKo6Af46X2D4GRNReOk3wAmdZ2lwUPVZRWn0h7Uk0h+3ogRpQ6MQpieRRLV8EpHp3SfdYEeO7IiuETrRErvat+a8Pc7q3KMgzjCiJ09jxGBleDQGYKuuA1xecVuoYG5Wbb+Q==; 31:47cOA87H8749IOLYfjYQVZjCRAL92Uz8yGBDyx4bzDH2TNW8k3QxAK0+QDF8s/BLaPk1I/o6KN9AYwp57UNfPu1blQPesWeMDXnd/7q/oEIu7uc048UXxwWt0cgdufj2Z5If+QERCHXwUt/T8c9G2RzQrk6U7fGTspNPBjv3GfibFYloBaMjn2KwEKlZK49omo5U5kZvC9dBV/Y5qUQQZRPodtkZBpyywu8Qs6LBFeU= X-MS-TrafficTypeDiagnostic: AM0PR0402MB3908: X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3908; 20:XEC9orgpgLtWCdlhLALtUAN7DBcjo0sCG9lspYua9d9g0vmFvGWq3W8S4HzjcVUho3IFteDVS/dgSih9Hgoq15WLO0NRJQHr37wk/rFgb6lO23ycrhuxhwlX0/hpAeSWzxpBq80ki+4jSaj1CZf+Y1peqYcRwetymAEQgXGCCqpeCvEtjXAtaB74KJkFCh8iPCZAKnJylaW/BdgBa3UzclMNALLB3ZNcfJk80HmhI7ayyhrqlYSb7D64nM8SdJAK96n1yjzppMRMgIAZcE7dkjaWZobV8pQkQszLQVwRltyWknqrVkwvgTl00POMqH4a/nijYwzzJ/i0GYKh976E+DjWeRXemcFe58LEOhuhnqyvzmHx0cuDsL3DYR4P9+fZW7e4MSzjK5rNxn20BGB5bUncbTCVKJvDtY/wktmBmCas0BPU2SS0jxlNcYVi4t3X/zFnQa8mJNcp5hQdFi9L71v6e3xS0zExNltM1fShYgB67+/0URV5hJlwpzU7et/O; 4:3MPkQfedZYAplH7R8jXdsqG1ev60Eq4AsGspn+1ubS4VGTT0Y6HvzVOVorS9fJBjiF+ajOKaa+UODhRTtNN6v8XKFtNIrWWwwIQMMvF4bNNa+cIg3xdDKYWc37F7O7gJL4dZdQMkTjqR2MFLWPkk4ybZ/oE6aCUDSD+s+u5YBYEVQxY8IBxjRzTc4CZbJmgDXl1qeb6m8a993n+1/0z/G27NarA2NiPgmn/ZhRghQ4nA+Qmt4vLG0S3n6P1O04eg4c856DwDlBl3+G23TltdItPt8XSitN3M5CTUwXNKoOLW50895lI8fZn9YaOia/gP 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:AM0PR0402MB3908; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0402MB3908; X-Forefront-PRVS: 0716E70AB6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(376002)(366004)(39860400002)(396003)(189003)(199004)(2906002)(5024004)(7736002)(26005)(6486002)(305945005)(486006)(48376002)(478600001)(86362001)(25786009)(4326008)(16526019)(186003)(36756003)(50466002)(16586007)(68736007)(6512007)(47776003)(51416003)(52116002)(53936002)(3846002)(386003)(6506007)(6116002)(76176011)(316002)(97736004)(50226002)(476003)(2616005)(956004)(6666003)(11346002)(446003)(106356001)(8936002)(81156014)(66066001)(5660300001)(81166006)(8676002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0402MB3908; 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; AM0PR0402MB3908; 23:mma9ikfhMivYXrNSHRGMHi16VjBJ3QPmvS2uOJv?= =?us-ascii?Q?R67cFTdRf3Lpcnwpw2ZHVVcDLhXJ5ACcQ2xSvV/iRGS7lnCtoNG+gcWD9XX2?= =?us-ascii?Q?P4hLenyF3G3XZjnRyqH6somYC++hzlvBodTmcYwFMB7ira9jWW+JDkRiLnku?= =?us-ascii?Q?7DBOuD8vet2DcSyRpABw7IA4OM4QW+Z5o/IiyHowZBGaU3QQ8OLwt5s5jkE7?= =?us-ascii?Q?im+QaIl+CQso6u36F1uHoc4Yk0ANyH6CO6KpTd0hGk165mqwS0ZgEKFjeFHd?= =?us-ascii?Q?bAbYIcaSZesrLJSnyPSBi2TOt5S8FkTkFoFxStu/fT+DAqC5QwUQz1s1Axr+?= =?us-ascii?Q?ZK3gv4rzotI2nSyus4qRrVBAynvQjlXiFH+P1KQX+fEbE/v/wJGkyKX5kDZe?= =?us-ascii?Q?LexAbHGbw5VmbPhN96fn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amDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3908; 7:F/NotQwPfONjPTNRkLIwrmt3kJb+LD5laCrglLxYKugdLK3ejESoXqqHj9FYBBS51/qTA6H0GASa8lGDh5aaVc48edBR6E0VmQBa8irbIpvpDaoui2bgUoFOaFe5E1und2oWV/FP2adL7XLaVF+jSHQySwrAy/0X8ApoGlc3BvYyvLCfQL0gTAF/n3nKUx4zR/5GspGenVj1OFRUPN7zaej7+4OxddzeKHZd/9xvlCkgSpX5Ip0ZHwqdJAbMPgr4 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2018 00:02:29.6312 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df7309db-bda4-46b4-ad61-08d5dbc14921 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3908 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>; + }; + }; + }; + }; +};