Skip to contentSkip to conversation

arm: mach-k3: introduce basic support for the AM62L

PATCH Superseded Bryan Brattlof via U-Boot 1 participant 20 messages Jul 21

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover arm: mach-k3: introduce basic support for the AM62L

Hello Everyone,

This series adds the initial support TI's AM62L SoC family along with the AM62L-EVM reference board.

The AM62L is a lite, low power and performance optimized family of application processors that are built for Linux application development. AM62L is well suited for a wide range of general-purpose applications with scalable ARM Cortex-A53 core performance and embedded features such
as: Multimedia DSI/DPI support, integrated ADC on chip, advanced lower power management modes, and extensive security options for IP protection with the built-in security features.

Additionally, the AM62Lx devices includes an extensive set of peripherals that make it a well-suited for a broad range of industrial applications while offering intelligent features and optimized power architecture as well. In addition, the extensive set of peripherals included in AM62Lx enables system-level connectivity, such as: USB, MMC/SD, OSPI, CAN-FD and an ADC.

AM62L is a general purpose processor, however some of the applications well suited for it include: Human Machine Interfaces (HMI), Medical patient monitoring , Building automation, Smart secure gateways, Smart Thermostats, EV charging stations, Smart Metering, Solar energy and more.

Some highlights of AM62L SoC are:

- Single to Dual 64-bit Arm® Cortex®-A53 microprocessor subsystem up to 1.25GHz Integrated Giga-bit Ethernet switch supporting up to a total of two external

- 16-bit DDR Subsystem that supports LPDDR4, DDR4 memory types.

- Display support: 1x display support over MIPI DSI (4 lanes DPHY) or DPI (24-bit RGB LVCMOS)

- Multiple low power modes support, ex: Deep sleep and Standby

- Support for secure boot, Trusted Execution Environment (TEE) & Cryptographic Acceleration

For more information check out our Technical Reference Manual (TRM) which is located here:

    https://www.ti.com/lit/ug/sprujb4/sprujb4.pdf

Happy Hacking
~Bryan

---
Changes in v2:
- Coalesced boot parameter table Kconfig address
- Removed signed u-boot fit image to align with older K3 devices
- Removed &smci{} bootph override in the u-boot.dtsi overlay
- Link to v1: https://lore.kernel.org/r/[email protected]

Cc: Peng Fan <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Anshul Dalal <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Alper Nebi Yasak <[email protected]>
Cc: Bryan Brattlof <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Aristo Chen <[email protected]>
Cc: Udit Kumar <[email protected]>
Cc: Daniel Golle <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Vignesh Raghavendra <[email protected]>
Cc: Paresh Bhagat <[email protected]>
Cc: Andrew Davis <[email protected]>
Cc: Swamil Jain <[email protected]>
Cc: Neha Malcom Francis <[email protected]>
Cc: Shiva Tripathi <[email protected]>
Cc: Apurva Nandan <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Hrushikesh Salunke <[email protected]>
To: [email protected]

---
Anshul Dalal (1):
firmware: scmi: switch to dev_ofnode during bind

Bryan Brattlof (9):
tools: binman: extend ti_secure_rom to handle op-tee
soc: add data to identify the am62lx
boot/Kconfig: disable fit post processing for AM62L
arm: mach-k3: Add initial am62lx SoC support
board: ti: am62lx: add initial board files
configs: am62lx_evm: add initial defconfig
doc: ti: k3: fix pygments warning parsing device-tree
doc: board: ti: correct path to tcl scripts
doc: board: ti: am62lx_evm: add initial docs for the AM62L-EVM

Vignesh Raghavendra (1):
arm: dts: k3-am62lx: Add binman support

 arch/arm/dts/k3-am62l3-evm-binman.dtsi          | 218 ++++++++++
 arch/arm/dts/k3-am62l3-evm-u-boot.dtsi          |  12 +
 arch/arm/mach-k3/Kconfig                        |  37 +-
 arch/arm/mach-k3/Makefile                       |   2 +
 arch/arm/mach-k3/am62lx/Kconfig                 |  23 ++
 arch/arm/mach-k3/am62lx/Makefile                |   7 +
 arch/arm/mach-k3/am62lx/am62l3_fdt.c            |  12 +
 arch/arm/mach-k3/am62lx/am62l3_init.c           |  58 +++
 arch/arm/mach-k3/am62lx/boot.c                  |  82 ++++
 arch/arm/mach-k3/am62lx/schema.yaml             | 427 +++++++++++++++++++
 arch/arm/mach-k3/include/mach/am62l_hardware.h  |  48 +++
 arch/arm/mach-k3/include/mach/am62l_spl.h       |  41 ++
 arch/arm/mach-k3/include/mach/hardware.h        |   6 +
 arch/arm/mach-k3/include/mach/spl.h             |   4 +
 board/ti/am62lx/Kconfig                         |  19 +
 board/ti/am62lx/MAINTAINERS                     |   8 +
 board/ti/am62lx/Makefile                        |   7 +
 board/ti/am62lx/am62lx.env                      |   8 +
 board/ti/am62lx/board-cfg.yaml                  |  32 ++
 board/ti/am62lx/evm.c                           |  19 +
 board/ti/am62lx/sec-cfg.yaml                    | 380 +++++++++++++++++
 boot/Kconfig                                    |   2 +-
 configs/am62lx_evm_defconfig                    | 139 +++++++
 doc/board/ti/am6254atl_sk.rst                   |  10 +-
 doc/board/ti/am62ax_sk.rst                      |  10 +-
 doc/board/ti/am62dx_evm.rst                     |  17 +-
 doc/board/ti/am62lx_evm.rst                     | 222 ++++++++++
 doc/board/ti/am62px_sk.rst                      |  12 +-
 doc/board/ti/am62x_sk.rst                       |   9 +-
 doc/board/ti/am64x_evm.rst                      |  17 +
 doc/board/ti/am65x_evm.rst                      |  10 +-
 doc/board/ti/img/am62lx_boot_diagram_phase1.svg | 450 ++++++++++++++++++++
 doc/board/ti/img/am62lx_boot_diagram_phase2.svg | 525 ++++++++++++++++++++++++
 doc/board/ti/img/am62lx_tiboot3.bin.svg         | 170 ++++++++
 doc/board/ti/img/am62lx_tispl.bin.svg           | 222 ++++++++++
 doc/board/ti/img/am62lx_u-boot.img.svg          | 143 +++++++
 doc/board/ti/j7200_evm.rst                      |  10 +-
 doc/board/ti/j721e_evm.rst                      |  10 +-
 doc/board/ti/j722s_evm.rst                      |  12 +-
 doc/board/ti/j784s4_evm.rst                     |  10 +-
 doc/board/ti/k3.rst                             |  39 +-
 drivers/firmware/scmi/scmi_agent-uclass.c       |   2 +-
 drivers/soc/soc_ti_k3.c                         |  11 +
 include/configs/am62l3_evm.h                    |  14 +
 tools/binman/btool/openssl.py                   |  11 +-
 tools/binman/etype/ti_secure_rom.py             |  32 +-
 tools/binman/etype/x509_cert.py                 |   4 +
 47 files changed, 3440 insertions(+), 123 deletions(-)

---
base-commit: 5a83cae32d9a1f29209d4f171a8de18bf82fd630
change-id: 20241025-am62lx-78cce63f43f6

Best regards,

Signature · 1 line
Bryan Brattlof <[email protected]>
#1 lore raw

PATCH v2 1/11 firmware: scmi: switch to dev_ofnode during bind

From: Anshul Dalal <[email protected]>

When using ofnode_null() the node offset passed to the FDT API will be -1 which is invalid and breaks probe. Switch to dev_ofnode()

---
 drivers/firmware/scmi/scmi_agent-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/scmi/scmi_agent-uclass.c +1 -1
index cd458a7f4588..65c1ddad2b57 100644
@@ -437,7 +437,7 @@ static int scmi_bind_protocols(struct udevice *dev)
 	/* initialize the device from device tree */
 	drv = DM_DRIVER_GET(scmi_base_drv);
 	name = "scmi-base.0";
