From patchwork Mon Feb 25 07:27:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 1047606 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="Q8CptR7M"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 447D6Q4TsTz9s71 for ; Mon, 25 Feb 2019 18:27:10 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728557AbfBYH1J (ORCPT ); Mon, 25 Feb 2019 02:27:09 -0500 Received: from mail-eopbgr10049.outbound.protection.outlook.com ([40.107.1.49]:50837 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728217AbfBYH1J (ORCPT ); Mon, 25 Feb 2019 02:27:09 -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=AiSsIDHXFXPV2SMaOmY1ADMtQHHiZUOiael9bWaotgo=; b=Q8CptR7MULk1Aqe/X84wfJ5T3HAGi8HsvqBKG8n09fm3IvPnzkqcs1+AoLw2tnZ331m43kp38tZZImFn1J6qeiCmPMVO4ddEVnbBK1mL0EorALi6gz8CL+cDFy/Vk/Uiq+Gk2LklFbx0jo6xObQdrdwO4/ALRNyvBQdJRz9YEso= Received: from VI1PR04MB4558.eurprd04.prod.outlook.com (20.177.55.216) by VI1PR04MB5518.eurprd04.prod.outlook.com (20.178.122.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.16; Mon, 25 Feb 2019 07:27:04 +0000 Received: from VI1PR04MB4558.eurprd04.prod.outlook.com ([fe80::b0fe:dee7:b2d3:9355]) by VI1PR04MB4558.eurprd04.prod.outlook.com ([fe80::b0fe:dee7:b2d3:9355%5]) with mapi id 15.20.1643.019; Mon, 25 Feb 2019 07:27:04 +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 1/2] dt-bindings: usb: add documentation for typec switch via GPIO Thread-Topic: [PATCH 1/2] dt-bindings: usb: add documentation for typec switch via GPIO Thread-Index: AQHUzNuBl0h1OVH1gkmdtEXLPmNDWw== Date: Mon, 25 Feb 2019 07:27:04 +0000 Message-ID: <1551078369-1654-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: HK0PR03CA0045.apcprd03.prod.outlook.com (2603:1096:203:2f::33) 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: 75e53286-7c0f-442a-3f8c-08d69af2a3c4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB5518; x-ms-traffictypediagnostic: VI1PR04MB5518: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB5518; 23:5ADosNvg3lU6RwKjMXc4tv7syO8mFT8btvgRzsd?= =?iso-8859-1?q?h1X1NQrJxKdeRivZ7IuHBP0n3?= =?iso-8859-1?q?5ZglkyYDQSnQNl0Xme5ms/N/QcK2FCKpqoE4MJ7Q6qn23stoFFv?= =?iso-8859-1?q?9e5yyqaA7RmpwOUNnZRs0H25KqmwT+6iJtl5aWxMhA/gi1NVFm9?= =?iso-8859-1?q?9yHdVILDUqhiXf8TTCbbGhb9Phy6zydYM5hgufVt9MbHtrj+i4O?= =?iso-8859-1?q?WPfh6VXa6GvwAqt9ux6T4vwchauLC0uswfij35ugVwfHjRjmNWJ?= =?iso-8859-1?q?qZZIAN28+lj77sXJi7csDNQPso4Ee9S+rvqF72qV9hSjTRFufBh?= =?iso-8859-1?q?Nq4kw4jVn2DVT2sc13U94djuMAhxureRiWabjMBMGC1Retfb+fk?= =?iso-8859-1?q?79FA55qGa2SdBG3O9wW9cb+2RKV51wlqqKuTr6lWLiN3VvUkxZz?= =?iso-8859-1?q?iRzH5+oy+GqzJBvUDpHE0rDMRusqHlnfGrYxzMohEz9vTi8dsmJ?= =?iso-8859-1?q?L5NfAmjgwA4K+PnbFsYqYBQV3rpJj/2V4J3pMRsDydnBVrLP/9/?= =?iso-8859-1?q?zfaqUksCCEqcgytFt3Ctgp0Dcw8TRQBeSvPYoc784LuVnCyTCOr?= =?iso-8859-1?q?jHxS0xGS6nPKsdyAXFqg60wFhqHGiBIw5Z/yLOyqUoqi00KHE1s?= =?iso-8859-1?q?cPDNxaJWCYWXhrW0K7hnewT8qdbfg7yvbSfr1Yst+BjxgVLqSZ9?= =?iso-8859-1?q?1cqPV8iuHGFFgeSVdeAdKGcBJBK/4y6jOuSbj3C3NCruSgWSWmF?= =?iso-8859-1?q?H6wzzscl/srG01SLeBTp7yVkWplpobsxQ38QKJRC1kLQ7HFZZIk?= =?iso-8859-1?q?Cc0LYB3w+F+dWa12sTOX/H0cwHQCwDNSgWo266TiV1tJjfoLDae?= =?iso-8859-1?q?Ilb1FETvqQvhby/R8RVM+7G0d/Ntk0tUf5LBssAkhTWrVwRQYZo?= =?iso-8859-1?q?xANWqdWtN18x5Qai2cO/+PmcoHd+l5iMzaPeqq7CnGnAAVhv4qD?= =?iso-8859-1?q?lIG3dDsn8+zqQJ7yeHPgjDx1w8pcpF0VVMXwKX4Wq9oJ0+tQ0N3?= =?iso-8859-1?q?mQhYcjul4KBFr96yM3W60xxyD5HGmybb6gxJdW5biZblf7vYWkU?= =?iso-8859-1?q?dgwqTTEK1xy3ScsvchGObp1lWJATPRneU2tNj8flv/QoVG+gwax?= =?iso-8859-1?q?3jGfdyiRx7ntdJ2uYU/4h7rCOExrh3aedW/W+IQNgfEke3pxFbs?= =?iso-8859-1?q?uUbhkSv/yRtYDycKq1TgatH30kpU+xmixs8aYiA=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 095972DF2F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(39860400002)(396003)(346002)(376002)(199004)(189003)(316002)(36756003)(6486002)(7736002)(68736007)(102836004)(8676002)(2906002)(81166006)(81156014)(386003)(6506007)(256004)(44832011)(86362001)(486006)(66066001)(476003)(2616005)(54906003)(305945005)(110136005)(6436002)(4326008)(105586002)(106356001)(5660300002)(71190400001)(2501003)(50226002)(6512007)(71200400001)(26005)(52116002)(99286004)(3846002)(6116002)(478600001)(14454004)(186003)(53936002)(8936002)(25786009)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB5518; 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: hPPkbNg6RnZN7613GjVIfXSHcJtsXN/H+gJZx3rD96r2f5f42LkM3Qv4R2YWbKrbXCWK4dZCWbCMvcOYnCbiktVnDZKm2s/z7KosYma7+tNJ2PWXQpc3ljjuachX2o8Qzc6gHZDF1n3AREnHWI7vXhl3t+DqyTzZmUC+Vuuo7zeX7ieltPdnVFq8wS/JVXWUVVK7sTLTyalbWg99ET7Q+SyAEn6YBiw1LB3JNhrfg1CQ0NICgaxiw2DMWj9p6TLP6RjRU3uCYdaIP0cCSlvROPt0ga4axhWkK1dBrhZo00ZIkKC9KSBRVlrlVUI2uCuIWyfOrK8OhkK7a4FXUOgJIDibyvqScK13bN+9Enp046j7IQLrbAvtbq0tkN7QxZ57vg15blqwrDgkX04BkhlKRN4APX+C2XE/EL8r2JsLVv4= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75e53286-7c0f-442a-3f8c-08d69af2a3c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2019 07:27:00.8281 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5518 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../devicetree/bindings/usb/typec-switch-gpio.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/typec-switch-gpio.txt 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>; + }; + }; +};