From patchwork Fri Mar 1 01:25:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10834325 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 021DC1575 for ; Fri, 1 Mar 2019 01:25:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E06F82F73D for ; Fri, 1 Mar 2019 01:25:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCA7D2F743; Fri, 1 Mar 2019 01:25:17 +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 4F1322F73D for ; Fri, 1 Mar 2019 01:25:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732878AbfCABZP (ORCPT ); Thu, 28 Feb 2019 20:25:15 -0500 Received: from mail-eopbgr60073.outbound.protection.outlook.com ([40.107.6.73]:32279 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726088AbfCABZP (ORCPT ); Thu, 28 Feb 2019 20:25:15 -0500 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=mRShm9FvofIAmXQ8YYQnYX2FUMzItv/tUXi6t7NmTLw=; b=faqvbLoIhlT+uuJIkq2Hk3fJD0e9kkxGS9SDNaQ25CWgoj7RTLMNHfUTfnvXsVy3AEn5oVSPNyb1C0CY7P58Q7TgdQOKCUdnsp/w5C4ZMbzYMGSWDD/knbWc8V7q/bDekB70oNW6BVDuX12kwTSg+Cisj/vbj3jjraUvQpJ0o24= Received: from VI1PR04MB4558.eurprd04.prod.outlook.com (20.177.55.216) by VI1PR04MB2080.eurprd04.prod.outlook.com (10.166.43.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.16; Fri, 1 Mar 2019 01:25:10 +0000 Received: from VI1PR04MB4558.eurprd04.prod.outlook.com ([fe80::952d:34ed:3402:da3]) by VI1PR04MB4558.eurprd04.prod.outlook.com ([fe80::952d:34ed:3402:da3%5]) with mapi id 15.20.1665.015; Fri, 1 Mar 2019 01:25:10 +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 v2 1/2] dt-bindings: usb: add documentation for typec switch via GPIO Thread-Topic: [PATCH v2 1/2] dt-bindings: usb: add documentation for typec switch via GPIO Thread-Index: AQHUz82cHMFqwfOyTkuIKQnesHcYZg== Date: Fri, 1 Mar 2019 01:25:10 +0000 Message-ID: <1551402256-7815-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: HK0PR04CA0015.apcprd04.prod.outlook.com (2603:1096:203:36::27) 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: d4c5a626-5fea-4390-2eff-08d69de4becc 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:VI1PR04MB2080; x-ms-traffictypediagnostic: VI1PR04MB2080: x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BVI1PR04MB2080=3B23=3ARQ?= =?iso-8859-1?q?SEwjjqifLYMg7kuQd7b4unGOTWx8iJ1uRoec41FYVoUaO9es5t+mY4q8N92D?= =?iso-8859-1?q?ky/lnl9EFBkq3cE+zqToFlL57E+pW8sRiZoc9RZrvgh79pkFRe1CenO1nWQK?= =?iso-8859-1?q?iNuimeJpDfyE3B1d/sJ3+Z7Qc/zMWJjUMoKFIxEmAhD1el9p+1VLQTAky0QD?= =?iso-8859-1?q?YEVVrUj/X8W7z1/m8zD93UavvNZhMwjHPK2PgS+uPgsvKZ/wFUBjm2dEKUNz?= =?iso-8859-1?q?VwFlM8Dtd8fKsAFoGzItDBJZfbJsCm6g7+GZlXVygbRHpaZm2G7tMFkdtv2c?= =?iso-8859-1?q?JC0W6O5MBE76GPRv6MQFLg8jnYw4EcJ9e//+YXNj3nkfOoNi2qF0rZeHswWQ?= =?iso-8859-1?q?Uo54JkclZ/VrrbUEMrJZzNK9inXPbKkBJhSND3qnBKnjoQPDfO9CML+27XwQ?= =?iso-8859-1?q?Ws8l9hNFt4IKoGhSostrGsakOk4gXylx50zuu46QvW0k6IVkeM836jGhYLGm?= =?iso-8859-1?q?06hMRYjIDs/tDDTXwJsI9rVBEuoR2Mulmcm+y5cXIqDyXCxRo24800q/T62R?= =?iso-8859-1?q?63fA/bSsDrJuuXcNX43jF8S8DIcNtvx2bwnhUx0Ua7BKkOSi/yHEOvAAFy/w?= =?iso-8859-1?q?ItSwV9ZQ88522dCIdQwLBFYbglxvepEaTLhQ40D/uSpUBZ+nSWpLKNv2UP7j?= =?iso-8859-1?q?QUTOIlbhaOy/7X0JqWdrsLnT780RsLQhqTHiaQxSMZK8UMso1cCExUVwpCjS?= =?iso-8859-1?q?JfpGL91uWgwY6z4OmzSiHdJmhXz/sVar2NRMby6uGHG2jfvTdvUL2vbnn9Ry?= =?iso-8859-1?q?oQJsTtmNI6TkUUrfFtmRvVV/1rcX6PLXmOzp/SoQrQeedoDSltPlpn+mUJAq?= =?iso-8859-1?q?yvIX/GmGpXStf7zRXbJScBFnQL5Hd8eW+xFxR9SKstMkCQX8YnwkaAvca+h2?= =?iso-8859-1?q?Uj4VWl0mdeM2t0hbwlT6HheLLKAehG7rO9ClxBBGnqZO0Y1EhV/f571pWysN?= =?iso-8859-1?q?yj5aQyPkhu7MoepSTu9qhwfh4dfL88Pmi7OP9holIPoedjtA20I/7AY9Z0oo?= =?iso-8859-1?q?krlmm+eSNh1DrqIt5hVMMxjb8eMrVGbr3QMngOASGb4LJsKy6HL4kTKETl2X?= =?iso-8859-1?q?/33OMxC3G0yawtWPRM0cCzwmq6jL5OqrRsnv9OZTWj/rvEmNAe6nJyZZOoL2?= =?iso-8859-1?q?uX+ivl1WrpSJQR0dh1EdcMBAsHWiIRmw=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09634B1196 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39840400004)(366004)(376002)(396003)(346002)(136003)(199004)(189003)(110136005)(54906003)(316002)(68736007)(4326008)(2501003)(2906002)(25786009)(36756003)(105586002)(6506007)(386003)(106356001)(102836004)(26005)(52116002)(50226002)(97736004)(186003)(99286004)(86362001)(478600001)(44832011)(3846002)(66066001)(8676002)(305945005)(476003)(2616005)(486006)(6486002)(256004)(14454004)(6512007)(81166006)(71200400001)(71190400001)(7736002)(53936002)(81156014)(8936002)(6436002)(5660300002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB2080;H:VI1PR04MB4558.eurprd04.prod.outlook.com;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: XuEZEO8yB30IQS/m0t9qR176pD41tmHdQnGR84owGYcXXf6r+AErML/9ymkomOZDiUxV0ZND6v2m09Ne44/5Sek8+iZeQmll8gz7ybmhKbuQiAb0QuToRm/9Q1tIUd5jRIYZ0F7ORRPs3Ho2HtUgL90SCnWggIzfS4hHVFMYz0uxE/H/vstlMCjK1RBMJOSOgiRfq5iDs24CStasq6mqvVEg95rgamqGbzq+mNWdOI2srO0PIBH8Y+nk7xlIz5VWAr8B/fBfxetYLFlkzD+T7AupCY/VO7f7ZJMRb1HL+FWGxTofpGl5VwEGTo8VEZe9d3syNvrYF5heitUofZXe8jKqDN59fXZQuHXphSToDKkRdi8QVgFD+d6okgUUki7Xsj89rQKEnDRAP2qlZCfRttIg1LxtHijMF1HtaxGuY7M= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4c5a626-5fea-4390-2eff-08d69de4becc X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2019 01:25:10.1292 (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: VI1PR04MB2080 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 consumre. Signed-off-by: Li Jun --- No change on v2 for this patch. .../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>; + }; + }; +};