-	ret = device_bind(dev, drv, name, NULL, ofnode_null(), &proto);
+	ret = device_bind(dev, drv, name, NULL, dev_ofnode(dev), &proto);
 	if (ret) {
 		dev_err(dev, "failed to bind base protocol\n");
 		return ret;
Signature · 1 line
2.54.0
author Acked-by Andrew Davis on v2 1/11
#2 lore raw

Re: [PATCH v2 01/11] firmware: scmi: switch to dev_ofnode during bind

Quoted 16 lines · Bryan Brattlof

From: Anshul Dalal <[email protected]>

When using ofnode_null() the node offset passed to the FDT API will be -1 which is invalid and breaks probe. Switch to dev_ofnode()

---
  drivers/firmware/scmi/scmi_agent-uclass.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/scmi/scmi_agent-uclass.c +0 -0
index cd458a7f4588..65c1ddad2b57 100644

drivers/firmware/scmi/scmi_agent-uclass.c static int scmi_bind_protocols(struct udevice *dev) · line 440

Quoted 5 lines
drivers/firmware/scmi/scmi_agent-uclass.c +1 -1
@@ -437,7 +437,7 @@ static int scmi_bind_protocols(struct udevice *dev)
  	/* initialize the device from device tree */
  	drv = DM_DRIVER_GET(scmi_base_drv);
  	name = "scmi-base.0";
-	ret = device_bind(dev, drv, name, NULL, ofnode_null(), &proto);
+	ret = device_bind(dev, drv, name, NULL, dev_ofnode(dev), &proto);

If we always used to pass null here, and that breaks probe as the commit message states, how did this ever work for anyone else?

Looks correct, just something that might be good to add to the commit message if you do a v2

Quoted 4 lines
drivers/firmware/scmi/scmi_agent-uclass.c +0 -0
  	if (ret) {
  		dev_err(dev, "failed to bind base protocol\n");
  		return ret;
#3 lore raw

Re: [PATCH v2 01/11] firmware: scmi: switch to dev_ofnode during bind

On July 21, 2026 thus sayeth Andrew Davis:

Quoted 12 lines · Bryan Brattlof
Quoted 11 lines

From: Anshul Dalal <[email protected]>

When using ofnode_null() the node offset passed to the FDT API will be -1 which is invalid and breaks probe. Switch to dev_ofnode()

---
  drivers/firmware/scmi/scmi_agent-uclass.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

drivers/firmware/scmi/scmi_agent-uclass.c static int scmi_bind_protocols(struct udevice *dev) · line 440

Quoted 10 lines
drivers/firmware/scmi/scmi_agent-uclass.c +1 -1
index cd458a7f4588..65c1ddad2b57 100644
@@ -437,7 +437,7 @@ static int scmi_bind_protocols(struct udevice *dev)
  	/* initialize the device from device tree */
  	drv = DM_DRIVER_GET(scmi_base_drv);
  	name = "scmi-base.0";
-	ret = device_bind(dev, drv, name, NULL, ofnode_null(), &proto);
+	ret = device_bind(dev, drv, name, NULL, dev_ofnode(dev), &proto);

If we always used to pass null here, and that breaks probe as the commit message states, how did this ever work for anyone else?

I though it was odd a well but other platforms don't seem to have any issues right now which made be second guess. But yeah I can update the commit body.

~Bryan

#4 lore raw

PATCH v2 2/11 tools: binman: extend ti_secure_rom to handle op-tee

In reply to Bryan Brattlof via U-Boot

Add an optional 'tee' entry to the x509 certificate template to include optee during the second (tispl) boot phase for the AM62L.

---
 tools/binman/btool/openssl.py       | 11 +++++++----
 tools/binman/etype/ti_secure_rom.py | 32 +++++++++++++++++++++++++++++++-
 tools/binman/etype/x509_cert.py     |  4 ++++
 3 files changed, 42 insertions(+), 5 deletions(-)
tools/binman/btool/openssl.py +7 -4
index b26f087c4470..c4762f6ccee6 100644
@@ -239,10 +239,10 @@ emailAddress           = {req_dist_name_dict['emailAddress']}
     def x509_cert_rom_combined(self, cert_fname, input_fname, key_fname, sw_rev,
                   config_fname, req_dist_name_dict, load_addr, sha, total_size, num_comps,
                   sysfw_inner_cert_ext_boot_sequence_string, dm_data_ext_boot_sequence_string,
-                  imagesize_sbl, hashval_sbl, load_addr_sysfw, imagesize_sysfw,
-                  hashval_sysfw, load_addr_sysfw_data, imagesize_sysfw_data,
-                  hashval_sysfw_data, sysfw_inner_cert_ext_boot_block,
-                  dm_data_ext_boot_block, bootcore_opts, debug):
+                  tee_ext_boot_sequence_string, imagesize_sbl, hashval_sbl, load_addr_sysfw,
+                  imagesize_sysfw, hashval_sysfw, load_addr_sysfw_data, imagesize_sysfw_data,
+                  hashval_sysfw_data, sysfw_inner_cert_ext_boot_block, dm_data_ext_boot_block,
+                  tee_ext_boot_block, bootcore_opts, debug):
         """Create a certificate
 
         Args:
@@ -299,6 +299,7 @@ sbl=SEQUENCE:sbl
 sysfw=SEQUENCE:sysfw
 sysfw_data=SEQUENCE:sysfw_data
 {sysfw_inner_cert_ext_boot_sequence_string}
+{tee_ext_boot_sequence_string}
 {dm_data_ext_boot_sequence_string}
 
 [sbl]
@@ -340,6 +341,8 @@ coreDbgSecEn = INTEGER:0
 
 {sysfw_inner_cert_ext_boot_block}
 
+{tee_ext_boot_block}
+
 {dm_data_ext_boot_block}
         ''', file=outf)
         args = ['req', '-new', '-x509', '-key', key_fname, '-nodes',
tools/binman/etype/ti_secure_rom.py +31 -1
index 7e90c6559409..4e0c9d54bbc4 100644
@@ -80,6 +80,11 @@ class Entry_ti_secure_rom(Entry_x509_cert):
             self.dm_data = fdt_util.GetBool(self._node, 'dm-data', False)
             if self.dm_data:
                 self.load_addr_dm_data = fdt_util.GetInt(self._node, 'load-dm-data', 0x00000000)
+
+        self.tee = fdt_util.GetBool(self._node, 'content-tee', False)
+        if self.tee:
+            self.load_addr_tee = fdt_util.GetInt(self._node, 'load-tee', 0x00000000)
+
         self.req_dist_name = {'C': 'US',
                     'ST': 'TX',
                     'L': 'Dallas',
@@ -219,7 +224,32 @@ compSize = INTEGER:{imagesize_dm_data}
 shaType  = OID:{self.sha_type}
 shaValue = FORMAT:HEX,OCT:{hashval_dm_data}"""
 
-        self.total_size = self.imagesize_sbl +  self.imagesize_sysfw + self.imagesize_sysfw_data + imagesize_sysfw_inner_cert + imagesize_dm_data
+        # tee
+        self.tee_ext_boot_sequence_string = ""
+        self.tee_ext_boot_block = ""
+        imagesize_tee = 0
+        if self.tee:
+            self.content = fdt_util.GetPhandleList(self._node, 'content-tee')
+            input_data_tee = self.GetContents(required)
+
+            input_fname_tee = tools.get_output_filename('input.%s' % uniq)
+            tools.write_file(input_fname_tee, input_data_tee)
+
+            indata_tee = tools.read_file(input_fname_tee)
+            hashval_tee = hashlib.sha512(indata_tee).hexdigest()
+            imagesize_tee = len(indata_tee)
+            self.num_comps += 1
+            self.tee_ext_boot_sequence_string = "tee=SEQUENCE:tee"
+            self.tee_ext_boot_block = f"""[tee]
+compType = INTEGER:17
+bootCore = INTEGER:16
+compOpts = INTEGER:0
+destAddr = FORMAT:HEX,OCT:{self.load_addr_tee:08x}
+compSize = INTEGER:{imagesize_tee}
+shaType  = OID:{self.sha_type}
+shaValue = FORMAT:HEX,OCT:{hashval_tee}"""
+
+        self.total_size = self.imagesize_sbl +  self.imagesize_sysfw + self.imagesize_sysfw_data + imagesize_sysfw_inner_cert + imagesize_dm_data + imagesize_tee
         return super().GetCertificate(required=required, type='rom-combined')
 
     def GetCertificate(self, required):
tools/binman/etype/x509_cert.py +4 -0
index b6e8b0b4fb09..79b7b37baee7 100644
@@ -41,6 +41,7 @@ class Entry_x509_cert(Entry_collection):
         self.num_comps = None
         self.sysfw_inner_cert_ext_boot_sequence_string = None
         self.dm_data_ext_boot_sequence_string = None
+        self.tee_ext_boot_sequence_string = None
         self.imagesize_sbl = None
         self.hashval_sbl = None
         self.load_addr_sysfw = None
@@ -51,6 +52,7 @@ class Entry_x509_cert(Entry_collection):
         self.hashval_sysfw_data = None
         self.sysfw_inner_cert_ext_boot_block = None
         self.dm_data_ext_boot_block = None
+        self.tee_ext_boot_block = None
         self.firewall_cert_data = None
         self.debug = False
 
@@ -132,6 +134,7 @@ class Entry_x509_cert(Entry_collection):
                 num_comps=self.num_comps,
                 sysfw_inner_cert_ext_boot_sequence_string=self.sysfw_inner_cert_ext_boot_sequence_string,
                 dm_data_ext_boot_sequence_string=self.dm_data_ext_boot_sequence_string,
+                tee_ext_boot_sequence_string=self.tee_ext_boot_sequence_string,
                 imagesize_sbl=self.imagesize_sbl,
                 hashval_sbl=self.hashval_sbl,
                 load_addr_sysfw=self.load_addr_sysfw,
@@ -142,6 +145,7 @@ class Entry_x509_cert(Entry_collection):
                 hashval_sysfw_data=self.hashval_sysfw_data,
                 sysfw_inner_cert_ext_boot_block=self.sysfw_inner_cert_ext_boot_block,
                 dm_data_ext_boot_block=self.dm_data_ext_boot_block,
+                tee_ext_boot_block=self.tee_ext_boot_block,
                 bootcore_opts=self.bootcore_opts,
                 debug=self.debug
             )
Signature · 1 line
2.54.0
#5 lore raw

PATCH v2 3/11 soc: add data to identify the am62lx

In reply to Bryan Brattlof via U-Boot

include the part number for TI's am62lx family of SoCs so we can properly identify it during boot

---
 arch/arm/mach-k3/include/mach/hardware.h |  2 ++
 drivers/soc/soc_ti_k3.c                  | 11 +++++++++++
 2 files changed, 13 insertions(+)
arch/arm/mach-k3/include/mach/hardware.h +2 -0
index 2c771a1195f5..6b86f6ed12e6 100644
@@ -56,6 +56,7 @@
 #define JTAG_ID_PARTNO_SHIFT	12
 #define JTAG_ID_PARTNO_MASK	(0xffff << 12)
 #define JTAG_ID_PARTNO_AM62AX   0xbb8d
+#define JTAG_ID_PARTNO_AM62LX	0xbba7
 #define JTAG_ID_PARTNO_AM62PX	0xbb9d
 #define JTAG_ID_PARTNO_AM62X	0xbb7e
 #define JTAG_ID_PARTNO_AM64X	0xbb38
@@ -81,6 +82,7 @@ static inline bool soc_is_##id(void) \
 }
 K3_SOC_ID(am62x, AM62X)
 K3_SOC_ID(am62ax, AM62AX)
+K3_SOC_ID(am62lx, AM62LX)
 K3_SOC_ID(am62px, AM62PX)
 K3_SOC_ID(am64x, AM64X)
 K3_SOC_ID(am65x, AM65X)
drivers/soc/soc_ti_k3.c +11 -0
index b34cbd08e073..6ffd88f22c09 100644
@@ -36,6 +36,9 @@ static const char *get_family_string(u32 idreg)
 	case JTAG_ID_PARTNO_AM62PX:
 		family = "AM62PX";
 		break;
+	case JTAG_ID_PARTNO_AM62LX:
+		family = "AM62LX";
+		break;
 	case JTAG_ID_PARTNO_AM64X:
 		family = "AM64X";
 		break;
@@ -72,6 +75,10 @@ static const char *get_family_string(u32 idreg)
 	return family;
 }
 
+static char *am62lx_rev_string_map[] = {
+	"1.0", "1.1",
+};
+
 static char *j721e_rev_string_map[] = {
 	"1.0", "1.1", "2.0",
 };
@@ -89,6 +96,10 @@ static const char *get_rev_string(u32 idreg)
 	soc = (idreg & JTAG_ID_PARTNO_MASK) >> JTAG_ID_PARTNO_SHIFT;
 
 	switch (soc) {
+	case JTAG_ID_PARTNO_AM62LX:
+		if (rev >= ARRAY_SIZE(am62lx_rev_string_map))
+			goto bail;
+		return am62lx_rev_string_map[rev];
 	case JTAG_ID_PARTNO_J721E:
 		if (rev >= ARRAY_SIZE(j721e_rev_string_map))
 			goto bail;
Signature · 1 line
2.54.0
author Acked-by Andrew Davis on v2 3/11
#6 lore raw

Re: [PATCH v2 03/11] soc: add data to identify the am62lx

Quoted 1 line · Bryan Brattlof

include the part number for TI's am62lx family of SoCs so we can

Commit messages are normal sentences, capitalize first letter, "." at end.

Otherwise, patch itself looks simple enough,

Quoted 65 lines

properly identify it during boot

---
  arch/arm/mach-k3/include/mach/hardware.h |  2 ++
  drivers/soc/soc_ti_k3.c                  | 11 +++++++++++
  2 files changed, 13 insertions(+)
arch/arm/mach-k3/include/mach/hardware.h +2 -0
index 2c771a1195f5..6b86f6ed12e6 100644
@@ -56,6 +56,7 @@
  #define JTAG_ID_PARTNO_SHIFT	12
  #define JTAG_ID_PARTNO_MASK	(0xffff << 12)
  #define JTAG_ID_PARTNO_AM62AX   0xbb8d
+#define JTAG_ID_PARTNO_AM62LX	0xbba7
  #define JTAG_ID_PARTNO_AM62PX	0xbb9d
  #define JTAG_ID_PARTNO_AM62X	0xbb7e
  #define JTAG_ID_PARTNO_AM64X	0xbb38
@@ -81,6 +82,7 @@ static inline bool soc_is_##id(void) \
  }
  K3_SOC_ID(am62x, AM62X)
  K3_SOC_ID(am62ax, AM62AX)
+K3_SOC_ID(am62lx, AM62LX)
  K3_SOC_ID(am62px, AM62PX)
  K3_SOC_ID(am64x, AM64X)
  K3_SOC_ID(am65x, AM65X)
