Skip to contentSkip to conversation

Introduce initial TI's am62a support

PATCH In review Bryan Brattlof 4 participants 26 messages Nov 4, 2022 – Dec 9, 2022

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

cover Introduce initial TI's am62a support

Hello Everyone!

This series will introduce basic support (SD and UART) support for Texas Instruments AM62Ax SK EVM.

The am62ax shares many of the same features as the am62x however it uses a new 32bit controller and therefore depends on the patch I sent last week updating the macros used by the k3-ddrss ram driver[0].

Here is some proof of life & more documentation if you're interested :)

Bootlog:https://paste.sr.ht/~bryanb/e0a418ba7dd452749d2dd1efb5e91b2875a01708 Technical Reference Manual:https://www.ti.com/lit/zip/spruj16 Schematics:https://www.ti.com/lit/zip/sprr459

Thanks for reviewing!
~Bryan

[0] https://lore.kernel.org/u-boot/[email protected]/

Bryan Brattlof (8):
arm: dts: introduce am62a7 dtbs from linux kernel
arm: dts: introduce am62a7 u-boot dtbs
ram: k3-ddrss: add am62a controller support
soc: ti: k3-socinfo: add am62a SoC entry
arm: mach-k3: introduce basic files to support the am62a
arm: mach-k3: am62a: introduce auto-generated SoC data
board: ti: introduce the basic files needed to support the am62a
configs: introduce configs for the am62a

 arch/arm/dts/Makefile                         |    3 +
 arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi  | 2798 ++++++++++++++++
 arch/arm/dts/k3-am62a-ddr.dtsi                | 2814 +++++++++++++++++
 arch/arm/dts/k3-am62a-main.dtsi               |  298 ++
 arch/arm/dts/k3-am62a-mcu.dtsi                |   39 +
 arch/arm/dts/k3-am62a-wakeup.dtsi             |   54 +
 arch/arm/dts/k3-am62a.dtsi                    |  122 +
 arch/arm/dts/k3-am62a7-r5-sk.dts              |  143 +
 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi         |  140 +
 arch/arm/dts/k3-am62a7-sk.dts                 |  223 ++
 arch/arm/dts/k3-am62a7.dtsi                   |  103 +
 arch/arm/mach-k3/Kconfig                      |   14 +-
 arch/arm/mach-k3/Makefile                     |    2 +
 arch/arm/mach-k3/am62a7_init.c                |  250 ++
 arch/arm/mach-k3/am62ax/Makefile              |    6 +
 arch/arm/mach-k3/am62ax/clk-data.c            |  317 ++
 arch/arm/mach-k3/am62ax/dev-data.c            |   73 +
 arch/arm/mach-k3/arm64-mmu.c                  |    6 +-
 .../arm/mach-k3/include/mach/am62a_hardware.h |   74 +
 arch/arm/mach-k3/include/mach/am62a_spl.h     |   49 +
 arch/arm/mach-k3/include/mach/hardware.h      |    4 +
 arch/arm/mach-k3/include/mach/spl.h           |    4 +
 board/ti/am62ax/Kconfig                       |   52 +
 board/ti/am62ax/MAINTAINERS                   |    9 +
 board/ti/am62ax/Makefile                      |    7 +
 board/ti/am62ax/evm.c                         |   31 +
 configs/am62ax_evm_a53_defconfig              |   79 +
 configs/am62ax_evm_r5_defconfig               |  106 +
 drivers/clk/ti/clk-k3.c                       |    6 +
 drivers/firmware/ti_sci_static_data.h         |    4 +-
 drivers/power/domain/ti-power-domain.c        |    6 +
 drivers/ram/Kconfig                           |    1 +
 drivers/ram/k3-ddrss/k3-ddrss.c               |    1 +
 drivers/soc/soc_ti_k3.c                       |    4 +
 include/configs/am62ax_evm.h                  |   68 +
 include/dt-bindings/pinctrl/k3.h              |    3 +
 include/k3-clk.h                              |    1 +
 include/k3-dev.h                              |    1 +
 38 files changed, 7906 insertions(+), 9 deletions(-)
 create mode 100644 arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-ddr.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-main.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-wakeup.dtsi
 create mode 100644 arch/arm/dts/k3-am62a.dtsi
 create mode 100644 arch/arm/dts/k3-am62a7-r5-sk.dts
 create mode 100644 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am62a7-sk.dts
 create mode 100644 arch/arm/dts/k3-am62a7.dtsi
 create mode 100644 arch/arm/mach-k3/am62a7_init.c
 create mode 100644 arch/arm/mach-k3/am62ax/Makefile
 create mode 100644 arch/arm/mach-k3/am62ax/clk-data.c
 create mode 100644 arch/arm/mach-k3/am62ax/dev-data.c
 create mode 100644 arch/arm/mach-k3/include/mach/am62a_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am62a_spl.h
 create mode 100644 board/ti/am62ax/Kconfig
 create mode 100644 board/ti/am62ax/MAINTAINERS
 create mode 100644 board/ti/am62ax/Makefile
 create mode 100644 board/ti/am62ax/evm.c
 create mode 100644 configs/am62ax_evm_a53_defconfig
 create mode 100644 configs/am62ax_evm_r5_defconfig
 create mode 100644 include/configs/am62ax_evm.h
Signature · 1 line
2.38.1
#1 lore raw

PATCH 1/8 arm: dts: introduce am62a7 dtbs from linux kernel

Introduce the basic am62a7 SoC dtbs from the linux kernel along with the new am62a specific pinmux definition that we will use to generate the dtbs for the u-boot-spl and u-boot binaries

---
 arch/arm/dts/k3-am62a-main.dtsi   | 298 ++++++++++++++++++++++++++++++
 arch/arm/dts/k3-am62a-mcu.dtsi    |  39 ++++
 arch/arm/dts/k3-am62a-wakeup.dtsi |  54 ++++++
 arch/arm/dts/k3-am62a.dtsi        | 122 ++++++++++++
 arch/arm/dts/k3-am62a7-sk.dts     | 223 ++++++++++++++++++++++
 arch/arm/dts/k3-am62a7.dtsi       | 103 +++++++++++
 include/dt-bindings/pinctrl/k3.h  |   3 +
 7 files changed, 842 insertions(+)
 create mode 100644 arch/arm/dts/k3-am62a-main.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-wakeup.dtsi
 create mode 100644 arch/arm/dts/k3-am62a.dtsi
 create mode 100644 arch/arm/dts/k3-am62a7-sk.dts
 create mode 100644 arch/arm/dts/k3-am62a7.dtsi
