From patchwork Wed Oct 31 14:42:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662809 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 2AA0513BF for ; Wed, 31 Oct 2018 14:43:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A6AE2AF23 for ; Wed, 31 Oct 2018 14:43:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E3922AF33; Wed, 31 Oct 2018 14:43:12 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7C5DF2AF23 for ; Wed, 31 Oct 2018 14:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:Message-ID:Date :Subject:To:From:Reply-To:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2X7BivzkRG2tmjjE6ebKJLNfjKNKKdBM878ezQWIOtc=; b=WjjrCp+yuIPtEP 1I4kkn2oj9Ca4tCuSzkoDOtFAyREJ/+9gTiC4O/aAdpkbB6MitevVPsTQtJFRjMTGXJKejHRIpXwC ShwlUbqDXv8bVECfnTzwhqmQcwyt+Kgv1Z90x9lVYQrQmcVmI2f8f3VYTSn1fctQ88m/5TVUaCkqM SHRsfxYPq6f2uEO99ywX7+M8LOd3gmRVTMloQjE9Rv3mwyH7rnwWdmYc2bt2Jz11hld8qZSO0oaWJ 180FjXwM1UV5NQEjV3d6DxLPSzLZ3giq46nIJtv6+7SwOAItMzbkUz0b341r9I7MZIrnvNJngWUR0 sd56Vh25QSE4SgL63htA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHri9-00067u-K7; Wed, 31 Oct 2018 14:43:09 +0000 Received: from mail-eopbgr50075.outbound.protection.outlook.com ([40.107.5.75] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHri4-000664-Q7 for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:07 +0000 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=hGg9BvgU8R16Fsc1/Nm/A+SupA6jzhwNvYhiOFfMIoE=; b=wky6PrXEWeeTXI8QbfG4ETQehrfl/DkEH7CY13qmRrouWhM/jgNgDeBB/a0CxLP54/9PQN5FwS5FyD1oOu/Rc0CgBHbsYCuHRONXEWaxVW/GvkDae5H+NlTIxeSt6518TG27JMYZq6+f7DAhp60drzxH+MiMNGopNSLg7/3/DWM= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4052.eurprd04.prod.outlook.com (52.134.125.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Wed, 31 Oct 2018 14:42:51 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10%2]) with mapi id 15.20.1273.028; Wed, 31 Oct 2018 14:42:51 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 00/10] ARM: imx: add imx7ulp support Thread-Topic: [PATCH V3 00/10] ARM: imx: add imx7ulp support Thread-Index: AQHUcSf/LLTRZsP6FkWKv+/XPb/Rjg== Date: Wed, 31 Oct 2018 14:42:51 +0000 Message-ID: <1540996688-23681-1-git-send-email-aisheng.dong@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: HK0PR03CA0016.apcprd03.prod.outlook.com (2603:1096:203:2e::28) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR04MB4052; 6:Lm175jNMop4LsQoZUKlxsA96zqh2hR3SWUb3UC38dwCKihYcsqEaaTC0L7Ql7kdHYJSfoZsRpA0wLLeTotOxrPbBw+zvmb8ruyldGuXOJ0T/9jPwyCrGXUEDFmtFT+NEdeZvysWqYKpdYRKIdDgz5vCr1OApc7B7hXXUAJQvZ2IopNnRtbGJrMPKgqnNSAzy1T987zB3LhG8zk0mmv5mdzVbAYrsyIxgxWarHBCQZEFLn6ipCqXSKKXGtS9a09ByxyvwXtfgYhz/s4IvbONAskKIHaNkba1cdY9UXBOSfcZh0eHGorz43Z3+o9Gx46YeIre0XQylsLDMcr+J2oZLdOvm06sdEryTwlkT/AzFfxBESnYRpvm0HChSlD7wkmFdCgrwUmu1zLO4/OizIwzZltcLTBDRUemg1d91CwiJk78JlJlxjZxJxpcnc+XOZRkk0VP18x23FlolOBuz4oQL+w==; 5:Z4NdqtOsOwfu8whGL8r+wX1EcQn29TrQ0wF5rjTshkiqaVi0jYvRTX8nAVgtueYn3hJvLzPzQRXcRuvZtxTt/JEBJ/v1se+BXmF3TnB817uLXngTdxl43zFLzGoopH78su1v+ry+mvpEs/mtH1ZvmIrcLxIYh34f6iXPau7XVFg=; 7:NWfmsGyuS2lbLV/aZpYtBc4Ns6FFJWyWyuKD6UapifKmkVBF3axS52aVL1HBqSNtBegw7oQ3kKRF2Sd0noG2kXtRsMvVS9p+cWGc7RCEJy0vn+vC/dgajzN75zHX3n37Ty2WW/SUhZDu5zvkinB/hQ== x-ms-office365-filtering-correlation-id: bdf340e2-17fa-426a-60ea-08d63f3f21f6 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:AM0PR04MB4052; x-ms-traffictypediagnostic: AM0PR04MB4052: 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)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4052; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4052; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(189003)(199004)(99286004)(26005)(316002)(305945005)(66066001)(2900100001)(386003)(6506007)(7736002)(102836004)(86362001)(2616005)(36756003)(476003)(71190400001)(71200400001)(6116002)(186003)(97736004)(54906003)(52116002)(3846002)(5250100002)(486006)(2501003)(2906002)(50226002)(8936002)(106356001)(8676002)(14454004)(81156014)(81166006)(39060400002)(68736007)(6512007)(6436002)(6486002)(105586002)(6916009)(2351001)(4326008)(478600001)(53936002)(5660300001)(256004)(25786009)(14444005)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4052; H:AM0PR04MB4211.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: 5eJ717z408BPMfRytKIEdx1EK8Tdzk8tTmddrp9BShgxHopy2EhddjZSJYv3Sb0fv3JZ0gIpKUMwUowJtoilMmX0R704mVyqgNZoaU9830mkABhfyxoSbPm38i+Ov/Q2WJmkf8gDPoL56BBRNDuN0rIlnqk+w0CdJoIxk7Ih6KVsqkyM2dD3DA+A2Mm/PRWAyOS0jOph1lii1ji0B1/vyNMFiTMfPQmI0UiIshwDR7jNSqrt11fo4m8AoeMUYT6UW43K6tjVoxnRTllHCOz5yQi3Sektc2Am79dlA6wGjK3bMO9cDDn9bVZ4Kizg507zhCWTejuTvXSDXmWD4aSQmWWodL3UrDCFsgkST9xzBY4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdf340e2-17fa-426a-60ea-08d63f3f21f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:42:51.3364 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_074304_845929_CC81406F X-CRM114-Status: GOOD ( 15.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "A.s. Dong" , "dongas86@gmail.com" , "linux@armlinux.org.uk" , "robh+dt@kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , Fabio Estevam , "shawnguo@kernel.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The i.MX 7ULP family of processors represents NXP’s latest achievement in ultra-low-power processing for use cases demanding long battery life. Targeted towards the growing market of portable devices, the i.MX 7ULP family of processors features NXP's advanced implementation of the Arm® Cortex®-A7 core, the Arm Cortex-M4 core, as well as a 3D and 2D Graphics Processing Units (GPUs). The i.MX 7ULP family provides up to 32-bit LPDDR2/LPDDR3 memory interface and a number of other interfaces for connecting peripherals, such as WLAN, Bluetooth, GPS, displays, and camera sensors. This patch series adds the basic support for imx7ulp. It includes machine level support code and device tree. Note: it depends on clk driver which is still under review. v2->v3: * back to old pinctrl binding according to SoC maintainer's suggestions * use generic node name * error checking updated according to Russell's suggestion: ptr == ERR_PTR(-EPROBE_DEFER) v1->v2: * switch to SPDX license * rebase to latest tree * pad name update * add gpio clk support * minor fix Dong Aisheng (10): dt-bindings: fsl: add compatible for imx7ulp evk dt-bindings: fsl: add imx7ulp pm related components bindings dt-bindings: gpio: vf610: add optional clocks property gpio: vf610: add optional clock support dt-bindings: pinctrl: imx7ulp: back to imx legacy binding for consistency pinctrl: fsl: imx7ulp: change to use imx legacy binding ARM: imx: add initial support for imx7ulp dts: imx: add common imx7ulp dtsi support dts: fsl: add imx7ulp evk support ARM: imx_v6_v7_defconfig: add imx7ulp support .../bindings/arm/freescale/fsl,imx7ulp-pm.txt | 23 ++ Documentation/devicetree/bindings/arm/fsl.txt | 8 + .../devicetree/bindings/gpio/gpio-vf610.txt | 6 + .../bindings/pinctrl/fsl,imx7ulp-pinctrl.txt | 66 ++--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/imx7ulp-evk.dts | 77 +++++ arch/arm/boot/dts/imx7ulp.dtsi | 314 +++++++++++++++++++++ arch/arm/configs/imx_v6_v7_defconfig | 1 + arch/arm/mach-imx/Kconfig | 9 + arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/common.h | 1 + arch/arm/mach-imx/cpu.c | 3 + arch/arm/mach-imx/mach-imx7ulp.c | 32 +++ arch/arm/mach-imx/mxc.h | 1 + arch/arm/mach-imx/pm-imx7ulp.c | 28 ++ drivers/gpio/gpio-vf610.c | 24 ++ drivers/pinctrl/freescale/pinctrl-imx7ulp.c | 42 --- 17 files changed, 559 insertions(+), 79 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.txt create mode 100644 arch/arm/boot/dts/imx7ulp-evk.dts create mode 100644 arch/arm/boot/dts/imx7ulp.dtsi create mode 100644 arch/arm/mach-imx/mach-imx7ulp.c create mode 100644 arch/arm/mach-imx/pm-imx7ulp.c