drivers/soc/soc_ti_k3.c +11 -0
index b34cbd08e073..6ffd88f22c09 100644
@@ -36,6 +36,9 @@ static const char *get_family_string(u32 idreg)
  	case JTAG_ID_PARTNO_AM62PX:
  		family = "AM62PX";
  		break;
+	case JTAG_ID_PARTNO_AM62LX:
+		family = "AM62LX";
+		break;
  	case JTAG_ID_PARTNO_AM64X:
  		family = "AM64X";
  		break;
@@ -72,6 +75,10 @@ static const char *get_family_string(u32 idreg)
  	return family;
  }
 
+static char *am62lx_rev_string_map[] = {
+	"1.0", "1.1",
+};
+
  static char *j721e_rev_string_map[] = {
  	"1.0", "1.1", "2.0",
  };
@@ -89,6 +96,10 @@ static const char *get_rev_string(u32 idreg)
  	soc = (idreg & JTAG_ID_PARTNO_MASK) >> JTAG_ID_PARTNO_SHIFT;
 
  	switch (soc) {
+	case JTAG_ID_PARTNO_AM62LX:
+		if (rev >= ARRAY_SIZE(am62lx_rev_string_map))
+			goto bail;
+		return am62lx_rev_string_map[rev];
  	case JTAG_ID_PARTNO_J721E:
  		if (rev >= ARRAY_SIZE(j721e_rev_string_map))
  			goto bail;
#7 lore raw

Re: [PATCH v2 03/11] soc: add data to identify the am62lx

On July 21, 2026 thus sayeth Andrew Davis:

Quoted 4 lines · Bryan Brattlof
Quoted 1 line

include the part number for TI's am62lx family of SoCs so we can

Commit messages are normal sentences, capitalize first letter, "." at end.

Yeah I can fix that

~Bryan

#8 lore raw

PATCH v2 4/11 boot/Kconfig: disable fit post processing for AM62L

In reply to Bryan Brattlof via U-Boot

The AM62L family of SoCs utilize a 2 stage ROM boot which uses x509 certificates for booting securely. There is no need for processing of a fitImage. Disable it for the AM62L SoC family.

---
 boot/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
boot/Kconfig +1 -1
index 8e468c561765..585718aeeb84 100644
@@ -333,7 +333,7 @@ config SPL_LOAD_FIT_FULL
 config SPL_FIT_IMAGE_POST_PROCESS
 	bool "Enable post-processing of FIT artifacts after loading by the SPL"
 	depends on SPL_LOAD_FIT
-	default y if TI_SECURE_DEVICE
+	default y if (TI_SECURE_DEVICE && !SOC_K3_AM62L3)
 	help
 	  Allows doing any sort of manipulation to blobs after they got extracted
 	  from the U-Boot FIT image like stripping off headers or modifying the
Signature · 1 line
2.54.0
#9 lore raw

PATCH v2 5/11 arm: mach-k3: Add initial am62lx SoC support

In reply to Bryan Brattlof via U-Boot

Add initial mach-k3 files needed to support boards based on the AM62L family of SoCs

---
Changes in v2:
Coalesced boot parameter table Kconfig address
Link to v1: https://lore.kernel.org/r/[email protected]

---
 arch/arm/mach-k3/Kconfig                       |  16 +-
 arch/arm/mach-k3/Makefile                      |   2 +
 arch/arm/mach-k3/am62lx/Kconfig                |  23 ++
 arch/arm/mach-k3/am62lx/Makefile               |   7 +
 arch/arm/mach-k3/am62lx/am62l3_fdt.c           |  12 +
 arch/arm/mach-k3/am62lx/am62l3_init.c          |  58 ++++
 arch/arm/mach-k3/am62lx/boot.c                 |  82 +++++
 arch/arm/mach-k3/am62lx/schema.yaml            | 427 +++++++++++++++++++++++++
 arch/arm/mach-k3/include/mach/am62l_hardware.h |  48 +++
 arch/arm/mach-k3/include/mach/am62l_spl.h      |  41 +++
 arch/arm/mach-k3/include/mach/hardware.h       |   4 +
 arch/arm/mach-k3/include/mach/spl.h            |   4 +
 include/configs/am62l3_evm.h                   |  14 +
 13 files changed, 734 insertions(+), 4 deletions(-)
arch/arm/mach-k3/Kconfig +12 -4
index a32ed3a9683f..351ff3c19f1c 100644
@@ -10,6 +10,15 @@ config SOC_K3_AM625
 config SOC_K3_AM62A7
 	bool "TI's K3 based AM62A7 SoC Family Support"
 
+config SOC_K3_AM62L3
+	bool "TI's K3 based AM62L3 SoC Family Support"
+	select CLK_SCMI
+	select SPL_CLK_SCMI
+	select SCMI_FIRMWARE
+	select SCMI_POWER_DOMAIN
+	select SPL_SCMI_POWER_DOMAIN
+	select SYSRESET_PSCI
+
 config SOC_K3_AM62P5
 	bool "TI's K3 based AM62P5 SoC Family Support"
 
@@ -81,11 +90,9 @@ config SYS_K3_BOOT_PARAM_TABLE_INDEX
 	default 0x41cffbfc if SOC_K3_J721E || SOC_K3_J7200
 	default 0x41cfdbfc if SOC_K3_J721S2 || SOC_K3_J784S4
 	default 0x701bebfc if SOC_K3_AM642
-	default 0x43c3f290 if SOC_K3_AM625
+	default 0x43c3f290 if SOC_K3_AM625 || SOC_K3_AM62L3 || SOC_K3_AM62P5 || SOC_K3_J722S
 	default 0x43c3f290 if SOC_K3_AM62A7 && CPU_V7R
 	default 0x7000f290 if SOC_K3_AM62A7 && ARM64
-	default 0x43c4f290 if SOC_K3_AM62P5
-	default 0x43c7f290 if SOC_K3_J722S
 	help
 	  Address at which ROM stores the value which determines if SPL
 	  is booted up by primary boot media or secondary boot media.
@@ -124,7 +131,7 @@ config K3_EARLY_CONS_IDX
 
 config K3_ATF_LOAD_ADDR
 	hex "Load address of ATF image"
-	default 0x80000000 if (SOC_K3_AM625 || SOC_K3_AM62A7 || SOC_K3_AM62P5 || SOC_K3_J722S)
+	default 0x80000000 if (SOC_K3_AM625 || SOC_K3_AM62A7 || SOC_K3_AM62P5 || SOC_K3_J722S || SOC_K3_AM62L3)
 	default 0x70000000
 	help
 	  The load address for the ATF image. This value is used to build the
@@ -206,6 +213,7 @@ source "arch/arm/mach-k3/am65x/Kconfig"
 source "arch/arm/mach-k3/am64x/Kconfig"
 source "arch/arm/mach-k3/am62x/Kconfig"
 source "arch/arm/mach-k3/am62ax/Kconfig"
+source "arch/arm/mach-k3/am62lx/Kconfig"
 source "arch/arm/mach-k3/am62px/Kconfig"
 source "arch/arm/mach-k3/j721e/Kconfig"
 source "arch/arm/mach-k3/j7200/Kconfig"
arch/arm/mach-k3/Makefile +2 -0
index b2fd5810b67c..66ae20143b6f 100644
@@ -6,9 +6,11 @@
 obj-$(CONFIG_ARM64) += arm64/
 obj-$(CONFIG_CPU_V7R) += r5/
 obj-$(CONFIG_OF_LIBFDT) += common_fdt.o
+
 obj-y += common.o security.o k3-ddr.o
 obj-$(CONFIG_SOC_K3_AM62A7) += am62ax/
 obj-$(CONFIG_SOC_K3_AM62P5) += am62px/
+obj-$(CONFIG_SOC_K3_AM62L3) += am62lx/
 obj-$(CONFIG_SOC_K3_AM625) += am62x/
 obj-$(CONFIG_SOC_K3_AM642) += am64x/
 obj-$(CONFIG_SOC_K3_AM654) += am65x/
arch/arm/mach-k3/am62lx/Kconfig new file +23 -0
new file mode 100644
index 000000000000..d9609a91993a
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+
+if SOC_K3_AM62L3
+
+choice
+	prompt "TI K3 AM62Lx based boards"
+	optional
+
+config TARGET_AM62L3_EVM
+	bool "TI K3 based AM62L5 EVM"
+	select ARM64
+	select BINMAN
+	select OF_UPSTREAM
+	select OF_SYSTEM_SETUP
+
+endchoice
+
+source "board/ti/am62lx/Kconfig"
+
+endif
arch/arm/mach-k3/am62lx/Makefile new file +7 -0
new file mode 100644
index 000000000000..c97ffe27492f
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+obj-$(CONFIG_OF_SYSTEM_SETUP) += am62l3_fdt.o
+obj-$(CONFIG_SPL_BUILD) += am62l3_init.o
+obj-y += boot.o
arch/arm/mach-k3/am62lx/am62l3_fdt.c new file +12 -0
new file mode 100644
index 000000000000..da8c2d18ba86
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include <asm/arch/k3-common-fdt.h>
+#include <fdt_support.h>
+
+int ft_system_setup(void *blob, struct bd_info *bd)
+{
+	return fdt_fixup_reserved(blob);
+}
arch/arm/mach-k3/am62lx/am62l3_init.c new file +58 -0

58 lines not on this page · raw message

arch/arm/mach-k3/am62lx/boot.c new file +82 -0

82 lines not on this page · raw message

arch/arm/mach-k3/am62lx/schema.yaml new file +427 -0

427 lines not on this page · raw message

arch/arm/mach-k3/include/mach/am62l_hardware.h new file +48 -0

48 lines not on this page · raw message

arch/arm/mach-k3/include/mach/am62l_spl.h new file +41 -0

41 lines not on this page · raw message

arch/arm/mach-k3/include/mach/hardware.h +4 -0
index 6b86f6ed12e6..cbf43deaa3fc 100644
@@ -16,6 +16,10 @@
 #include "am62a_hardware.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_AM62L3
+#include "am62l_hardware.h"
+#endif
+
 #ifdef CONFIG_SOC_K3_AM62P5
 #include "am62p_hardware.h"
 #endif
arch/arm/mach-k3/include/mach/spl.h +4 -0
index a47441ae6a59..ff0b5d41b9f1 100644
@@ -46,4 +46,8 @@
 #include "j722s_spl.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_AM62L3
+#include "am62l_spl.h"
+#endif
+
 #endif /* _ASM_ARCH_SPL_H_ */
include/configs/am62l3_evm.h new file +14 -0
new file mode 100644
index 000000000000..181d450daf10
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Configuration header file for K3 AM62L SoC family
+ *
+ * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ */
+
+#ifndef __CONFIG_AM62L3_EVM_H
+#define __CONFIG_AM62L3_EVM_H
+
+#include <configs/ti_armv7_common.h>
+
+#endif /* __CONFIG_AM62L3_EVM_H */
Signature · 1 line
2.54.0
#10 lore raw

PATCH v2 6/11 board: ti: am62lx: add initial board files

In reply to Bryan Brattlof via U-Boot

Add the initial board files to support the AM62L3-SK reference boards for basic boot via SD and MMC

---
 board/ti/am62lx/Kconfig        |  19 +++
 board/ti/am62lx/MAINTAINERS    |   8 +
 board/ti/am62lx/Makefile       |   7 +
 board/ti/am62lx/am62lx.env     |   8 +
 board/ti/am62lx/board-cfg.yaml |  32 ++++
 board/ti/am62lx/evm.c          |  19 +++
 board/ti/am62lx/sec-cfg.yaml   | 380 +++++++++++++++++++++++++++++++++++++++++
 7 files changed, 473 insertions(+)
board/ti/am62lx/Kconfig new file +19 -0
new file mode 100644
index 000000000000..2ee6d0221178
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+
+if TARGET_AM62L3_EVM
+
+config SYS_BOARD
+	default "am62lx"
+
+config SYS_VENDOR
+	default "ti"
+
+config SYS_CONFIG_NAME
+	default "am62l3_evm"
+
+source "board/ti/common/Kconfig"
+
+endif
board/ti/am62lx/MAINTAINERS new file +8 -0
new file mode 100644
index 000000000000..e945689a7f17
@@ -0,0 +1,8 @@
+AM62Lx BOARD
+M:	Vignesh Raghavendra <[email protected]>
+M:	Bryan Brattlof <[email protected]>
+M:	Tom Rini <[email protected]>
+S:	Maintained
+F:	board/ti/am62lx/
+F:	include/configs/am62l3_evm.h
+F:	configs/am62lx_evm_defconfig
board/ti/am62lx/Makefile new file +7 -0
new file mode 100644
index 000000000000..ac5f5e7e807a
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= evm.o
board/ti/am62lx/am62lx.env new file +8 -0
new file mode 100644
index 000000000000..0dd86db400ee
@@ -0,0 +1,8 @@
+kernel_addr_r=0x82000000
+fdt_addr_r=0x88000000
+fdtoverlay_addr_r=0x89000000
+ramdisk_addr_r=0x88080000
+pxefile_addr_r=0x80100000
+
+dfu_alt_info_ram=
+	u-boot.img ram 0x83000000 0x400000
board/ti/am62lx/board-cfg.yaml new file +32 -0
new file mode 100644
index 000000000000..ae4b0e503bd1
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+# Board configuration for the emulated AM62Lx
+#
+---
+board-cfg:
+  rev:
+    boardcfg_abi_maj: 0x0
+    boardcfg_abi_min: 0x1
+
+  control:
+    subhdr:
+      magic: 0xC1D3
+      size: 7
+    main_isolation_enable: 0x5A
+    main_isolation_hostid: 0x2
+
+  bm_writer_cfg:
+    subhdr:
+      magic: 0x7D8A
+      size: 5
+    allowed_host: 10
+
+  reserved: [0, 0, 0, 0, 0, 0, 0]
+
+  debug_cfg:
+    subhdr:
+      magic: 0x020C
+      size: 8
+    trace_dst_enables: 0x00
+    trace_src_enables: 0x00
board/ti/am62lx/evm.c new file +19 -0
new file mode 100644
index 000000000000..cafafb8ede87
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Board specific initialization for AM62Lx platforms
+ *
+ * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ */
+
+#include <asm/arch/hardware.h>
+#include <asm/io.h>
+#include <dm/uclass.h>
+#include <env.h>
+#include <fdt_support.h>
+#include <spl.h>
+
+int board_init(void)
+{
+	return 0;
+}
board/ti/am62lx/sec-cfg.yaml new file +380 -0

380 lines not on this page · raw message

Signature · 1 line
2.54.0
#11 lore raw

Re: [PATCH v2 06/11] board: ti: am62lx: add initial board files

Quoted 86 lines · Bryan Brattlof

Add the initial board files to support the AM62L3-SK reference boards for basic boot via SD and MMC

---
  board/ti/am62lx/Kconfig        |  19 +++
  board/ti/am62lx/MAINTAINERS    |   8 +
  board/ti/am62lx/Makefile       |   7 +
  board/ti/am62lx/am62lx.env     |   8 +
  board/ti/am62lx/board-cfg.yaml |  32 ++++
  board/ti/am62lx/evm.c          |  19 +++
  board/ti/am62lx/sec-cfg.yaml   | 380 +++++++++++++++++++++++++++++++++++++++++
  7 files changed, 473 insertions(+)
board/ti/am62lx/Kconfig new file +19 -0
new file mode 100644
index 000000000000..2ee6d0221178
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+
+if TARGET_AM62L3_EVM
+
+config SYS_BOARD
+	default "am62lx"
+
+config SYS_VENDOR
+	default "ti"
+
+config SYS_CONFIG_NAME
+	default "am62l3_evm"
+
+source "board/ti/common/Kconfig"
+
+endif
board/ti/am62lx/MAINTAINERS new file +8 -0
new file mode 100644
index 000000000000..e945689a7f17
@@ -0,0 +1,8 @@
+AM62Lx BOARD
+M:	Vignesh Raghavendra <[email protected]>
+M:	Bryan Brattlof <[email protected]>
+M:	Tom Rini <[email protected]>
+S:	Maintained
+F:	board/ti/am62lx/
+F:	include/configs/am62l3_evm.h
+F:	configs/am62lx_evm_defconfig
board/ti/am62lx/Makefile new file +7 -0
new file mode 100644
index 000000000000..ac5f5e7e807a
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= evm.o
board/ti/am62lx/am62lx.env new file +8 -0
new file mode 100644
index 000000000000..0dd86db400ee
@@ -0,0 +1,8 @@
+kernel_addr_r=0x82000000
+fdt_addr_r=0x88000000
+fdtoverlay_addr_r=0x89000000
+ramdisk_addr_r=0x88080000
+pxefile_addr_r=0x80100000
+
+dfu_alt_info_ram=
+	u-boot.img ram 0x83000000 0x400000
board/ti/am62lx/board-cfg.yaml new file +0 -0
new file mode 100644
index 000000000000..ae4b0e503bd1

board/ti/am62lx/board-cfg.yaml line 4

Quoted 4 lines
board/ti/am62lx/board-cfg.yaml new file +4 -0
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+# Board configuration for the emulated AM62Lx

Emulated? I think we are past the pre-sil stage here :)

