From patchwork Mon Jan 28 09:39:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1031790 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="O4h03QLp"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43p4Mj4TPKz9s9h for ; Mon, 28 Jan 2019 20:39:13 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 47B72C21E18; Mon, 28 Jan 2019 09:39:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CEAD0C21DB6; Mon, 28 Jan 2019 09:39:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 99550C21BE5; Mon, 28 Jan 2019 09:39:06 +0000 (UTC) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) by lists.denx.de (Postfix) with ESMTPS id 62954C21BE5 for ; Mon, 28 Jan 2019 09:39:05 +0000 (UTC) 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=7rZHI2WZvN3iNCzwhuiMom8uyyGIp+axUoCUMZ3Mlgo=; b=O4h03QLpE0VB/q0C60lRVJCnVCZuXt+4jLNRnO058ILS/vCazdHkN0NbIeG3vdwv4KpDQ+StxWp8qcdygwa+GzyiVXjVkPI0h3VPSGosb16hbJzZBefzHHIsIYXJGlxd3CU+4VkMjtdmpaWX/YnS3ETHOAFE3QtXq/zS4lwDFlk= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.148.143) by AM0PR04MB4771.eurprd04.prod.outlook.com (20.176.215.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.21; Mon, 28 Jan 2019 09:39:04 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::69ce:7da3:3bcf:d903]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::69ce:7da3:3bcf:d903%3]) with mapi id 15.20.1558.023; Mon, 28 Jan 2019 09:39:04 +0000 From: Peng Fan To: "sbabic@denx.de" , Fabio Estevam , dl-uboot-imx , "u-boot@lists.denx.de" Thread-Topic: [PATCH 00/20] imx: add i.MX8MM support Thread-Index: AQHUtu1OKWKml+DGdUaNwDGJRvuSVw== Date: Mon, 28 Jan 2019 09:39:03 +0000 Message-ID: <20190128094807.26532-1-peng.fan@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: HK0PR03CA0013.apcprd03.prod.outlook.com (2603:1096:203:2e::25) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:73::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR04MB4771; 6:7JKNUf4HLml8qOLidMNKbBEaEI3LQ+aV1rrpeN078uf7PrwJW3UJ3qoIcZbVlHKyLh//Ov+U2tgQUEa75D+YaRdnuU3/dr/KVc/RmlwtsDfAfbBSBLGM6VQNuBjGXxgGt6IC3Hxu/jKpeSWZAV0jh/D3cSfWNUUP8amF9JzpZZTUfLKD+pi8FTyohRuHaWvF9tvCE8GizZaelh25y8kbI4I38LfXeMDD0MC5nroW767+tIaNa3VjTPbZxg6Xz3jBW1eg0v7/KPqO5ECvKzxDaxMhezSgXP1veZEKVtsSDrC8q3Z4tbE89wHDEYOV/vWFihRKkb7Jnp5bY6SNsnRPKmNFMdL0fK4DuXKwMNOC5MxAo7Bj71xjIGDCwuyjmdhQm5gXXs/E9n/kMFHFrAIr3oo/kW+B+LaCXZO662/TaraO3FqsVW6AmxpyR+YE0IFFmoYM23XYBtSmF0XaOpIkDg==; 5:3zfcGRVPFgxCqn+PfN2p4MK3XbAcEuK979Qgv0loHcAS9BbHJqbL4R3oy8/BdEu3xPpTA8oIIzpF3yMpwSsYsdD1ClsRJVrW1UFb0Edhl+hTpaP6n5Ev8nIv23jwMTVjCRQNRAWkPGghti6czQCiRfPCYlhhn7zgD9s74Y0x2NddIuvOqwYWpI7i/yPMaoTmXEDF6esVowA6OivpmFm1TQ==; 7:rCjlX4F8ZOrFfYqEsaKqxK5iWg4U3MxH1M1iOf2ZZ1c4vZ8JbOGqhIsvs1EZ6rD04FWVCzwz8vM/n71ObR81qM2y5Ba0NvONOYhdXVmy5jk9bshMJoBqdQQhcLRiqnIqd5uGZJZ+Z3EWwDsC9BYu6w== x-ms-office365-filtering-correlation-id: 789b10f9-96f8-435a-27b8-08d6850470af x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4771; x-ms-traffictypediagnostic: AM0PR04MB4771: x-microsoft-antispam-prvs: x-forefront-prvs: 0931CB1479 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(39860400002)(396003)(346002)(366004)(199004)(189003)(110136005)(8676002)(81166006)(81156014)(6116002)(3846002)(14444005)(256004)(26005)(7736002)(305945005)(386003)(44832011)(6512007)(6506007)(102836004)(106356001)(68736007)(105586002)(52116002)(71200400001)(71190400001)(186003)(53936002)(25786009)(478600001)(316002)(50226002)(36756003)(476003)(14454004)(6436002)(86362001)(99286004)(2906002)(97736004)(1076003)(8936002)(6486002)(4326008)(2501003)(2616005)(486006)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4771; H:AM0PR04MB4481.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 40t+0iv3QZH6YLw8Yp4panzBGjzHnc3AfQnugro7Y6nCuA8QKYw0MbHaHIoEZhai3Xxl6rE24V2fT7wQbKBCz7Quu7NsaBHwatWYWYyqPYUdKeoI8E34iHCBFDjJSNR/530GALokf2oKCaCBZOKTogV+svDbcYH9fcUmVdYHzvnPU3bMQyn2p6laSWc86Fn+gzBaP2mjERbrjHmOIfSvTePzF5iskHf6cyFYQHo0AC93H9u4g/Mh6bnW9FHZSc5jHIctY9jE3cm2y2UOdym2JIlfg0rBtMJ8Pd9Ns0I8YF7yAJ3lJic+Wy01SBcEhkCijgBZzVBZNsik6rop04MdaOTLfWlvs/x0ZMyUmSP4vvbHixqmRX7x77NgkaCTu+xSDGt14iaJtygOYGYdHhLHbVjhCROJ4UnLmRatq7+Dsww= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 789b10f9-96f8-435a-27b8-08d6850470af X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2019 09:39:01.7149 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4771 Subject: [U-Boot] [PATCH 00/20] imx: add i.MX8MM support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patchset is to support i.MX8MM support. some restructure is done, because i.MX8MQ and i.MX8MM has different analog PLL Add i.MX8MM EVK board support. currently SPL DM not enabled. Peng Fan (19): imx: add IMX8MM kconfig entry imx8: cpu: restrict checking ROM passover info for revA imx: imx8mm: add clock bindings header imx: add pin binding header for i.MX8MM imx: add i.MX8MM cpu type imx8m: update imx-regs for i.MX8MM imx: add get_cpu_rev support for i.MX8MM imx8m: rename clock to clock_imx8mq imx8m: restructure clock.h imx8m: add clk support for i.MX8MM imx8m: add pin header for i.MX8MM imx: add i.MX8MM PE property imx8m: Fix MMU table issue for OPTEE memory imx8m: set BYPASS ID SWAP to avoid AXI bus errors imx8m: fix sd to mmc1 and emmc to mmc2 for i.MX8MM imx8m: soc: enable SCTR clock before timer init serial: Kconfig: make MXC_UART usable for MX7 and IMX8M pinctrl: add imx8m driver imx: add i.MX8MM EVK board support Ye Li (1): imx8m: Configure trustzone region 0 for non-secure access arch/arm/dts/fsl-imx8mm-evk.dts | 203 ++ arch/arm/dts/fsl-imx8mm.dtsi | 586 ++++++ arch/arm/include/asm/arch-imx/cpu.h | 6 + arch/arm/include/asm/arch-imx8m/clock.h | 493 +---- arch/arm/include/asm/arch-imx8m/clock_imx8mm.h | 387 ++++ arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 424 +++++ arch/arm/include/asm/arch-imx8m/imx-regs.h | 75 +- arch/arm/include/asm/arch-imx8m/imx8mm_pins.h | 691 +++++++ arch/arm/include/asm/mach-imx/iomux-v3.h | 4 + arch/arm/include/asm/mach-imx/sys_proto.h | 8 + arch/arm/mach-imx/cpu.c | 12 + arch/arm/mach-imx/imx8/cpu.c | 39 +- arch/arm/mach-imx/imx8m/Kconfig | 11 + arch/arm/mach-imx/imx8m/Makefile | 4 +- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 866 +++++++++ .../arm/mach-imx/imx8m/{clock.c => clock_imx8mq.c} | 5 +- arch/arm/mach-imx/imx8m/clock_slice.c | 461 +++++ arch/arm/mach-imx/imx8m/soc.c | 91 +- arch/arm/mach-imx/spl.c | 9 + board/freescale/imx8mm_evk/Kconfig | 12 + board/freescale/imx8mm_evk/MAINTAINERS | 6 + board/freescale/imx8mm_evk/Makefile | 12 + board/freescale/imx8mm_evk/imx8mm_evk.c | 144 ++ board/freescale/imx8mm_evk/lpddr4_timing.c | 1980 ++++++++++++++++++++ board/freescale/imx8mm_evk/spl.c | 187 ++ configs/imx8mm_evk_defconfig | 41 + drivers/pinctrl/nxp/Kconfig | 14 + drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx8m.c | 36 + drivers/serial/Kconfig | 2 +- include/configs/imx8mm_evk.h | 221 +++ include/dt-bindings/clock/imx8mm-clock.h | 469 +++++ include/dt-bindings/pinctrl/pins-imx8mm.h | 629 +++++++ 33 files changed, 7641 insertions(+), 488 deletions(-) create mode 100644 arch/arm/dts/fsl-imx8mm-evk.dts create mode 100644 arch/arm/dts/fsl-imx8mm.dtsi create mode 100644 arch/arm/include/asm/arch-imx8m/clock_imx8mm.h create mode 100644 arch/arm/include/asm/arch-imx8m/clock_imx8mq.h create mode 100644 arch/arm/include/asm/arch-imx8m/imx8mm_pins.h create mode 100644 arch/arm/mach-imx/imx8m/clock_imx8mm.c rename arch/arm/mach-imx/imx8m/{clock.c => clock_imx8mq.c} (99%) create mode 100644 board/freescale/imx8mm_evk/Kconfig create mode 100644 board/freescale/imx8mm_evk/MAINTAINERS create mode 100644 board/freescale/imx8mm_evk/Makefile create mode 100644 board/freescale/imx8mm_evk/imx8mm_evk.c create mode 100644 board/freescale/imx8mm_evk/lpddr4_timing.c create mode 100644 board/freescale/imx8mm_evk/spl.c create mode 100644 configs/imx8mm_evk_defconfig create mode 100644 drivers/pinctrl/nxp/pinctrl-imx8m.c create mode 100644 include/configs/imx8mm_evk.h create mode 100644 include/dt-bindings/clock/imx8mm-clock.h create mode 100644 include/dt-bindings/pinctrl/pins-imx8mm.h