arch/arm/dts/k3-am62a-main.dtsi new file +298 -0
new file mode 100644
index 0000000000000..bc4b50bcd1773
@@ -0,0 +1,298 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for AM62A SoC Family Main Domain peripherals
+ *
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+&cbass_main {
+	oc_sram: sram@70000000 {
+		compatible = "mmio-sram";
+		reg = <0x00 0x70000000 0x00 0x10000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0x00 0x70000000 0x10000>;
+	};
+
+	gic500: interrupt-controller@1800000 {
+		compatible = "arm,gic-v3";
+		reg = <0x00 0x01800000 0x00 0x10000>,	/* GICD */
+		      <0x00 0x01880000 0x00 0xc0000>,	/* GICR */
+		      <0x00 0x01880000 0x00 0xc0000>,   /* GICR */
+		      <0x01 0x00000000 0x00 0x2000>,    /* GICC */
+		      <0x01 0x00010000 0x00 0x1000>,    /* GICH */
+		      <0x01 0x00020000 0x00 0x2000>;    /* GICV */
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+		#interrupt-cells = <3>;
+		interrupt-controller;
+		/*
+		 * vcpumntirq:
+		 * virtual CPU interface maintenance interrupt
+		 */
+		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
+
+		gic_its: msi-controller@1820000 {
+			compatible = "arm,gic-v3-its";
+			reg = <0x00 0x01820000 0x00 0x10000>;
+			socionext,synquacer-pre-its = <0x1000000 0x400000>;
+			msi-controller;
+			#msi-cells = <1>;
+		};
+	};
+
+	main_conf: syscon@100000 {
+		compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
+		reg = <0x00 0x00100000 0x00 0x20000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x00 0x00 0x00100000 0x20000>;
+	};
+
+	dmss: bus@48000000 {
+		compatible = "simple-bus";
+		#address-cells = <2>;
+		#size-cells = <2>;
+		dma-ranges;
+		ranges = <0x00 0x48000000 0x00 0x48000000 0x00 0x06000000>;
+
+		ti,sci-dev-id = <25>;
+
+		secure_proxy_main: mailbox@4d000000 {
+			compatible = "ti,am654-secure-proxy";
+			reg = <0x00 0x4d000000 0x00 0x80000>,
+			      <0x00 0x4a600000 0x00 0x80000>,
+			      <0x00 0x4a400000 0x00 0x80000>;
+			reg-names = "target_data", "rt", "scfg";
+			#mbox-cells = <1>;
+			interrupt-names = "rx_012";
+			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+		};
+	};
+
+	dmsc: system-controller@44043000 {
+		compatible = "ti,k2g-sci";
+		reg = <0x00 0x44043000 0x00 0xfe0>;
+		reg-names = "debug_messages";
+		ti,host-id = <12>;
+		mbox-names = "rx", "tx";
+		mboxes= <&secure_proxy_main 12>,
+			<&secure_proxy_main 13>;
+
+		k3_pds: power-controller {
+			compatible = "ti,sci-pm-domain";
+			#power-domain-cells = <2>;
+		};
+
+		k3_clks: clock-controller {
+			compatible = "ti,k2g-sci-clk";
+			#clock-cells = <2>;
+		};
+
+		k3_reset: reset-controller {
+			compatible = "ti,sci-reset";
+			#reset-cells = <2>;
+		};
+	};
+
+	main_pmx0: pinctrl@f4000 {
+		compatible = "pinctrl-single";
+		reg = <0x00 0xf4000 0x00 0x2ac>;
+		#pinctrl-cells = <1>;
+		pinctrl-single,register-width = <32>;
+		pinctrl-single,function-mask = <0xffffffff>;
+	};
+
+	main_uart0: serial@2800000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02800000 0x00 0x100>;
+		interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 146 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	main_uart1: serial@2810000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02810000 0x00 0x100>;
+		interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 152 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 152 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	main_uart2: serial@2820000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02820000 0x00 0x100>;
+		interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 153 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 153 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	main_uart3: serial@2830000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02830000 0x00 0x100>;
+		interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 154 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	main_uart4: serial@2840000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02840000 0x00 0x100>;
+		interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 155 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 155 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	main_uart5: serial@2850000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02850000 0x00 0x100>;
+		interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 156 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 156 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	main_uart6: serial@2860000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x02860000 0x00 0x100>;
+		interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 158 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 158 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	main_i2c0: i2c@20000000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20000000 0x00 0x100>;
+		interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 102 2>;
+		clock-names = "fck";
+		status = "disabled";
+	};
+
+	main_i2c1: i2c@20010000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20010000 0x00 0x100>;
+		interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 103 2>;
+		clock-names = "fck";
+		status = "disabled";
+	};
+
+	main_i2c2: i2c@20020000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20020000 0x00 0x100>;
+		interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 104 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 104 2>;
+		clock-names = "fck";
+		status = "disabled";
+	};
+
+	main_i2c3: i2c@20030000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x20030000 0x00 0x100>;
+		interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 105 2>;
+		clock-names = "fck";
+		status = "disabled";
+	};
+
+	main_gpio_intr: interrupt-controller@a00000 {
+		compatible = "ti,sci-intr";
+		reg = <0x00 0x00a00000 0x00 0x800>;
+		ti,intr-trigger-type = <1>;
+		interrupt-controller;
+		interrupt-parent = <&gic500>;
+		#interrupt-cells = <1>;
+		ti,sci = <&dmsc>;
+		ti,sci-dev-id = <3>;
+		ti,interrupt-ranges = <0 32 16>;
+		status = "disabled";
+	};
+
+	main_gpio0: gpio@600000 {
+		compatible = "ti,am64-gpio", "ti,keystone-gpio";
+		reg = <0x00 0x00600000 0x0 0x100>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-parent = <&main_gpio_intr>;
+		interrupts = <190>, <191>, <192>,
+			     <193>, <194>, <195>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		ti,ngpio = <87>;
+		ti,davinci-gpio-unbanked = <0>;
+		power-domains = <&k3_pds 77 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 77 0>;
+		clock-names = "gpio";
+		status = "disabled";
+	};
+
+	main_gpio1: gpio@601000 {
+		compatible = "ti,am64-gpio", "ti,keystone-gpio";
+		reg = <0x00 0x00601000 0x0 0x100>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-parent = <&main_gpio_intr>;
+		interrupts = <180>, <181>, <182>,
+			     <183>, <184>, <185>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		ti,ngpio = <88>;
+		ti,davinci-gpio-unbanked = <0>;
+		power-domains = <&k3_pds 78 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 78 0>;
+		clock-names = "gpio";
+		status = "disabled";
+	};
+
+	sdhci1: mmc@fa00000 {
+		compatible = "ti,am62-sdhci";
+		reg = <0x00 0xfa00000 0x00 0x260>, <0x00 0xfa08000 0x00 0x134>;
+		interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 58 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 58 5>, <&k3_clks 58 6>;
+		clock-names = "clk_ahb", "clk_xin";
+		ti,trm-icp = <0x2>;
+		ti,otap-del-sel-legacy = <0x0>;
+		ti,otap-del-sel-sd-hs = <0x0>;
+		ti,otap-del-sel-sdr12 = <0xf>;
+		ti,otap-del-sel-sdr25 = <0xf>;
+		ti,otap-del-sel-sdr50 = <0xc>;
+		ti,otap-del-sel-sdr104 = <0x6>;
+		ti,otap-del-sel-ddr50 = <0x9>;
+		ti,itap-del-sel-legacy = <0x0>;
+		ti,itap-del-sel-sd-hs = <0x0>;
+		ti,itap-del-sel-sdr12 = <0x0>;
+		ti,itap-del-sel-sdr25 = <0x0>;
+		ti,clkbuf-sel = <0x7>;
+		bus-width = <4>;
+		no-1-8-v;
+		status = "disabled";
+	};
+};
arch/arm/dts/k3-am62a-mcu.dtsi new file +39 -0
new file mode 100644
index 0000000000000..6d1e501b94abf
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for AM625 SoC Family MCU Domain peripherals
+ *
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+&cbass_mcu {
+	mcu_pmx0: pinctrl@4084000 {
+		compatible = "pinctrl-single";
+		reg = <0x00 0x04084000 0x00 0x88>;
+		#pinctrl-cells = <1>;
+		pinctrl-single,register-width = <32>;
+		pinctrl-single,function-mask = <0xffffffff>;
+		status = "disabled";
+	};
+
+	mcu_uart0: serial@4a00000 {
+		compatible = "ti,am64-uart", "ti,am654-uart";
+		reg = <0x00 0x04a00000 0x00 0x100>;
+		interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>;
+		power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 149 0>;
+		clock-names = "fclk";
+		status = "disabled";
+	};
+
+	mcu_i2c0: i2c@4900000 {
+		compatible = "ti,am64-i2c", "ti,omap4-i2c";
+		reg = <0x00 0x04900000 0x00 0x100>;
+		interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		power-domains = <&k3_pds 106 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 106 2>;
+		clock-names = "fck";
+		status = "disabled";
+	};
+};
arch/arm/dts/k3-am62a-wakeup.dtsi new file +54 -0