Andrew

Quoted 440 lines
board/ti/am62lx/board-cfg.yaml new file +28 -0
+#
+---
+board-cfg:
+  rev:
+    boardcfg_abi_maj: 0x0
+    boardcfg_abi_min: 0x1
+
+  control:
+    subhdr:
+      magic: 0xC1D3
+      size: 7
+    main_isolation_enable: 0x5A
+    main_isolation_hostid: 0x2
+
+  bm_writer_cfg:
+    subhdr:
+      magic: 0x7D8A
+      size: 5
+    allowed_host: 10
+
+  reserved: [0, 0, 0, 0, 0, 0, 0]
+
+  debug_cfg:
+    subhdr:
+      magic: 0x020C
+      size: 8
+    trace_dst_enables: 0x00
+    trace_src_enables: 0x00
board/ti/am62lx/evm.c new file +19 -0
new file mode 100644
index 000000000000..cafafb8ede87
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Board specific initialization for AM62Lx platforms
+ *
+ * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ */
+
+#include <asm/arch/hardware.h>
+#include <asm/io.h>
+#include <dm/uclass.h>
+#include <env.h>
+#include <fdt_support.h>
+#include <spl.h>
+
+int board_init(void)
+{
+	return 0;
+}
board/ti/am62lx/sec-cfg.yaml new file +380 -0
new file mode 100644
index 000000000000..044e8cb09dd7
@@ -0,0 +1,380 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+# Security management configuration for AM62Lx
+#
+---
+
+sec-cfg:
+    rev:
+        boardcfg_abi_maj: 0x0
+        boardcfg_abi_min: 0x1
+
+    processor_acl_list:
+        subhdr:
+            magic: 0xF1EA
+            size: 164
+
+        proc_acl_entries:
+            -  # 1
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 2
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 3
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 4
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 5
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 6
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 7
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 8
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 9
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 10
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 11
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 12
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 13
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 14
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 15
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 16
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 17
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 18
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 19
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 20
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 21
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 22
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 23
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 24
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 25
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 26
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 27
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 28
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 29
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 30
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 31
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+            -  # 32
+                processor_id: 0
+                proc_access_master: 0
+                proc_access_secondary: [0, 0, 0]
+    host_hierarchy:
+        subhdr:
+            magic: 0x8D27
+            size: 68
+        host_hierarchy_entries:
+            -  # 1
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 2
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 3
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 4
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 5
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 6
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 7
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 8
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 9
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 10
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 11
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 12
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 13
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 14
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 15
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 16
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 17
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 18
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 19
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 20
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 21
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 22
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 23
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 24
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 25
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 26
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 27
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 28
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 29
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 30
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 31
+                host_id: 0
+                supervisor_host_id: 0
+            -  # 32
+                host_id: 0
+                supervisor_host_id: 0
+    otp_config:
+        subhdr:
+            magic: 0x4081
+            size: 69
+        otp_entry:
+            -  # 1
+                host_id: 10
+                host_perms: 2
+            -  # 2
+                host_id: 10
+                host_perms: 2
+            -  # 3
+                host_id: 10
+                host_perms: 2
+            -  # 4
+                host_id: 10
+                host_perms: 2
+            -  # 5
+                host_id: 10
+                host_perms: 2
+            -  # 6
+                host_id: 10
+                host_perms: 2
+            -  # 7
+                host_id: 10
+                host_perms: 2
+            -  # 8
+                host_id: 10
+                host_perms: 2
+            -  # 9
+                host_id: 10
+                host_perms: 2
+            -  # 10
+                host_id: 10
+                host_perms: 2
+            -  # 11
+                host_id: 10
+                host_perms: 2
+            -  # 12
+                host_id: 10
+                host_perms: 2
+            -  # 13
+                host_id: 10
+                host_perms: 2
+            -  # 14
+                host_id: 10
+                host_perms: 2
+            -  # 15
+                host_id: 10
+                host_perms: 2
+            -  # 16
+                host_id: 10
+                host_perms: 2
+            -  # 17
+                host_id: 10
+                host_perms: 2
+            -  # 18
+                host_id: 10
+                host_perms: 2
+            -  # 19
+                host_id: 10
+                host_perms: 2
+            -  # 20
+                host_id: 10
+                host_perms: 2
+            -  # 21
+                host_id: 10
+                host_perms: 2
+            -  # 22
+                host_id: 10
+                host_perms: 2
+            -  # 23
+                host_id: 10
+                host_perms: 2
+            -  # 24
+                host_id: 10
+                host_perms: 2
+            -  # 25
+                host_id: 10
+                host_perms: 2
+            -  # 26
+                host_id: 10
+                host_perms: 2
+            -  # 27
+                host_id: 10
+                host_perms: 2
+            -  # 28
+                host_id: 10
+                host_perms: 2
+            -  # 29
+                host_id: 10
+                host_perms: 2
+            -  # 30
+                host_id: 10
+                host_perms: 2
+            -  # 31
+                host_id: 10
+                host_perms: 2
+            -  # 32
+                host_id: 10
+                host_perms: 2
+        write_host_id: 10
+    dkek_config:
+        subhdr:
+            magic: 0x5170
+            size: 12
+        allowed_hosts: [128, 0, 0, 0]
+        allow_dkek_export_tisci: 0x5A
+        rsvd: [0, 0, 0]
+    sa2ul_cfg:
+        subhdr:
+            magic: 0x0
+            size: 0
+        auth_resource_owner: 0
+        enable_saul_psil_global_config_writes: 0x0
+        rsvd: [0, 0]
+    sec_dbg_config:
+        subhdr:
+            magic: 0x42AF
+            size: 16
+        allow_jtag_unlock: 0x5A
+        allow_wildcard_unlock: 0x5A
+        allowed_debug_level_rsvd: 0
+        rsvd: 0
+        min_cert_rev: 0x0
+        jtag_unlock_hosts: [0, 0, 0, 0]
+    sec_handover_cfg:
+        subhdr:
+            magic: 0x0
+            size: 10
+        handover_msg_sender: 0
+        handover_to_host_id: 0
+        rsvd: [0, 0, 0, 0]
#12 lore raw

