From patchwork Sun Dec 9 05:40:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 10719837 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 A1E76679F for ; Sun, 9 Dec 2018 05:40:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91C622A8D4 for ; Sun, 9 Dec 2018 05:40:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85EB32A8DC; Sun, 9 Dec 2018 05:40:24 +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 EFC032A8D4 for ; Sun, 9 Dec 2018 05:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726127AbeLIFkQ (ORCPT ); Sun, 9 Dec 2018 00:40:16 -0500 Received: from mail-eopbgr80051.outbound.protection.outlook.com ([40.107.8.51]:16469 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726067AbeLIFkQ (ORCPT ); Sun, 9 Dec 2018 00:40:16 -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=B+ZXG0vrOCkVEE1uJ2MDu7CjvbdhUAScjlE9t6CWWsk=; b=s26xwgC4f+TFU9GXvdN67fxspHLsDbw3AG1YkT5BauDZhZGA2K7brLuC2byBt2cQNWWVGxgejYgY93Aa8liNUXqB71BgfzIf+mUiVkKEUyHlZXvUmVhRQDhUZxjC40N92TSakviOJteUDMAkZkuk8QLLHtsBkYkUW6dy6XBCX9k= Received: from VI1PR04MB5327.eurprd04.prod.outlook.com (20.177.52.16) by VI1PR04MB5613.eurprd04.prod.outlook.com (20.178.125.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.21; Sun, 9 Dec 2018 05:40:12 +0000 Received: from VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::811d:1992:9a6a:bb3f]) by VI1PR04MB5327.eurprd04.prod.outlook.com ([fe80::811d:1992:9a6a:bb3f%5]) with mapi id 15.20.1404.025; Sun, 9 Dec 2018 05:40:12 +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 v4 0/4] usb: chipidea: imx: add HSIC support Thread-Topic: [PATCH v4 0/4] usb: chipidea: imx: add HSIC support Thread-Index: AQHUj4GnMPVa5MgpWECtkdfFvroS2Q== Date: Sun, 9 Dec 2018 05:40:11 +0000 Message-ID: <20181209053746.24967-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: HK2PR06CA0023.apcprd06.prod.outlook.com (2603:1096:202:2e::35) 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;VI1PR04MB5613;6:JpwBJpWsDdmx2iIPKoNa3cTbIS5dFXiD1X0GlmqqN3L5UseET3ToGaXJiaOlU+rcoBOuEsmSxtmPT5tX/2oJzURqZjocVx7SDpsLKzACRriNLUVjxCqctgOPMuqtPK7mK7Ugh+aWZMleMSRKF0HMh0tcCR8eSsXCGqCjW7dFqqPMuB9UfQ/qkUv6nnrkUMz1jp2mYU/c2yIUc4zj8SscHNAUWV6YIOjPBOAKpftkEYi8p+9TkyaLO4Y0F7RxBx7lA8kfzkzsXjRRSzAHwRTld/tCgPqgpDi4eAQWlWn+85ouPiPALX4h70ihAp1W0eXF1fassmrK0jZMofD65IOVEfRqYvDiI5BasAACg8R1WtG+geQ5GAEVGyD7cNpWSD2IVco6Mik85Moy14ZQiiW2/FLVfFsY///87IvJHtMx+A1P7qgZsXE9PuwPsiqVyq2zVVqVe2eoyLNAgSns59sIYA==;5:TZlk2/urmh7IwJPfRw//ev+Rm+AxgWX1B5aJcVcKiSFcN7t6Y89LTG0cg5BgrN3BpFfu12SGGcdqZHbji3LgDAyYEjukRGpH4BOuUHHeo7nDQUwWlPmqYpIPAknnbfAVaqUpy1r5XAm3mSt9BtU5DdA7wrCDa0LN6VuZi2SmvL4=;7:DKFuhhULM9lZr0CudOMSvZVVen9vXQD6vDQqvkGnnqeCY6IntWlOkY+0TA8RW1Au/qM9VYr9lwzMDI8hHsN8W9wcCMvQEhYK2OaPbKnizyJGVTVqI6rIqvj6TCQDHh3yQQFC/G+wnA2WpdzDyqHzCA== x-ms-office365-filtering-correlation-id: 1ae38a1f-789a-45db-2761-08d65d98c969 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:VI1PR04MB5613; x-ms-traffictypediagnostic: VI1PR04MB5613: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231455)(999002)(944501520)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB5613;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB5613; x-forefront-prvs: 0881A7A935 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(136003)(366004)(39860400002)(199004)(189003)(53936002)(39060400002)(44832011)(3846002)(2616005)(316002)(486006)(6512007)(186003)(476003)(8936002)(52116002)(5640700003)(6116002)(4326008)(8676002)(81156014)(66066001)(1076002)(26005)(81166006)(97736004)(478600001)(68736007)(36756003)(54906003)(99286004)(106356001)(71190400001)(6486002)(6436002)(71200400001)(5660300001)(50226002)(256004)(25786009)(102836004)(14444005)(2501003)(305945005)(14454004)(6506007)(386003)(6916009)(7736002)(2906002)(2351001)(86362001)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5613;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: QtBlOePk4rzYM0KavGc6vLF5Vih3e14B37c2nK4KROcro03N6+7WxomTEG0rLFQ8q+b0JeTK3JD3DzsUW/Lh3T5NGkW64YR/0yIeCwlB1KJAEq+/M+Wngkkaasbf//tD9JMlrD8EnPK9jy27XBcvv/cfQbPgeGRnoNYmHiWKt9Rs59xVclukc6AiQlKd/xGAogiy7vie5j6qkXD3EzXh6j6G2m748iLLixbUM6I6amMqbTGApC5N2yuKVtlHrPuKvIsLHueUd33jeBdUjFO24iPt7qWDk4NG2nJyDnCFqmC72jT3Nha7Feq+OIKpUMIHn3D8a1FOSgEm3Dwiptp4aFFzHV8+6oeqvupMdmLY7dQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ae38a1f-789a-45db-2761-08d65d98c969 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Dec 2018 05:40:11.9250 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5613 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 v4: - Some code style improvements [Patch 3/4] - Add HSIC example at dts [Patch 4/4] Changes for v3: - Delete the internal API ci_ehci_override_wakeup_flag, and just use register read/write APIs. [Patch 1/4, 3/4] - Using dedicated API usbmisc_imx6_hsic_get_reg_offset to calculate offset for HSIC controller. [Patch 2/4] - Improve the comments for binding-doc, and add the dts example [Patch 4/4] 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 | 34 ++++- drivers/usb/chipidea/ci_hdrc_imx.c | 140 ++++++++++++++++++--- drivers/usb/chipidea/ci_hdrc_imx.h | 9 +- drivers/usb/chipidea/host.c | 92 ++++++++++++++ drivers/usb/chipidea/usbmisc_imx.c | 140 +++++++++++++++++++++ include/linux/usb/chipidea.h | 3 + 6 files changed, 398 insertions(+), 20 deletions(-)