From patchwork Thu May 25 07:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1785922 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Y8YNV+85; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=KyTVAcVD; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QRfFz6yWXz20Pb for ; Thu, 25 May 2023 17:05:26 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A5EFD8600A; Thu, 25 May 2023 09:05:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684998314; bh=B5tELxih6nduJVoPMIf+gv0qN0LstimVquMWXl8Io9c=; h=Date:To:Cc:From:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Y8YNV+85V4mAg7TJTea8BEEhe8C1n7v3dalImAPkrpRCwZne1wWrKyahH9+s7TcYH SDRSQabJaXjJzTACLtR+kObpVjJPchH0/4CoADkEp8Q+/5OvWCt30Mpc9JHDxCaXUH tlm/Bu4TV2Dl5o9RtlXiLBK+wDqdeZLbYgIgrolwmVYVBdf+nJ+zGxNWfXdhCRBS7A FaCLOZuoy9rQMBpR9AR4F/9qA88YVbr8BzHiqBngu3Nq9NbvJS0Ft793uHHa5WEOVs gZpgSofvurI6W3jAt5nt5soXMNUspEKOxLSweylpQ74VAn/HWqx+u7yUdLTGDx/PYb kBWXbEx+ow6pQ== Received: from [IPV6:2001:a61:6143:6401:303c:c43b:9841:b625] (unknown [IPv6:2001:a61:6143:6401:303c:c43b:9841:b625]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbabic@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 23A19846BF; Thu, 25 May 2023 09:05:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684998308; bh=B5tELxih6nduJVoPMIf+gv0qN0LstimVquMWXl8Io9c=; h=Date:To:Cc:From:Subject:From; b=KyTVAcVDGKc5vmWdW5v2rMbTYXurG/VIKDG105THbxu3zMnaxhKfQt2zchdN/kyA7 +zjmsgjpgEfOxBYmqtaMeUairDJaANB5MDAB4ktaEErrY7M1LUeQ5uqsKKwnjmj363 Z8FzOJM9/4z/l8asM9tBgrgjkkskSG7vadX4mPcBAhVUFQSp7jOmciwRy+EE+PLWG8 FZ4l4ysMZ+M6QGvTjti7G1x8mHe2Jkder2uJeeyNy/roJWF7re9zQw4MUdmfS/PyOC hFi+dKn1FlHBbKIWokN33iF+7o2FuEeLYjRVhDkai1C2OwIb23UQHEBlMa4wtZKU5R IWtPBPcm4kgdQ== Message-ID: <28d09a41-a2dc-e57d-4b29-040539fee9d9@denx.de> Date: Thu, 25 May 2023 09:05:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: Tom Rini Content-Language: de-DE Cc: "U-Boot@lists.denx.de" From: Stefano Babic Subject: Pull request: please pull u-boot-imx-20230525 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Tom, please pull from u-boot-imx, thanks ! This PR conbtains : - Fixes - Improvement support for i.MX93 The following changes since commit 6e1852ca2c418e2536ead4b51c4d84a59926b3f1: Merge tag 'efi-2023-07-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi (2023-05-16 11:23:30 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20230525 for you to fetch changes up to ff476897ed698eae1fa439d52b30694a2b40464a: serial: mxs: Add MXS AUART driver (2023-05-21 16:54:41 +0200) ---------------------------------------------------------------- u-boot-imx-20230525 ------------------- - i.MX93 series - Fixes CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/16412 ---------------------------------------------------------------- Fabio Estevam (1): ARM: dts: imx7d-sdb-u-boot: Fix usdhc1 UHS operation Fedor Ross (1): ARM: imx: Fix parsing of ROM log event IDs on iMX8M Jacky Bai (4): ddr: imx9: Change the saved ddr data base to 0x2051c000 ddr: imx93: Add 625M bypass clock support ddr: imx93: update the ddr init to support mult setpoints ddr: imx9: update the rank setting for multi fsp support Marek Vasut (3): thermal: imx_tmu: Clean up all prints thermal: imx_tmu: Move architecture code into driver serial: mxs: Add MXS AUART driver Peng Fan (33): imx8ulp: build ahab imx: spl_imx_romapi: typo fix imx: move imx8 sci header file to include/firmware/imx imx: firmware: sci: add inline functions when IMX8 not enabled imx: imx8_cpu: use static for local functions imx: imx8_cpu: support i.MX9 imx: imx8_cpu: support get temperature for i.MX9 imx: imx8_cpu: print cpu grade temperature imx9: configure M33 systick to 24M imx9: add more PLL settings imx9: use parameter freq when set_arm_clk imx9: correct getting LPI2C clk imx9: simplify clk settings imx9: cut off OPTEE memory region from U-Boot imx9: imx93_evk: enable CPU_IMX imx9: imx93_evk: drop unused macro imx9: imx93_evk: select IMX_TMU imx9: imx93_evk: enable CONFIG_WDT watchdog: ulp_wdog: guard reset_cpu with condition check imx9: soc: support reset cause imx9: Get market segment and speed grading imx9: clock: clear HW_CTRL_SEL imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support imx9: clock: config arm alt root to 500mhz imx9: add i.MX93 variants support imx9: correct coding style imx9: use i.MX generic rom api function imx9: imx93_evk: add low drive mode support on 11x11 EVK arm: dts: imx93: sync device tree with Linux arm: dts: imx93: add tmu imx9: imx93_evk: Update spl stack & bss base address imx9: imx93_evk: update ddr timing file imx9: imx93_evk: enable sysreset Ye Li (5): thermal: imx_tmu: Update TMU driver to support iMX93 imx9: Change hard coded MAC to read from fuse imx9: allow to bootaux Mcore with input address ddr: imx9: Add workaround for DDRPHY rank-to-rank errata imx9: Calculate DDR size from DDRC setting arch/arm/dts/imx7d-sdb-u-boot.dtsi | 51 +++ arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 -- arch/arm/dts/imx93-11x11-evk.dts | 385 ++++------------- arch/arm/dts/imx93-pinfunc.h | 194 +++++---- arch/arm/dts/imx93.dtsi | 618 +++++++++++++++++---------- arch/arm/include/asm/arch-imx/cpu.h | 7 + arch/arm/include/asm/arch-imx8/power-domain.h | 2 +- arch/arm/include/asm/arch-imx8/sci/sci.h | 138 ------ arch/arm/include/asm/arch-imx8/sys_proto.h | 2 +- arch/arm/include/asm/arch-imx8m/ddr.h | 2 +- arch/arm/include/asm/arch-imx9/clock.h | 6 + arch/arm/include/asm/arch-imx9/ddr.h | 23 +- arch/arm/include/asm/arch-imx9/imx-regs.h | 3 + arch/arm/include/asm/mach-imx/sys_proto.h | 12 +- arch/arm/mach-imx/cmd_dek.c | 2 +- arch/arm/mach-imx/imx8/ahab.c | 2 +- arch/arm/mach-imx/imx8/cpu.c | 2 +- arch/arm/mach-imx/imx8/fdt.c | 2 +- arch/arm/mach-imx/imx8/iomux.c | 2 +- arch/arm/mach-imx/imx8/misc.c | 2 +- arch/arm/mach-imx/imx8/snvs_security_sc.c | 2 +- arch/arm/mach-imx/imx8m/soc.c | 74 +--- arch/arm/mach-imx/imx8ulp/Kconfig | 5 + arch/arm/mach-imx/imx8ulp/Makefile | 1 + arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/clock.c | 113 ++++- arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +- arch/arm/mach-imx/imx9/soc.c | 384 ++++++++++++++++- arch/arm/mach-imx/parse-container.c | 2 +- arch/arm/mach-imx/spl_imx_romapi.c | 2 +- board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c | 2 +- board/advantech/imx8qm_dmsse20_a1/spl.c | 2 +- board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 2 +- board/advantech/imx8qm_rom7720_a1/spl.c | 2 +- board/congatec/cgtqmx8/cgtqmx8.c | 2 +- board/freescale/imx8qm_mek/imx8qm_mek.c | 2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 2 +- board/freescale/imx8qxp_mek/spl.c | 2 +- board/freescale/imx93_evk/MAINTAINERS | 1 + board/freescale/imx93_evk/Makefile | 4 + board/freescale/imx93_evk/lpddr4x_timing.c | 3361 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------- board/freescale/imx93_evk/lpddr4x_timing_ld.c | 1496 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ board/freescale/imx93_evk/spl.c | 26 +- board/siemens/capricorn/board.c | 2 +- board/toradex/apalis-imx8/apalis-imx8.c | 2 +- board/toradex/colibri-imx8x/colibri-imx8x.c | 2 +- configs/imx93_11x11_evk_defconfig | 12 +- configs/imx93_11x11_evk_ld_defconfig | 124 ++++++ drivers/clk/imx/clk-imx8.c | 2 +- drivers/clk/imx/clk-imx8qm.c | 2 +- drivers/clk/imx/clk-imx8qxp.c | 2 +- drivers/cpu/Kconfig | 6 + drivers/cpu/Makefile | 1 + drivers/cpu/imx8_cpu.c | 142 +++++-- drivers/cpu/imx9_cpu.c | 224 ++++++++++ drivers/ddr/imx/imx9/Kconfig | 2 +- drivers/ddr/imx/imx9/ddr_init.c | 289 ++++++++++++- drivers/ddr/imx/phy/ddrphy_utils.c | 3 + drivers/ddr/imx/phy/helper.c | 5 +- drivers/misc/imx8/fuse.c | 2 +- drivers/misc/imx8/scu.c | 2 +- drivers/misc/imx8/scu_api.c | 2 +- drivers/pinctrl/nxp/pinctrl-scu.c | 2 +- drivers/power/domain/imx8-power-domain-legacy.c | 2 +- drivers/power/domain/imx8-power-domain.c | 2 +- drivers/serial/Kconfig | 8 + drivers/serial/Makefile | 1 + drivers/serial/serial_mxs.c | 129 ++++++ drivers/thermal/Kconfig | 6 +- drivers/thermal/imx_scu_thermal.c | 2 +- drivers/thermal/imx_tmu.c | 226 +++++++++- drivers/watchdog/ulp_wdog.c | 2 + include/configs/imx93_evk.h | 2 - include/dt-bindings/clock/imx93-clock.h | 17 +- include/dt-bindings/power/fsl,imx93-power.h | 15 + include/dt-bindings/power/imx93-power.h | 12 - {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/rpc.h | 0 include/firmware/imx/sci/sci.h | 379 +++++++++++++++++ {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/misc/api.h | 0 {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pad/api.h | 0 {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pm/api.h | 0 {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/rm/api.h | 2 +- {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/seco/api.h | 2 +- {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/types.h | 0 84 files changed, 6163 insertions(+), 2458 deletions(-) delete mode 100644 arch/arm/include/asm/arch-imx8/sci/sci.h create mode 100644 board/freescale/imx93_evk/lpddr4x_timing_ld.c create mode 100644 configs/imx93_11x11_evk_ld_defconfig create mode 100644 drivers/cpu/imx9_cpu.c create mode 100644 drivers/serial/serial_mxs.c create mode 100644 include/dt-bindings/power/fsl,imx93-power.h delete mode 100644 include/dt-bindings/power/imx93-power.h rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/rpc.h (100%) create mode 100644 include/firmware/imx/sci/sci.h rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/misc/api.h (100%) rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pad/api.h (100%) rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/pm/api.h (100%) rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/rm/api.h (98%) rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/svc/seco/api.h (96%) rename {arch/arm/include/asm/arch-imx8 => include/firmware/imx}/sci/types.h (100%) Best regards, Stefano