From patchwork Mon Oct 22 05:42:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 10651725 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 94F2F109C for ; Mon, 22 Oct 2018 05:42:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83DF628703 for ; Mon, 22 Oct 2018 05:42:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74192287E7; Mon, 22 Oct 2018 05:42:59 +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 03B1B28703 for ; Mon, 22 Oct 2018 05:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727518AbeJVN76 (ORCPT ); Mon, 22 Oct 2018 09:59:58 -0400 Received: from mail-eopbgr10066.outbound.protection.outlook.com ([40.107.1.66]:36974 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726784AbeJVN76 (ORCPT ); Mon, 22 Oct 2018 09:59:58 -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=cQMcSmZpoBEqMg4BssdsoZwPJpBx/eTWNrXq5F3QxGg=; b=Ejh5aGaUKQtcP5ieWmVPH/GuoPUuCP4OOb9EhY3sITyy99YdVOEYz59loAn5enxrqdZzTGcXWNJMpmoXlGCf4WM4Qu7AmlJcA+gJgSTfTq3EG6BrEDFM2uQfs0G9sCg1lHm23lXNc4A/Plhxemxb6iWLU1Mr0TpQuZ6STN7aJNk= Received: from VI1PR04MB5327.eurprd04.prod.outlook.com (20.177.52.16) by VI1PR04MB4045.eurprd04.prod.outlook.com (10.171.182.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.20; Mon, 22 Oct 2018 05:42:54 +0000 Received: from VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::e046:4971:4e49:7e97]) by VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::e046:4971:4e49:7e97%3]) with mapi id 15.20.1250.028; Mon, 22 Oct 2018 05:42:54 +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 v2 0/4] usb: chipidea: imx: add HSIC support Thread-Topic: [PATCH v2 0/4] usb: chipidea: imx: add HSIC support Thread-Index: AQHUacoTsy+1MYaiVk6RYCnDBQ0d6Q== Date: Mon, 22 Oct 2018 05:42:53 +0000 Message-ID: <20181022054031.14027-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: HK0P153CA0036.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::24) To VI1PR04MB5327.eurprd04.prod.outlook.com (2603:10a6:803:60::16) 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;VI1PR04MB4045;6:zLPl85JQLbNUHHfqQO3ZOleZetsUNfG6D88DnJ9GneKou9JAMmiUwFxmLEm2iRmLOdj+ikS28QCoj6ipom+/e1Bkk3RYdFTt4bGL5/qk9FNJPSRkiSl010nsPSYlMrP02NqNPTL3FRpqgs0zMJwvyQH9YlOWuYyzkdtXkXXaCqF9mzVsBbZnvqyxSAUPaJzr0DHea1hknIzqBSvm/Py4PwzE+dl07Mo2DDneL7n1xyeCGdf60lLmEow/GwCscsTPIm/5woUSn3MDEDvad3MlNq19q9eWYcwllLtw0FHAosD63h12GJXgBPAPisI9Zjyl2zuNrz/W2nr5tmLY1gZ+cGpVqb/cd/W85h17dLcGO/MIdNrByGcWl/1sXvysLz3z6TYhDf00VuHdXhVObc7ESGGqoDNCI9Uc/sInH2hcw/uagyNoqQH6j/7U5t5k/DkusHvGBd9AXhCBEiCgsF/nvg==;5:q4Qk14w1jARpINpd32JXqcE/mYcfLbf05cVIUhgbWNX1QrIngAJlJZuROkd+dqf5QBjnEfsetnz28Zo53pR4N3eztfcZ7G3pXyOHI68bMDYF/Lrk0zzMnsg+wsJcOyIffvpZbwU+VMjbHjW7XnXoycjpf2izy/YfWdKIWxbqkbc=;7:HlKR7f1eKlN/0EiXL5qv3mTnEn2oPdP94WAvw96P629bguIdhVvQOjfOP9jO2LxnOB1/SLRzZEA74srqRknDDTc4OGK0nPRqzvqgUvtCpP5rRsjsfZ+ZJbAJoEKZbKVZPF9pAstSRUIizT+GA6ugs6AyrMWNzdBd34vdclmfgHYjxFpNj+njnTgwHlBSxB+ImZz4FqJiY081u04YTYhRPLIP2I8zeQHtwEkRQskgVXFHK4Qes2BUHyXuUvMM+5ok x-ms-office365-filtering-correlation-id: a984d86b-fac1-47a6-aefa-08d637e135ee x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4045; x-ms-traffictypediagnostic: VI1PR04MB4045: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4045;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4045; x-forefront-prvs: 08331F819E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(346002)(136003)(376002)(396003)(366004)(199004)(189003)(54906003)(6512007)(186003)(6486002)(305945005)(5640700003)(3846002)(66066001)(478600001)(2351001)(7736002)(6116002)(6916009)(6436002)(106356001)(2900100001)(5660300001)(105586002)(44832011)(52116002)(2616005)(8676002)(4326008)(81156014)(81166006)(71200400001)(2906002)(25786009)(316002)(6506007)(476003)(2501003)(486006)(68736007)(8936002)(5250100002)(71190400001)(386003)(1076002)(97736004)(50226002)(26005)(36756003)(53936002)(86362001)(256004)(102836004)(99286004)(14454004)(39060400002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4045;H:VI1PR04MB5327.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-microsoft-antispam-message-info: z7aIRMpxQSGPdRmfFOoID81uyLaiRYyfnU46ULWgVK6LQ5Vi+NyUtZKaP5is6cikmr9JEFyL3siLLBxRmwLCoMn8E+Bm2ByI4Kkho8y03YNcz70l1niG2Lnk5PERiN+kPqEi2y5463/7g2hBxPMcJp1rnQTMQy2R6dBQJDcC+flH/DgnfGKJRUL2NKI1u5ik7uE77U9i+1BKsVBC1YINh4tzj+9aQgG19JQlYt0sUjHV+veXH5Vhj9QkVoJQCZFD3Vxc5zJfbc+x/q/JQd3wPUUDdgkmaMCBQDVMolNU2xoskH+5HODKG66swIsGiwd5LmgUhKxLIvBK0Hj25b/6UwZ/F9Tx9uSskpMFMTurq64= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a984d86b-fac1-47a6-aefa-08d637e135ee X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2018 05:42:53.9632 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4045 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 Most of NXP (Freescale) i.mx USB part has HSIC support, in this series, we add support for them, it should cover all imx6 and imx7d SoC. Changes for v2: - Compile error reported by kbuild robot [Patch 2/4] - Comment from Frieder Schrempf about code structure [Patch 2/4] - Comment from Fabio about adding example for pinctrl [Patch 4/4] Peter Chen (4): usb: chipidea: add flag for imx hsic implementation usb: chipidea: imx: add HSIC support usb: chipidea: host: override ehci->hub_control doc: usb: ci-hdrc-usb2: Add pinctrl properties for HSIC pin groups .../devicetree/bindings/usb/ci-hdrc-usb2.txt | 1 + drivers/usb/chipidea/ci_hdrc_imx.c | 140 ++++++++++++++++++--- drivers/usb/chipidea/ci_hdrc_imx.h | 9 +- drivers/usb/chipidea/host.c | 98 +++++++++++++++ drivers/usb/chipidea/usbmisc_imx.c | 130 +++++++++++++++++++ include/linux/usb/chipidea.h | 3 + 6 files changed, 362 insertions(+), 19 deletions(-)