54 lines not on this page · raw message

arch/arm/dts/k3-am62a.dtsi new file +122 -0

122 lines not on this page · raw message

arch/arm/dts/k3-am62a7-sk.dts new file +223 -0

223 lines not on this page · raw message

arch/arm/dts/k3-am62a7.dtsi new file +103 -0

103 lines not on this page · raw message

include/dt-bindings/pinctrl/k3.h +3 -0
index a5204ab91d3ec..e8418318eb9c2 100644
@@ -44,4 +44,7 @@
 #define AM62X_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))
 #define AM62X_MCU_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))
 
+#define AM62AX_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))
+#define AM62AX_MCU_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))
+
 #endif
Signature · 1 line
2.38.1
#2 lore raw

Re: [PATCH 1/8] arm: dts: introduce am62a7 dtbs from linux kernel

Quoted 3 lines · Bryan Brattlof

Introduce the basic am62a7 SoC dtbs from the linux kernel along with the new am62a specific pinmux definition that we will use to generate the dtbs for the u-boot-spl and u-boot binaries

Please note what tag this is synced from.

Signature · 1 line
Tom
#3 lore raw

Re: [PATCH 1/8] arm: dts: introduce am62a7 dtbs from linux kernel

On November 4, 2022 thus sayeth Tom Rini:

Quoted 8 lines · Bryan Brattlof
Quoted 4 lines

Introduce the basic am62a7 SoC dtbs from the linux kernel along with the new am62a specific pinmux definition that we will use to generate the dtbs for the u-boot-spl and u-boot binaries

Please note what tag this is synced from.

Ah! I'll update the commit msg in v2. I pulled these from v6.1-rc3

Thanks for reviewing
~Bryan

#4 lore raw

Re: [PATCH 1/8] arm: dts: introduce am62a7 dtbs from linux kernel

In reply to Bryan Brattlof
Quoted 7 lines · Bryan Brattlof

Introduce the basic am62a7 SoC dtbs from the v6.1-rc3 tag of the linux kernel along with the new am62a specific pinmux definition that we will use to generate the dtbs for the u-boot-spl and u-boot binaries

As seen above, I just reworded things slightly to include the tag the dts files came from and then applied to u-boot/next, thanks!

Signature · 1 line
Tom
#5 lore raw

PATCH 2/8 arm: dts: introduce am62a7 u-boot dtbs

In reply to Bryan Brattlof

Introduce the base dts files needed for u-boot or to augment the linux dtbs for use in the u-boot-spl and u-boot binaries

---
 arch/arm/dts/Makefile                        |    3 +
 arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi | 2798 +++++++++++++++++
 arch/arm/dts/k3-am62a-ddr.dtsi               | 2814 ++++++++++++++++++
 arch/arm/dts/k3-am62a7-r5-sk.dts             |  143 +
 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi        |  140 +
 5 files changed, 5898 insertions(+)
 create mode 100644 arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-ddr.dtsi
 create mode 100644 arch/arm/dts/k3-am62a7-r5-sk.dts
 create mode 100644 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi
arch/arm/dts/Makefile +3 -0
index 791838733c5d3..5e13903d08b5c 100644
@@ -1255,6 +1255,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-am62a7-sk.dtb \
+			      k3-am62a7-r5-sk.dtb
+
 dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt7622-rfb.dtb \
 	mt7623a-unielec-u7623-02-emmc.dtb \
arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi new file +2798 -0

2,798 lines not on this page · raw message

arch/arm/dts/k3-am62a-ddr.dtsi new file +2814 -0

193 lines not on this page · raw message

arch/arm/dts/k3-am62a7-r5-sk.dts new file +143 -0

143 lines not on this page · raw message

arch/arm/dts/k3-am62a7-sk-u-boot.dtsi new file +140 -0

140 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.38.1

Part of the diff is not shown here. View the raw message.

#7 lore raw

PATCH 3/8 ram: k3-ddrss: add am62a controller support

In reply to Bryan Brattlof

TI's am62a family of SoCs uses a new 32bit DDR controller that shares much of the same functionality with the existing am64 and j721e controllers.

Select this controller by default when u-boot is build for the am62a

---
 drivers/ram/Kconfig             | 1 +
 drivers/ram/k3-ddrss/k3-ddrss.c | 1 +
 2 files changed, 2 insertions(+)
drivers/ram/Kconfig +1 -0
index bf279b79f6d1a..e085119963b6c 100644
@@ -65,6 +65,7 @@ choice
 	default K3_J721E_DDRSS if SOC_K3_J721E || SOC_K3_J721S2
 	default K3_AM64_DDRSS if SOC_K3_AM642
 	default K3_AM64_DDRSS if SOC_K3_AM625