Re: [PATCH v2 06/11] board: ti: am62lx: add initial board files

On July 21, 2026 thus sayeth Andrew Davis:

Quoted 85 lines · Bryan Brattlof
Quoted 84 lines

Add the initial board files to support the AM62L3-SK reference boards for basic boot via SD and MMC

---
  board/ti/am62lx/Kconfig        |  19 +++
  board/ti/am62lx/MAINTAINERS    |   8 +
  board/ti/am62lx/Makefile       |   7 +
  board/ti/am62lx/am62lx.env     |   8 +
  board/ti/am62lx/board-cfg.yaml |  32 ++++
  board/ti/am62lx/evm.c          |  19 +++
  board/ti/am62lx/sec-cfg.yaml   | 380 +++++++++++++++++++++++++++++++++++++++++
  7 files changed, 473 insertions(+)
board/ti/am62lx/Kconfig new file +19 -0
new file mode 100644
index 000000000000..2ee6d0221178
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+
+if TARGET_AM62L3_EVM
+
+config SYS_BOARD
+	default "am62lx"
+
+config SYS_VENDOR
+	default "ti"
+
+config SYS_CONFIG_NAME
+	default "am62l3_evm"
+
+source "board/ti/common/Kconfig"
+
+endif
board/ti/am62lx/MAINTAINERS new file +8 -0
new file mode 100644
index 000000000000..e945689a7f17
@@ -0,0 +1,8 @@
+AM62Lx BOARD
+M:	Vignesh Raghavendra <[email protected]>
+M:	Bryan Brattlof <[email protected]>
+M:	Tom Rini <[email protected]>
+S:	Maintained
+F:	board/ti/am62lx/
+F:	include/configs/am62l3_evm.h
+F:	configs/am62lx_evm_defconfig
board/ti/am62lx/Makefile new file +7 -0
new file mode 100644
index 000000000000..ac5f5e7e807a
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= evm.o
board/ti/am62lx/am62lx.env new file +8 -0
new file mode 100644
index 000000000000..0dd86db400ee
@@ -0,0 +1,8 @@
+kernel_addr_r=0x82000000
+fdt_addr_r=0x88000000
+fdtoverlay_addr_r=0x89000000
+ramdisk_addr_r=0x88080000
+pxefile_addr_r=0x80100000
+
+dfu_alt_info_ram=
+	u-boot.img ram 0x83000000 0x400000
board/ti/am62lx/board-cfg.yaml new file +0 -1
new file mode 100644
index 000000000000..ae4b0e503bd1
--- /dev/null
Quoted 9 lines

board/ti/am62lx/board-cfg.yaml line 4

Quoted 6 lines

+++ b/board/ti/am62lx/board-cfg.yaml

board/ti/am62lx/board-cfg.yaml new file +4 -0
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+#
+# Board configuration for the emulated AM62Lx

Emulated? I think we are past the pre-sil stage here :)

Haha nice. Yeah I'll fix that up.

~Bryan

#13 lore raw

PATCH v2 7/11 arm: dts: k3-am62lx: Add binman support

In reply to Bryan Brattlof via U-Boot

From: Vignesh Raghavendra <[email protected]>

Add the initial configuration to build the boot binaries for the AM62L family of devices

---
Changes in v2:
- Removed bootph from scmi{} node
- Removed signatures from u-boot fit image
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 arch/arm/dts/k3-am62l3-evm-binman.dtsi | 218 +++++++++++++++++++++++++++++++++
 arch/arm/dts/k3-am62l3-evm-u-boot.dtsi |  12 ++
 arch/arm/mach-k3/Kconfig               |  21 ++++
 3 files changed, 251 insertions(+)
