Skip to contentSkip to conversation

Add support for TI AM6254atl SiP

PATCH Superseded Anshul Dalal 2 participants 10 messages Oct 24, 2025 Arm (32-bit)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add support for TI AM6254atl SiP

Hi all,

This patch series adds support for AM6254atl SiP (or AM62x SiP for short) to U-Boot.

The OPN (Orderable Part Number) 'AM6254atl' expands as follows[1]:

AM6254atl

     ||||
     |||+-- Feature Lookup (L indicates 512MiB of integrated LPDDR4)
     ||+--- Device Speed Grade (T indicates 1.25GHz on A53 cores)
     |+---- Silicon PG Revision (A indicates SR 1.0)
     +----- Core configuration (4 indicates A53's in Quad core config)

AM62x SiP provides the existing AM62x SoC with 512MiB of DDR integrated in a single packages. The first 4 patches in the series are cherry-picked from the devicetree-rebasing repository at 'v6.18-rc2-dts'.

---
Changes in v2:
- Add a new-line at the end of env file
- Update the dependencies and rebase to master
- Remove bloblist addr from the A53 defconfig
- Link to v1:
https://lore.kernel.org/r/[email protected]

---
Anshul Dalal (7):
arm64: dts: ti: k3-am62*: remove SoC dtsi from common dtsi
arm64: dts: ti: Introduce base support for AM6254atl SiP
arm64: dts: ti: Add support for AM6254atl SiP SK
arm: dts: add support for AM6254atl at R5 SPL
configs: add defconfigs for AM6254atl
board: am62x: add env file for AM6254atl
doc: add documentation for AM6254atl SiP

Beleswar Padhi (1):
arm64: dts: ti: k3-am6*-boards: Add label to reserved-memory node

 arch/arm/dts/k3-am6254atl-r5-sk.dts                |  102 +
 arch/arm/dts/k3-am6254atl-sip-ddr-lp4-50-800.dtsi  | 2191 ++++++++++++++++++++
 arch/arm/dts/k3-am6254atl-sk-u-boot.dtsi           |   21 +
 board/ti/am62x/MAINTAINERS                         |    2 +
 board/ti/am62x/am6254atl.env                       |   37 +
 configs/am6254atl_evm_a53_defconfig                |   15 +
 configs/am6254atl_evm_r5_defconfig                 |   10 +
 doc/board/ti/am6254atl_sk.rst                      |  308 +++
 doc/board/ti/k3.rst                                |    1 +
 dts/upstream/src/arm64/ti/k3-am62-lp-sk.dts        |    8 +
 dts/upstream/src/arm64/ti/k3-am62-verdin.dtsi      |    2 +-
 dts/upstream/src/arm64/ti/k3-am625-sk-common.dtsi  |  296 +++
 dts/upstream/src/arm64/ti/k3-am625-sk.dts          |  301 +--
 dts/upstream/src/arm64/ti/k3-am6254atl-sk.dts      |   15 +
 dts/upstream/src/arm64/ti/k3-am6254atl.dtsi        |   23 +
 .../src/arm64/ti/k3-am62a-phycore-som.dtsi         |    2 +-
 dts/upstream/src/arm64/ti/k3-am62a7-sk.dts         |    2 +-
 dts/upstream/src/arm64/ti/k3-am62d2-evm.dts        |    2 +-
 dts/upstream/src/arm64/ti/k3-am62p-verdin.dtsi     |    2 +-
 dts/upstream/src/arm64/ti/k3-am62p5-sk.dts         |    2 +-
 dts/upstream/src/arm64/ti/k3-am62x-sk-common.dtsi  |   10 +-
 dts/upstream/src/arm64/ti/k3-am642-evm.dts         |    2 +-
 dts/upstream/src/arm64/ti/k3-am642-sk.dts          |    2 +-
 dts/upstream/src/arm64/ti/k3-am642-sr-som.dtsi     |    2 +-
 dts/upstream/src/arm64/ti/k3-am642-tqma64xxl.dtsi  |    2 +-
 .../src/arm64/ti/k3-am65-iot2050-common.dtsi       |    2 +-
 dts/upstream/src/arm64/ti/k3-am654-base-board.dts  |    2 +-
 27 files changed, 3046 insertions(+), 318 deletions(-)

---
base-commit: b10c055d4e1b5153a331a61ef82a5b01b5bb4c45
change-id: 20251022-62sip_support-b30de465397d

Best regards,

Signature · 1 line
Anshul Dalal <[email protected]>
#1 lore raw

PATCH v2 1/8 arm64: dts: ti: k3-am6*-boards: Add label to reserved-memory node

From: Beleswar Padhi <[email protected]>

Add the label name 'reserved_memory' to the reserved-memory node in all K3 AM6* board level dts files. This is done so that the node can be referenced and extended to add more carveout entries as needed in future refactoring patches.

[ upstream commit: 4f1aee4723a796a92f17b23699dc861b582ddfd2 ]

(cherry picked from commit 58c447fe500d78f5adc373b4945d8317e11df072)

---
 dts/upstream/src/arm64/ti/k3-am62-verdin.dtsi         | 2 +-
 dts/upstream/src/arm64/ti/k3-am62a-phycore-som.dtsi   | 2 +-
 dts/upstream/src/arm64/ti/k3-am62a7-sk.dts            | 2 +-
 dts/upstream/src/arm64/ti/k3-am62d2-evm.dts           | 2 +-
 dts/upstream/src/arm64/ti/k3-am62p-verdin.dtsi        | 2 +-
 dts/upstream/src/arm64/ti/k3-am62p5-sk.dts            | 2 +-
 dts/upstream/src/arm64/ti/k3-am62x-sk-common.dtsi     | 2 +-
 dts/upstream/src/arm64/ti/k3-am642-evm.dts            | 2 +-
 dts/upstream/src/arm64/ti/k3-am642-sk.dts             | 2 +-
 dts/upstream/src/arm64/ti/k3-am642-sr-som.dtsi        | 2 +-
 dts/upstream/src/arm64/ti/k3-am642-tqma64xxl.dtsi     | 2 +-
 dts/upstream/src/arm64/ti/k3-am65-iot2050-common.dtsi | 2 +-
 dts/upstream/src/arm64/ti/k3-am654-base-board.dts     | 2 +-
 13 files changed, 13 insertions(+), 13 deletions(-)
dts/upstream/src/arm64/ti/k3-am62-verdin.dtsi +1 -1
index bc2289d74774575648ca74403b7164e03e6d146f..4e9a8921c95dfc2f3481299a032e542d19839a81 100644
@@ -189,7 +189,7 @@
 		regulator-name = "USB_1_EN";
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am62a-phycore-som.dtsi +1 -1
index 5dc5d2cb20ccdd85d82a5067959f5ea83efcd96e..ebdbd782e9f103c839f0e24236c526301dcffaae 100644
@@ -45,7 +45,7 @@
 		bootph-all;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am62a7-sk.dts +1 -1
index bceead5e288e6d78c671baf0afabd1a9aa23fbee..3f4c6fe2999b1fe48dcd0f8b7ca8ec5e353d32f8 100644
@@ -39,7 +39,7 @@
 		bootph-all;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am62d2-evm.dts +1 -1
index daea18b0bc61c67fc1a1c8f4f47b4fd40b0235e1..dbee37f38b7b359f9e3722c07429baa2833addfd 100644
@@ -39,7 +39,7 @@
 		bootph-all;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am62p-verdin.dtsi +1 -1
index a2fdc6741da2cd8846ab8d7dd4bd44a15dc372e8..6a04b370d149ffa26747bdb6e657f1b890004fad 100644
@@ -147,7 +147,7 @@
 		regulator-name = "+V_SODIMM";
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am62p5-sk.dts +1 -1
index 899da7896563b43021de14eda1b0058a5c6d36da..1234ebba811060f4a494c1d4b6f5e1eedfecd826 100644
@@ -44,7 +44,7 @@
 		bootph-pre-ram;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am62x-sk-common.dtsi +1 -1
index 13e1d36123d51f2ca8ec40ce61e4a53b5e7ba832..43ee16f171fdfdb07e7a4bd1719bd8b62d81654b 100644
@@ -36,7 +36,7 @@
 		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am642-evm.dts +1 -1
index e01866372293babcbe6687f32a094e9daaa815ec..b9f472ed1d8e390e84e000aa0492c7086d78d8d0 100644
@@ -42,7 +42,7 @@
 		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am642-sk.dts +1 -1
index 1deaa0be0085c4e64136d3e8f68fdcd62ca7e068..37a5ab0b6b688e3eff8e004a90b379a3befe47cd 100644
@@ -40,7 +40,7 @@
 		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am642-sr-som.dtsi +1 -1
index a5cec9a075109aeec335e3f4d22a9fd60a3cd813..ad41479eba73d1c5c6e6ccadbaaf2f5237adf239 100644
@@ -105,7 +105,7 @@
 		device_type = "memory";
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am642-tqma64xxl.dtsi +1 -1
index 828d815d6bdfc24d96c9e36f16643ed8bb59abfb..df05a124804c368b4aae7f59cb1e01a207444bed 100644
@@ -20,7 +20,7 @@
 
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am65-iot2050-common.dtsi +1 -1
index e5136ed947651736c5302f914939a4e57102b971..b86ee00d48f76110cf501bb3f2afee3e030d2b64 100644
@@ -36,7 +36,7 @@
 		stdout-path = "serial3:115200n8";
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
dts/upstream/src/arm64/ti/k3-am654-base-board.dts +1 -1
index e589690c7c8213d5e4989942735fa53825e610f5..d48171212ac93b6bd3f19609f4fe629b839440ab 100644
@@ -39,7 +39,7 @@
 		      <0x00000008 0x80000000 0x00000000 0x80000000>;
 	};
 
