From patchwork Sat Nov 10 15:12:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 995911 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="V2Eet1Ds"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="xV2wPIIO"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42sgX24VkHz9s9G for ; Sun, 11 Nov 2018 02:13:33 +1100 (AEDT) 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=yDBvHHixoZaiNAAYg17MnbM6nklGwIjRVd1ZIQ2XkWQ=; b=V2Eet1Dsa4KXd7 Leiof5ctPiqPhsYc6CaBY3HbNoyDtEEYsK3JH5iY+j7/0gJQd0A0L8rx197T17GJlh7CeN3x6Pa/+ Ldsxfw6VbcAPXqSxA1JUzj1JQQ8SxG45tNQtbqHJwVd9dQFhWfoIKU0hG39YSY9WIWfPFLmmCqXyB hqyNJmOIuti1nN0eRnw514sRq6bbT4KCju9pnEtkwy+hku5ExSExeSk3qC+/ODl8qk4ebbnz4gC7S oXGdaW/raXB0uuwfq9xyG6m4oh8N+M1ru1/9vzmqiqLYlFheDsoUjlWqpXvFXsCnCEa81S2IzB6Ub 0rdXThQ4P3HgnkzpP1dQ==; 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 1gLUwy-0006HE-HA; Sat, 10 Nov 2018 15:13:28 +0000 Received: from mail-ve1eur02on062d.outbound.protection.outlook.com ([2a01:111:f400:fe06::62d] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLUwv-0006G1-1T for linux-arm-kernel@lists.infradead.org; Sat, 10 Nov 2018 15:13:26 +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=cw7hILYvOIJk3rQ/sFraYJ7X/KlGYGhdi043S+pnDUk=; b=xV2wPIIObAKo0kiTpnlQYRVEJbZMma23J9w8eoCNnFZHzjqaRrgX1sz/WFH809uVe0dWotQgkJdlRCJZztDlN16vZrVm73jLK4Q3/Dmbfs/w2G5ejI3Wf2C+2THKqMOS3IaEkLwkY59ABVTlql7g3ACgjzGVvvk2BxTVMmjbIYI= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4818.eurprd04.prod.outlook.com (20.176.215.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Sat, 10 Nov 2018 15:12:52 +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.1294.039; Sat, 10 Nov 2018 15:12:52 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V5 0/6] ARM: imx: add imx7ulp support Thread-Topic: [PATCH V5 0/6] ARM: imx: add imx7ulp support Thread-Index: AQHUeQfZ6inxnq6YuEenk48EdQ2nog== Date: Sat, 10 Nov 2018 15:12:52 +0000 Message-ID: <1541862478-7839-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: HK0PR01CA0010.apcprd01.prod.exchangelabs.com (2603:1096:203:92::22) 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; AM0PR04MB4818; 6:qwz19QsnWUPJiyN97LZiG30F/koCy0gwEfBXwR0PhzHamZiaFWRPivJb4Omx/yyfikJruMnPd7RcwdHo4fRcQvjkALTx55lXyHpLB0L2qHnicubqU/ElvX0C5doWVd7nq343kZRd8iaoaSt9U19XEb1x7IWc8n2SPTtUZ8ZsJXCrX/Qvwqa70yZyyUiAcETkXKn2AyrX+c0xn+K+NnqP+yKzWXh5AeZL7zNwNVoYOrMa+qvCkbCb/lCeey1TiNvsZK+YhT9bNJ7BHPPihFi0096Cnz4Ju5QTWmKYPt7/5xOBB3JmVy6vcUwMzWaY9dOmgBxVbb6n9v8+jwmivDKXdX3n2jbNE9XcNOY1ZJpfOGsZInHgDDRSKApgwrH0ld842kbaKmShNkk9CSK2oAnDV6OMPV3Kxpt+SZaNcGg6qKGCbfZ1M2tj5nxhyR7cFU1IkY1LbTwasbk6wC3XuxZvYA==; 5:9v4IQi91vri+IoXfg96+jifUVAD5ct953MjRyJaE5Nt1YGV2vhPIl/ZmEHI2VZaXMOVKidTBfVyQfdgB6y3I0Z5UJLSNhvwPl5kAeqA2dd93tN3LYGlbCV6xqkN77y+rFoGT19svNcziMcjybei8JwPaPFOVjnPX2lpwkiv19cs=; 7:Bgd7Y+wqMXz/b/8f+aNSEAAeqPflLZ3l7GI18oo2u9oGRefmo1WcfQFbmKgslMm2LDNc4KLdHtugZXZHOxpzm3CrRiox0awQCimzeoZUxLiWPlL//3QcCx6ORLeGuVVX/mIgOtw9YEd8j5oxw3yuvA== x-ms-office365-filtering-correlation-id: 0ddbc266-7781-472e-8d7e-08d6471efbfd x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390040)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4818; x-ms-traffictypediagnostic: AM0PR04MB4818: 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)(93006095)(93001095)(10201501046)(3002001)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4818; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4818; x-forefront-prvs: 0852EB6797 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(39850400004)(366004)(136003)(199004)(189003)(54906003)(50226002)(2501003)(316002)(386003)(106356001)(102836004)(105586002)(6506007)(68736007)(3846002)(6116002)(36756003)(6916009)(52116002)(2906002)(66066001)(99286004)(97736004)(5660300001)(305945005)(86362001)(7736002)(2616005)(5640700003)(4326008)(39060400002)(53936002)(6512007)(476003)(2900100001)(25786009)(14454004)(26005)(486006)(6486002)(186003)(256004)(478600001)(2351001)(8936002)(8676002)(81156014)(6436002)(71190400001)(71200400001)(14444005)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4818; H:AM0PR04MB4211.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: noQFFKsePf7qfZN5jZjaFYQEQ01ShLCw1kK9JQIHa3/3S2MpZcnl99caqmkj0OMTtmT0Bc9WT6IsNL+wrxQLmNXy3l51VXtpDLq1fgsomo1yPLgD614XHHbEDF2XiXSkhpnKoMEObc7eC6jdrwuL2gNnMrc7Ok4HFPWCMxuI+1+99ChtXD8xkkRnwJuXiqbVp9nqUv1pA+txnRBWVTkVVKOC2TSE+BNhnhRTTfRGWOyPIVNi5Ewmwe8vDjSBxzbHTmCZjxUrqOcixrfNlWtJIII4hSFimwEysmJDM2WUm2jBlJQQW1Cv/YvELTbpU1saL7Qs7jc46iHPMNMOFDzNBpAylrfYUeZypyNVxm7L2t0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: <3FD846A7D7DA8240A8876A36D93BF575@eurprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ddbc266-7781-472e-8d7e-08d6471efbfd X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2018 15:12:52.7816 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4818 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181110_071325_085760_F2AF1F5A X-CRM114-Status: GOOD ( 16.87 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a01:111:f400:fe06:0:0:0:62d listed in] [list.dnswl.org] 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list 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+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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. v4->v5: * dts add input clocks for PCC module * update pad setting due to missing pull up enabled (formerly auto done by driver generic pinconfg) * gpio and pinctrl patches were merged by Linus W, so dropped in this series 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 v3->v4: * add comments about fixed soc version * add iounmap 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 (6): dt-bindings: fsl: add compatible for imx7ulp evk dt-bindings: fsl: add imx7ulp pm related components bindings 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 + arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/imx7ulp-evk.dts | 77 +++++ arch/arm/boot/dts/imx7ulp.dtsi | 346 +++++++++++++++++++++ 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 | 33 ++ arch/arm/mach-imx/mxc.h | 1 + arch/arm/mach-imx/pm-imx7ulp.c | 29 ++ 13 files changed, 534 insertions(+) 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 Reviewed-by: Fabio Estevam Reviewed-by: Fabio Estevam Reviewed-by: Fabio Estevam