From patchwork Fri Nov 2 09:12:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10665161 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 BFFDE15E9 for ; Fri, 2 Nov 2018 09:12:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8C5E2B98E for ; Fri, 2 Nov 2018 09:12:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99A8C2B994; Fri, 2 Nov 2018 09:12:57 +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 290112B98E for ; Fri, 2 Nov 2018 09:12:57 +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=bjSmczmMvTBnWVSVO77VI8omOJaZ4vWkxbqhswAplKw=; b=DSOS+SRvpx91Ey pnlnNm78499++s97lcXH72/9wNFcwyyVmJVTlsHAaPSxVYsXUIzm98KsX6Mz0hXbvne/BByxVgmy3 wEHQtJ32ZR6Muj7eOkN+5P/vvzh0CmCewGihPDTQ5oz4Wh6nlyNJbbNAHb5dytnQr/AXg4ek0OSWS KU1cxKqpVGpUvAEC7Fl6LahS1J/C+9y1PUinjSEXnNKNd+KdChjQoCGQR1GpoNMK86PG/vxlCBR2B G4eX0KyoYy2VZf4Hcr72h8DC2t6DhUdqfpb8rzZNNKi4LWGZOeBuFaWnX/lA7/uD3I1fifinQ2Vjt dIT+Dg11DwPGulGYxH/A==; 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 1gIVVa-0005Vy-G1; Fri, 02 Nov 2018 09:12:50 +0000 Received: from mail-db5eur03on0618.outbound.protection.outlook.com ([2a01:111:f400:fe0a::618] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIVVX-0005Uz-DZ for linux-arm-kernel@lists.infradead.org; Fri, 02 Nov 2018 09:12:48 +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=aPLORYWJW7Lmwk16EWD05Jp2jyN/dzhJU8FTDu6chT4=; b=tAzCEVr/OzUkQChwWjH+GjiG/egmp1/R1/bWXjqMmwBJQVwKH6XZIwydZ1ieynfq5w7SY+/dzN5MCG9wApAwyBB4UHRjfV/e9R/u7+TdQ7nOR0MTCAHK2R84HVnqBfiAgqXbUr98F1jNLTLm3YPemUK5Uud7jAJzUohG3302+gM= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4113.eurprd04.prod.outlook.com (52.134.125.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Fri, 2 Nov 2018 09:12:33 +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.024; Fri, 2 Nov 2018 09:12:33 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 00/10] ARM: imx: add imx7ulp support Thread-Topic: [PATCH V4 00/10] ARM: imx: add imx7ulp support Thread-Index: AQHUcoww1soHcHR+gkCDO9p6CK1VoA== Date: Fri, 2 Nov 2018 09:12:33 +0000 Message-ID: <1541149669-10857-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: HK0PR04CA0024.apcprd04.prod.outlook.com (2603:1096:203:36::36) 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; AM0PR04MB4113; 6:MAYXATP+eKha0myVV6sjbnpBUkBxnbwWo3Y1hEVEx7Y44NZdHrHHitPkmtZ5Nau/ptqhy6T5ikDfYCFNDfxi5DvGyzbPX6teXatJR/3m5HOpreSed4NivWH/8QEX9wSZgHC3J0WOXcRlnmkEzkORSxTHcpUyEHuKSq+FT4g75mS65oMCC/T9h+oS2RJ3zAjJQqUn/BKB1cdeNoXWKnpKLU5sxWmwC7ik62hJRnNCPytLPtAzS0ZbOLwMd8ANhp1EB9jpUHuSR/VEp0QdwVXQS70Z1tkeZJsTd39psF3mNUAAqmZLdXY5HYAxfwJ+YJqXYHbV3w1rRlgaSt3lgSsOuGrMWdCnCPNMedoEXRzA5dP6JjJ25+L3T6gjTlBvW2jNIujHEXRl4n1DU7FQO7K1z40Ec6lvigYkYZK8JnzEH0dBe56jJG6yVJHFC9ptRs0GVujkqaII6Oo/BLbxkhT5hA==; 5:czkMcau+An8Q4aWdjvSPmHSwfaS9QybB1dlYaD3pe6Hzf9DFuQMlgcdMeGF6Z9wAoy4jxtIYq1euCnxYGvJJBt9Ftbr3Wy18kh5MWOe1YffJ2Nzu1c2AKjrLl4nfVzgQfOutOsAujcHebZK9jzBo5sEEFVtlkvA0zgyml9PRK3w=; 7:vztum/Qb1HlyphvROK7Gb0ljzSsRkq51LPJqGgdUAIw6VzOzsGZUrTrWE/L+Rh1/d05c7udYQZ1BjdbbtNfMFF6myeKUx7gUq7QVvqxhAfw613hMf9HdefAqpzAzSKaAbcuoFMuIAcGB+lFH6GLLxw== x-ms-office365-filtering-correlation-id: b9f47bea-00f6-4fb9-7b1a-08d640a352aa x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4113; x-ms-traffictypediagnostic: AM0PR04MB4113: 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)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4113; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4113; x-forefront-prvs: 08444C7C87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(136003)(366004)(376002)(396003)(189003)(199004)(8676002)(53936002)(68736007)(86362001)(14444005)(99286004)(81156014)(256004)(81166006)(6436002)(106356001)(2351001)(186003)(5640700003)(2906002)(7736002)(386003)(6506007)(6116002)(102836004)(478600001)(3846002)(305945005)(6486002)(52116002)(6512007)(4326008)(6916009)(66066001)(105586002)(2900100001)(36756003)(26005)(25786009)(71190400001)(50226002)(5660300001)(316002)(97736004)(54906003)(2501003)(14454004)(8936002)(486006)(71200400001)(39060400002)(2616005)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4113; 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: z6GidQWwvZTso4EI0Hxd9nqaOS5qDr/B/2SOM7h8Plmp2uUQye0BwMuuEcJ68XFumJZM/IAlRb+Eczl/Wkwz6Fz0pD3M9y2uBOhPQVxS/PMmUEGBW4RPMBiOY7/qW/ghNqgMxQJKAEvsYm/2PQzFnE0mZ6g7bRWnN5V3TY9ZuEMIA4Xuf7fCFQwyuAZUUx7WqOoE5xukY6wEnV0pscobOjojSPPDtuSK4+WFODLe+3UBe+dHvDMnjiGV43aQk8ZTjFuQ5txZhGbPFe2VVBNmOBaHcBBP1puU9r20a4vwtoDeRc61Vdy/fnM/qpBgLYRI+y2Ylpz17tYkH0B01IHDOh1fVZucRB4L0GGVqcz1TLE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9f47bea-00f6-4fb9-7b1a-08d640a352aa X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 09:12:33.5328 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4113 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181102_021247_461272_662D17BE X-CRM114-Status: GOOD ( 16.44 ) 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. 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 (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 | 33 +++ arch/arm/mach-imx/mxc.h | 1 + arch/arm/mach-imx/pm-imx7ulp.c | 29 ++ drivers/gpio/gpio-vf610.c | 24 ++ drivers/pinctrl/freescale/pinctrl-imx7ulp.c | 42 --- 17 files changed, 561 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