Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56C10C0015E for ; Sat, 15 Jul 2023 07:41:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 102258607D; Sat, 15 Jul 2023 09:41:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 45FEC8607D; Sat, 15 Jul 2023 09:41:26 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1AB00857D0 for ; Sat, 15 Jul 2023 09:41:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.int.toradex.com ([213.55.227.4]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0M7IS8-1pzDGZ3nLK-00x4Ea; Sat, 15 Jul 2023 09:40:58 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Bryan Brattlof , Marcel Ziswiler , Emanuele Ghidoli , Francesco Dolcini , Frieder Schrempf , Kever Yang , Marek Vasut , Neil Armstrong , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Philippe Reynes , Philippe Schenker , Simon Glass , Tom Rini , Weijie Gao , William Zhang Subject: [PATCH v3 0/3] board: toradex: add verdin am62 support Date: Sat, 15 Jul 2023 09:40:47 +0200 Message-Id: <20230715074050.941051-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:uLEvfPUx2ZbbqeBVY+wxEIFl+Zqur9nWEs6A3Rl0+wOwn64OWeq 5ip70AK1ZdtC5ZBUM4WQDdgCGW23OWTUTauGyys+zDSUg7/s73SICFqPWtZnwIAxVQauJIc eQIn4ba0aSHUSEr1nkL1CEdG1qfNysuApGWaKoHbSdKo2HRrdyiyJFhkbeOTMOEXbfKxv2Q pVki7qvzrZHFj90C20LkQ== UI-OutboundReport: notjunk:1;M01:P0:INWwxVk+e74=;FFdsHUvKJDrh9FoiCGiuSkdeWQi NBXs4Y4jWLUc7YT3bmicCvNLPYb0R6P173aMDi4zi0MiTOnV9kqHzlGXiUTnBAq9vnSxO31fm WxFp9vmTTTQfupffWv5uzJ2Rf9SglEupKTDv0OtnZ4b2utH8WgZ6qsubB1Xll8Kho6XfFMtG5 ttf6h2c92pv8M29rZc4g0ISPXJM1U/fDUt12kx/y93XUbH7wjO4aGzkvQY+RLniMAL3Uczc87 4mMzYH38Fa08R0VQIKOMDpgYDV8LscqnLzugAaL8jhJj8k6q6RYc/O9PuGsbBNJw9EO5t/dgH 0vGuP7XP64by1AF+yGDnFyMy8Ok9pvAs56MAEJohQ61Wr6P1IP/dcBYe+do7rTRtao8nmhJzX XRZivWqwaKxoQ0aRkWztwXrO1hHYQo/zEUzocpZttq9cUIzYnQ3da601i5djlvkShXx/ORuwm V8IKAXLd7gkZQvnYvdDYTYKK7uD1WivRLxvpNcmVaALGVIhXZGI5J7kJuuA/ZmIw8PnCxsfTA RX1A4kiekGBbIPgBpO6J1M1GtiAw0b60dzZWKJFcWmeQ/zycfsKn/fA65GlMuwQCuxhwEf8Su GKE6+ySwO8SUipbUmvNU6rznDgm83YsB9tLqvdpn8oY3XL6OmAP01uEedQpvj4Zhkg9x81IeS C7ltpRVXu7yuzsJlqoCytzk/HTbShJY0bQOJjqCceA== 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 From: Marcel Ziswiler This series adds initial support for the Toradex Verdin AM62 SoM [1]. The first commit adds resp. PID4 to the ConfigBlock, the second one fixes an early clocking issue confirmed to be a weird bug in TI's scripting. And last but not least support for the Toradex Verdin AM62 is added. Please note that this series is based on Emanuele's recent work on get_ram_size() [2] and the addition of the 0070 verdin i.mx 8m plus quad sku [3]. [1] https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62 [2] https://lore.kernel.org/all/20230530133327.178278-1-francesco@dolcini.it [3] https://lore.kernel.org/all/20230515130641.26028-1-francesco@dolcini.it Changes in v3: - Add Verdin AM62 launch configuration SKUs as well. - Integrate our recent find of CTRL_SLEEP_MOCI# needing to be driven from A53 SPL as it may be used to control some power-rails on the carrier board. E.g. on the Yavia carrier board it is needed to power the I2C EEPROM on the carrier board. - Improve boot environment in R5 SPL vs. A53. - Integrate launch configuration SKUs to Wi-Fi handling. - Re-sync device trees from Linux kernel v6.5-rc1. - Add warning if memory is less than expected. Changes in v2: - Add Bryan's reviewed-by tag. Thanks! - Use 1.2 GHz rather than 1.25 GHz A53 clock as on the EVM/SK. - Also add power-domain 166 as on the EVM/SK. - Get rid of main_bcdma and main_pktdma as not required in R5 SPL. - Get rid of all bootph-pre-ram in Ethernet and SDHC1 aka SD card related pinctrls as not required in any SPL. - Enable CONFIG_TI_SECURE_DEVICE by default as Non-HS devices will continue to boot due to runtime device type detection. - Disable FAT and SPI support as not required in R5 SPL. - Also enable CONFIG_SPL_MMC_HS200_SUPPORT in R5 SPL. - Enable CONFIG_LEGACY_IMAGE_FORMAT to allow sourcing unsigned script images e.g. like our current boot scripts. - Increase CONFIG_SYS_BOOTM_LEN to 64 MB to allow booting bigger compressed images as e.g. in the Toradex Easy Installer case. - Change memory configurations to operate at temperatures of up to 95 degrees celsius. - Increase CONFIG_SYS_MAXARGS from default 16 to 64. - Enable CONFIG_CMD_REMOTEPROC, CONFIG_SPL_DM_GPIO_LOOKUP_LABEL and CONFIG_SPL_I2C_EEPROM. - For R5 SPL increase CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN to 0x140000, enable CONFIG_SPL_I2C, CONFIG_DM_I2C and CONFIG_SYS_I2C_OMAP24XX and savedefconfig got rid of CONFIG_SPL_FIT_IMAGE_POST_PROCESS. Marcel Ziswiler (3): toradex: tdx-cfg-block: add verdin am62 skus arm: mach-k3: am62: fix 2nd mux option of clkout0 board: toradex: add verdin am62 support arch/arm/dts/Makefile | 3 + arch/arm/dts/k3-am62-verdin-dev.dtsi | 196 ++ arch/arm/dts/k3-am62-verdin-wifi.dtsi | 39 + arch/arm/dts/k3-am62-verdin.dtsi | 1411 +++++++++++ .../dts/k3-am625-verdin-lpddr4-1600MTs.dtsi | 2190 +++++++++++++++++ arch/arm/dts/k3-am625-verdin-r5.dts | 115 + .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi | 223 ++ arch/arm/dts/k3-am625-verdin-wifi-dev.dts | 22 + arch/arm/mach-k3/Kconfig | 1 + arch/arm/mach-k3/am62x/clk-data.c | 5 +- board/toradex/common/tdx-cfg-block.c | 7 + board/toradex/common/tdx-cfg-block.h | 10 +- board/toradex/verdin-am62/Kconfig | 80 + board/toradex/verdin-am62/MAINTAINERS | 16 + board/toradex/verdin-am62/Makefile | 6 + board/toradex/verdin-am62/verdin-am62.c | 123 + configs/verdin-am62_a53_defconfig | 185 ++ configs/verdin-am62_r5_defconfig | 111 + doc/board/toradex/verdin-am62.rst | 167 ++ include/configs/verdin-am62.h | 55 + 20 files changed, 4961 insertions(+), 4 deletions(-) create mode 100644 arch/arm/dts/k3-am62-verdin-dev.dtsi create mode 100644 arch/arm/dts/k3-am62-verdin-wifi.dtsi create mode 100644 arch/arm/dts/k3-am62-verdin.dtsi create mode 100644 arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi create mode 100644 arch/arm/dts/k3-am625-verdin-r5.dts create mode 100644 arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi create mode 100644 arch/arm/dts/k3-am625-verdin-wifi-dev.dts create mode 100644 board/toradex/verdin-am62/Kconfig create mode 100644 board/toradex/verdin-am62/MAINTAINERS create mode 100644 board/toradex/verdin-am62/Makefile create mode 100644 board/toradex/verdin-am62/verdin-am62.c create mode 100644 configs/verdin-am62_a53_defconfig create mode 100644 configs/verdin-am62_r5_defconfig create mode 100644 doc/board/toradex/verdin-am62.rst create mode 100644 include/configs/verdin-am62.h -- 2.36.1