arch/arm/dts/k3-am62l3-evm-binman.dtsi new file +218 -0
new file mode 100644
index 000000000000..3f7e2097e521
@@ -0,0 +1,218 @@
+// SPDX-License-Identifier: GPL-2.0-only or MIT
+/*
+ * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+/ {
+	binman: binman {
+		multiple-images;
+	};
+};
+
+&binman {
+	custMpk {
+		filename = "custMpk.pem";
+
+		custmpk_pem: blob-ext {
+			filename = "arch/arm/mach-k3/keys/custMpk.pem";
+		};
+	};
+
+	custMpk-crt {
+		filename = "custMpk.crt";
+
+		custmpk_crt: blob-ext {
+			filename = "arch/arm/mach-k3/keys/custMpk.crt";
+		};
+	};
+
+	custMpk-key {
+		filename = "custMpk.key";
+
+		custmpk_key: blob-ext {
+			filename = "arch/arm/mach-k3/keys/custMpk.key";
+		};
+	};
+
+	board-cfg {
+		filename = "board-cfg.bin";
+
+		bcfg_yaml: ti-board-config {
+			config = "board-cfg.yaml";
+			schema = "arch/arm/mach-k3/am62lx/schema.yaml";
+		};
+	};
+
+	sec-cfg {
+		filename = "sec-cfg.bin";
+
+		sec_yaml: ti-board-config {
+			config = "sec-cfg.yaml";
+			schema = "arch/arm/mach-k3/am62lx/schema.yaml";
+		};
+	};
+
+	combined-tifs-cfg {
+		filename = "combined-tifs-cfg.bin";
+
+		ti-board-config {
+			bcfg_yaml_tifs: board-cfg {
+				config = "board-cfg.yaml";
+				schema = "arch/arm/mach-k3/am62lx/schema.yaml";
+			};
+
+			sec_yaml_tifs: sec-cfg {
+				config = "sec-cfg.yaml";
+				schema = "arch/arm/mach-k3/am62lx/schema.yaml";
+			};
+		};
+	};
+
+	tiboot3.bin {
+		filename = "tiboot3.bin";
+
+		ti-secure-rom {
+			content = <&bl1>, <&tifs_enc>, <&tifs_data>, <&tifs_cert>;
+			combined;
+			sysfw-inner-cert;
+			keyfile = "custMpk.pem";
+			sw-rev = <1>;
+			content-sbl = <&bl1>;
+			content-sysfw = <&tifs_enc>;
+			content-sysfw-data = <&tifs_data>;
+			content-sysfw-inner-cert = <&tifs_cert>;
+			load = <0x70800000>;
+			load-sysfw = <CONFIG_K3_TIFS_LOAD_ADDR>;
+			load-sysfw-data = <CONFIG_K3_TIFS_DATA_LOAD_ADDR>;
+			core-opts = <160>;
+		};
+
+		bl1: atf-bl1 {
+		};
+
+		tifs_enc: tifs-enc.bin {
+			filename = "ti-sysfw/ti-fs-firmware-am62lx-hs-enc.bin";
+			type = "blob-ext";
+		};
+
+		tifs_data: sysfw-data.bin {
+			filename = "combined-tifs-cfg.bin";
+			type = "blob-ext";
+		};
+
+		tifs_cert: tifs-cert.bin {
+			filename = "ti-sysfw/ti-fs-firmware-am62lx-hs-cert.bin";
+			type = "blob-ext";
+		};
+	};
+
+	tispl.bin {
+		filename = "tispl.bin";
+
+		ti-secure-rom {
+			content = <&atf>, <&tifs_enc2>, <&tifs_data2>,
+				  <&tifs_cert2>, <&tee>, <&spl>;
+			combined;
+			sysfw-inner-cert;
+			dm-data;
+			keyfile = "custMpk.pem";
+			sw-rev = <1>;
+			content-sbl = <&atf>;
+			content-tee = <&tee>;
+			content-sysfw = <&tifs_enc2>;
+			content-sysfw-data = <&tifs_data2>;
+			content-sysfw-inner-cert = <&tifs_cert2>;
+			content-dm-data = <&spl>;
+			load = <CONFIG_K3_ATF_LOAD_ADDR>;
+			load-sysfw = <CONFIG_K3_TIFS_LOAD_ADDR>;
+			load-sysfw-data = <CONFIG_K3_TIFS_DATA_LOAD_ADDR>;
+			load-dm-data = <CONFIG_SPL_TEXT_BASE>;
+			load-tee = <CONFIG_K3_OPTEE_LOAD_ADDR>;
+		};
+
+		atf: atf-bl31 {
+		};
+
+		tifs_enc2: tifs-enc2.bin {
+			filename = "ti-sysfw/ti-fs-firmware-am62lx-hs-enc.bin";
+			type = "blob-ext";
+		};
+
+		tifs_data2: sysfw-data2.bin {
+			filename = "combined-tifs-cfg.bin";
+			type = "blob-ext";
+		};
+
+		tifs_cert2: tifs-cert2.bin {
+			filename = "ti-sysfw/ti-fs-firmware-am62lx-hs-cert.bin";
+			type = "blob-ext";
+		};
+
+		tee: tee-os {
+		};
+
+		spl: section {
+			u-boot-spl-nodtb {
+			};
+
+			u-boot-spl-pubkey-dtb {
+				algo = "sha512,rsa4096";
+				required = "conf";
+				key-name-hint = "custMpk";
+			};
+		};
+	};
+
+	u-boot.img {
+		filename = "u-boot.img";
+		pad-byte = <0xff>;
+
+		fit {
+			description = "U-Boot fitImage for AM62Lx SK";
+
+			images {
+				uboot {
+					description = "U-Boot for AM62Lx SK";
+					type = "firmware";
+					os = "u-boot";
+					arch = "arm";
+					compression = "none";
+					load = <CONFIG_TEXT_BASE>;
+
+					blob {
+						filename = "u-boot-nodtb.bin";
+					};
+
+					hash {
+						algo = "sha512";
+					};
+				};
+
+				fdt-0 {
+					description = "k3-am62lx-evm";
+					type = "flat_dt";
+					arch = "arm";
+					compression = "none";
+
+					u-boot-dtb {
+					};
+
+					hash {
+						algo = "sha512";
+					};
+				};
+			};
+
+			configurations {
+				default = "conf-0";
+
+				conf-0 {
+					description = "k3-am62lx-evm";
+					firmware = "uboot";
+					loadables = "uboot";
+					fdt = "fdt-0";
+				};
+			};
+		};
+	};
+};
arch/arm/dts/k3-am62l3-evm-u-boot.dtsi new file +12 -0
new file mode 100644
index 000000000000..d48b478b89c4
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#include "k3-am62l3-evm-binman.dtsi"
+
+/ {
+	aliases {
+		mmc1 = &sdhci1;
+	};
+};
arch/arm/mach-k3/Kconfig +21 -0
index 351ff3c19f1c..6e8ea2cdc7f2 100644
@@ -129,6 +129,26 @@ config K3_EARLY_CONS_IDX
 	  Use this option to set the index of the serial device to be used
 	  for the early console during SPL execution.
 
+config K3_TIFS_LOAD_ADDR
+	hex "Load address of TI's Foundational Security (TIFS) firmware"
+	default 0x40000
+	help
+	  The load address for TI's Foundation Security firmware. This value is
+	  used to build the x509 certificate to tell boot ROM where to place the
+	  TIFS firmware in memory.
+
+	  Unless you know what you're doing. Do not change this value.
+
+config K3_TIFS_DATA_LOAD_ADDR
+	hex "Load address of TIFS configuration data"
+	default 0x6c000
+	help
+	  The load address for TI's Foundation Security configuration data. This
+	  value is used to build the x509 certificate to tell ROM where to place
+	  the TIFS firmware.
+
+	  Unless you know what you're doing. Do not change this value.
+
 config K3_ATF_LOAD_ADDR
 	hex "Load address of ATF image"
 	default 0x80000000 if (SOC_K3_AM625 || SOC_K3_AM62A7 || SOC_K3_AM62P5 || SOC_K3_J722S || SOC_K3_AM62L3)
@@ -148,6 +168,7 @@ config K3_ATF_RESERVED_SIZE
 
 config K3_OPTEE_LOAD_ADDR
 	hex "Load address of OPTEE image"
+	default 0x80200000 if SOC_K3_AM62L3
 	default 0x9e800000
 	help
 	  The load address for the OPTEE image. This value defaults to 0x9e800000
Signature · 1 line
2.54.0
#14 lore raw

PATCH v2 8/11 configs: am62lx_evm: add initial defconfig

In reply to Bryan Brattlof via U-Boot

Add the initial minimum configuration needed to boot the AM62L3-SK reference boards.

---
Changes in v2:
- removed options used for fit image signing
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 configs/am62lx_evm_defconfig | 139 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 139 insertions(+)
configs/am62lx_evm_defconfig new file +139 -0
new file mode 100644
index 000000000000..2db07b508c2a
@@ -0,0 +1,139 @@
+CONFIG_ARM=y
+CONFIG_ARCH_K3=y
+CONFIG_TEXT_BASE=0x84000000
+CONFIG_SYS_MALLOC_F_LEN=0x8000
+CONFIG_TI_COMMON_CMD_OPTIONS=y
+CONFIG_SPL_GPIO=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SOC_K3_AM62L3=y
+CONFIG_TARGET_AM62L3_EVM=y
+CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x82b80000
+CONFIG_SF_DEFAULT_SPEED=25000000
+CONFIG_DM_GPIO=y
+CONFIG_DEFAULT_DEVICE_TREE="ti/k3-am62l3-evm"
+CONFIG_OF_LIBFDT_OVERLAY=y
+CONFIG_DM_RESET=y
+CONFIG_SPL_MMC=y
+CONFIG_SPL_SERIAL=y
+CONFIG_SPL_STACK_R_ADDR=0x85000000
+CONFIG_SPL_TEXT_BASE=0x82000000
+CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
+CONFIG_SPL_BSS_START_ADDR=0x82c80000
+CONFIG_SPL_BSS_MAX_SIZE=0x80000
+CONFIG_SPL_STACK_R=y
+CONFIG_SYS_BOOTM_LEN=0x800000
+CONFIG_SYS_LOAD_ADDR=0x84000000
+CONFIG_SPL_SIZE_LIMIT=0x50000
+CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x800
+CONFIG_SPL_FS_FAT=y
+CONFIG_SPL_LIBDISK_SUPPORT=y
+# CONFIG_PSCI_RESET is not set
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_EFI_SET_TIME=y
+CONFIG_SPL_LOAD_FIT_ADDRESS=0x83000000
+CONFIG_BOOTSTD_FULL=y
+# CONFIG_BOARD_INIT is not set
+CONFIG_SPL_MAX_SIZE=0x58000
+CONFIG_SPL_SYS_REPORT_STACK_F_USAGE=y
+# CONFIG_SPL_BINMAN_SYMBOLS is not set
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_SYS_MMCSD_RAW_MODE=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
+CONFIG_SPL_DMA=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="u-boot.img"
+CONFIG_SPL_I2C=y
+CONFIG_SPL_DM_MAILBOX=y
+CONFIG_SPL_POWER_DOMAIN=y
+CONFIG_SPL_RAM_DEVICE=y
+CONFIG_SPL_YMODEM_SUPPORT=y
+CONFIG_CMD_BOOTEFI_SELFTEST=y
+CONFIG_CMD_NVEDIT_EFI=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_EFIDEBUG=y
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_DEVICE_REMOVE=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_CLK=y
+CONFIG_SPL_CLK=y
+CONFIG_DFU_MMC=y
+CONFIG_DFU_RAM=y
+CONFIG_SYS_DFU_DATA_BUF_SIZE=0x40000
+CONFIG_SYS_DFU_MAX_FILE_SIZE=0x800000
+CONFIG_DMA_CHANNELS=y
+CONFIG_TI_K3_NAVSS_UDMA=y
+# CONFIG_SCMI_AGENT_OPTEE is not set
+CONFIG_SPL_DM_GPIO_LOOKUP_LABEL=y
+CONFIG_DA8XX_GPIO=y
+CONFIG_DM_PCA953X=y
+CONFIG_SPL_DM_PCA953X=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_OMAP24XX=y
+CONFIG_DM_MAILBOX=y
+CONFIG_K3_SEC_PROXY=y
+CONFIG_SUPPORT_EMMC_BOOT=y
+CONFIG_MMC_IO_VOLTAGE=y
+CONFIG_SPL_MMC_IO_VOLTAGE=y
+CONFIG_MMC_UHS_SUPPORT=y
+CONFIG_SPL_MMC_UHS_SUPPORT=y
+CONFIG_MMC_HS200_SUPPORT=y
+CONFIG_SPL_MMC_HS200_SUPPORT=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ADMA=y
+CONFIG_SPL_MMC_SDHCI_ADMA=y
+CONFIG_MMC_SDHCI_AM654=y
+CONFIG_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
+CONFIG_SPI_FLASH_SOFT_RESET=y
+CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=y
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_S28HX_T=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_SPI_FLASH_MT35XU=y
+CONFIG_TI_AM65_CPSW_NUSS=y
+CONFIG_PHY_TI_DP83867=y
+CONFIG_PHY_FIXED=y
+CONFIG_PHY=y
+CONFIG_PINCTRL=y
+CONFIG_SPL_PINCTRL=y
+CONFIG_PINCTRL_SINGLE=y
+CONFIG_POWER_DOMAIN=y
+CONFIG_DM_REGULATOR=y
+CONFIG_SPL_DM_REGULATOR=y
+CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_SPL_DM_REGULATOR_FIXED=y
+CONFIG_DM_RTC=y
+CONFIG_RTC_EMULATION=y
+CONFIG_DM_SERIAL=y
+CONFIG_SOC_DEVICE=y
+CONFIG_SOC_DEVICE_TI_K3=y
+CONFIG_SOC_TI=y
+CONFIG_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_CADENCE_QSPI=y
+CONFIG_SYSRESET=y
+CONFIG_SPL_SYSRESET=y
+CONFIG_USB=y
+CONFIG_DM_USB_GADGET=y
+CONFIG_SPL_DM_USB_GADGET=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GENERIC=y
+CONFIG_SPL_USB_DWC3_GENERIC=y
+CONFIG_SPL_USB_DWC3_AM62=y
+CONFIG_USB_DWC3_AM62=y
+CONFIG_USB_GADGET=y
+CONFIG_SPL_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments"
+CONFIG_USB_GADGET_VENDOR_NUM=0x0451
+CONFIG_USB_GADGET_PRODUCT_NUM=0x6165
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_SPL_DFU=y
+CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
+# CONFIG_TOOLS_MKEFICAPSULE is not set
Signature · 1 line
2.54.0
#15 lore raw

PATCH v2 9/11 doc: ti: k3: fix pygments warning parsing device-tree

In reply to Bryan Brattlof via U-Boot

A warning is emitted when generating the FIT image examples because of whitespace and invalid node names. Fix them

---
 doc/board/ti/k3.rst | 38 +++++++++++++++++++++-----------------
 1 file changed, 21 insertions(+), 17 deletions(-)
doc/board/ti/k3.rst +21 -17
index d3ecaf599094..b7b69949af16 100644
@@ -466,25 +466,29 @@ choose any configuration at runtime to boot from.
 
 .. code-block:: dts
 
-    /dts-v1/;
+   / {
+       description = "FIT Image description";
+       #address-cells = <1>;
 
-    / {
-        description = "FIT Image description";
-        #address-cells = <1>;
+       images {
+           image-1 {};
+           image-2 {};
+           fdt-1 {};
+           fdt-2 {};
+       };
 
-        images {
-            [image-1]
-            [image-2]
-            [fdt-1]
-            [fdt-2]
-        }
-
-        configurations {
-            default = <conf-1>
-            [conf-1: image-1,fdt-1]
-            [conf-2: image-2,fdt-1]
-        }
-    }
+       configurations {
+           default = <conf-1>
+           conf-1 {
+               image = "image-1";
+               fdt = "fdt-1";
+           };
+           conf-2 {
+                image = "image-2";
+                fdt = "fdt-1";
+           };
+       };
+   };
 
 * Sample Images
 
Signature · 1 line
2.54.0
#16 lore raw

PATCH v2 10/11 doc: board: ti: correct path to tcl scripts

In reply to Bryan Brattlof via U-Boot

OpenOCD has moved where it has placed the tcl scripts for TI's reference boards. Update their paths to the new locations

---
 doc/board/ti/am6254atl_sk.rst | 10 +---------
 doc/board/ti/am62ax_sk.rst    | 10 +---------
 doc/board/ti/am62dx_evm.rst   | 17 ++++++-----------
 doc/board/ti/am62px_sk.rst    | 12 +-----------
 doc/board/ti/am62x_sk.rst     |  9 +--------
 doc/board/ti/am64x_evm.rst    | 17 +++++++++++++++++
 doc/board/ti/am65x_evm.rst    | 10 +---------
 doc/board/ti/j7200_evm.rst    | 10 +---------
 doc/board/ti/j721e_evm.rst    | 10 +---------
 doc/board/ti/j722s_evm.rst    | 12 +-----------
 doc/board/ti/j784s4_evm.rst   | 10 +---------
 11 files changed, 32 insertions(+), 95 deletions(-)
doc/board/ti/am6254atl_sk.rst +1 -9
index 18a3520b39c7..7f919b10a8d7 100644
@@ -289,14 +289,6 @@ 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
@@ -305,4 +297,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash $
 
-  openocd -f board/ti_am625evm.cfg
+   openocd -f board/ti/am625evm.cfg
doc/board/ti/am62ax_sk.rst +1 -9
index 6f3432f7895c..2b338569aad6 100644
@@ -224,14 +224,6 @@ Debugging U-Boot
 See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
 detailed setup information.
 
-.. warning::
-
-  **OpenOCD support since**: August 2023 (git master)
-
-  Until the next stable release of OpenOCD is available in your development
-  environment's distribution, it might be necessary to build OpenOCD `from the
-  source <https://github.com/openocd-org/openocd>`_.
-
 .. include::  k3.rst
     :start-after: .. k3_rst_include_start_openocd_connect_XDS110
     :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -240,4 +232,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash
 
-  openocd -f board/ti_am62a7evm.cfg
+   openocd -f board/ti/am62a7evm.cfg
doc/board/ti/am62dx_evm.rst +6 -11
index 0d12e3ec1476..28f62914b3bc 100644
@@ -235,16 +235,6 @@ Debugging U-Boot
 See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
 detailed setup information.
 
-.. warning::
-
-  **AM62A**: OpenOCD support since August 2023 (git master)
-
-  **AM62D**: Uses AM62A configuration (compatible due to same core architecture)
-
-  Until the next stable release of OpenOCD is available in your development
-  environment's distribution, it might be necessary to build OpenOCD `from the
-  source <https://github.com/openocd-org/openocd>`_.
-
 .. include::  k3.rst
     :start-after: .. k3_rst_include_start_openocd_connect_XDS110
     :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -253,4 +243,9 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash
 
-  openocd -f board/ti/am62a7evm.cfg
+   openocd -f board/ti/am62a7evm.cfg
+
+.. note::
+
+   The AM62D-EVM uses the same tcl configuration as the AM62A-SK due to
+   same core architecture.
doc/board/ti/am62px_sk.rst +1 -11
index 44dae4afc870..d2696282033c 100644
@@ -329,16 +329,6 @@ Debugging U-Boot
 See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
 detailed setup information.
 
-.. warning::
-
-  **OpenOCD support after**: v0.12.0
-
-  While support for the entire K3 generation including the am62xxx
-  extended family was added before v0.12.0, the tcl scripts for the
-  am62px have been accepted and will be available in the next release of
-  OpenOCD. It may be necessary to build OpenOCD from source depending on
-  the version your distribution has packaged.
-
 .. include::  k3.rst
     :start-after: .. k3_rst_include_start_openocd_connect_XDS110
     :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -347,4 +337,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash
 
-  openocd -f board/ti_am62pevm.cfg
+   openocd -f board/ti/am62pevm.cfg
doc/board/ti/am62x_sk.rst +1 -8
index ef9425035cb8..ab5dee1ac775 100644
@@ -851,13 +851,6 @@ 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
@@ -867,4 +860,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash $
 
-  openocd -f board/ti_am625evm.cfg
+   openocd -f board/ti/am625evm.cfg
doc/board/ti/am64x_evm.rst +17 -0
index 65c4c456528c..dbbdfe0e8036 100644
@@ -227,3 +227,20 @@ https://www.ti.com/lit/pdf/spruim2 under the `Boot Mode Pins` section.
 
   For SW2 and SW3, the switch state in the "ON" position = 1.
   Boot bits on SK is reversed bits to the bootmode signals
+
+
+Debugging U-Boot
+----------------
+
+See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
+detailed setup information.
+
+.. 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/am642evm.cfg
doc/board/ti/am65x_evm.rst +1 -9
index 60b08ceebf0f..12fa955d2bf5 100644
@@ -305,14 +305,6 @@ 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
@@ -321,4 +313,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash $
 
-  openocd -f board/ti_am654evm.cfg
+   openocd -f board/ti/am654evm.cfg
doc/board/ti/j7200_evm.rst +1 -9
index 4fd2aff83547..74bce4b465d7 100644
@@ -216,14 +216,6 @@ 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
@@ -232,4 +224,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash $
 
-  openocd -f board/ti_j7200evm.cfg
+  openocd -f board/ti/j7200evm.cfg
doc/board/ti/j721e_evm.rst +1 -9
index 41c8d4c72a8d..1302e080d8a8 100644
@@ -245,14 +245,6 @@ 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::  ../ti/k3.rst
     :start-after: .. k3_rst_include_start_openocd_connect_XDS110
     :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -261,4 +253,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash $
 
-  openocd -f board/ti_j721eevm.cfg
+   openocd -f board/ti/j721evm.cfg
doc/board/ti/j722s_evm.rst +1 -11
index 4b5cf0275940..5a4ae11a2eb6 100644
@@ -237,16 +237,6 @@ Debugging U-Boot
 See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
 detailed setup information.
 
-.. warning::
-
-  **OpenOCD support after**: v0.12.0
-
-  While support for the entire K3 generation including the am62xxx
-  extended family was added before v0.12.0, the tcl scripts for the
-  am62px have been accepted and will be available in the next release of
-  OpenOCD. It may be necessary to build OpenOCD from source depending on
-  the version your distribution has packaged.
-
 .. include::  k3.rst
     :start-after: .. k3_rst_include_start_openocd_connect_XDS110
     :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -255,4 +245,4 @@ To start OpenOCD and connect to the board
 
 .. prompt:: bash
 
-  openocd -f board/ti_j722sevm.cfg
+   openocd -f board/ti/j722sevm.cfg
doc/board/ti/j784s4_evm.rst +1 -9
index ec82228ab908..48decd8d3d64 100644
@@ -643,14 +643,6 @@ Debugging U-Boot
 See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
 detailed setup information.
 
-.. warning::
-
-  **OpenOCD support since**: September 2023 (git master)
-
-  Until the next stable release of OpenOCD is available in your development
-  environment's distribution, it might be necessary to build OpenOCD `from the
-  source <https://github.com/openocd-org/openocd>`_.
-
 Debugging U-Boot on J784S4-EVM and AM69-SK
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
@@ -663,4 +655,4 @@ following.
 
 .. prompt:: bash
 
-  openocd -f board/ti_j784s4evm.cfg
+  openocd -f board/ti/j784s4evm.cfg
Signature · 1 line
2.54.0
#17 lore raw

Re: [PATCH v2 10/11] doc: board: ti: correct path to tcl scripts

Quoted 23 lines · Bryan Brattlof

OpenOCD has moved where it has placed the tcl scripts for TI's reference boards. Update their paths to the new locations

---
  doc/board/ti/am6254atl_sk.rst | 10 +---------
  doc/board/ti/am62ax_sk.rst    | 10 +---------
  doc/board/ti/am62dx_evm.rst   | 17 ++++++-----------
  doc/board/ti/am62px_sk.rst    | 12 +-----------
  doc/board/ti/am62x_sk.rst     |  9 +--------
  doc/board/ti/am64x_evm.rst    | 17 +++++++++++++++++
  doc/board/ti/am65x_evm.rst    | 10 +---------
  doc/board/ti/j7200_evm.rst    | 10 +---------
  doc/board/ti/j721e_evm.rst    | 10 +---------
  doc/board/ti/j722s_evm.rst    | 12 +-----------
  doc/board/ti/j784s4_evm.rst   | 10 +---------
  11 files changed, 32 insertions(+), 95 deletions(-)
doc/board/ti/am6254atl_sk.rst +0 -0
index 18a3520b39c7..7f919b10a8d7 100644

doc/board/ti/am6254atl_sk.rst Debugging U-Boot · line 294

Quoted 6 lines
doc/board/ti/am6254atl_sk.rst +0 -3
@@ -289,14 +289,6 @@ Debugging U-Boot
  See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
  detailed setup information.
 
-.. warning::
-
-  **OpenOCD support since**: v0.12.0

This info might still be useful for folks on older distros still shipping an older OpenOCD (e.g. Ubuntu 22.04 is still on OpenOCD 0.11.0). Probably doesn't need to be a "warning" though at this point, maybe just a "note".

Andrew

Quoted 275 lines
doc/board/ti/am6254atl_sk.rst +1 -6
-
-  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
@@ -305,4 +297,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash $
 
-  openocd -f board/ti_am625evm.cfg
+   openocd -f board/ti/am625evm.cfg
doc/board/ti/am62ax_sk.rst +1 -9
index 6f3432f7895c..2b338569aad6 100644
@@ -224,14 +224,6 @@ Debugging U-Boot
  See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
  detailed setup information.
 
-.. warning::
-
-  **OpenOCD support since**: August 2023 (git master)
-
-  Until the next stable release of OpenOCD is available in your development
-  environment's distribution, it might be necessary to build OpenOCD `from the
-  source <https://github.com/openocd-org/openocd>`_.
-
  .. include::  k3.rst
      :start-after: .. k3_rst_include_start_openocd_connect_XDS110
      :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -240,4 +232,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash
 
-  openocd -f board/ti_am62a7evm.cfg
+   openocd -f board/ti/am62a7evm.cfg
doc/board/ti/am62dx_evm.rst +6 -11
index 0d12e3ec1476..28f62914b3bc 100644
@@ -235,16 +235,6 @@ Debugging U-Boot
  See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
  detailed setup information.
 
-.. warning::
-
-  **AM62A**: OpenOCD support since August 2023 (git master)
-
-  **AM62D**: Uses AM62A configuration (compatible due to same core architecture)
-
-  Until the next stable release of OpenOCD is available in your development
-  environment's distribution, it might be necessary to build OpenOCD `from the
-  source <https://github.com/openocd-org/openocd>`_.
-
  .. include::  k3.rst
      :start-after: .. k3_rst_include_start_openocd_connect_XDS110
      :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -253,4 +243,9 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash
 
-  openocd -f board/ti/am62a7evm.cfg
+   openocd -f board/ti/am62a7evm.cfg
+
+.. note::
+
+   The AM62D-EVM uses the same tcl configuration as the AM62A-SK due to
+   same core architecture.
doc/board/ti/am62px_sk.rst +1 -11
index 44dae4afc870..d2696282033c 100644
@@ -329,16 +329,6 @@ Debugging U-Boot
  See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
  detailed setup information.
 
-.. warning::
-
-  **OpenOCD support after**: v0.12.0
-
-  While support for the entire K3 generation including the am62xxx
-  extended family was added before v0.12.0, the tcl scripts for the
-  am62px have been accepted and will be available in the next release of
-  OpenOCD. It may be necessary to build OpenOCD from source depending on
-  the version your distribution has packaged.
-
  .. include::  k3.rst
      :start-after: .. k3_rst_include_start_openocd_connect_XDS110
      :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -347,4 +337,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash
 
-  openocd -f board/ti_am62pevm.cfg
+   openocd -f board/ti/am62pevm.cfg
doc/board/ti/am62x_sk.rst +1 -8
index ef9425035cb8..ab5dee1ac775 100644
@@ -851,13 +851,6 @@ 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
@@ -867,4 +860,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash $
 
-  openocd -f board/ti_am625evm.cfg
+   openocd -f board/ti/am625evm.cfg
doc/board/ti/am64x_evm.rst +17 -0
index 65c4c456528c..dbbdfe0e8036 100644
@@ -227,3 +227,20 @@ https://www.ti.com/lit/pdf/spruim2 under the `Boot Mode Pins` section.
 
    For SW2 and SW3, the switch state in the "ON" position = 1.
    Boot bits on SK is reversed bits to the bootmode signals
+
+
+Debugging U-Boot
+----------------
+
+See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
+detailed setup information.
+
+.. 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/am642evm.cfg
doc/board/ti/am65x_evm.rst +1 -9
index 60b08ceebf0f..12fa955d2bf5 100644
@@ -305,14 +305,6 @@ 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
@@ -321,4 +313,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash $
 
-  openocd -f board/ti_am654evm.cfg
+   openocd -f board/ti/am654evm.cfg
doc/board/ti/j7200_evm.rst +1 -9
index 4fd2aff83547..74bce4b465d7 100644
@@ -216,14 +216,6 @@ 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
@@ -232,4 +224,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash $
 
-  openocd -f board/ti_j7200evm.cfg
+  openocd -f board/ti/j7200evm.cfg
doc/board/ti/j721e_evm.rst +1 -9
index 41c8d4c72a8d..1302e080d8a8 100644
@@ -245,14 +245,6 @@ 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::  ../ti/k3.rst
      :start-after: .. k3_rst_include_start_openocd_connect_XDS110
      :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -261,4 +253,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash $
 
-  openocd -f board/ti_j721eevm.cfg
+   openocd -f board/ti/j721evm.cfg
doc/board/ti/j722s_evm.rst +1 -11
index 4b5cf0275940..5a4ae11a2eb6 100644
@@ -237,16 +237,6 @@ Debugging U-Boot
  See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
  detailed setup information.
 
-.. warning::
-
-  **OpenOCD support after**: v0.12.0
-
-  While support for the entire K3 generation including the am62xxx
-  extended family was added before v0.12.0, the tcl scripts for the
-  am62px have been accepted and will be available in the next release of
-  OpenOCD. It may be necessary to build OpenOCD from source depending on
-  the version your distribution has packaged.
-
  .. include::  k3.rst
      :start-after: .. k3_rst_include_start_openocd_connect_XDS110
      :end-before: .. k3_rst_include_end_openocd_connect_XDS110
@@ -255,4 +245,4 @@ To start OpenOCD and connect to the board
 
  .. prompt:: bash
 
-  openocd -f board/ti_j722sevm.cfg
+   openocd -f board/ti/j722sevm.cfg
doc/board/ti/j784s4_evm.rst +1 -9
index ec82228ab908..48decd8d3d64 100644
@@ -643,14 +643,6 @@ Debugging U-Boot
  See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
  detailed setup information.
 
-.. warning::
-
-  **OpenOCD support since**: September 2023 (git master)
-
-  Until the next stable release of OpenOCD is available in your development
-  environment's distribution, it might be necessary to build OpenOCD `from the
-  source <https://github.com/openocd-org/openocd>`_.
-
  Debugging U-Boot on J784S4-EVM and AM69-SK
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
@@ -663,4 +655,4 @@ following.
 
  .. prompt:: bash
 
-  openocd -f board/ti_j784s4evm.cfg
+  openocd -f board/ti/j784s4evm.cfg
#18 lore raw

Re: [PATCH v2 10/11] doc: board: ti: correct path to tcl scripts

On July 21, 2026 thus sayeth Andrew Davis:

Quoted 19 lines · Bryan Brattlof
Quoted 18 lines

OpenOCD has moved where it has placed the tcl scripts for TI's reference boards. Update their paths to the new locations

---
  doc/board/ti/am6254atl_sk.rst | 10 +---------
  doc/board/ti/am62ax_sk.rst    | 10 +---------
  doc/board/ti/am62dx_evm.rst   | 17 ++++++-----------
  doc/board/ti/am62px_sk.rst    | 12 +-----------
  doc/board/ti/am62x_sk.rst     |  9 +--------
  doc/board/ti/am64x_evm.rst    | 17 +++++++++++++++++
  doc/board/ti/am65x_evm.rst    | 10 +---------
  doc/board/ti/j7200_evm.rst    | 10 +---------
  doc/board/ti/j721e_evm.rst    | 10 +---------
  doc/board/ti/j722s_evm.rst    | 12 +-----------
  doc/board/ti/j784s4_evm.rst   | 10 +---------
  11 files changed, 32 insertions(+), 95 deletions(-)
Quoted 15 lines

doc/board/ti/am6254atl_sk.rst Debugging U-Boot · line 293

Quoted 10 lines
doc/board/ti/am6254atl_sk.rst +0 -3
index 18a3520b39c7..7f919b10a8d7 100644
@@ -289,14 +289,6 @@ Debugging U-Boot
  See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
  detailed setup information.
-.. warning::
-
-  **OpenOCD support since**: v0.12.0

This info might still be useful for folks on older distros still shipping an older OpenOCD (e.g. Ubuntu 22.04 is still on OpenOCD 0.11.0). Probably doesn't need to be a "warning" though at this point, maybe just a "note".

Okay I can leave it in. I really wish OpenOCD would tag a release more often. 0.12.0 was tagged in 2023 :/

~Bryan

#19 lore raw

PATCH v2 11/11 doc: board: ti: am62lx_evm: add initial docs for the AM62L-EVM

In reply to Bryan Brattlof via U-Boot

Add the initial documentation on the bootflow, build, and deubgging procedures along with the relevant links to more information about the AM62Lx processor and the reference board.

---
 doc/board/ti/am62lx_evm.rst                     | 222 ++++++++++
 doc/board/ti/img/am62lx_boot_diagram_phase1.svg | 450 ++++++++++++++++++++
 doc/board/ti/img/am62lx_boot_diagram_phase2.svg | 525 ++++++++++++++++++++++++
 doc/board/ti/img/am62lx_tiboot3.bin.svg         | 170 ++++++++
 doc/board/ti/img/am62lx_tispl.bin.svg           | 222 ++++++++++
 doc/board/ti/img/am62lx_u-boot.img.svg          | 143 +++++++
 doc/board/ti/k3.rst                             |   1 +
 7 files changed, 1733 insertions(+)
doc/board/ti/am62lx_evm.rst new file +222 -0
new file mode 100644
index 000000000000..e6a103ab600b
@@ -0,0 +1,222 @@
+.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
+.. sectionauthor:: Bryan Brattlof <[email protected]>
+
+AM62Lx Platforms
+================
+
+The AM62L is a lite, low power and performance optimized family
+of application processors that are built for Linux application
+development. The AM62L is well suited for a wide range of
+general-purpose applications with scalable ARM Cortex-A53 core
+performance and embedded features such as: Multimedia DSI/DPI support,
+integrated ADC on chip, advanced lower power management modes, and
+extensive security options for IP protection with the built-in security
+features.
+
+The AM62L is a general purpose processor, however some of the
+applications well suited for it include: Human Machine Interfaces (HMI),
+Medical patient monitoring , Building automation, Smart secure gateways,
+Smart Thermostats, EV charging stations, Smart Metering, Solar energy
+and more.
+
+Some highlights of AM62L SoC are:
+
+- Single to Dual 64-bit Arm® Cortex®-A53 microprocessor subsystem up to
+  1.25GHz Integrated Giga-bit Ethernet switch supporting up to a total
+  of two external ports
+
+- 16-bit DDR Subsystem that supports LPDDR4, DDR4 memory types.
+
+- Display support: 1x display support over MIPI DSI (4 lanes DPHY) or
+  DPI (24-bit RGB LVCMOS)
+
+- Multiple low power modes support, ex: Deep sleep and Standby
+
+- Support for secure boot, Trusted Execution Environment (TEE) &
+  Cryptographic Acceleration
+
+For more information check out our `Technical Reference Manual (TRM)`_.
+
+.. _Technical Reference Manual (TRM): https://www.ti.com/lit/ug/sprujb4/sprujb4.pdf
+
+
+Boot Flow:
+----------
+
+The AM62Lx SoCs deviate significantly from the typical boot-flow of the
+other Sitara or Jacinto class of SoCs.
+
+The first CPU released on power on will be the Security Management
+Subsystem (SMS) MCU to first secure the device like all other K3 SoCs.
+However because the lack of any MCU cores the boot ROM is located on one
+of the A53 cores which is responsible for loading TI's root-of-trust
+firmware (TIFS) along with a BL1 image generated from the
+ARM-Trusted-Firmware repository. The BL1 image is responsible for
+initializing the debug console, the DDR controller, and speeding up the
+A53 to it's maximum allowable.
+
+Once the BL1 is done, it will send a message back to the SMS core to
+reset and begin the second boot phase.
+
+.. image:: img/am62lx_boot_diagram_phase1.svg
+   :alt: First phase of the AM62L boot flow
+
+For the second boot phase, with DDR active ROM can now load the larger
+images contained in the tispl.bin (or whatever filename or offset was
+configured during the BL1 boot phase) which contains TI's root-of-trust
+firmware (TIFS) along with OP-TEE, TF-A's BL31 and U-Boot SPL images to
+initialize the root-of-trust, and the TrustZone and normal world for the
+A53s.
+
+From there the U-Boot SPL will load and authenticate U-Boot proper.
+
+.. image:: img/am62lx_boot_diagram_phase2.svg
+   :alt: Second phase of the AM62L boot flow
+
+Sources:
+--------
+
+.. include::  ../ti/k3.rst
+    :start-after: .. k3_rst_include_start_boot_sources
+    :end-before: .. k3_rst_include_end_boot_sources
+
+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_CORTEXA=am62lx_evm_defconfig
+      export TFA_BOARD=am62lx-evm
+      export OPTEE_PLATFORM=k3-am62lx
+
+1. Build Trusted Firmware-A:
+
+   More detailed porting and build guide can be found in the `TF-A
+   documentation`_ for all AM62L based platforms. For the AM62L-EVM the
+   build command will be:
+
+   .. prompt:: bash $
+
+      make CROSS_COMPILE=aarch64-none-linux-gnu- \
+            ARCH=aarch64 \
+            PLAT=k3low \
+            TARGET_BOARD=$TFA_BOARD
+
+.. _TF-A documentation: https://trustedfirmware-a.readthedocs.io/en/latest/plat/ti-k3low-am62lx.html
+
+#. Build OP-TEE:
+
+   Depending on the application more build arguments may be needed. The
+   `OP-TEE documentation`_ has more information on this. The basic build
+   commands for the AM62L-EVM are:
+
+   .. prompt:: bash $
+
+      make CROSS_COMPILE=$CC32 \
+            CROSS_COMPILE64=$CC64 \
+            CFG_ARM64_core=y \
+            $OPTEE_EXTRA_ARGS \
+            PLATFORM=$OPTEE_PLATFORM
+
+.. _OP-TEE documentation: https://optee.readthedocs.io/en/latest/
+
+#. Build U-Boot:
+
+   .. prompt:: bash $
+
+      make $UBOOT_CFG_CORTEXA
+      make CROSS_COMPILE=aarch64-linux-gnu- \
+            BINMAN_INDIRS="$LNX_FW_PATH" \
+            TEE="$OPTEE_PATH/out/arm-plat-k3/core/tee-raw.bin" \
+            BL1="$TFA_PATH/build/k3low/$TFA_BOARD/release/bl1.bin" \
+            BL31="$TFA_PATH/build/k3low/$TFA_BOARD/release/bl31.bin"
+
+Image formats:
+--------------
+
+The final images generated and needed for booting the AM62L are:
+
+- tiboot3.bin
+
+.. image:: img/am62lx_tiboot3.bin.svg
+   :alt: tiboot3.bin image format
+
+- tispl.bin
+
+.. image:: img/am62lx_tispl.bin.svg
+   :alt: tispl.bin image format
+
+- u-boot.img
+
+.. image:: img/am62lx_u-boot.img.svg
+   :alt: u-boot.img image format
+
+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 AM62L-EVM
+
+.. list-table::
+   :widths: 16 16 8 8
+   :header-rows: 1
+
+   * - Switch Label
+     - SW4: 12345678
+     - SW2: 1234
+     - SW3: 1234
+
+   * - EMMC
+     - 11010010
+     - 0000
+     - 0000
+
+   * - SD
+     - 11000010
+     - 0100
+     - 0000
+
+   * - UART
+     - 11011100
+     - 0000
+     - 0000
+
+   * - USB DFU
+     - 11001010
+     - 0000
+     - 0000
+
+Debugging U-Boot
+----------------
+
+See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for
+detailed setup information.
+
+.. 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/am62levm.cfg
doc/board/ti/img/am62lx_boot_diagram_phase1.svg new file +450 -0

450 lines not on this page · raw message

doc/board/ti/img/am62lx_boot_diagram_phase2.svg new file +525 -0

525 lines not on this page · raw message

doc/board/ti/img/am62lx_tiboot3.bin.svg new file +170 -0

170 lines not on this page · raw message

doc/board/ti/img/am62lx_tispl.bin.svg new file +222 -0

222 lines not on this page · raw message

doc/board/ti/img/am62lx_u-boot.img.svg new file +143 -0

143 lines not on this page · raw message

doc/board/ti/k3.rst +1 -0
index b7b69949af16..56df72b656bd 100644
@@ -33,6 +33,7 @@ K3 Based SoCs
    am62ax_sk
    am62dx_evm
    am62x_sk
+   am62lx_evm
    am62px_sk
    am6254atl_sk
    am64x_evm
Signature · 1 line
2.54.0