+	default K3_AM62A_DDRSS if SOC_K3_AM62A7
 
 config K3_J721E_DDRSS
 	bool "Enable J721E DDRSS support"
drivers/ram/k3-ddrss/k3-ddrss.c +1 -0
index e8b7aec9e0bb3..7e445d2b737b3 100644
@@ -706,6 +706,7 @@ static const struct k3_ddrss_data j721s2_data = {
 };
 
 static const struct udevice_id k3_ddrss_ids[] = {
+	{.compatible = "ti,am62a-ddrss", .data = (ulong)&k3_data, },
 	{.compatible = "ti,am64-ddrss", .data = (ulong)&k3_data, },
 	{.compatible = "ti,j721e-ddrss", .data = (ulong)&k3_data, },
 	{.compatible = "ti,j721s2-ddrss", .data = (ulong)&j721s2_data, },
Signature · 1 line
2.38.1
Reviewed-by on v1 3/8
#8 lore raw

Re: [PATCH 3/8] ram: k3-ddrss: add am62a controller support

Quoted 7 lines · Bryan Brattlof

TI's am62a family of SoCs uses a new 32bit DDR controller that shares much of the same functionality with the existing am64 and j721e controllers.

Select this controller by default when u-boot is build for the am62a

Signature · 1 line
Tom
#9 lore raw

Re: [PATCH 3/8] ram: k3-ddrss: add am62a controller support

In reply to Bryan Brattlof
Quoted 8 lines · Bryan Brattlof

TI's am62a family of SoCs uses a new 32bit DDR controller that shares much of the same functionality with the existing am64 and j721e controllers.

Select this controller by default when u-boot is build for the am62a

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#10 lore raw

PATCH 4/8 soc: ti: k3-socinfo: add am62a SoC entry

In reply to Bryan Brattlof

Add identification support for TI's am62ax family of SoCs

---
 drivers/soc/soc_ti_k3.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/soc/soc_ti_k3.c +4 -0
index b1e7c4ae5f6aa..8af0ac7051925 100644
@@ -16,6 +16,7 @@
 #define AM64X			0xbb38
 #define J721S2			0xbb75
 #define AM62X			0xbb7e
+#define AM62AX			0xbb8d
 
 #define JTAG_ID_VARIANT_SHIFT	28
 #define JTAG_ID_VARIANT_MASK	(0xf << 28)
@@ -53,6 +54,9 @@ static const char *get_family_string(u32 idreg)
 	case AM62X:
 		family = "AM62X";
 		break;
+	case AM62AX:
+		family = "AM62AX";
+		break;
 	default:
 		family = "Unknown Silicon";
 	};
Signature · 1 line
2.38.1
#13 lore raw

PATCH 5/8 arm: mach-k3: introduce basic files to support the am62a

In reply to Bryan Brattlof

Introduce the mach-k3 files needed to properly boot TI's am62a SoC family of devices

---
 arch/arm/mach-k3/Kconfig                      |  14 +-
 arch/arm/mach-k3/Makefile                     |   2 +
 arch/arm/mach-k3/am62a7_init.c                | 250 ++++++++++++++++++
 arch/arm/mach-k3/arm64-mmu.c                  |   6 +-
 .../arm/mach-k3/include/mach/am62a_hardware.h |  74 ++++++
 arch/arm/mach-k3/include/mach/am62a_spl.h     |  49 ++++
 arch/arm/mach-k3/include/mach/hardware.h      |   4 +
 arch/arm/mach-k3/include/mach/spl.h           |   4 +
 8 files changed, 396 insertions(+), 7 deletions(-)
 create mode 100644 arch/arm/mach-k3/am62a7_init.c
 create mode 100644 arch/arm/mach-k3/include/mach/am62a_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am62a_spl.h
arch/arm/mach-k3/Kconfig +9 -5
index 171a7f2f25f8d..87da6b49ee6b7 100644
@@ -19,6 +19,9 @@ config SOC_K3_AM642
 config SOC_K3_AM625
 	bool "TI's K3 based AM625 SoC Family Support"
 
+config SOC_K3_AM62A7
+	bool "TI's K3 based AM62A7 SoC Family Support"
+
 endchoice
 
 config SYS_SOC
@@ -29,7 +32,7 @@ config SYS_K3_NON_SECURE_MSRAM_SIZE
 	default 0x80000 if SOC_K3_AM654
 	default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2
 	default 0x1c0000 if SOC_K3_AM642
-	default 0x3c000 if SOC_K3_AM625
+	default 0x3c000 if SOC_K3_AM625 || SOC_K3_AM62A7
 	help
 	  Describes the total size of the MCU or OCMC MSRAM present on
 	  the SoC in use. This doesn't specify the total size of SPL as
@@ -41,7 +44,7 @@ config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
 	default 0x58000 if SOC_K3_AM654
 	default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2
 	default 0x180000 if SOC_K3_AM642
-	default 0x38000 if SOC_K3_AM625
+	default 0x38000 if SOC_K3_AM625 || SOC_K3_AM62A7
 	help
 	  Describes the maximum size of the image that ROM can download
 	  from any boot media.
@@ -66,7 +69,7 @@ config SYS_K3_BOOT_PARAM_TABLE_INDEX
 	default 0x41cffbfc if SOC_K3_J721E
 	default 0x41cfdbfc if SOC_K3_J721S2
 	default 0x701bebfc if SOC_K3_AM642
-	default 0x43c3f290 if SOC_K3_AM625
+	default 0x43c3f290 if SOC_K3_AM625 || SOC_K3_AM62A7
 	help
 	  Address at which ROM stores the value which determines if SPL
 	  is booted up by primary boot media or secondary boot media.
@@ -135,7 +138,7 @@ config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_PART
 config K3_SYSFW_IMAGE_SIZE_MAX
 	int "Amount of memory dynamically allocated for loading SYSFW blob"
 	depends on K3_LOAD_SYSFW
-	default 163840 if SOC_K3_AM625
+	default 163840 if SOC_K3_AM625 || SOC_K3_AM62A7
 	default	278000
 	help
 	  Amount of memory (in bytes) reserved through dynamic allocation at
@@ -167,7 +170,7 @@ config K3_ATF_LOAD_ADDR
 
 config K3_DM_FW
 	bool "Separate DM firmware image"
-	depends on SPL && CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN
+	depends on SPL && CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625 || SOC_K3_AM62A7) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN
 	default y
 	help
 	  Enabling this will indicate that the system has separate DM
@@ -185,6 +188,7 @@ config K3_X509_SWRV
 source "board/ti/am65x/Kconfig"
 source "board/ti/am64x/Kconfig"
 source "board/ti/am62x/Kconfig"