-	reserved-memory {
+	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
 		ranges;
Signature · 1 line
2.51.0
#2 lore raw

PATCH v2 2/8 arm64: dts: ti: k3-am62*: remove SoC dtsi from common dtsi

In reply to Anshul Dalal

The k3-am62x-sk-common dtsi represents the common hardware used across am62x EVMs which can be configured with various DDR sizes or none (with DDR integrated in the package) based on the specific am62x SoC used.

Therefore this patch moves the memory node and the SoC specific k3-am625 dtsi out of sk-common and into the board dts files. No functional change is intended from this patch. The device-tree inheritance is changed as follows:

Before:

               k3-am62
                 ^
               k3-am625
                 ^
         k3-am62x-sk-common
                 ^

am62x EVMs (k3-am625-sk, k3-am62-lp-sk)

After:

        k3-am62
          ^
        k3-am625    k3-am62x-sk-common
          ^              ^

am62x EVMs (k3-am625-sk, k3-am62-lp-sk)

[ upstream commit: e0b9feca7329c495a76891d7766a781dea73787d ]

(cherry picked from commit 0b0edbbdf43bac6b28dd59c88647bd5e0b73ffea)

---
 dts/upstream/src/arm64/ti/k3-am62-lp-sk.dts       | 8 ++++++++
 dts/upstream/src/arm64/ti/k3-am625-sk.dts         | 5 +++--
 dts/upstream/src/arm64/ti/k3-am62x-sk-common.dtsi | 8 --------
 3 files changed, 11 insertions(+), 10 deletions(-)
dts/upstream/src/arm64/ti/k3-am62-lp-sk.dts +8 -0
index 4609f366006e4cdf0c162f72634ce90623f60a90..ecfba05fe5c273c671cd0968f3eceaf54d22ac7d 100644
@@ -7,12 +7,20 @@
 
 /dts-v1/;
 
+#include "k3-am625.dtsi"
 #include "k3-am62x-sk-common.dtsi"
 
 / {
 	compatible = "ti,am62-lp-sk", "ti,am625";
 	model = "Texas Instruments AM62x LP SK";
 
+	memory@80000000 {
+		/* 2G RAM */
+		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
+		device_type = "memory";
+		bootph-pre-ram;
+	};
+
 	vmain_pd: regulator-0 {
 		/* TPS65988 PD CONTROLLER OUTPUT */
 		compatible = "regulator-fixed";
dts/upstream/src/arm64/ti/k3-am625-sk.dts +3 -2
index d240165bda9c57b01772feb57f14f209bbcc5668..1c6812a8ae9b5d8f274f5a3fa88738eafbc747a7 100644
@@ -7,6 +7,7 @@
 
 /dts-v1/;
 
+#include "k3-am625.dtsi"
 #include "k3-am62x-sk-common.dtsi"
 
 / {
@@ -23,10 +24,10 @@
 	};
 
 	memory@80000000 {
-		device_type = "memory";
 		/* 2G RAM */
 		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
-
+		device_type = "memory";
+		bootph-pre-ram;
 	};
 
 	vmain_pd: regulator-0 {
dts/upstream/src/arm64/ti/k3-am62x-sk-common.dtsi +0 -8
index 43ee16f171fdfdb07e7a4bd1719bd8b62d81654b..ce8be23b068ea97901b50fbf1b3241ebd54c9f34 100644
@@ -8,7 +8,6 @@
 #include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/net/ti-dp83867.h>
-#include "k3-am625.dtsi"
 
 / {
 	aliases {
@@ -29,13 +28,6 @@
 		stdout-path = "serial2:115200n8";
 	};
 
-	memory@80000000 {
-		bootph-pre-ram;
-		device_type = "memory";
-		/* 2G RAM */
-		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
-	};
-
 	reserved_memory: reserved-memory {
 		#address-cells = <2>;
 		#size-cells = <2>;
Signature · 1 line
2.51.0
#3 lore raw

PATCH v2 3/8 arm64: dts: ti: Introduce base support for AM6254atl SiP

In reply to Anshul Dalal

This patch adds the top level dtsi for AM6254atl SiP which integrates the existing AM625 SoC with 512MiB of DDR in a single package.

More information about the package can be found here:
https://www.ti.com/lit/ds/symlink/am625sip.pdf

[ upstream commit: 7c1d13a14e61ab33eec330cb6cabbddb37eecaa9 ]

(cherry picked from commit fa5a6a6e784bde78c6ec74eccd92d51fb9fd49e8)

---
 dts/upstream/src/arm64/ti/k3-am6254atl.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
dts/upstream/src/arm64/ti/k3-am6254atl.dtsi new file +23 -0
new file mode 100644
index 0000000000000000000000000000000000000000..976ad7dc1e713fa8db98542c87976279dec57a4d
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * DTS for AM625 SiP SoC family in Quad core configuration and 512MiB RAM.
+ *
+ * Webpage: https://www.ti.com/product/AM625SIP
+ *
+ * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-am625.dtsi"
+
+/ {
+	model = "Texas Instruments AM6254atl SiP";
+	compatible = "ti,am6254atl", "ti,am625";
+
+	memory@80000000 {
+		/* 512MiB of integrated RAM */
+		reg = <0x00000000 0x80000000 0x00000000 0x20000000>;
+		device_type = "memory";
+		bootph-all;
+	};
+
+};
Signature · 1 line
2.51.0
#4 lore raw

PATCH v2 4/8 arm64: dts: ti: Add support for AM6254atl SiP SK

In reply to Anshul Dalal

This patch adds the dt for SK-AM62-SIP, which uses the existing SK-AM62 board design with the new AM6254atl SiP. This changes the location of memory node from the board dts to SoC level dtsi (k3-am6254atl in our case).

Therefore this patch introduces the new 'k3-am625-sk-common.dtsi' which represents the common hardware used for both 'am625-sk' and 'am6254atl-sk' boards with the inheritance hierarchy modified to:

k3-am625-sk.dts:

     k3-am62    k3-am62x-sk-common
        |            |
    k3-am625    k3-am625-sk-common
        |            |
        +-----+------+
              |
         k3-am625-sk

k3-am6254atl-sk.dts:

     k3-am62
        |
     k3-am625       k3-am62x-sk-common
        |                |
    k3-am6254atl    k3-am625-sk-common
        |                |
        +-------+--------+
                |
         k3-am6254atl-sk

[ upstream commit: 2517e476b819df986fa1fe53927c099032bb72dc ]

(cherry picked from commit 58cd89aff167661dbae0c9911282ea3f1b8212cc)

---
 dts/upstream/src/arm64/ti/k3-am625-sk-common.dtsi | 296 ++++++++++++++++++++++
 dts/upstream/src/arm64/ti/k3-am625-sk.dts         | 296 +---------------------
 dts/upstream/src/arm64/ti/k3-am6254atl-sk.dts     |  15 ++
 3 files changed, 312 insertions(+), 295 deletions(-)
dts/upstream/src/arm64/ti/k3-am625-sk-common.dtsi new file +296 -0
new file mode 100644
index 0000000000000000000000000000000000000000..fe0b98e1d10557a7b649b04105545f913d2d9056
@@ -0,0 +1,296 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Common dtsi for AM625 SK and derivatives
+ *
+ * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-am62x-sk-common.dtsi"
+
+/ {
+	opp-table {
+		/* Add 1.4GHz OPP for am625-sk board. Requires VDD_CORE to be at 0.85V */
+		opp-1400000000 {
+			opp-hz = /bits/ 64 <1400000000>;
+			opp-supported-hw = <0x01 0x0004>;
+			clock-latency-ns = <6000000>;
+		};
+	};
+
+	vmain_pd: regulator-0 {
+		/* TPS65988 PD CONTROLLER OUTPUT */
+		compatible = "regulator-fixed";
+		regulator-name = "vmain_pd";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-always-on;
+		regulator-boot-on;
+		bootph-all;
+	};
+
+	vcc_5v0: regulator-1 {
+		/* Output of LM34936 */
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_5v0";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vmain_pd>;
+		regulator-always-on;
+		regulator-boot-on;
+		bootph-all;
+	};
+
+	vcc_3v3_sys: regulator-2 {
+		/* output of LM61460-Q1 */
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_3v3_sys";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vmain_pd>;
+		regulator-always-on;
+		regulator-boot-on;
+		bootph-all;
+	};
+
+	vdd_mmc1: regulator-3 {
+		/* TPS22918DBVR */
+		compatible = "regulator-fixed";
+		regulator-name = "vdd_mmc1";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		enable-active-high;
+		vin-supply = <&vcc_3v3_sys>;
+		gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
+		bootph-all;
+	};
+
+	vdd_sd_dv: regulator-4 {
+		/* Output of TLV71033 */
+		compatible = "regulator-gpio";
+		regulator-name = "tlv71033";
+		pinctrl-names = "default";
+		pinctrl-0 = <&vdd_sd_dv_pins_default>;
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		vin-supply = <&vcc_5v0>;
+		gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
+		states = <1800000 0x0>,
+			 <3300000 0x1>;
+		bootph-all;
+	};
+
+	vcc_1v8: regulator-5 {
+		/* output of TPS6282518DMQ */
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_1v8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		vin-supply = <&vcc_3v3_sys>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+};
+
+&main_pmx0 {
+	main_mmc0_pins_default: main-mmc0-default-pins {
+		bootph-all;
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
+			AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
+			AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
+			AM62X_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */
+			AM62X_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */
+			AM62X_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */
+			AM62X_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */
+			AM62X_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */
+			AM62X_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */
+			AM62X_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */
+		>;
+	};
+
+	main_rgmii2_pins_default: main-rgmii2-default-pins {
+		bootph-all;
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x184, PIN_INPUT, 0) /* (AE23) RGMII2_RD0 */
+			AM62X_IOPAD(0x188, PIN_INPUT, 0) /* (AB20) RGMII2_RD1 */
+			AM62X_IOPAD(0x18c, PIN_INPUT, 0) /* (AC21) RGMII2_RD2 */
+			AM62X_IOPAD(0x190, PIN_INPUT, 0) /* (AE22) RGMII2_RD3 */
+			AM62X_IOPAD(0x180, PIN_INPUT, 0) /* (AD23) RGMII2_RXC */
+			AM62X_IOPAD(0x17c, PIN_INPUT, 0) /* (AD22) RGMII2_RX_CTL */
+			AM62X_IOPAD(0x16c, PIN_OUTPUT, 0) /* (Y18) RGMII2_TD0 */
+			AM62X_IOPAD(0x170, PIN_OUTPUT, 0) /* (AA18) RGMII2_TD1 */
+			AM62X_IOPAD(0x174, PIN_OUTPUT, 0) /* (AD21) RGMII2_TD2 */
+			AM62X_IOPAD(0x178, PIN_OUTPUT, 0) /* (AC20) RGMII2_TD3 */
+			AM62X_IOPAD(0x168, PIN_OUTPUT, 0) /* (AE21) RGMII2_TXC */
+			AM62X_IOPAD(0x164, PIN_OUTPUT, 0) /* (AA19) RGMII2_TX_CTL */
+		>;
+	};
+
+	ospi0_pins_default: ospi0-default-pins {
+		bootph-all;
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK */
+			AM62X_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F23) OSPI0_CSn0 */
+			AM62X_IOPAD(0x00c, PIN_INPUT, 0) /* (E25) OSPI0_D0 */
+			AM62X_IOPAD(0x010, PIN_INPUT, 0) /* (G24) OSPI0_D1 */
+			AM62X_IOPAD(0x014, PIN_INPUT, 0) /* (F25) OSPI0_D2 */
+			AM62X_IOPAD(0x018, PIN_INPUT, 0) /* (F24) OSPI0_D3 */
+			AM62X_IOPAD(0x01c, PIN_INPUT, 0) /* (J23) OSPI0_D4 */
+			AM62X_IOPAD(0x020, PIN_INPUT, 0) /* (J25) OSPI0_D5 */
+			AM62X_IOPAD(0x024, PIN_INPUT, 0) /* (H25) OSPI0_D6 */
+			AM62X_IOPAD(0x028, PIN_INPUT, 0) /* (J22) OSPI0_D7 */
+			AM62X_IOPAD(0x008, PIN_INPUT, 0) /* (J24) OSPI0_DQS */
+		>;
+	};
+
+	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x07c, PIN_OUTPUT, 7) /* (P25) GPMC0_CLK.GPIO0_31 */
+		>;
+		bootph-all;
+	};
+
+	main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins {
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */
+		>;
+		bootph-all;
+	};
+};
+
+&main_gpio0 {
+	bootph-all;
+};
+
+&main_gpio1 {
+	bootph-all;
+};
+
+&main_i2c1 {
+	exp1: gpio@22 {
+		compatible = "ti,tca6424";
+		reg = <0x22>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
+		interrupt-parent = <&main_gpio1>;
+		interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
+				   "PRU_DETECT", "MMC1_SD_EN",
+				   "VPP_LDO_EN", "EXP_PS_3V3_En",
+				   "EXP_PS_5V0_En", "EXP_HAT_DETECT",
+				   "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
+				   "UART1_FET_BUF_EN", "WL_LT_EN",
+				   "GPIO_HDMI_RSTn", "CSI_GPIO1",
+				   "CSI_GPIO2", "PRU_3V3_EN",
+				   "HDMI_INTn", "PD_I2C_IRQ",
+				   "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
+				   "MCASP1_FET_SEL", "UART1_FET_SEL",
+				   "TSINT#", "IO_EXP_TEST_LED";
+		bootph-all;
+	};
+};
+
+&sdhci0 {
+	bootph-all;
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_mmc0_pins_default>;
+	disable-wp;
+};
+
+&sdhci1 {
+	vmmc-supply = <&vdd_mmc1>;
+	vqmmc-supply = <&vdd_sd_dv>;
+};
+
+&cpsw3g {
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_rgmii1_pins_default>, <&main_rgmii2_pins_default>;
+};
+
+&cpsw_port2 {
+	/* PCB provides an internal delay of 2ns */
+	phy-mode = "rgmii-rxid";
+	phy-handle = <&cpsw3g_phy1>;
+};
+
+&cpsw3g_mdio {
+	cpsw3g_phy1: ethernet-phy@1 {
+		reg = <1>;
+		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+		ti,min-output-impedance;
+	};
+};
+
+&fss {
+	bootph-all;
+};
+
+&ospi0 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&ospi0_pins_default>;
+
+	flash@0 {
+		compatible = "jedec,spi-nor";
+		reg = <0x0>;
+		spi-tx-bus-width = <8>;
+		spi-rx-bus-width = <8>;
+		spi-max-frequency = <25000000>;
+		cdns,tshsl-ns = <60>;
+		cdns,tsd2d-ns = <60>;
+		cdns,tchsh-ns = <60>;
+		cdns,tslch-ns = <60>;
+		cdns,read-delay = <4>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			bootph-all;
+
+			partition@0 {
+				label = "ospi.tiboot3";
+				reg = <0x0 0x80000>;
+			};
+
+			partition@80000 {
+				label = "ospi.tispl";
+				reg = <0x80000 0x200000>;
+			};
+
+			partition@280000 {
+				label = "ospi.u-boot";
+				reg = <0x280000 0x400000>;
+			};
+
+			partition@680000 {
+				label = "ospi.env";
+				reg = <0x680000 0x40000>;
+			};
+
+			partition@6c0000 {
+				label = "ospi.env.backup";
+				reg = <0x6c0000 0x40000>;
+			};
+
+			partition@800000 {
+				label = "ospi.rootfs";
+				reg = <0x800000 0x37c0000>;
+			};
+
+			partition@3fc0000 {
+				bootph-pre-ram;
+				label = "ospi.phypattern";
+				reg = <0x3fc0000 0x40000>;
+			};
+		};
+	};
+};
dts/upstream/src/arm64/ti/k3-am625-sk.dts +1 -295

311 lines not on this page · raw message

dts/upstream/src/arm64/ti/k3-am6254atl-sk.dts new file +15 -0
new file mode 100644
index 0000000000000000000000000000000000000000..055e63a3fbb1ceb22bb0b66a980eac45aaceafb3
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * AM6254atl SiP SK: https://www.ti.com/lit/df/sprr482b/sprr482b.zip
+ * Webpage: https://www.ti.com/tool/SK-AM62-SIP
+ *
+ * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-am6254atl.dtsi"
+#include "k3-am625-sk-common.dtsi"
+
+/ {
+	model = "Texas Instruments AM6254atl SK";
+	compatible = "ti,am6254atl-sk", "ti,am6254atl", "ti,am625";
+};
Signature · 1 line
2.51.0
#5 lore raw

PATCH v2 5/8 arm: dts: add support for AM6254atl at R5 SPL

In reply to Anshul Dalal

Adds the U-Boot device tree files needed to boot the AM6254atl SIP EVM board with a different type of DDR compared to AM62x SK board.

---
 arch/arm/dts/k3-am6254atl-r5-sk.dts               |  102 +
 arch/arm/dts/k3-am6254atl-sip-ddr-lp4-50-800.dtsi | 2191 +++++++++++++++++++++
 arch/arm/dts/k3-am6254atl-sk-u-boot.dtsi          |   21 +
 3 files changed, 2314 insertions(+)
arch/arm/dts/k3-am6254atl-r5-sk.dts new file +102 -0
new file mode 100644
index 0000000000000000000000000000000000000000..225ad44e7226335bf1f245d37c64d39db4689897
@@ -0,0 +1,102 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * AM6254atl SiP SK dts for R5 SPL
+ * Webpage: https://www.ti.com/tool/SK-AM62-SIP
+ *
+ * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-am6254atl-sk.dts"
+#include "k3-am6254atl-sip-ddr-lp4-50-800.dtsi"
+#include "k3-am62-ddr.dtsi"
+
+#include "k3-am6254atl-sk-u-boot.dtsi"
+
+/ {
+	aliases {
+		tick-timer = &main_timer0;
+		remoteproc0 = &sysctrler;
+		remoteproc1 = &a53_0;
+		serial0 = &wkup_uart0;
+		serial3 = &main_uart1;
+	};
+
+	a53_0: a53@0 {
+		compatible = "ti,am654-rproc";
+		reg = <0x00 0x00a90000 0x00 0x10>;
+		power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
+				<&k3_pds 135 TI_SCI_PD_EXCLUSIVE>,
+				<&k3_pds 166 TI_SCI_PD_EXCLUSIVE>;
+		resets = <&k3_reset 135 0>;
+		clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
+		clock-names = "gtc", "core";
+		assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
+		assigned-clock-parents = <&k3_clks 61 2>;
+		assigned-clock-rates = <200000000>, <1200000000>;
+		ti,sci = <&dmsc>;
+		ti,sci-proc-id = <32>;
+		ti,sci-host-id = <10>;
+		bootph-pre-ram;
+	};
+
+	dm_tifs: dm-tifs {
+		compatible = "ti,j721e-dm-sci";
+		ti,host-id = <36>;
+		ti,secure-host;
+		mbox-names = "rx", "tx";
+		mboxes= <&secure_proxy_main 22>,
+			<&secure_proxy_main 23>;
+		bootph-pre-ram;
+	};
+};
+
+&dmsc {
+	mboxes= <&secure_proxy_main 0>,
+		<&secure_proxy_main 1>,
+		<&secure_proxy_main 0>;
+	mbox-names = "rx", "tx", "notify";
+	ti,host-id = <35>;
+	ti,secure-host;
+};
+
+&secure_proxy_sa3 {
+	/* We require this for boot handshake */
+	status = "okay";
+};
+
+&cbass_main {
+	sysctrler: sysctrler {
+		compatible = "ti,am654-tisci-rproc-r5";
+		mboxes= <&secure_proxy_main 1>, <&secure_proxy_main 0>, <&secure_proxy_sa3 0>;
+		mbox-names = "tx", "rx", "boot_notify";
+		bootph-pre-ram;
+	};
+};
+
+&main_timer0 {
+	/delete-property/ clocks;
+	/delete-property/ clocks-names;
+	/delete-property/ assigned-clocks;
+	/delete-property/ assigned-clock-parents;
+	clock-frequency = <25000000>;
+};
+
+/* WKUP UART0 is used for DM firmware logs */
+&wkup_uart0 {
+	status = "okay";
+};
+
+/* Main UART1 is used for TIFS firmware logs */
+&main_uart1 {
+	status = "okay";
+};
+
+&ospi0 {
+	reg = <0x00 0x0fc40000 0x00 0x100>,
+	      <0x00 0x60000000 0x00 0x08000000>;
+};
+
+&main_pktdma {
+	ti,sci = <&dm_tifs>;
+	bootph-all;
+};
arch/arm/dts/k3-am6254atl-sip-ddr-lp4-50-800.dtsi new file +2191 -0

2,191 lines not on this page · raw message

arch/arm/dts/k3-am6254atl-sk-u-boot.dtsi new file +21 -0
new file mode 100644
index 0000000000000000000000000000000000000000..d9cf24646916fa23236e47459c375965cff7f354
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Common AM6254atl SK dts file for SPLs
+ * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-am625-sk-u-boot.dtsi"
+
+#ifdef CONFIG_TARGET_AM625_A53_EVM
+
+#define SPL_AM6254ATL_SK_DTB "spl/dts/ti/k3-am6254atl-sk.dtb"
+
+&spl_am625_sk_dtb {
+	filename = SPL_AM6254ATL_SK_DTB;
+};
+
+&spl_am625_sk_dtb_unsigned {
+	filename = SPL_AM6254ATL_SK_DTB;
+};
+
+#endif
Signature · 1 line
2.51.0
#6 lore raw

PATCH v2 6/8 configs: add defconfigs for AM6254atl

In reply to Anshul Dalal

OP-TEE for current K3 devices resides from 0x9e800000 to 0xa0000000 which needs to be moved to 0x80080000 to free up space at end of DDR in systems with 512MiB of memory. This is required to allow U-Boot to relocate to end of DDR before booting to the kernel.

Therefore defconfigs for AM6254atl include the respective existing AM62x configs with updated dt for r5 and modified memory map for a53 SPL to account for the new OP-TEE address.

Also make Bryan Brattlof and Tom Rini the maintainers for AM6254atl SIP.

---
 board/ti/am62x/MAINTAINERS          |  2 ++
 configs/am6254atl_evm_a53_defconfig | 14 ++++++++++++++
 configs/am6254atl_evm_r5_defconfig  |  9 +++++++++
 3 files changed, 25 insertions(+)
board/ti/am62x/MAINTAINERS +2 -0
index d7dfefffe751b5f3a1292ef8cc9e2926f09c77ae..ca269fae880357eb9f62232a3a32bbafa8b3d29d 100644
@@ -10,3 +10,5 @@ F:	configs/am62x_evm_r5_ethboot_defconfig
 F:	configs/am62x_evm_a53_ethboot_defconfig
 F:	configs/am62x_lpsk_r5_defconfig
 F:	configs/am62x_lpsk_a53_defconfig
+F:	configs/am6254atl_evm_r5_defconfig
+F:	configs/am6254atl_evm_a53_defconfig
configs/am6254atl_evm_a53_defconfig new file +14 -0
new file mode 100644
index 0000000000000000000000000000000000000000..e6602af7acf557ba9155fbc4aa83779463c7aabf
@@ -0,0 +1,14 @@
+#include <configs/am62x_evm_a53_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM625=y
+CONFIG_TARGET_AM625_A53_EVM=y
+CONFIG_TEXT_BASE=0x82f80000
+CONFIG_SPL_TEXT_BASE=0x82000000
+CONFIG_SPL_STACK_R_ADDR=0x83f80000
+CONFIG_K3_OPTEE_LOAD_ADDR=0x80080000
+CONFIG_SPL_BSS_START_ADDR=0x82c00000
+CONFIG_SPL_LOAD_FIT_ADDRESS=0x82f80000
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x82b00000
+CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am6254atl-sk"
configs/am6254atl_evm_r5_defconfig new file +9 -0
new file mode 100644
index 0000000000000000000000000000000000000000..852c3cfd144166dd2d4db4098c8e204358ac1536
@@ -0,0 +1,9 @@
+#include <configs/am62x_evm_r5_defconfig>
+
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_SOC_K3_AM625=y
+CONFIG_TARGET_AM625_R5_EVM=y
+CONFIG_K3_OPTEE_LOAD_ADDR=0x80080000
+CONFIG_SPL_LOAD_FIT_ADDRESS=0x82000000
+CONFIG_DEFAULT_DEVICE_TREE="k3-am6254atl-r5-sk"
Signature · 1 line
2.51.0
#7 lore raw

PATCH v2 7/8 board: am62x: add env file for AM6254atl

In reply to Anshul Dalal

Add the env file for AM6254atl with the following changes from am62x.env:

1. splashimage address updated from 0x80200000 to 0x81a00000
2. DFU addresses updated to match updated TEXT_BASE for SPL and U-Boot

---
 board/ti/am62x/am6254atl.env        | 37 +++++++++++++++++++++++++++++++++++++
 configs/am6254atl_evm_a53_defconfig |  1 +
 configs/am6254atl_evm_r5_defconfig  |  1 +
 3 files changed, 39 insertions(+)
board/ti/am62x/am6254atl.env new file +37 -0
new file mode 100644
index 0000000000000000000000000000000000000000..ea5a33d8cc312ca6034062ede4493cfb037469be
@@ -0,0 +1,37 @@
+#include <env/ti/ti_common.env>
+#include <env/ti/mmc.env>
+#include <env/ti/k3_dfu.env>
+
+
+#if CONFIG_CMD_REMOTEPROC
+#include <env/ti/k3_rproc.env>
+#endif
+
+rproc_fw_binaries= 0 /lib/firmware/am62-mcu-m4f0_0-fw
+
+name_kern=Image
+console=ttyS2,115200n8
+args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
+	${mtdparts}
+run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
+
+boot_targets=mmc1 mmc0 usb pxe dhcp
+boot=mmc
+mmcdev=1
+bootpart=1:2
+bootdir=/boot
+rd_spec=-
+
+splashfile=ti_logo_414x97_32bpp.bmp.gz
+splashimage=0x82180000
+splashpos=m,m
+splashsource=sf
+
+dfu_alt_info_ram=
+	tispl.bin ram 0x82000000 0x200000;
+	u-boot.img ram 0x82f80000 0x400000
+
+#if CONFIG_BOOTMETH_ANDROID
+#include <env/ti/android.env>
+adtb_idx=0
+#endif
configs/am6254atl_evm_a53_defconfig +1 -0
index e6602af7acf557ba9155fbc4aa83779463c7aabf..b95158a595f7a0a13946bb8d224769f1ccf1883d 100644
@@ -12,3 +12,4 @@ CONFIG_SPL_BSS_START_ADDR=0x82c00000
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x82f80000
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x82b00000
 CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am6254atl-sk"
+CONFIG_ENV_SOURCE_FILE="am6254atl"
configs/am6254atl_evm_r5_defconfig +1 -0
index 852c3cfd144166dd2d4db4098c8e204358ac1536..5c94666859421231a88b0d4f80e80685ce6c31cf 100644
@@ -4,6 +4,7 @@ CONFIG_ARM=y
 CONFIG_ARCH_K3=y
 CONFIG_SOC_K3_AM625=y
 CONFIG_TARGET_AM625_R5_EVM=y
+CONFIG_ENV_SOURCE_FILE="am6254atl"
 CONFIG_K3_OPTEE_LOAD_ADDR=0x80080000
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x82000000
 CONFIG_DEFAULT_DEVICE_TREE="k3-am6254atl-r5-sk"
Signature · 1 line
2.51.0
#8 lore raw

PATCH v2 8/8 doc: add documentation for AM6254atl SiP

In reply to Anshul Dalal

Adds documentation for the newly added AM6254atl EVM board along with build instructions.

The content is largely similar to instructions for AM62x with updated TFA and OP-TEE build args to account for the changes to A53 and OP-TEE's load address.

---
 doc/board/ti/am6254atl_sk.rst | 308 ++++++++++++++++++++++++++++++++++++++++++
 doc/board/ti/k3.rst           |   1 +
 2 files changed, 309 insertions(+)
doc/board/ti/am6254atl_sk.rst new file +308 -0
new file mode 100644
index 0000000000000000000000000000000000000000..92ad2332f963143bb1f32f65638122bff9c99215
@@ -0,0 +1,308 @@
+.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
+.. sectionauthor:: Anshul Dalal <[email protected]>
+
+AM6254ATL SIP Platforms
+=======================
+
+Introduction:
+-------------
+
+The AM6254atl SIP (System In Package) provides existing :doc:`am62x_sk` with
+512MiB of DDR integrated in a single packages.
+
+More details can be found in the Technical Reference Manual:
+https://www.ti.com/lit/pdf/spruiv7
+
+Platform information:
+
+* https://www.ti.com/tool/SK-AM62-SIP
+
+Boot Flow:
+----------
+Below is the pictorial representation of boot flow:
+
+.. image:: img/boot_diagram_am62.svg
+  :alt: Boot flow diagram
+
+- Here TIFS acts as master and provides all the critical services. R5/A53
+  requests TIFS to get these services done as shown in the above diagram.
+
+Sources:
+--------
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_boot_sources
+    :end-before: .. k3_rst_include_end_boot_sources
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_boot_firmwares
+    :end-before: .. k3_rst_include_end_tifsstub
+
+Build procedure:
+----------------
+0. Setup the environment variables:
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_common_env_vars_desc
+    :end-before: .. k3_rst_include_end_common_env_vars_desc
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_board_env_vars_desc
+    :end-before: .. k3_rst_include_end_board_env_vars_desc
+
+Set the variables corresponding to this platform:
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_common_env_vars_defn
+    :end-before: .. k3_rst_include_end_common_env_vars_defn
+.. prompt:: bash $
+
+  export UBOOT_CFG_CORTEXR=am6254atl_evm_r5_defconfig
+  export UBOOT_CFG_CORTEXA=am6254atl_evm_a53_defconfig
+  export TFA_BOARD=lite
+  export TFA_EXTRA_ARGS="PRELOADED_BL33_BASE=0x81880000 BL32_BASE=0x80080000"
+  export OPTEE_PLATFORM=k3-am62x
+  export OPTEE_EXTRA_ARGS="CFG_TZDRAM_START=0x80080000"
+
+1. Trusted Firmware-A:
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_build_steps_tfa
+    :end-before: .. k3_rst_include_end_build_steps_tfa
+
+
+2. OP-TEE:
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_build_steps_optee
+    :end-before: .. k3_rst_include_end_build_steps_optee
+
+3. U-Boot:
+
+* 3.1 R5:
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_build_steps_spl_r5
+    :end-before: .. k3_rst_include_end_build_steps_spl_r5
+
+* 3.1.1 Alternative build of R5 for DFU boot:
+
+As the SPL size can get too big when building with support for booting both
+from local storage *and* DFU an extra config fragment should be used to enable
+DFU support (and disable storage support)
+
+.. prompt:: bash $
+
+  export UBOOT_CFG_CORTEXR="${UBOOT_CFG_CORTEXR} am62x_r5_usbdfu.config"
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_build_steps_spl_r5
+    :end-before: .. k3_rst_include_end_build_steps_spl_r5
+
+* 3.2 A53:
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_build_steps_uboot
+    :end-before: .. k3_rst_include_end_build_steps_uboot
+
+Target Images
+-------------
+
+In order to boot we need tiboot3.bin, tispl.bin and u-boot.img.  Each SoC
+variant (HS-FS or HS-SE) requires a different source for these files.
+
+ - HS-FS
+
+        * tiboot3-am62x-hs-fs-evm.bin from step 3.1
+        * tispl.bin, u-boot.img from step 3.2
+
+ - HS-SE
+
+        * tiboot3-am62x-hs-evm.bin from step 3.1
+        * tispl.bin, u-boot.img from step 3.2
+
+Image formats:
+--------------
+
+- tiboot3.bin
+
+.. image:: img/multi_cert_tiboot3.bin.svg
+  :alt: tiboot3.bin image format
+
+- tispl.bin
+
+.. image:: img/tifsstub_dm_tispl.bin.svg
+  :alt: tispl.bin image format
+
+OSPI:
+-----
+ROM supports booting from OSPI from offset 0x0.
+
+Flashing images to OSPI:
+
+Below commands can be used to download tiboot3.bin, tispl.bin, and u-boot.img,
+over tftp and then flash those to OSPI at their respective addresses.
+
+.. prompt:: bash =>
+
+  sf probe
+  tftp ${loadaddr} tiboot3.bin
+  sf update $loadaddr 0x0 $filesize
+  tftp ${loadaddr} tispl.bin
+  sf update $loadaddr 0x80000 $filesize
+  tftp ${loadaddr} u-boot.img
+  sf update $loadaddr 0x280000 $filesize
+
+Flash layout for OSPI:
+
+.. image:: img/ospi_sysfw2.svg
+  :alt: OSPI flash partition layout
+
+A53 SPL DDR Memory Layout
+-------------------------
+
+This provides an overview memory usage in A53 SPL stage.
+
+.. list-table::
+   :widths: 16 16 16
+   :header-rows: 1
+
+   * - Region
+     - Start Address
+     - End Address
+
+   * - ATF
+     - 0x80000000
+     - 0x80080000
+
+   * - OPTEE
+     - 0x80080000
+     - 0x81880000
+
+   * - TEXT BASE
+     - 0x81880000
+     - 0x818d8000
+
+   * - EMPTY
+     - 0x818d8000
+     - 0x81a00000
+
+   * - BMP IMAGE
+     - 0x81a00000
+     - 0x82377660
+
+   * - STACK
+     - 0x82377660
+     - 0x82377e60
+
+   * - GD
+     - 0x82377e60
+     - 0x80b78000
+
+   * - MALLOC
+     - 0x82378000
+     - 0x82380000
+
+   * - EMPTY
+     - 0x82380000
+     - 0x82480000
+
+   * - BSS
+     - 0x82480000
+     - 0x82500000
+
+   * - BLOBS
+     - 0x82500000
+     - 0x82500400
+
+   * - EMPTY
+     - 0x82500400
+     - 0x82800000
+
+Switch Setting for Boot Mode
+----------------------------
+
+Boot Mode pins provide means to select the boot mode and options before the
+device is powered up. After every POR, they are the main source to populate
+the Boot Parameter Tables.
+
+The following table shows some common boot modes used on AM62 platform. More
+details can be found in the Technical Reference Manual:
+https://www.ti.com/lit/pdf/spruiv7 under the `Boot Mode Pins` section.
+
+.. list-table:: Boot Modes
+   :widths: 16 16 16
+   :header-rows: 1
+
+   * - Switch Label
+     - SW2: 12345678
+     - SW3: 12345678
+
+   * - SD
+     - 01000000
+     - 11000010
+
+   * - OSPI
+     - 00000000
+     - 11001110
+
+   * - EMMC
+     - 00000000
+     - 11010010
+
+   * - UART
+     - 00000000
+     - 11011100
+
+   * - USB DFU
+     - 00000000
+     - 11001010
+
+   * - Ethernet
+     - 00110000
+     - 11000100
+
+For SW2 and SW1, the switch state in the "ON" position = 1.
+
+DFU based boot
+--------------
+
+To boot the board over DFU, set the switches to DFU mode and connect to the
+USB type C DRD port on the board. After power-on the build artifacts needs to be
+uploaded one by one with a tool like dfu-util.
+
+The initial ROM will have a DFU alt named `bootloader` for the initial R5 spl
+upload. The next stages as exposed by U-Boot have target alts matching the name
+of the artifacts, for these a USB reset has to be done after each upload.
+
+When using dfu-util the following commands can be used to boot to a U-Boot shell:
+
+.. prompt:: bash $
+
+  dfu-util -a bootloader -D tiboot3.bin
+  dfu-util -R -a tispl -D tispl.bin
+  dfu-util -R -a u-boot.img -D u-boot.img
+
+Debugging U-Boot
+----------------
+
+See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
+detailed setup information.
+
+.. warning::
+
+  **OpenOCD support since**: v0.12.0
+
+  If the default package version of OpenOCD in your development
+  environment's distribution needs to be updated, it might be necessary to
+  build OpenOCD from the source.
+
+.. include::  k3.rst
+    :start-after: .. k3_rst_include_start_openocd_connect_XDS110
+    :end-before: .. k3_rst_include_end_openocd_connect_XDS110
+
+To start OpenOCD and connect to the board
+
+.. prompt:: bash $
+
+  openocd -f board/ti_am625evm.cfg
doc/board/ti/k3.rst +1 -0
index 01fb9411688708afc8ad5b74a9cd3ec2e4e998d5..fafef239e0117528e1ff9dad44904abf0dfec8a3 100644
@@ -33,6 +33,7 @@ K3 Based SoCs
    am62ax_sk
    am62x_sk
    am62px_sk
+   am6254atl_sk
    am64x_evm
    am65x_evm
    j7200_evm
Signature · 1 line
2.51.0
#9 lore raw
In reply to Anshul Dalal
Quoted 28 lines · Anshul Dalal

Hi all,

This patch series adds support for AM6254atl SiP (or AM62x SiP for short) to U-Boot.

The OPN (Orderable Part Number) 'AM6254atl' expands as follows[1]:

AM6254atl

     ||||
     |||+-- Feature Lookup (L indicates 512MiB of integrated LPDDR4)
     ||+--- Device Speed Grade (T indicates 1.25GHz on A53 cores)
     |+---- Silicon PG Revision (A indicates SR 1.0)
     +----- Core configuration (4 indicates A53's in Quad core config)

AM62x SiP provides the existing AM62x SoC with 512MiB of DDR integrated in a single packages. The first 4 patches in the series are cherry-picked from the devicetree-rebasing repository at 'v6.18-rc2-dts'.

---
Changes in v2:
- Add a new-line at the end of env file
- Update the dependencies and rebase to master
- Remove bloblist addr from the A53 defconfig
- Link to v1:
https://lore.kernel.org/r/[email protected]

Quoted 5 lines

---
Anshul Dalal (7):
arm64: dts: ti: k3-am62*: remove SoC dtsi from common dtsi
arm64: dts: ti: Introduce base support for AM6254atl SiP
arm64: dts: ti: Add support for AM6254atl SiP SK

These are cherry-picks and should be separate and as-is, good.

Quoted 4 lines

arm: dts: add support for AM6254atl at R5 SPL
configs: add defconfigs for AM6254atl
board: am62x: add env file for AM6254atl
doc: add documentation for AM6254atl SiP

This should just be a commit that adds AM6254atl SiP support, not 4 commits.

Quoted 2 lines

Beleswar Padhi (1):
arm64: dts: ti: k3-am6*-boards: Add label to reserved-memory node

And this being separate makes sense.

Signature · 1 line
Tom