From patchwork Tue Aug 27 06:24:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1153589 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="s3mthApF"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Hf406xs5z9s7T for ; Tue, 27 Aug 2019 16:24:48 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 97583C21F9F; Tue, 27 Aug 2019 06:24:43 +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=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 2756EC21C2F; Tue, 27 Aug 2019 06:24:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AC5ABC21E0B; Tue, 27 Aug 2019 06:24:39 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60048.outbound.protection.outlook.com [40.107.6.48]) by lists.denx.de (Postfix) with ESMTPS id 2924AC21C27 for ; Tue, 27 Aug 2019 06:24:39 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hhwqowTwP8qQy5UYFMJ2JzObRvobDeqymUSDeztyxrqaz8ZSExUW+Av0AXzOSy0rmI0+Ng/XOqVxJ+Kx/nUg0a3RO64t/FC0jNL3jPC2FQpmn0QBtO5S7KbzBikKibIF2LeMuPHooLaY5kCNzuKj8+q+dytn7FlaiJdwNT9hxL3pQx2o6YLtqJL/WzWN9myv6FlntFJatjOqckWNuTQInAiw0KlZmCydL4iS96oi83FKGHNvb8RCtweMHhS9JmHtAtngC0yT/3WI9NT7Waha67Mzk5w3AonOD+LPT6G1RnZ7tcMF3CE6fF53BP87KBRB2XWcGyR+KVSOY7vz2h/beQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=juniA8bjB//FSxAIj3nqD1cSiZT+PoTsvwLZiG4+r1g=; b=f5SEWaH6JaIg3tDO6Xqlne2FaA04kHx+HOpE4+aO8u+z+3+Sa7kogBIx5RiVS+9oaEyXdUTALlIdKvWmgOUjNntnjlxi6utzEVtfKUn2dTXHGCG7PevXbxb6Yi1MBtymazzQrsmleXW4ZhkzYRhpH+r/eI25sloxgAlk5PdI9mvxAkvIGfbfepbm3kMHsfB6yg8uTDu/cyQal/plcgUmEv38tGYnbPbdCwBEEqr0a4c4x5waoJhmMY6kmxyBlhd3pt59J0MsjxitEzdNiHWEelK1kGTX2QzWMmKLg4rFeC1zqBqI6fd1Y4ImXBlWK1B8Np/pRlXUgius90k5IVf28A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=juniA8bjB//FSxAIj3nqD1cSiZT+PoTsvwLZiG4+r1g=; b=s3mthApFm/ssZNERRec036P2E9FwQ0Yo29SgpoZEqNtGKJr7wXRTfvRGuwhXyohgoFMXV4UjBfTRBK9W+i/W0nCEq0DgFj8YPXU/fAy4xdJg/85vy0CrdbUS20XNIQuQKyww/ghzcViTY/SuUZBfBCpuelstQOaMxk53d1Fz3mQ= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5521.eurprd04.prod.outlook.com (20.178.112.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.21; Tue, 27 Aug 2019 06:24:37 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4%4]) with mapi id 15.20.2178.022; Tue, 27 Aug 2019 06:24:37 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" , "lukma@denx.de" Thread-Topic: [PATCH V3 00/27] i.MX8MM support Thread-Index: AQHVXKAZtr2i/cynYk2+f8iZ9YqiCQ== Date: Tue, 27 Aug 2019 06:24:37 +0000 Message-ID: <20190827064033.28973-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.16.4 x-clientproxiedby: HK2PR03CA0066.apcprd03.prod.outlook.com (2603:1096:202:17::36) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::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-ms-office365-filtering-correlation-id: ba2f3edf-b395-45b6-971b-08d72ab73bf4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB5521; x-ms-traffictypediagnostic: AM0PR04MB5521: x-ms-exchange-purlcount: 2 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2657; x-forefront-prvs: 0142F22657 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(39860400002)(136003)(346002)(396003)(199004)(189003)(53936002)(478600001)(66066001)(71190400001)(71200400001)(86362001)(81156014)(81166006)(6512007)(6436002)(6506007)(8676002)(5660300002)(66946007)(66446008)(6116002)(6306002)(66556008)(50226002)(6486002)(8936002)(64756008)(3846002)(36756003)(186003)(2501003)(52116002)(2906002)(386003)(486006)(66476007)(2201001)(2616005)(26005)(25786009)(476003)(110136005)(966005)(102836004)(14454004)(99286004)(4326008)(54906003)(14444005)(305945005)(256004)(7736002)(1076003)(44832011)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5521; 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: BoT2zpV6vfhZ5nI3Ai8OJcyE7pwFWIbp7nsmi2+GiaafpqOqqC6OkiNaylicKIbF2ytsicTCecklqsu9swkKf7IM1KpShfmahmITUL4O8I35O+/03tVRBgqKCuHyrt5KzKJI1rekp1rQMvc+8z+b76rfHnYefLjwieAKbIRaasfK5gmh25Kr94dfrbfhaX9L94qSZwVZp1iS8i3aFC7jqfgFJ3ptczIURJMjysliBlpTLDqFHSmvfkwnepfl9yZ0U+a8XsLApo8Knq+ma3iQX3E4tnhelszjlHjOt5rXmgNeTlEOrRnMR7RYRJM4jNr1e+dzmaPnxh7NSRSu3IejIuzciQAyTWdccKb1AO3/xrzPx2p+xlVkQAas7O7hfIzSy1MTvPmkZyTIJCSwoHTj8JIfWUanQgrmBre4+rhatS0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba2f3edf-b395-45b6-971b-08d72ab73bf4 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2019 06:24:37.2549 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Gi/Lr1K2wgfyeBmSMZw5HT1mU/KYaN2QH7jrQ99/n3QzV40LBakJieltMDZt3FvATQrCkPgrgzTyawfLajCZtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5521 Cc: "u-boot@lists.denx.de" , dl-uboot-imx Subject: [U-Boot] [PATCH V3 00/27] 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" V3: Added a new patch from Frieder: imx: mkimage_fit_atf: Fix FIT image for correct boot order Tag fixes for Frieder Drop rom_pointer use in patch 27/27 and clean up included files. 4bytes-> 4 bytes in patch 2/27 V2: Fixed comments from Lukasz and Frieder The following was newly added. imx8m: imx-regs: drop unused register definitions imx8m: restrict reset_cpu imx: mmc_env: update runtime SD/MMC boot env device imx8m: soc: probe clock device in arch_cpu_init_dm V1: https://patchwork.ozlabs.org/cover/1144326/ This is a splitted and updated patch from https://patchwork.ozlabs.org/cover/1128799/ which is to support both i.MX8MM and i.MX8MN. There is a README added, following that to test if you would like to. Frieder Schrempf (1): imx: mkimage_fit_atf: Fix FIT image for correct boot order Peng Fan (25): tools: imx8m_image: align spl bin image size ddr: imx8m: fix ddr firmware location when enable SPL OF imx8m: add image cfg for i.MX8MM lpddr4 imx: add IMX8MQ kconfig entry imx: add IMX8MM kconfig entry imx: imx8mm: add clock bindings header imx: add i.MX8MM cpu type imx: spl: add spl_board_boot_device for i.MX8MM imx8m: imx-regs: drop unused register definitions imx8m: update imx-regs for i.MX8MM imx: add get_cpu_rev 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: soc: enable SCTR clock before timer init imx8m: restrict reset_cpu imx8m: rename clock to clock_imx8mq imx8m: restructure clock.h imx8m: add clk support for i.MX8MM imx: mmc_env: update runtime SD/MMC boot env device imx8m: soc: probe clock device in arch_cpu_init_dm arm: dts: import i.MX8MM dtsi arm: dts: add i.MX8MM pin func imx: Add i.MX8MM EVK board support. Ye Li (1): imx8m: Configure trustzone region 0 for non-secure access arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 92 + arch/arm/dts/imx8mm-evk.dts | 235 +++ arch/arm/dts/imx8mm-pinfunc.h | 629 +++++++ arch/arm/dts/imx8mm.dtsi | 733 ++++++++ arch/arm/include/asm/arch-imx/cpu.h | 6 + arch/arm/include/asm/arch-imx8m/clock.h | 491 +---- 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 | 291 +-- 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/imx8m/Kconfig | 17 +- arch/arm/mach-imx/imx8m/Makefile | 4 +- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 306 +++ .../arm/mach-imx/imx8m/{clock.c => clock_imx8mq.c} | 5 +- arch/arm/mach-imx/imx8m/clock_slice.c | 63 + arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 16 + arch/arm/mach-imx/imx8m/soc.c | 129 +- arch/arm/mach-imx/mkimage_fit_atf.sh | 10 +- arch/arm/mach-imx/mmc_env.c | 3 + arch/arm/mach-imx/spl.c | 8 + board/freescale/imx8mm_evk/Kconfig | 12 + board/freescale/imx8mm_evk/MAINTAINERS | 6 + board/freescale/imx8mm_evk/Makefile | 12 + board/freescale/imx8mm_evk/README | 37 + board/freescale/imx8mm_evk/imx8mm_evk.c | 29 + board/freescale/imx8mm_evk/lpddr4_timing.c | 1980 ++++++++++++++++++++ board/freescale/imx8mm_evk/spl.c | 129 ++ configs/imx8mm_evk_defconfig | 74 + drivers/ddr/imx/imx8m/helper.c | 12 +- include/configs/imx8mm_evk.h | 153 ++ include/dt-bindings/clock/imx8mm-clock.h | 253 +++ tools/imx8m_image.sh | 5 +- 36 files changed, 6562 insertions(+), 707 deletions(-) create mode 100644 arch/arm/dts/imx8mm-evk-u-boot.dtsi create mode 100644 arch/arm/dts/imx8mm-evk.dts create mode 100644 arch/arm/dts/imx8mm-pinfunc.h create mode 100644 arch/arm/dts/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 arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg 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/README 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 include/configs/imx8mm_evk.h create mode 100644 include/dt-bindings/clock/imx8mm-clock.h