+source "board/ti/am62ax/Kconfig"
 source "board/ti/j721e/Kconfig"
 source "board/siemens/iot2050/Kconfig"
 source "board/ti/j721s2/Kconfig"
arch/arm/mach-k3/Makefile +2 -0
index 6ac2b61c3d7ba..b5bc2367813c8 100644
@@ -6,6 +6,7 @@
 obj-$(CONFIG_SOC_K3_J721E) += j721e/ j7200/
 obj-$(CONFIG_SOC_K3_J721S2) += j721s2/
 obj-$(CONFIG_SOC_K3_AM625) += am62x/
+obj-$(CONFIG_SOC_K3_AM62A7) += am62ax/
 obj-$(CONFIG_ARM64) += arm64-mmu.o
 obj-$(CONFIG_CPU_V7R) += r5_mpu.o lowlevel_init.o
 obj-$(CONFIG_ARM64) += cache.o
@@ -15,6 +16,7 @@ obj-$(CONFIG_SOC_K3_J721E) += j721e_init.o
 obj-$(CONFIG_SOC_K3_J721S2) += j721s2_init.o
 obj-$(CONFIG_SOC_K3_AM642) += am642_init.o
 obj-$(CONFIG_SOC_K3_AM625) += am625_init.o
+obj-$(CONFIG_SOC_K3_AM62A7) += am62a7_init.o
 obj-$(CONFIG_K3_LOAD_SYSFW) += sysfw-loader.o
 endif
 obj-y += common.o security.o
arch/arm/mach-k3/am62a7_init.c new file +250 -0

250 lines not on this page · raw message

arch/arm/mach-k3/arm64-mmu.c +4 -2
index b4d7ab1f16dc8..88687c2d09450 100644
@@ -222,7 +222,9 @@ struct mm_region *mem_map = j721s2_mem_map;
 
 #endif /* CONFIG_SOC_K3_J721S2 */
 
-#if defined(CONFIG_SOC_K3_AM642) || defined(CONFIG_SOC_K3_AM625)
+#if defined(CONFIG_SOC_K3_AM642) || defined(CONFIG_SOC_K3_AM625) || \
+	defined(CONFIG_SOC_K3_AM62A7)
+
 /* NR_DRAM_BANKS + 32bit IO + 64bit IO + terminator */
 #define NR_MMU_REGIONS	(CONFIG_NR_DRAM_BANKS + 3)
 
@@ -261,4 +263,4 @@ struct mm_region am64_mem_map[NR_MMU_REGIONS] = {
 };
 
 struct mm_region *mem_map = am64_mem_map;
-#endif /* CONFIG_SOC_K3_AM642 || CONFIG_SOC_K3_AM625 */
+#endif /* CONFIG_SOC_K3_AM642 || CONFIG_SOC_K3_AM625 || CONFIG_SOC_K3_AM62A7 */
arch/arm/mach-k3/include/mach/am62a_hardware.h new file +74 -0

74 lines not on this page · raw message

arch/arm/mach-k3/include/mach/am62a_spl.h new file +49 -0

49 lines not on this page · raw message

arch/arm/mach-k3/include/mach/hardware.h +4 -0
index d6d2cf6dc2658..2c60ef85432bc 100644
@@ -26,6 +26,10 @@
 #include "am62_hardware.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_AM62A7
+#include "am62a_hardware.h"
+#endif
+
 /* Assuming these addresses and definitions stay common across K3 devices */
 #define CTRLMMR_WKUP_JTAG_ID	(WKUP_CTRL_MMR0_BASE + 0x14)
 #define JTAG_ID_VARIANT_SHIFT	28
arch/arm/mach-k3/include/mach/spl.h +4 -0
index c9a324a5f0fea..356cd89210962 100644
@@ -26,4 +26,8 @@
 #include "am62_spl.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_AM62A7
+#include "am62a_spl.h"
+#endif
+
 #endif /* _ASM_ARCH_SPL_H_ */
Signature · 1 line
2.38.1
#14 lore raw

Re: [PATCH 5/8] arm: mach-k3: introduce basic files to support the am62a

Quoted 4 lines · Bryan Brattlof

Introduce the mach-k3 files needed to properly boot TI's am62a SoC family of devices

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#15 lore raw

PATCH 6/8 arm: mach-k3: am62a: introduce auto-generated SoC data

In reply to Bryan Brattlof

Introduce the auto-generated clock tree and power domain data needed to attach the am62a into the power-domain and clock frameworks of uboot

---
 arch/arm/mach-k3/am62ax/Makefile       |   6 +
 arch/arm/mach-k3/am62ax/clk-data.c     | 317 +++++++++++++++++++++++++
 arch/arm/mach-k3/am62ax/dev-data.c     |  73 ++++++
 drivers/clk/ti/clk-k3.c                |   6 +
 drivers/power/domain/ti-power-domain.c |   6 +
 include/k3-clk.h                       |   1 +
 include/k3-dev.h                       |   1 +
 7 files changed, 410 insertions(+)
 create mode 100644 arch/arm/mach-k3/am62ax/Makefile
 create mode 100644 arch/arm/mach-k3/am62ax/clk-data.c
 create mode 100644 arch/arm/mach-k3/am62ax/dev-data.c
arch/arm/mach-k3/am62ax/Makefile new file +6 -0
new file mode 100644
index 0000000000000..c58e52df1fa27
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier:	GPL-2.0+
+#
+# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+
+obj-y += clk-data.o
+obj-y += dev-data.o
arch/arm/mach-k3/am62ax/clk-data.c new file +317 -0

317 lines not on this page · raw message

arch/arm/mach-k3/am62ax/dev-data.c new file +73 -0

73 lines not on this page · raw message

drivers/clk/ti/clk-k3.c +6 -0
index 0dd65934b361b..ba925fa3c4805 100644
@@ -79,6 +79,12 @@ static const struct soc_attr ti_k3_soc_clk_data[] = {
 		.family = "AM62X",
 		.data = &am62x_clk_platdata,
 	},
+#endif
+#ifdef CONFIG_SOC_K3_AM62A7
+	{
+		.family = "AM62AX",
+		.data = &am62ax_clk_platdata,
+	},
 #endif
 	{ /* sentinel */ }
 };
drivers/power/domain/ti-power-domain.c +6 -0
index a7f64d04f5c20..9e7151307c893 100644
@@ -92,6 +92,12 @@ static const struct soc_attr ti_k3_soc_pd_data[] = {
 		.family = "AM62X",
 		.data = &am62x_pd_platdata,
 	},
+#endif
+#ifdef CONFIG_SOC_K3_AM62A7
+	{
+		.family = "AM62AX",
+		.data = &am62ax_pd_platdata,
+	},
 #endif
 	{ /* sentinel */ }
 };
