From patchwork Tue Dec 11 02:09:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 10722979 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 BDA211751 for ; Tue, 11 Dec 2018 02:09:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEB422A915 for ; Tue, 11 Dec 2018 02:09:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A36B12A917; Tue, 11 Dec 2018 02:09:08 +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 415432A919 for ; Tue, 11 Dec 2018 02:09:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729508AbeLKCJH (ORCPT ); Mon, 10 Dec 2018 21:09:07 -0500 Received: from mail-eopbgr00063.outbound.protection.outlook.com ([40.107.0.63]:1191 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729474AbeLKCJG (ORCPT ); Mon, 10 Dec 2018 21:09:06 -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=oWc7dpGjdQ7QaDt9uyHl5Jce+DUYGjW/EA0904U9Ioc=; b=VT05uqLwbRBM6ALMHB/wVeBJFVAWMC/6iJyYL+Ix08J9SXoL5H2qHDuLW22odwiLobPTUKPlNTSfU5nlC03QYJjksKNpm5h61GFcFxjXo1ddVOdJV0X9ZHGjYZGp7knsSPf0T6ZyiaA7fZC+MST/+DV5OG/SGWrYkNRmXSOlKm8= Received: from AM0PR04MB5314.eurprd04.prod.outlook.com (20.177.42.87) by AM0PR04MB5986.eurprd04.prod.outlook.com (20.178.114.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.17; Tue, 11 Dec 2018 02:09:04 +0000 Received: from AM0PR04MB5314.eurprd04.prod.outlook.com ([fe80::7456:34a:3cbc:a78a]) by AM0PR04MB5314.eurprd04.prod.outlook.com ([fe80::7456:34a:3cbc:a78a%4]) with mapi id 15.20.1404.026; Tue, 11 Dec 2018 02:09:04 +0000 From: Peter Chen To: "linux-usb@vger.kernel.org" CC: dl-linux-imx , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "frieder.schrempf@exceet.de" , "festevam@gmail.com" , Peter Chen Subject: [PATCH v5 4/4] doc: usb: ci-hdrc-usb2: Add pinctrl properties for HSIC pin groups Thread-Topic: [PATCH v5 4/4] doc: usb: ci-hdrc-usb2: Add pinctrl properties for HSIC pin groups Thread-Index: AQHUkPZ9gVqaOJguF0Oklnt893ZaAQ== Date: Tue, 11 Dec 2018 02:09:04 +0000 Message-ID: <20181211020624.9433-5-peter.chen@nxp.com> References: <20181211020624.9433-1-peter.chen@nxp.com> In-Reply-To: <20181211020624.9433-1-peter.chen@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.14.1 x-clientproxiedby: HK0PR03CA0085.apcprd03.prod.outlook.com (2603:1096:203:72::25) To AM0PR04MB5314.eurprd04.prod.outlook.com (2603:10a6:208:d0::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peter.chen@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB5986;6:RjZriHxObCX3UI2KkmmMIQ5ZCN0bTC4iGOR9YlCRDUlsz7qVXqPVLKs+mP2L/j6lzbRxp4JP060J+FhE0Kb9H9jomH7WkDPjf729TCsAwUacCrKX04AlUAJksQYvmr+9wGatxHkV1ALFWSmFQJrep8urdWhqgtuXHzeknw94GRNqiV6MhwqpcZKGZeKct3KBiDApNgG9mKDj0vJpZ3swILQSiITQ8i/u4jE7g8BoAEJ/UAYpAW3jV/F/FgN9jbyKhKJvnecyQQBSS9D7exN4TOP/SojKLCGIsf/J66T3pqY/LL65l9QUck99S01IYxdLvhloJ84RFhIQxHpsOfoVw2mJcrd3TZiAnwyVdw4HMKDCUEjY5CA7m7aVD6RzxyrL/UGWSKmZBykeLhA0mPb/gwYK5TEi1IVR8tPTQ90CsNGntPrg8iqldMBMQtmvsTcMgx4Oh+vGx9VYYapk8vBVQA==;5:Jde5XhqaRrF8aTxhkB+WsvrlJrwuhVnMcldn3LEWauvFVha9tTwVCVA4oAzcD/8O8smGSL/B6UhqeGTFvdHrpwjq8WNatiQYj8E8AAd62y4z/UDZNIryo8KICU1JvelugdJPGCMiEtB+TWvJVXg42uhSIco5d9xi4uuq2BDJSP0=;7:E+HaBaxupM3+f4hSnV8zlLLoxad7PHaFZnmfckkQA5pV3MHHwN/eE0YCviK/zTJ2ec/V0nJwptXSE1uCs3L+3dSIs5O2wtQT6Vr397+K3aDdAnfD0e6rbWMs6qD8/QSvrC9bTKa4IxPnUBjDmDEGcg== x-ms-office365-filtering-correlation-id: 264f9918-a14f-4e85-2998-08d65f0d9f3c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5986; x-ms-traffictypediagnostic: AM0PR04MB5986: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230017)(999002)(6040522)(2401047)(8121501046)(5005006)(3231472)(944501520)(52105112)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:AM0PR04MB5986;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB5986; x-forefront-prvs: 08831F51DC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(376002)(136003)(396003)(39860400002)(189003)(199004)(99286004)(6512007)(4326008)(305945005)(36756003)(39060400002)(5660300001)(53936002)(81156014)(7736002)(81166006)(8676002)(14454004)(3846002)(8936002)(2906002)(6116002)(50226002)(105586002)(106356001)(2351001)(66066001)(1076002)(97736004)(25786009)(54906003)(68736007)(316002)(478600001)(76176011)(6436002)(52116002)(2616005)(26005)(476003)(86362001)(446003)(6916009)(386003)(6486002)(186003)(102836004)(11346002)(256004)(6506007)(44832011)(14444005)(2501003)(71200400001)(5640700003)(486006)(71190400001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5986;H:AM0PR04MB5314.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-microsoft-antispam-message-info: xXfF+VmhTZxntQgcisA1nWbmqX94kKITslz8AfyxzSiWhU+RdnBUT2HUmhlm37LSKkEnebJIjJUMS4dUD5D5Vmo3TWyGj802qWQFXstCuXNmoRRaurb07vodOCJ44Sd9V/edQoB9HDmulnDaatBiP5mOR5sJcIPU+XcB+J1eBwPkIN8Ji4YEzuFoW/fttZ3AUMmgfow3e46Ngk83Uy1QnEHkNEDBZUKkIcq7ez1VAEJg4wkfenkSrQT4dDIIOI0Ly7KTACgkPdsqgolfyegiIfcVFSoW/20k6+fvmYlFTaa17m4DX5kkMIKJai48+54J spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 264f9918-a14f-4e85-2998-08d65f0d9f3c X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2018 02:09:04.0614 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5986 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 For USB HSIC, the data and strobe pin needs to be pulled down at default, we consider it as "idle" state. When the USB host is ready to be used, the strobe pin needs to be pulled up, we consider it as "active" state. Signed-off-by: Peter Chen Reviewed-by: Rob Herring --- .../devicetree/bindings/usb/ci-hdrc-usb2.txt | 31 +++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt index 529e51879fb2..3381b9618b5b 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt @@ -80,7 +80,10 @@ Optional properties: controller. It's expected that a mux state of 0 indicates device mode and a mux state of 1 indicates host mode. - mux-control-names: Shall be "usb_switch" if mux-controls is specified. -- pinctrl-names: Names for optional pin modes in "default", "host", "device" +- pinctrl-names: Names for optional pin modes in "default", "host", "device". + In case of HSIC-mode, "idle" and "active" pin modes are mandatory. In this + case, the "idle" state needs to pull down the data and strobe pin + and the "active" state needs to pull up the strobe pin. - pinctrl-n: alternate pin modes i.mx specific properties @@ -111,3 +114,29 @@ Example: mux-controls = <&usb_switch>; mux-control-names = "usb_switch"; }; + +Example for HSIC: + + usb@2184400 { + compatible = "fsl,imx6q-usb", "fsl,imx27-usb"; + reg = <0x02184400 0x200>; + interrupts = <0 41 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks IMX6QDL_CLK_USBOH3>; + fsl,usbphy = <&usbphynop1>; + fsl,usbmisc = <&usbmisc 2>; + phy_type = "hsic"; + dr_mode = "host"; + ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; + pinctrl-names = "idle", "active"; + pinctrl-0 = <&pinctrl_usbh2_idle>; + pinctrl-1 = <&pinctrl_usbh2_active>; + #address-cells = <1>; + #size-cells = <0>; + + usbnet: smsc@1 { + compatible = "usb424,9730"; + reg = <1>; + }; + };