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 56E9CC001DB for ; Fri, 4 Aug 2023 10:08:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E726B8694A; Fri, 4 Aug 2023 12:08:45 +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 8733A86953; Fri, 4 Aug 2023 12:08:44 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) (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 9131186945 for ; Fri, 4 Aug 2023 12:08:41 +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 ([84.226.64.168]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0M2bMR-1pa2Fx1hXZ-00sMgl; Fri, 04 Aug 2023 12:08:16 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Neha Malcom Francis , Nishanth Menon , Bryan Brattlof , Marcel Ziswiler , Frieder Schrempf , Hai Pham , Heinrich Schuchardt , Jonas Karlman , Judith Mendez , Kever Yang , Manorit Chawdhry , Marek Vasut , Michal Simek , Neil Armstrong , Nikhil M Jain , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Simon Glass , Tom Rini , Udit Kumar , Weijie Gao , William Zhang Subject: [PATCH v6 0/4] board: toradex: add verdin am62 support Date: Fri, 4 Aug 2023 12:08:04 +0200 Message-Id: <20230804100808.110072-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:byFSpDE0N0J3iv3ha88Wdu+LgRgJsNPoKBsOGer5IE7dqiZghtF vOHn0u9GsQlmKxpCCjDY6p6CUqA+mWokOMyp/NC3x4b6dNIfnAfdKDcLbRLoRo7UWnFU4bk FleMb+h1NdhdBtT5Hxn5gRjcgW7lzKZxTP4wywP6xLeTXTzYcu4ahJaqga2ZOHDxOz/DTOS an7HZSOFk34CnGwFH8BEg== UI-OutboundReport: notjunk:1;M01:P0:3jn2oe3xSps=;GZVeXjeV+pQ60fyKE8yfrbRdH+X EFQWodbnItQ8mpAcPV1tSMbkhlnQNHjnDw8vTXBiXm1rDJiuLSs4KdjyhOgLT/vdl6zNIkyni gqjgrX6ht2gE6lDkiwha98pbB4JnfKn81a3oi5MliLZ0xpA8Hm9IqDDvW5iRChwbpZum6YqJ5 vECqzkLc7tuAnX67gSX+Pp8vp02bs1dAWtwtDg6Ic62KNDMPr59n+NBGaJgO7KIA2nHONLczS Gxh892tRkMs3fI6ussYDXHcVS1rlckQxYBkqd7flWmyLY/99rZF0sE5WG/yiy1ecamYIDHl4A M+U56gcpOPZxqrxDgMLr+x5kLgMVV0lFWIYJHI4S61I65E7fLuch1pA/koKRvaq04+69ejtVc Cbt/2QBbKg0m1AKJhPTCwnnJNL/KD+3pFXsZs5N3obayRvLlFa5+HAT4/vO8R06MFVHBGCkIt o0SPz+EJ6w2yMuOsvLb6yCe9o7epgNsrjtJIxW/h7ht29Z3VAnUKu/VIy97+W28YOaW3unVig XJrwwMx/xmR6sQbw9ZqJ6+qM3TnOaOKkegpfoWSnYUN8UiILxB2+zEdoYFpxWoTCDaBtG1mH/ CHBagNhiJIhhgvcCIbWO6KYzbKv/q9X66L7RHWnQlSvlj5U9BUTSywZ+AsRtlLgfWiMmv0+ne tqZpEXQbWPgzMFFnI5KpckJYTMgC+zhwDyKsUAEbnItPO+yDxdhqfnEaXd20/w2n9vnyp6wWE zae+t3n8d6gTyowCf+CcDcm58OqOMQ8CzjlU5cUWDKu7IfSMX3COBCMprxhOARONO0v9JcoZj O7JIjKxYIogv9ADw9xPO2gnAultuzozeT7KoPlEx5HtcqDeEUVH5DBdbxgOM1jm0I/cxT8jb/ o5yir1uh+VgYvWlIozxHvEcZA7Nag0lIN6E0= 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. PID4s to the ConfigBlock, the second one fixes an early clocking issue confirmed to be a weird bug in TI's scripting, the third one fixes some binman labeling issue. And last but not least support for the Toradex Verdin AM62 is added. Azure CI still running [2]. Thanks! [1] https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62 [2] https://dev.azure.com/u-boot/u-boot/_build/results?buildId=6804&view=results Changes in v6: - New commit fixing rcfg_yaml and pcfg_yaml labels actually pointing at correct yamls and adding labels for the remaining items. - Instead of duplicating the whole binman configuration just use phandles to override relevant properties where feasible. - Fix indentation in include/configs/verdin-am62.h. Thanks to Neha for pointing me towards actually making use of those labels. - Also remove some spurious newlines from our binman configuration file. Changes in v5: - Fix doc/board/toradex/verdin-am62.rst title underline being too short. - Add verdin-am62 to doc/board/toradex/index.rst. Thanks to Emanuele having run this series on the azure CI to find out. - Update U-Boot output in doc/board/toradex/verdin-am62.rst to latest. - State that the device trees were taken straight from Linux v6.5-rc1. - Remove k3-am625-verdin-wifi-dev-binman.dtsi include from r5 dts. - Remove memory@ and reserved-memory nodes. - Simplify sa_secproxy and esm nodes. - Get rid of ifdef zeros around usb stuff in device trees. - Re-work doc/board/toradex/verdin-am62.rst in a more re-usable way. Thanks to Nishanth for pointing those differences out as compared to arch/arm/dts/k3-am625-r5-sk.dts and his suggestions on the rst stuff. Changes in v4: - Re-based on top of master with recent binman integration, mac_efuse, cpsw-phy-sel and mdio clean-up and dtsi bump from linux v6.5-rc1. - Verdin AM62 binman enablement and further clean-up after re-base. - Removed all ifdefs from DTs now with bumped Linux dtsi. - Avoid relocated U-Boot and DT reserved-memory clash. - Enable of_system_setup. 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 (4): toradex: tdx-cfg-block: add verdin am62 skus arm: mach-k3: am62: fix 2nd mux option of clkout0 arm: dts: k3-binman: fix rcfg_yaml and pcfg_yaml labels board: toradex: add verdin am62 support arch/arm/dts/Makefile | 4 +- arch/arm/dts/k3-am62-verdin-dev.dtsi | 190 ++ arch/arm/dts/k3-am62-verdin-wifi.dtsi | 39 + arch/arm/dts/k3-am62-verdin.dtsi | 1401 +++++++++++ .../dts/k3-am625-verdin-lpddr4-1600MTs.dtsi | 2190 +++++++++++++++++ arch/arm/dts/k3-am625-verdin-r5.dts | 84 + .../dts/k3-am625-verdin-wifi-dev-binman.dtsi | 532 ++++ .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi | 201 ++ arch/arm/dts/k3-am625-verdin-wifi-dev.dts | 22 + arch/arm/dts/k3-binman.dtsi | 16 +- 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 | 82 + board/toradex/verdin-am62/MAINTAINERS | 17 + board/toradex/verdin-am62/Makefile | 6 + board/toradex/verdin-am62/board-cfg.yaml | 36 + board/toradex/verdin-am62/pm-cfg.yaml | 12 + board/toradex/verdin-am62/rm-cfg.yaml | 1088 ++++++++ board/toradex/verdin-am62/sec-cfg.yaml | 379 +++ board/toradex/verdin-am62/verdin-am62.c | 131 + configs/verdin-am62_a53_defconfig | 187 ++ configs/verdin-am62_r5_defconfig | 111 + doc/board/ti/am62x_sk.rst | 16 +- doc/board/ti/k3.rst | 1 + doc/board/toradex/index.rst | 1 + doc/board/toradex/verdin-am62.rst | 130 + include/configs/verdin-am62.h | 55 + 29 files changed, 6933 insertions(+), 21 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-binman.dtsi 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/board-cfg.yaml create mode 100644 board/toradex/verdin-am62/pm-cfg.yaml create mode 100644 board/toradex/verdin-am62/rm-cfg.yaml create mode 100644 board/toradex/verdin-am62/sec-cfg.yaml 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