From patchwork Mon Mar 11 10:40:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10847253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F0AE01390 for ; Mon, 11 Mar 2019 10:40:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCC1E28F94 for ; Mon, 11 Mar 2019 10:40:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA75628FAF; Mon, 11 Mar 2019 10:40:16 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 7046828FC5 for ; Mon, 11 Mar 2019 10:40:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726932AbfCKKkO (ORCPT ); Mon, 11 Mar 2019 06:40:14 -0400 Received: from mail-eopbgr20085.outbound.protection.outlook.com ([40.107.2.85]:10405 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725839AbfCKKkO (ORCPT ); Mon, 11 Mar 2019 06:40:14 -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=8FoYEqrWHHFAe47teIpoyxftaVJUm7Dcym6k/mBzbbs=; b=DQ7W6OGTl4q1KZaO94cz05CMDSaLJ9YvDe8XXoYhtZEhjPErMrZWnBICiuX/KMJQlKGqlBE5uHj3UmKOslgP1XfDqmCGSiwOHWpBBxpDZQbnWJR7cQFPVyju6FZ2rdMWd1iO2F6R8J4Oh5AUb5vM2eT0h39qsQEo7vknoHZQBSw= Received: from VI1PR04MB4558.eurprd04.prod.outlook.com (20.177.55.216) by VI1PR04MB4160.eurprd04.prod.outlook.com (52.133.15.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Mon, 11 Mar 2019 10:40:09 +0000 Received: from VI1PR04MB4558.eurprd04.prod.outlook.com ([fe80::952d:34ed:3402:da3]) by VI1PR04MB4558.eurprd04.prod.outlook.com ([fe80::952d:34ed:3402:da3%6]) with mapi id 15.20.1686.021; Mon, 11 Mar 2019 10:40:09 +0000 From: Jun Li To: "robh+dt@kernel.org" , "heikki.krogerus@linux.intel.com" CC: "gregkh@linuxfoundation.org" , "hdegoede@redhat.com" , "andy.shevchenko@gmail.com" , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , dl-linux-imx Subject: [PATCH v3 1/2] dt-bindings: usb: add documentation for typec switch via GPIO Thread-Topic: [PATCH v3 1/2] dt-bindings: usb: add documentation for typec switch via GPIO Thread-Index: AQHU1/bM2snEdI6yLECsdv/WqEZxiQ== Date: Mon, 11 Mar 2019 10:40:09 +0000 Message-ID: <1552299557-6306-1-git-send-email-jun.li@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0P153CA0042.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::30) To VI1PR04MB4558.eurprd04.prod.outlook.com (2603:10a6:803:6f::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jun.li@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b5d33fc8-448b-4c7b-e91f-08d6a60deecb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4160; x-ms-traffictypediagnostic: VI1PR04MB4160: x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BVI1PR04MB4160=3B23=3AAc?= =?iso-8859-1?q?T4DgobzLuA1mibuK1jm+SQnTYm8p+4hYM3moK19up36Yn+YvOjzNu4CpjL+F?= =?iso-8859-1?q?H5loPnkXQUeJ/TDFz9chG7ivV3k2Dds9brMZx76y0P8XDP1rSn7inREGJJOH?= =?iso-8859-1?q?ykQZjD6pe6tap8smOMnn+943owtm0NBll82PLOBx37wo/apCDYnJKgnw7gBk?= =?iso-8859-1?q?5MNw2cYU808ZvGa3eyi9BVZ2VlY5EpHssPlVIe8k9Kbx3xUCtX502L6m2tqg?= =?iso-8859-1?q?IPjvqA8vFLAKyLfWfJ3ZKTkPkWNprITkbESULpzHl4HGugcq4on872XlrlsF?= =?iso-8859-1?q?Jl7ifkRThOAkfmwf0wP5CxuR4i7DLBKfdam+ONZJVZ+dJzJAa+1uKco62PBQ?= =?iso-8859-1?q?5OUPRtV5kFFus6y4NFB3vd70RKxcCwb3WYBc+EMVT7z6tK+TUAJCkVjkNgAK?= =?iso-8859-1?q?K6jgn47n7p4IlXNhCVwsJxgRMCpJrjpVn7/bY82rzN909oBUx4OrJoRJ0F2u?= =?iso-8859-1?q?WbHakG/0CUOmjGduZ3C/ruSWfDZLaJBQM2k3seRO582u+zyLLkxVJAmW4ixD?= =?iso-8859-1?q?6b0HBQU5PhSissMBkkKzzNv4syJLp1lwgT1dUepRhd5DM+pTfBzANCv6XW1D?= =?iso-8859-1?q?jjeiqdfj/lwsCTSvMqaz+zEid/uhJXBywCbmACbEVSEUF8mKXzJFL15BqUYk?= =?iso-8859-1?q?WCyWPiML8tjzSIfLNBXZ2aDMl8jhOGFp1wwv8wuZrRZJ3wNYhiY1ah58iAKX?= =?iso-8859-1?q?zMNrvri2uCl8TXLfSkvbmlLFrIk4hqC02DWlQ9o2919B6niz2BOJDuoh1eNx?= =?iso-8859-1?q?J8+xSoHXlpgZS8CMrgSflAC2M7vtlR/1om2KqMFwNrZx0fU0BNnjiqg8wc+J?= =?iso-8859-1?q?kx/AurPVxlVCw8IrGhAfeKp0FGw/FEyAcdx0yStEvCcPK36WTQWY0BBHLoXY?= =?iso-8859-1?q?KhFkWL0uOSU3AIt7EXX2x3gqpo4ElKx4X9bgUSjL0maTCAdl6uIjS5Wp2YfC?= =?iso-8859-1?q?5IdVswVTejigcPby/FKpvs7DwzW+ktmFqmvAzJ9vcphJgCYRzpmkl3aMY2xf?= =?iso-8859-1?q?56QO90pgOYEdSTvJItmeq1lUR7cf6tT6fjIxoeqoG+FR9AYm/W20xgY6IuUb?= =?iso-8859-1?q?RnOvGaZ9RS6HCJ2NyDVypFOlF0NdsfkIjMMAO1o+U+rkz3b7D1Wl8vBdvvWa?= =?iso-8859-1?q?uc7Lo1zfK9XA988dT6KyBhql2gp6dqEg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(376002)(136003)(346002)(396003)(189003)(199004)(6506007)(386003)(2501003)(97736004)(478600001)(102836004)(305945005)(7736002)(81156014)(81166006)(2616005)(5660300002)(86362001)(256004)(8676002)(71200400001)(71190400001)(476003)(26005)(36756003)(44832011)(6436002)(6486002)(14454004)(68736007)(3846002)(53936002)(66066001)(6512007)(316002)(54906003)(110136005)(186003)(6116002)(2906002)(4326008)(25786009)(50226002)(99286004)(486006)(8936002)(105586002)(106356001)(52116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4160;H:VI1PR04MB4558.eurprd04.prod.outlook.com;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 77g4mF+w0kkj4HJHIS2flpC/2t741azoazLDWybeA3qUOO54JkKYbOzy8Nw44xMPvdtgqWyUWU/3wng0c6uJ/Wyv9227dXBD0Jb+MWy0KakP42eIRzydfV1sCAR2Etm8L93vMdLj5HENs3Vot3NJDS69fTBkgCtdPXe5aL3KXV6VApBmxR3E4LGH0PeyLsJUCbZzeJXrhKHXdF/vD6HqdYXjI5jrvM8pxt0/+vF6aRrCpNDYfac7eo/bfPdHDzLmtM0LDswSUe3K3HxoFHUztEXmHPpLthoB80SKhgZmhcU9ED0b+4zGrilmo22QSc3enZFPtxE+YCE1OrCGUkQuqkBMsXKCg538pgBo4Eu2YCoExaou1DCF9aCpAcKPyc8FAYpUiGILlDOUr05/Q0QH1/27omtyn0EabHbvcbdXwNM= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5d33fc8-448b-4c7b-e91f-08d6a60deecb X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 10:40:09.4463 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4160 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 Some typec super speed active channel switch can be controlled via a GPIO, this binding can be used to specify the switch node by a GPIO and the remote endpoint of its consumer. Signed-off-by: Li Jun --- .../devicetree/bindings/usb/typec-switch-gpio.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/typec-switch-gpio.txt b/Documentation/devicetree/bindings/usb/typec-switch-gpio.txt new file mode 100644 index 0000000..4ef76cf --- /dev/null +++ b/Documentation/devicetree/bindings/usb/typec-switch-gpio.txt @@ -0,0 +1,30 @@ +Typec orientation switch via a GPIO +----------------------------------- + +Required properties: +- compatible: should be set one of following: + - "nxp,ptn36043" for NXP Type-C SuperSpeed active switch. + +- gpios: the GPIO used to switch the super speed active channel, + GPIO_ACTIVE_HIGH: GPIO state high for cc1; + GPIO_ACTIVE_LOW: GPIO state low for cc1. +- orientation-switch: must be present. + +Required sub-node: +- port: specify the remote endpoint of typec switch consumer. + +Example: + +ptn36043 { + compatible = "nxp,ptn36043"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ss_sel>; + gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>; + orientation-switch; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; +};