board: toradex: add verdin am62 support
cover board: toradex: add verdin am62 support
From: Marcel Ziswiler <[email protected]>
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].
[1] https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62
[2] https://lore.kernel.org/all/[email protected]
Marcel Ziswiler (3):
toradex: tdx-cfg-block: add 0069 verdin am62 quad 1gb wb it
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 | 248 ++ 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 | 122 + .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi | 267 ++ 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 | 1 + board/toradex/common/tdx-cfg-block.h | 1 + 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 | 117 + configs/verdin-am62_a53_defconfig | 178 ++ configs/verdin-am62_r5_defconfig | 109 + doc/board/toradex/verdin-am62.rst | 167 ++ include/configs/verdin-am62.h | 54 + 20 files changed, 5035 insertions(+), 2 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
Signature · 1 line
2.36.1
PATCH 1/3 toradex: tdx-cfg-block: add 0069 verdin am62 quad 1gb wb it
From: Marcel Ziswiler <[email protected]>
Add initial Verdin AM62 Quad 1GB WB IT prototype SKU to ConfigBlock handling.
0069: Verdin AM62 Quad 1GB WB IT
---
board/toradex/common/tdx-cfg-block.c | 1 + board/toradex/common/tdx-cfg-block.h | 1 + 2 files changed, 2 insertions(+)
board/toradex/common/tdx-cfg-block.c +1 -0
@@ -139,6 +139,7 @@ const struct toradex_som toradex_modules[] = { [66] = { "Verdin iMX8M Plus Quad 8GB WB", TARGET_IS_ENABLED(VERDIN_IMX8MP) }, [67] = { "Apalis iMX8QM 8GB WB IT", TARGET_IS_ENABLED(APALIS_IMX8) }, [68] = { "Verdin iMX8M Mini Quad 2GB WB IT", TARGET_IS_ENABLED(VERDIN_IMX8MM) }, + [69] = { "Verdin AM62 Quad 1GB WB IT", TARGET_IS_ENABLED(VERDIN_AM62_A53) }, };const char *const toradex_carrier_boards[] = {
board/toradex/common/tdx-cfg-block.h +1 -0
@@ -94,6 +94,7 @@ enum {VERDIN_IMX8MPQ_8GB_WIFI_BT ,APALIS_IMX8QM_8GB_WIFI_BT_IT ,VERDIN_IMX8MMQ_WIFI_BT_IT_NO_CAN , + VERDIN_AM62Q_WIFI_BT_IT, }; enum {
Signature · 1 line
2.36.1
PATCH 2/3 arm: mach-k3: am62: fix 2nd mux option of clkout0
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
Fix second mux option of clkout0 which should really be DEV_BOARD0_CLKOUT0_IN_PARENT_HSDIV4_16FFT_MAIN_2_HSDIVOUT1_CLK10 rather than twice the same according to [1].
[1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/clocks.html#clocks-for-board0-device
---
arch/arm/mach-k3/am62x/clk-data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/arm/mach-k3/am62x/clk-data.c +3 -2
@@ -57,7 +57,7 @@ static const char * const sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk_parents[] = {static const char *const clkout0_ctrl_out0_parents[] = {"hsdiv4_16fft_main_2_hsdivout1_clk" , -"hsdiv4_16fft_main_2_hsdivout1_clk" , +"hsdiv4_16fft_main_2_hsdivout1_clk10" , };static const char *const clk_32k_rc_sel_out0_parents[] = {
@@ -195,6 +195,7 @@ static const struct clk_data clk_list[] = {CLK_DIV ("hsdiv4_16fft_main_1_hsdivout1_clk" ,"pllfracf_ssmod_16fft_main_1_foutvcop_clk" ,0x681084 ,0 ,7 ,0 ,0 ),CLK_DIV ("hsdiv4_16fft_main_1_hsdivout2_clk" ,"pllfracf_ssmod_16fft_main_1_foutvcop_clk" ,0x681088 ,0 ,7 ,0 ,0 ),CLK_DIV ("hsdiv4_16fft_main_2_hsdivout1_clk" ,"pllfracf_ssmod_16fft_main_2_foutvcop_clk" ,0x682084 ,0 ,7 ,0 ,0 ), +CLK_DIV ("hsdiv4_16fft_main_2_hsdivout1_clk10" ,"pllfracf_ssmod_16fft_main_2_foutvcop_clk" ,0x682084 ,0 ,7 ,0 ,0 ),CLK_DIV ("hsdiv4_16fft_main_2_hsdivout2_clk" ,"pllfracf_ssmod_16fft_main_2_foutvcop_clk" ,0x682088 ,0 ,7 ,0 ,0 ),CLK_DIV ("hsdiv4_16fft_mcu_0_hsdivout0_clk" ,"pllfracf_ssmod_16fft_mcu_0_foutvcop_clk" ,0x4040080 ,0 ,7 ,0 ,0 ), CLK_MUX_PLLCTRL("sam62_pll_ctrl_wrap_main_0_sysclkout_clk", sam62_pll_ctrl_wrap_main_0_sysclkout_clk_parents, 2, 0x410000, 0),
@@ -313,7 +314,7 @@ static const struct dev_clk soc_dev_clk_data[] = {DEV_CLK (146 ,5 ,"sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk" ),DEV_CLK (157 ,20 ,"clkout0_ctrl_out0" ),DEV_CLK (157 ,21 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), -DEV_CLK (157 ,22 ,"hsdiv4_16fft_main_2_hsdivout1_clk" ), +DEV_CLK (157 ,22 ,"hsdiv4_16fft_main_2_hsdivout1_clk10" ),DEV_CLK (157 ,24 ,"sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk" ),DEV_CLK (157 ,25 ,"board_0_ddr0_ck0_out" ), DEV_CLK(157, 40, "mshsi2c_main_0_porscl"),
Signature · 1 line
2.36.1
Re: [PATCH v1 2/3] arm: mach-k3: am62: fix 2nd mux option of clkout0
Hi Marcel!
On June 7, 2023 thus sayeth Marcel Ziswiler:
Quoted 6 lines
From: Marcel Ziswiler <[email protected]>
Fix second mux option of clkout0 which should really be
DEV_BOARD0_CLKOUT0_IN_PARENT_HSDIV4_16FFT_MAIN_2_HSDIVOUT1_CLK10rather than twice the same according to [1].
Quoted 8 lines
[1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/clocks.html#clocks-for-board0-device
Signed-off-by Marcel Ziswiler <[email protected]>---
arch/arm/mach-k3/am62x/clk-data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Nice catch!
~Bryan
PATCH 3/3 board: toradex: add verdin am62 support
In reply to Marcel ZiswilerFrom: Marcel Ziswiler <[email protected]>
This adds initial support for the Toradex Verdin AM62 Quad 1GB WB IT V1.0A module. They are strapped to boot from their on-module eMMC. U-Boot supports booting from the on-module eMMC only, DFU support is disabled for now due to missing AM62x USB support.
Boot sequence is:
SYSFW ---> R5 SPL (both in tiboot3.bin) ---> ATF (TF-A) ---> OP-TEE
---> A53 SPL (part of tispl.bin) ---> U-boot proper (u-boot.img)
---
arch/arm/dts/Makefile | 3 + arch/arm/dts/k3-am62-verdin-dev.dtsi | 248 ++ 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 | 122 + .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi | 267 ++ arch/arm/dts/k3-am625-verdin-wifi-dev.dts | 22 + arch/arm/mach-k3/Kconfig | 1 + 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 | 117 + configs/verdin-am62_a53_defconfig | 178 ++ configs/verdin-am62_r5_defconfig | 109 + doc/board/toradex/verdin-am62.rst | 167 ++ include/configs/verdin-am62.h | 54 + 17 files changed, 5030 insertions(+) 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
arch/arm/dts/Makefile +3 -0
@@ -1298,6 +1298,9 @@ dtb-$(CONFIG_SOC_K3_AM642) += k3-am642-evm.dtb \ dtb-$(CONFIG_SOC_K3_AM625) += k3-am625-sk.dtb \ k3-am625-r5-sk.dtb +dtb-$(CONFIG_SOC_K3_AM625) += k3-am625-verdin-wifi-dev.dtb \ + k3-am625-verdin-r5.dtb + dtb-$(CONFIG_SOC_K3_AM625) += k3-am62a7-sk.dtb \ k3-am62a7-r5-sk.dtb
arch/arm/dts/k3-am62-verdin-dev.dtsi new file +248 -0
248 lines not on this page · raw message
arch/arm/dts/k3-am62-verdin-wifi.dtsi new file +39 -0
@@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2023 Toradex + * + * Common dtsi for Verdin AM62 SoM WB variant + * + * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62 + */ + +/ { + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi_en>; + reset-gpios = <&main_gpio0 22 GPIO_ACTIVE_LOW>; + }; +}; + +/* On-module Wi-Fi */ +&sdhci2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sdhci2>; + bus-width = <4>; + cap-power-off-card; + keep-power-in-suspend; + mmc-pwrseq = <&wifi_pwrseq>; + non-removable; + ti,fails-without-test-cd; + ti,driver-strength-ohm = <50>; + vmmc-supply = <®_3v3>; + status = "okay"; +}; + +/* On-module Bluetooth */ +&main_uart5 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart5>; + status = "okay"; +};
arch/arm/dts/k3-am62-verdin.dtsi new file +1411 -0
1,411 lines not on this page · raw message
arch/arm/dts/k3-am625-verdin-lpddr4-1600MTs.dtsi new file +2190 -0
1,293 lines not on this page · raw message
arch/arm/dts/k3-am625-verdin-r5.dts new file +122 -0
122 lines not on this page · raw message
arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi new file +267 -0
267 lines not on this page · raw message
arch/arm/dts/k3-am625-verdin-wifi-dev.dts new file +22 -0
Lines of this file are not shown. View the raw message.
board/toradex/verdin-am62/Kconfig new file +80 -0
80 lines not on this page · raw message
board/toradex/verdin-am62/MAINTAINERS new file +16 -0
Lines of this file are not shown. View the raw message.
board/toradex/verdin-am62/Makefile new file +6 -0
Lines of this file are not shown. View the raw message.
board/toradex/verdin-am62/verdin-am62.c new file +117 -0
117 lines not on this page · raw message
configs/verdin-am62_a53_defconfig new file +178 -0
178 lines not on this page · raw message
configs/verdin-am62_r5_defconfig new file +109 -0
109 lines not on this page · raw message
doc/board/toradex/verdin-am62.rst new file +167 -0
167 lines not on this page · raw message
include/configs/verdin-am62.h new file +54 -0
54 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.36.1
Part of the diff is not shown here. View the raw message.