include/k3-clk.h +1 -0
index 371f077c4476d..49ba53d20f79f 100644
@@ -175,6 +175,7 @@ extern const struct ti_k3_clk_platdata j721e_clk_platdata;
 extern const struct ti_k3_clk_platdata j7200_clk_platdata;
 extern const struct ti_k3_clk_platdata j721s2_clk_platdata;
 extern const struct ti_k3_clk_platdata am62x_clk_platdata;
+extern const struct ti_k3_clk_platdata am62ax_clk_platdata;
 
 struct clk *clk_register_ti_pll(const char *name, const char *parent_name,
 				void __iomem *reg);
include/k3-dev.h +1 -0
index 87e873b9cedb9..d288ae3be7386 100644
@@ -79,6 +79,7 @@ extern const struct ti_k3_pd_platdata j721e_pd_platdata;
 extern const struct ti_k3_pd_platdata j7200_pd_platdata;
 extern const struct ti_k3_pd_platdata j721s2_pd_platdata;
 extern const struct ti_k3_pd_platdata am62x_pd_platdata;
+extern const struct ti_k3_pd_platdata am62ax_pd_platdata;
 
 u8 ti_pd_state(struct ti_pd *pd);
 u8 lpsc_get_state(struct ti_lpsc *lpsc);
Signature · 1 line
2.38.1
#16 lore raw

Re: [PATCH 6/8] arm: mach-k3: am62a: introduce auto-generated SoC data

Quoted 4 lines · Bryan Brattlof

Introduce the auto-generated clock tree and power domain data needed to attach the am62a into the power-domain and clock frameworks of uboot

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#17 lore raw

PATCH 7/8 board: ti: introduce the basic files needed to support the am62a

In reply to Bryan Brattlof

Introduce the bare minimum SD and UART support for the am62a sk.

---
 board/ti/am62ax/Kconfig               | 52 +++++++++++++++++++++++++++
 board/ti/am62ax/MAINTAINERS           |  9 +++++
 board/ti/am62ax/Makefile              |  7 ++++
 board/ti/am62ax/evm.c                 | 31 ++++++++++++++++
 drivers/firmware/ti_sci_static_data.h |  4 +--
 5 files changed, 101 insertions(+), 2 deletions(-)
 create mode 100644 board/ti/am62ax/Kconfig
 create mode 100644 board/ti/am62ax/MAINTAINERS
 create mode 100644 board/ti/am62ax/Makefile
 create mode 100644 board/ti/am62ax/evm.c
board/ti/am62ax/Kconfig new file +52 -0
new file mode 100644
index 0000000000000..2c18cd49b5d27
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+#
+
+choice
+	prompt "TI K3 AM62Ax based boards"
+	optional
+
+config TARGET_AM62A7_A53_EVM
+	bool "TI K3 based AM62A7 EVM running on A53"
+	select ARM64
+	select SOC_K3_AM62A7
+	imply BOARD
+	imply SPL_BOARD
+	imply TI_I2C_BOARD_DETECT
+
+config TARGET_AM62A7_R5_EVM
+	bool "TI K3 based AM62A7 EVM running on R5"
+	select CPU_V7R
+	select SYS_THUMB_BUILD
+	select K3_LOAD_SYSFW
+	select SOC_K3_AM62A7
+	select RAM
+	select SPL_RAM
+	select K3_DDRSS
+	imply SYS_K3_SPL_ATF
+	imply TI_I2C_BOARD_DETECT
+
+endchoice
+
+if TARGET_AM62A7_R5_EVM || TARGET_AM62A7_A53_EVM
+
+config SYS_BOARD
+       default "am62ax"
+
+config SYS_VENDOR
+       default "ti"
+
+config SYS_CONFIG_NAME
+       default "am62ax_evm"
+
+source "board/ti/common/Kconfig"
+
+endif
+
+if TARGET_AM62A7_R5_EVM
+
+config SPL_LDSCRIPT
+	default "arch/arm/mach-omap2/u-boot-spl.lds"
+
+endif
board/ti/am62ax/MAINTAINERS new file +9 -0
new file mode 100644
index 0000000000000..590f683584e52
@@ -0,0 +1,9 @@
+AM62Ax BOARD
+M:	Vignesh Raghavendra <[email protected]>
+M:	Bryan Brattlof <[email protected]>
+M:	Tom Rini <[email protected]>
+S:	Maintained
+F:	board/ti/am62ax/
+F:	include/configs/am62a7_evm.h
+F:	configs/am62ax_evm_r5_defconfig
+F:	configs/am62ax_evm_a53_defconfig
board/ti/am62ax/Makefile new file +7 -0
new file mode 100644
index 0000000000000..4e8e7aa23003e
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= evm.o
board/ti/am62ax/evm.c new file +31 -0
new file mode 100644
index 0000000000000..beef3f2f3da70
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Board specific initialization for AM62Ax platforms
+ *
+ * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ */
+
+#include <asm/arch/hardware.h>
+#include <asm/arch/sys_proto.h>
+#include <asm/io.h>
+#include <common.h>
+#include <dm/uclass.h>
+#include <env.h>
+#include <fdt_support.h>
+#include <spl.h>
+
+int board_init(void)
+{
+	return 0;
+}
+
+int dram_init(void)
+{
+	return fdtdec_setup_mem_size_base();
+}
+
+int dram_init_banksize(void)
+{
+	return fdtdec_setup_memory_banksize();
+}
drivers/firmware/ti_sci_static_data.h +2 -2
index 5ae0556a9a453..1a461fab6199b 100644
@@ -84,7 +84,7 @@ static struct ti_sci_resource_static_data rm_static_data[] = {
 };
 #endif /* CONFIG_SOC_K3_J721S2 */
 
-#if IS_ENABLED(CONFIG_SOC_K3_AM625)
+#if IS_ENABLED(CONFIG_SOC_K3_AM625) || IS_ENABLED(CONFIG_SOC_K3_AM62A7)
 static struct ti_sci_resource_static_data rm_static_data[] = {
 	/* BC channels */
 	{
@@ -95,7 +95,7 @@ static struct ti_sci_resource_static_data rm_static_data[] = {
 	},
 	{ },
 };
-#endif /* CONFIG_SOC_K3_AM625 */
+#endif /* CONFIG_SOC_K3_AM625 || CONFIG_SOC_K3_AM62A7 */
 
 #else
 static struct ti_sci_resource_static_data rm_static_data[] = {
Signature · 1 line
2.38.1
#20 lore raw

PATCH 8/8 configs: introduce configs for the am62a

In reply to Bryan Brattlof

Introduce the minimum configs, only SD-MMC and UART boot related settings, to serve as a good starting point for the am62a as we add more functionality.

---
 configs/am62ax_evm_a53_defconfig |  79 +++++++++++++++++++++++
 configs/am62ax_evm_r5_defconfig  | 106 +++++++++++++++++++++++++++++++
 include/configs/am62ax_evm.h     |  68 ++++++++++++++++++++
 3 files changed, 253 insertions(+)
 create mode 100644 configs/am62ax_evm_a53_defconfig
 create mode 100644 configs/am62ax_evm_r5_defconfig
 create mode 100644 include/configs/am62ax_evm.h
configs/am62ax_evm_a53_defconfig new file +79 -0
new file mode 100644
index 0000000000000..79f3592656530
@@ -0,0 +1,79 @@
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SYS_MALLOC_F_LEN=0x8000
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_NR_DRAM_BANKS=2
+CONFIG_SOC_K3_AM62A7=y
+CONFIG_K3_ATF_LOAD_ADDR=0x9e780000
+CONFIG_TARGET_AM62A7_A53_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="k3-am62a7-sk"
+CONFIG_SPL_TEXT_BASE=0x80080000
+CONFIG_SPL_MMC=y
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_FS_FAT=y
+CONFIG_SPL_LIBDISK_SUPPORT=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
+CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern"
+CONFIG_SPL_MAX_SIZE=0x58000
+CONFIG_SPL_PAD_TO=0x0
+CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
+CONFIG_SPL_BSS_START_ADDR=0x80a00000
+CONFIG_SPL_BSS_MAX_SIZE=0x80000
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
+CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
+CONFIG_SPL_DM_MAILBOX=y
+CONFIG_SPL_POWER_DOMAIN=y
+CONFIG_CMD_MMC=y
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_MULTI_DTB_FIT=y
+CONFIG_SPL_MULTI_DTB_FIT=y
+CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_DM=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_REGMAP=y
+CONFIG_SPL_REGMAP=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_CLK=y
+CONFIG_SPL_CLK=y
+CONFIG_CLK_TI_SCI=y
+CONFIG_TI_SCI_PROTOCOL=y
+# CONFIG_GPIO is not set
+# CONFIG_I2C is not set
+CONFIG_DM_MAILBOX=y
+CONFIG_K3_SEC_PROXY=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ADMA=y
+CONFIG_SPL_MMC_SDHCI_ADMA=y
+CONFIG_MMC_SDHCI_AM654=y
+# CONFIG_NETDEVICES is not set
+CONFIG_PINCTRL=y
+CONFIG_SPL_PINCTRL=y
+CONFIG_PINCTRL_SINGLE=y
+CONFIG_POWER_DOMAIN=y
+CONFIG_TI_SCI_POWER_DOMAIN=y
+CONFIG_K3_SYSTEM_CONTROLLER=y
+CONFIG_REMOTEPROC_TI_K3_ARM64=y
+CONFIG_DM_RESET=y
+CONFIG_RESET_TI_SCI=y
+CONFIG_DM_SERIAL=y
+CONFIG_SOC_DEVICE=y
+CONFIG_SOC_DEVICE_TI_K3=y
+CONFIG_SOC_TI=y
+CONFIG_SYSRESET=y
+CONFIG_SPL_SYSRESET=y
+CONFIG_SYSRESET_TI_SCI=y
+CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
+CONFIG_OF_LIBFDT_OVERLAY=y
configs/am62ax_evm_r5_defconfig new file +106 -0

106 lines not on this page · raw message

include/configs/am62ax_evm.h new file +68 -0

68 lines not on this page · raw message

Signature · 1 line
2.38.1
#21 lore raw

Re: [PATCH 8/8] configs: introduce configs for the am62a

Quoted 5 lines · Bryan Brattlof

Introduce the minimum configs, only SD-MMC and UART boot related settings, to serve as a good starting point for the am62a as we add more functionality.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#22 lore raw
In reply to Bryan Brattlof

Hi Bryan,

Quoted 7 lines

This series will introduce basic support (SD and UART) support for Texas Instruments AM62Ax SK EVM.

The am62ax shares many of the same features as the am62x however it uses a new 32bit controller and therefore depends on the patch I sent last week updating the macros used by the k3-ddrss ram driver[0].

Quoted 5 lines

Here is some proof of life & more documentation if you're interested :)

Bootlog:https://paste.sr.ht/~bryanb/e0a418ba7dd452749d2dd1efb5e91b2875a01708 Technical Reference Manual:https://www.ti.com/lit/zip/spruj16 Schematics:https://www.ti.com/lit/zip/sprr459

Does this board need a readme for how to build the firmware, these days there generally needs to be ATF and probably a slew of other firmwares linked into a FIT image or similar to build the entire firmware bundle, a readme would likely be a useful addition for people getting started if there's not a generic TI 64 bit build doc, and if there is that likely needs an update to include this SoC/board. I didn't see anything that looked like that in the file list below.

Peter

Quoted 81 lines

Thanks for reviewing!
~Bryan

[0] https://lore.kernel.org/u-boot/[email protected]/

Bryan Brattlof (8):
arm: dts: introduce am62a7 dtbs from linux kernel
arm: dts: introduce am62a7 u-boot dtbs
ram: k3-ddrss: add am62a controller support
soc: ti: k3-socinfo: add am62a SoC entry
arm: mach-k3: introduce basic files to support the am62a
arm: mach-k3: am62a: introduce auto-generated SoC data
board: ti: introduce the basic files needed to support the am62a
configs: introduce configs for the am62a

 arch/arm/dts/Makefile                         |    3 +
 arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi  | 2798 ++++++++++++++++
 arch/arm/dts/k3-am62a-ddr.dtsi                | 2814 +++++++++++++++++
 arch/arm/dts/k3-am62a-main.dtsi               |  298 ++
 arch/arm/dts/k3-am62a-mcu.dtsi                |   39 +
 arch/arm/dts/k3-am62a-wakeup.dtsi             |   54 +
 arch/arm/dts/k3-am62a.dtsi                    |  122 +
 arch/arm/dts/k3-am62a7-r5-sk.dts              |  143 +
 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi         |  140 +
 arch/arm/dts/k3-am62a7-sk.dts                 |  223 ++
 arch/arm/dts/k3-am62a7.dtsi                   |  103 +
 arch/arm/mach-k3/Kconfig                      |   14 +-
 arch/arm/mach-k3/Makefile                     |    2 +
 arch/arm/mach-k3/am62a7_init.c                |  250 ++
 arch/arm/mach-k3/am62ax/Makefile              |    6 +
 arch/arm/mach-k3/am62ax/clk-data.c            |  317 ++
 arch/arm/mach-k3/am62ax/dev-data.c            |   73 +
 arch/arm/mach-k3/arm64-mmu.c                  |    6 +-
 .../arm/mach-k3/include/mach/am62a_hardware.h |   74 +
 arch/arm/mach-k3/include/mach/am62a_spl.h     |   49 +
 arch/arm/mach-k3/include/mach/hardware.h      |    4 +
 arch/arm/mach-k3/include/mach/spl.h           |    4 +
 board/ti/am62ax/Kconfig                       |   52 +
 board/ti/am62ax/MAINTAINERS                   |    9 +
 board/ti/am62ax/Makefile                      |    7 +
 board/ti/am62ax/evm.c                         |   31 +
 configs/am62ax_evm_a53_defconfig              |   79 +
 configs/am62ax_evm_r5_defconfig               |  106 +
 drivers/clk/ti/clk-k3.c                       |    6 +
 drivers/firmware/ti_sci_static_data.h         |    4 +-
 drivers/power/domain/ti-power-domain.c        |    6 +
 drivers/ram/Kconfig                           |    1 +
 drivers/ram/k3-ddrss/k3-ddrss.c               |    1 +
 drivers/soc/soc_ti_k3.c                       |    4 +
 include/configs/am62ax_evm.h                  |   68 +
 include/dt-bindings/pinctrl/k3.h              |    3 +
 include/k3-clk.h                              |    1 +
 include/k3-dev.h                              |    1 +
 38 files changed, 7906 insertions(+), 9 deletions(-)
 create mode 100644 arch/arm/dts/k3-am62a-ddr-1866mhz-32bit.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-ddr.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-main.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-mcu.dtsi
 create mode 100644 arch/arm/dts/k3-am62a-wakeup.dtsi
 create mode 100644 arch/arm/dts/k3-am62a.dtsi
 create mode 100644 arch/arm/dts/k3-am62a7-r5-sk.dts
 create mode 100644 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am62a7-sk.dts
 create mode 100644 arch/arm/dts/k3-am62a7.dtsi
 create mode 100644 arch/arm/mach-k3/am62a7_init.c
 create mode 100644 arch/arm/mach-k3/am62ax/Makefile
 create mode 100644 arch/arm/mach-k3/am62ax/clk-data.c
 create mode 100644 arch/arm/mach-k3/am62ax/dev-data.c
 create mode 100644 arch/arm/mach-k3/include/mach/am62a_hardware.h
 create mode 100644 arch/arm/mach-k3/include/mach/am62a_spl.h
 create mode 100644 board/ti/am62ax/Kconfig
 create mode 100644 board/ti/am62ax/MAINTAINERS
 create mode 100644 board/ti/am62ax/Makefile
 create mode 100644 board/ti/am62ax/evm.c
 create mode 100644 configs/am62ax_evm_a53_defconfig
 create mode 100644 configs/am62ax_evm_r5_defconfig
 create mode 100644 include/configs/am62ax_evm.h

--
2.38.1

#23 lore raw
Quoted 15 lines · Peter Robinson

Hi Bryan,

Quoted 7 lines

This series will introduce basic support (SD and UART) support for Texas Instruments AM62Ax SK EVM.

The am62ax shares many of the same features as the am62x however it uses a new 32bit controller and therefore depends on the patch I sent last week updating the macros used by the k3-ddrss ram driver[0].

Quoted 5 lines

Here is some proof of life & more documentation if you're interested :)

Bootlog:https://paste.sr.ht/~bryanb/e0a418ba7dd452749d2dd1efb5e91b2875a01708 Technical Reference Manual:https://www.ti.com/lit/zip/spruj16 Schematics:https://www.ti.com/lit/zip/sprr459

Quoted 7 lines

Does this board need a readme for how to build the firmware, these days there generally needs to be ATF and probably a slew of other firmwares linked into a FIT image or similar to build the entire firmware bundle, a readme would likely be a useful addition for people getting started if there's not a generic TI 64 bit build doc, and if there is that likely needs an update to include this SoC/board. I didn't see anything that looked like that in the file list below.

Agreed, something under doc/board/ti/ is needed as well for the series, thanks!

Signature · 1 line
Tom
#24 lore raw
Quoted 24 lines · Tom Rini
Quoted 15 lines · Peter Robinson

Hi Bryan,

Quoted 7 lines

This series will introduce basic support (SD and UART) support for Texas Instruments AM62Ax SK EVM.

The am62ax shares many of the same features as the am62x however it uses a new 32bit controller and therefore depends on the patch I sent last week updating the macros used by the k3-ddrss ram driver[0].

Quoted 5 lines

Here is some proof of life & more documentation if you're interested :)

Bootlog:https://paste.sr.ht/~bryanb/e0a418ba7dd452749d2dd1efb5e91b2875a01708 Technical Reference Manual:https://www.ti.com/lit/zip/spruj16 Schematics:https://www.ti.com/lit/zip/sprr459

Quoted 7 lines

Does this board need a readme for how to build the firmware, these days there generally needs to be ATF and probably a slew of other firmwares linked into a FIT image or similar to build the entire firmware bundle, a readme would likely be a useful addition for people getting started if there's not a generic TI 64 bit build doc, and if there is that likely needs an update to include this SoC/board. I didn't see anything that looked like that in the file list below.

Quoted 3 lines

Agreed, something under doc/board/ti/ is needed as well for the series, thanks!

I see we do have some files at board/ti/{j721e,j721s2}/README with some good info on all this firmware source/building. Much of that info is common and could be factored out into a "generic TI 64 bit build doc".

Andrew

#25 lore raw

On November 4, 2022 thus sayeth Andrew Davis:

Quoted 25 lines · Tom Rini
Quoted 24 lines · Peter Robinson
Quoted 22 lines

Hi Bryan,

Quoted 7 lines

This series will introduce basic support (SD and UART) support for Texas Instruments AM62Ax SK EVM.

The am62ax shares many of the same features as the am62x however it uses a new 32bit controller and therefore depends on the patch I sent last week updating the macros used by the k3-ddrss ram driver[0].

Quoted 5 lines

Here is some proof of life & more documentation if you're interested :)

Bootlog:https://paste.sr.ht/~bryanb/e0a418ba7dd452749d2dd1efb5e91b2875a01708 Technical Reference Manual:https://www.ti.com/lit/zip/spruj16 Schematics:https://www.ti.com/lit/zip/sprr459

Does this board need a readme for how to build the firmware, these days there generally needs to be ATF and probably a slew of other firmwares linked into a FIT image or similar to build the entire firmware bundle, a readme would likely be a useful addition for people getting started if there's not a generic TI 64 bit build doc, and if there is that likely needs an update to include this SoC/board. I didn't see anything that looked like that in the file list below.

Quoted 8 lines
Quoted 3 lines

Agreed, something under doc/board/ti/ is needed as well for the series, thanks!

I see we do have some files at board/ti/{j721e,j721s2}/README with some good info on all this firmware source/building. Much of that info is common and could be factored out into a "generic TI 64 bit build doc".

Cool! I can add this to the series :)

Thanks for reviewing everyone
~Bryan