]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
8 weeks agoram: k3-ddrss: Add support for partial inline ECC in multi-DDR systems
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:23 +0000 (18:13 +0530)] 
ram: k3-ddrss: Add support for partial inline ECC in multi-DDR systems

The existing approach does not account for interleaving in the DDRs when
setting up regions. There is support for MSMC to calculate the regions
for each DDR, so modify k3_ddrss_probe to set the regions accordingly
for multi-DDR systems.

Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoram: k3-ddrss: Add support for MSMC calculation of DDR inline ECC regions
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:22 +0000 (18:13 +0530)] 
ram: k3-ddrss: Add support for MSMC calculation of DDR inline ECC regions

Add support for calculation of the protected regions for each DDR in
multi-DDR systems. Since MSMC is the parent node of the individual DDRs
as well as responsible for their interleaving, it only makes sense for
MSMC to contain the logic for dividing the regions.

Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoram: k3-ddrss: Add support for number of controllers under MSMC
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:21 +0000 (18:13 +0530)] 
ram: k3-ddrss: Add support for number of controllers under MSMC

In K3 multi-DDR systems, the MSMC is responsible for the interleave
mechanism across all the DDR controllers. Add support for MSMC to obtain
the number of controllers it's responsible for using the DT.

Reviewed-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoram: k3-ddrss: Add CONFIG_K3_MULTI_DDR
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:20 +0000 (18:13 +0530)] 
ram: k3-ddrss: Add CONFIG_K3_MULTI_DDR

As we increase the functionalities that the K3 DDRSS sub-system support,
it is becoming more evident that the same logic cannot apply to both
single as well as multiple DDR controller devices. Add
CONFIG_K3_MULTI_DDR to be used to differentiate between the two.

Reviewed-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoram: k3-ddrss: Add support for a partial inline ECC region
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:19 +0000 (18:13 +0530)] 
ram: k3-ddrss: Add support for a partial inline ECC region

Instead of defaulting to choosing the entire DDR region when enabling
inline ECC, allow picking of a range within the DDR space using DT to
enable.

It expects such a node within the memory node, in the absence of which
we resort to enabling inline ECC for the entire DDR region:

inline_ecc: protected@9e780000 {
        device_type = "ecc";
        reg = <0x9e780000 0x0080000>;
        bootph-all;
};

Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoram: k3-ddrss: Add comment about ecc_reserved_space
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:18 +0000 (18:13 +0530)] 
ram: k3-ddrss: Add comment about ecc_reserved_space

The reserved space needed for storing the parity remains the same no
matter the size of the region that is being protected. Add this as a
comment for better code understanding.

Reviewed-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoram: k3-ddrss: s/K3_DDRSS_MAX_ECC_REGIONS/K3_DDRSS_MAX_ECC_REG
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:17 +0000 (18:13 +0530)] 
ram: k3-ddrss: s/K3_DDRSS_MAX_ECC_REGIONS/K3_DDRSS_MAX_ECC_REG

To prevent checkpatch warning once we start using this macro more
frequently, shorten the length of it. While at it, also move the
structure k3_ddrss_ecc_region above k3_msmc so that future patches can
have it as a member of k3_msmc.

Reviewed-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoram: k3-ddrss: Use DDR address instead of system address for ecc_regions
Neha Malcom Francis [Tue, 12 Aug 2025 12:43:16 +0000 (18:13 +0530)] 
ram: k3-ddrss: Use DDR address instead of system address for ecc_regions

Let ecc_regions[x].start reflect the start of the ECC region in terms of
DDR addressing rather than system addressing. This will make it easier
to extend the usage of the same ecc_regions structure for multi-DDR
systems as well.

Reviewed-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
8 weeks agoMerge patch series "soc: ti: k3-navss-ringacc: Fix Smatch reported issues"
Tom Rini [Tue, 19 Aug 2025 17:26:16 +0000 (11:26 -0600)] 
Merge patch series "soc: ti: k3-navss-ringacc: Fix Smatch reported issues"

Andrew Goodbody <andrew.goodbody@linaro.org> says:

Smatch reported issues including a derference of a pointer before its
NULL check and the use of an uninitialised variable.

Link: https://lore.kernel.org/r/20250812-k3-navss-v1-0-a88f7db58998@linaro.org
8 weeks agosoc: ti: k3-navss-ringacc: Do not use uninitialised variable
Andrew Goodbody [Tue, 12 Aug 2025 10:13:50 +0000 (11:13 +0100)] 
soc: ti: k3-navss-ringacc: Do not use uninitialised variable

In k3_nav_ringacc_probe_dt there can be no error code returned from
dev_read_u32_default so ret is not assigned to and should not be used.
Remove the use of ret from the dev_err call as it is unitialised.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agosoc: ti: k3-navss-ringacc: NULL check before dereference
Andrew Goodbody [Tue, 12 Aug 2025 10:13:49 +0000 (11:13 +0100)] 
soc: ti: k3-navss-ringacc: NULL check before dereference

Move the first dereference of ring to after the NULL check has occurred.
This will prevent any possible dereference of NULL.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agoMerge patch series "remoteproc: k3: Fix two Smatch issue reports"
Tom Rini [Tue, 19 Aug 2025 17:26:03 +0000 (11:26 -0600)] 
Merge patch series "remoteproc: k3: Fix two Smatch issue reports"

Andrew Goodbody <andrew.goodbody@linaro.org> says:

Smatch reported two issues, firstly attempting to compare a u8 to a 16
bit macro and secondly a potentially uninitialised variable.

Link: https://lore.kernel.org/r/20250808-remoteproc_tik3-v1-0-f7dae0b177b2@linaro.org
8 weeks agoremoteproc: k3-r5: Ensure ret is initialised
Andrew Goodbody [Fri, 8 Aug 2025 12:00:23 +0000 (13:00 +0100)] 
remoteproc: k3-r5: Ensure ret is initialised

In k3_r5f_split_reset and k3_r5f_unprepare ret may not have been
assigned to before the code reaches the return ret at the function exit.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agoremoteproc: ti_k3_arm64: Cannot set or compare u8 to 16bits
Andrew Goodbody [Fri, 8 Aug 2025 12:00:22 +0000 (13:00 +0100)] 
remoteproc: ti_k3_arm64: Cannot set or compare u8 to 16bits

In the struct ti_sci_proc the fields proc_id and host_id are declared as
u8 so cannot be set to nor compared with a macro defined with a value
using 16 bits. Change the macro to only use 8 bits to make the code work
as expected.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agosandbox: Add generic asm/atomic.h
Tom Rini [Tue, 12 Aug 2025 17:59:08 +0000 (11:59 -0600)] 
sandbox: Add generic asm/atomic.h

In order to compile code that uses <asm/atomic.h> on sandbox, we must
provide this header. RISC-V shows us today how to do so with the generic
header implementation, so copy that.

Signed-off-by: Tom Rini <trini@konsulko.com>
8 weeks agosandbox: Improve dummy local_irq_save implementation
Tom Rini [Tue, 12 Aug 2025 17:59:07 +0000 (11:59 -0600)] 
sandbox: Improve dummy local_irq_save implementation

Normally, local_save_flags is used as part of the local_irq_* macros, so
remove that as it's unused. Make local_irq_save do something to the
passed variable so that it won't trigger unused variable warnings later.

Signed-off-by: Tom Rini <trini@konsulko.com>
8 weeks agosound: rt5677: Cannot test unsigned for being negative
Andrew Goodbody [Tue, 12 Aug 2025 10:36:53 +0000 (11:36 +0100)] 
sound: rt5677: Cannot test unsigned for being negative

In rt5677_bic_or the call to rt5677_i2c_read returns an int so old
should also be an int to receive that value and then be able to test it
for being negative which would indicate an error.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agotools: aisimage: Make aisimage_check_params() static
Ilias Apalodimas [Tue, 12 Aug 2025 06:10:20 +0000 (09:10 +0300)] 
tools: aisimage: Make aisimage_check_params() static

We are trying to enable -Wmissing-prototypes and this functiion is only
used locally. Mark it as static.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
8 weeks agotools: fit_info: Make usage() static
Ilias Apalodimas [Tue, 12 Aug 2025 06:03:25 +0000 (09:03 +0300)] 
tools: fit_info: Make usage() static

The function is only used locally so declare it as static.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
8 weeks agopinctrl: nexell: Cannot test unsigned to be negative
Andrew Goodbody [Thu, 7 Aug 2025 09:16:55 +0000 (10:16 +0100)] 
pinctrl: nexell: Cannot test unsigned to be negative

In s5pxx18_pinctrl_set_state testing count to be negative will always
fail as count is unsigned despite receiving the return value of a
function that returns an int. Change count and idx to be of type int to
allow the test to work as expected and remove the need for any implicit
casts. Also change pin to be u32 which is what all called functions
expect.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agoMerge patch series "test/py: Correctly restore the DT after capsule tests"
Tom Rini [Mon, 18 Aug 2025 22:42:13 +0000 (16:42 -0600)] 
Merge patch series "test/py: Correctly restore the DT after capsule tests"

This series from Ilias Apalodimas <ilias.apalodimas@linaro.org> fixes a
number of issues with running the EFI capsule tests in CI.

Link: https://lore.kernel.org/r/20250807080819.1058411-1-ilias.apalodimas@linaro.org
8 weeks agotest/py: Fix capsule update tests
Ilias Apalodimas [Thu, 7 Aug 2025 08:08:17 +0000 (11:08 +0300)] 
test/py: Fix capsule update tests

Capsule updates tests have been skipped since
commit 659f97eb1fc3 ("scripts/Makefile.lib: EFI: Use capsule CRT instead of ESL file")

Remove that check since it's not needed anymore and re-enable the tests.

Fixes: 659f97eb1fc3 ("scripts/Makefile.lib: EFI: Use capsule CRT instead of ESL file")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
8 weeks agotest/py: Fix race conditions on EFI capsule tests
Ilias Apalodimas [Thu, 7 Aug 2025 08:08:16 +0000 (11:08 +0300)] 
test/py: Fix race conditions on EFI capsule tests

efi_capsule_data() is called in each of the EFI tests to create and
setup the files we need. However, it also recreates the spi.bin file
that holds the SPI flash contents we rely on for the test validation.

This leads to weird errors since reading from the flash returns 0,
instead of the expected value if the file has been recreated.

Always restart our sandbox instance if the files are recreated.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
8 weeks agotest/py: Read from the correct offset when initializing capsules
Ilias Apalodimas [Thu, 7 Aug 2025 08:08:15 +0000 (11:08 +0300)] 
test/py: Read from the correct offset when initializing capsules

The current code writes values to a flash offset defined by a function
argument. However, when reading it back we always read from a static
offset. Adjust the reads to use the correct offset.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
8 weeks agotest/py: Correctly restore the DT after capsule tests
Ilias Apalodimas [Thu, 7 Aug 2025 08:08:14 +0000 (11:08 +0300)] 
test/py: Correctly restore the DT after capsule tests

Some capsule tests are changing the sandbox DT to test various features,
e.g authenticated capsule updates, versioning support etc. However, no one
restores the original DT and the CI pops errors looking like

/u-boot
Bloblist at 100 not found (err=-2)
Failed to find FDT file '/tmp/sandbox/persistent-data/scratch/EFI/CapsuleTestData/test_ver.dtb'
initcall_run_f(): initcall fdtdec_setup() failed

if sandbox is restarted.

So let's restore the proper DT after done with the capsule testing.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
8 weeks agoMerge patch series "modify npcm7xx/8xx feature and bug fixed"
Tom Rini [Mon, 18 Aug 2025 22:41:50 +0000 (16:41 -0600)] 
Merge patch series "modify npcm7xx/8xx feature and bug fixed"

Jim Liu <jim.t90615@gmail.com> says:

modify npcm7xx/8xx feature and bug fixed

Link: https://lore.kernel.org/r/20250807053224.2169557-1-JJLIU0@nuvoton.com
8 weeks agoconfigs: npcm: remove CONFIG_SYS_SKIP_UART_INIT
Jim Liu [Thu, 7 Aug 2025 05:32:24 +0000 (13:32 +0800)] 
configs: npcm: remove CONFIG_SYS_SKIP_UART_INIT

Set the uart clock frequency according to dts by default.
If CONFIG_SYS_SKIP_UART_INIT is not enabled, no need to
do board_set_console to change the console bootarg.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
8 weeks agomisc: npcm_host_intf: Disable pending KCS/BPC interrupts
Jim Liu [Thu, 7 Aug 2025 05:32:23 +0000 (13:32 +0800)] 
misc: npcm_host_intf: Disable pending KCS/BPC interrupts

If there is an unhandled KCS/BPC pending interrupt after reboot,
the KCS/BPC Linux driver may trigger interrupts immediately upon
registering the irq. However, since the driver is not yet initialized
to handle them, this can lead to unexpected behavior.

To prevent this, disable KCS/BPC interrupts in u-boot to avoid pending
interrupts from being raised before the Linux driver is fully initialized.

Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
8 weeks agomisc: npcm_host_intf: Add Arbel eSPI workaround
Jim Liu [Thu, 7 Aug 2025 05:32:22 +0000 (13:32 +0800)] 
misc: npcm_host_intf: Add Arbel eSPI workaround

Enabling an eSPI channel(e.g. Peripheral Channel) during
an eSPI transaction might cause the BMC eSPI module to
transition to a wrong state and therefore respond with
FATAL_ERROR on incoming transaction.
Add workaround to avoid the module getting into the wrong
state.

Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
8 weeks agoarm: dts: nuvoton: Change timer node
Jim Liu [Thu, 7 Aug 2025 05:32:21 +0000 (13:32 +0800)] 
arm: dts: nuvoton: Change timer node

npcm_timer driver is changed to use SECCNT counter.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
8 weeks agoi2c: npcm: fix consecutive dm_i2c_read/write error
Stanley Chu [Thu, 7 Aug 2025 05:32:20 +0000 (13:32 +0800)] 
i2c: npcm: fix consecutive dm_i2c_read/write error

When doing a dm_i2c_read followed by a dm_i2c_write, the subsequent
transaction may get npcm_i2c_check_sda error because the module is
still busy in STOP condition in previous dm_i2c_read.
Always check and wait for module to be out of busy before starting
an i2c transaction.

Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
8 weeks agopinctrl: npcm8xx: add support for setting VCD input source
Stanley Chu [Thu, 7 Aug 2025 05:32:19 +0000 (13:32 +0800)] 
pinctrl: npcm8xx: add support for setting VCD input source

Add pinmux for the VCD input to use the HSYNC signal.

Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
8 weeks agoarm: dts: npcm8xx: add pinmux for VCD input
Stanley Chu [Thu, 7 Aug 2025 05:32:18 +0000 (13:32 +0800)] 
arm: dts: npcm8xx: add pinmux for VCD input

Add pinmux to select the HSYNC signal as the VCD input.

Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
8 weeks agopinctrl: stmfx: Remove duplicated code
Andrew Goodbody [Thu, 7 Aug 2025 10:04:03 +0000 (11:04 +0100)] 
pinctrl: stmfx: Remove duplicated code

In stmfx_read_reg there is duplicated code to detect ret < 0 and return
ret if so. Remove one version of it.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agopinctrl: single: Remove unreachable code
Andrew Goodbody [Thu, 7 Aug 2025 10:04:02 +0000 (11:04 +0100)] 
pinctrl: single: Remove unreachable code

In single_read there is a switch block with a default label. All cases
in the switch block, including the default, return directly. So any code
following the switch block is unreachable. Remove the unreachable code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agoram: k3-ddrss: Use logical and not bitwise
Andrew Goodbody [Fri, 8 Aug 2025 10:47:43 +0000 (11:47 +0100)] 
ram: k3-ddrss: Use logical and not bitwise

The test for the interrupt LPDDR4_INTR_BIST_DONE is using a bitwise and
but the test is simple logic so use the more appropriate logical and.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agophy: ti: j721e-wiz: Set error code before goto
Andrew Goodbody [Wed, 6 Aug 2025 17:03:26 +0000 (18:03 +0100)] 
phy: ti: j721e-wiz: Set error code before goto

In j721e_wiz_probe the test for too many lanes jumps to the error exit
path without assigning an error code which could lead to calling code
silently ignoring the failure. Set the error code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agophy: keystone-usb: Do not negate return code
Andrew Goodbody [Wed, 6 Aug 2025 15:47:46 +0000 (16:47 +0100)] 
phy: keystone-usb: Do not negate return code

In keystone_usb_init the return code from psc_enable_module should be
returned as is rather than being negated.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agotimer: Tighten some timer driver dependencies
Tom Rini [Wed, 6 Aug 2025 14:55:03 +0000 (08:55 -0600)] 
timer: Tighten some timer driver dependencies

A few timer drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
8 weeks agotimer: fttmr010_timer: Remove unused driver
Tom Rini [Wed, 6 Aug 2025 14:55:02 +0000 (08:55 -0600)] 
timer: fttmr010_timer: Remove unused driver

This driver is unused. Remove it.

Signed-off-by: Tom Rini <trini@konsulko.com>
8 weeks agonet: ti: icssg: Remove impossible test
Andrew Goodbody [Wed, 6 Aug 2025 10:56:58 +0000 (11:56 +0100)] 
net: ti: icssg: Remove impossible test

port_id is an unsigned variable so cannot be negative. Remove the test
checking for port_id being less than 0.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agonet: ti: am65-cpsw-nuss: Initialise ret
Andrew Goodbody [Wed, 6 Aug 2025 10:43:47 +0000 (11:43 +0100)] 
net: ti: am65-cpsw-nuss: Initialise ret

In am65_cpsw_phy_init it is not certain that ret will be assigned to
before it reaches the 'return ret' statement. Initialise ret to ensure
that ret is valid.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
8 weeks agonet: phy: cortina: Ensure memory allocated is freed
Andrew Goodbody [Tue, 5 Aug 2025 16:10:26 +0000 (17:10 +0100)] 
net: phy: cortina: Ensure memory allocated is freed

In cs4340_upload_firmware a buffer is allocated with malloc but this is
never freed. The pointer to this buffer, addr, is not even kept
unchanged. But in some cases addr is not a buffer allocated by malloc.
Introduce the use of another pointer to keep track of the buffer and to
know if it needs to be freed.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
2 months agoram: Tighten some ram driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:54:23 +0000 (15:54 -0600)] 
ram: Tighten some ram driver dependencies

A few ram drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoserial: linflexuart: Remove unused driver
Tom Rini [Mon, 4 Aug 2025 21:57:14 +0000 (15:57 -0600)] 
serial: linflexuart: Remove unused driver

This driver is unused. Remove it.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoserial: Tighten some serial driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:57:13 +0000 (15:57 -0600)] 
serial: Tighten some serial driver dependencies

A few serial drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agortc: pl031: Correct function type of pl031_write_reg
Tom Rini [Mon, 4 Aug 2025 21:57:12 +0000 (15:57 -0600)] 
rtc: pl031: Correct function type of pl031_write_reg

When calling writel we do not have a return value to check or pass
along. This function should therefore be void and not return what writel
gives us.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agortc: mc146818: Fix building on more architectures
Tom Rini [Mon, 4 Aug 2025 21:57:11 +0000 (15:57 -0600)] 
rtc: mc146818: Fix building on more architectures

This driver makes calls to in8/out8(). On PowerPC these are separate and
real calls but elsewhere they are able to simply be wrappers to
inb/outb. Rework this logic to be able to build this driver on more
platforms.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agortc: Tighten some rtc driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:57:10 +0000 (15:57 -0600)] 
rtc: Tighten some rtc driver dependencies

The Marvell RTC rtc driver cannot build without access to some
platform specific header files. Express that requirements in Kconfig as
well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agosysreset: Tighten some sysreset driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:57:19 +0000 (15:57 -0600)] 
sysreset: Tighten some sysreset driver dependencies

The MPC83xx sysreset driver cannot build without access to some
architecture specific header files. Express that requirements in Kconfig
as well.

Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agosound: Tighten some sound driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:57:16 +0000 (15:57 -0600)] 
sound: Tighten some sound driver dependencies

A few sound drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agosoc: Tighten some soc driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:57:15 +0000 (15:57 -0600)] 
soc: Tighten some soc driver dependencies

The Qualcomm Snapdragon "SoC" driver cannot build without access to some
ARM64 specific functionality. Express that requirements in Kconfig as
well.

Reviewed-by: Casey Connolly <casey.connolly@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoremoteproc: Tighten some remoteproc driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:54:24 +0000 (15:54 -0600)] 
remoteproc: Tighten some remoteproc driver dependencies

The TI IPU remoteproc driver cannot build without access to some
platform specific header files. Express that requirements in Kconfig as
well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoreset: Tighten some reset driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:54:25 +0000 (15:54 -0600)] 
reset: Tighten some reset driver dependencies

A few reset drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agopwm: pwm-aspeed: Add missing <linux/log2.h> to pwm-aspeed.c
Tom Rini [Mon, 4 Aug 2025 21:53:54 +0000 (15:53 -0600)] 
pwm: pwm-aspeed: Add missing <linux/log2.h> to pwm-aspeed.c

This driver references the logarithmic macros while relying on an
indirection inclusion of <linux/log2.h>. Add the missing include
directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agopwm: Tighten some pwm driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:53:53 +0000 (15:53 -0600)] 
pwm: Tighten some pwm driver dependencies

A few pwm drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agopinctrl: Tighten some pinctrl driver dependencies
Tom Rini [Mon, 4 Aug 2025 21:52:53 +0000 (15:52 -0600)] 
pinctrl: Tighten some pinctrl driver dependencies

A few pinctrl drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agosm: Rework the Kconfig logic here
Tom Rini [Mon, 4 Aug 2025 21:51:11 +0000 (15:51 -0600)] 
sm: Rework the Kconfig logic here

The symbol "SM" is a library symbol and should not be prompted for. It
should be selected by the drivers that use it. In this case we need to
add a SANDBOX_SM symbol for the sandbox driver. The meson SM driver
cannot build on other platforms, so add the appropriate dependency.

Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agosandbox: Add an additional dummy sync macro
Tom Rini [Mon, 4 Aug 2025 21:50:08 +0000 (15:50 -0600)] 
sandbox: Add an additional dummy sync macro

There are some drivers which call a "dmb" for a type of sync. Add that
as well to sandbox.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agonet: e1000: Free temporary buffer on exit
Andrew Goodbody [Mon, 4 Aug 2025 15:32:51 +0000 (16:32 +0100)] 
net: e1000: Free temporary buffer on exit

In do_e1000_spi_checksum a temporary buffer is allocated but never
freed. Add code to free on exit. Also refactor the code to make the exit
code common.

This issue found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
2 months agorockchip: add /chosen/bootsource to U-Boot proper DT
Quentin Schulz [Wed, 30 Jul 2025 12:03:18 +0000 (14:03 +0200)] 
rockchip: add /chosen/bootsource to U-Boot proper DT

U-Boot typically can be loaded from different storage media, such as
eMMC, SD card, SPI flash, but also from non-persistent media such as USB
(via proprietary protocols loading directly into SRAM, or fastboot, DFU,
 etc..), JTAG, ...

This information is usually reported by the BootROM via some proprietary
mechanism (some specific address in registers/DRAM for example). For
Rockchip, that information is stored in a register
(BROM_BOOTSOURCE_ID_ADDR).

While we already have the information about which medium was used to
load U-Boot proper from SPL (via /chosen/u-boot,spl-boot-device), this
new property represents the medium used to load U-Boot first phase
(depending on configuration, can be VPL/TPL/SPL) which absolutely may
differ from the one used to load U-Boot proper!

It would be useful to know which medium was used to load the first phase
of U-Boot, for example to check fallback mechanisms (proper loaded from
a different medium than first phase) are actually working.

For now, this only applies to Rockchip's U-Boot proper DT but could be
applied to the kernel's as well and possibly for other architectures or
vendors.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
2 months agopinctrl: sx150x: reformat and fixup Copyright header
Neil Armstrong [Wed, 30 Jul 2025 08:03:39 +0000 (10:03 +0200)] 
pinctrl: sx150x: reformat and fixup Copyright header

The Linux pinctrl-sx150 was originally written as a GPIO driver
and fully rewritten by me as a Pinctrl driver and extended by
other contributors.

Fixup the Copyright header style and correctly report the
Copyright headers from the Linux driver.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2 months agopinctrl: gpio: sx150x: fix compilation warnings.
Chali Anis [Wed, 30 Jul 2025 02:19:08 +0000 (22:19 -0400)] 
pinctrl: gpio: sx150x: fix compilation warnings.

Fixes: 5451504256d3 ("pinctrl: gpio: sx150x: add Semtech SX150x I2C GPIO expander and pinctrl driver")
Signed-off-by: Chali Anis <chalianis1@gmail.com>
2 months agoarm: dts: mediatek: remove useless SPI property must_tx
Shiji Yang [Sun, 27 Jul 2025 05:35:13 +0000 (13:35 +0800)] 
arm: dts: mediatek: remove useless SPI property must_tx

This property is not documented. And the "mediatek,ipm-spi" SPI
driver doesn't check it.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 months agogpio: dwapb_gpio: Using wrong function to free memory
Andrew Goodbody [Fri, 25 Jul 2025 11:48:22 +0000 (12:48 +0100)] 
gpio: dwapb_gpio: Using wrong function to free memory

In gpio_dwapb_bind plat is used to reference memory allocated by
devm_kcalloc but it is attempted to be freed using kfree. Instead free
this memory using the correct devm_kfree function.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
2 months agoclk: cdce9xx: Fix use of dev_read_u32_default
Andrew Goodbody [Fri, 25 Jul 2025 10:41:12 +0000 (11:41 +0100)] 
clk: cdce9xx: Fix use of dev_read_u32_default

The function dev_read_u32_default does not return an error and the
variable 'val' is unsigned so testing for >= 0 will always be true. It
looks like the code was attempting to return -1 if xtal-load-pf was not
present but that cannot work. Instead use dev_read_u32 which returns an
error code separately from writing the value into the passed pointer.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Fixes: 260777fc2333 ("clk: cdce9xx: add support for cdce9xx clock synthesizer")
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
2 months agosandbox: Add more dummy functions to mimic other architectures
Tom Rini [Fri, 18 Jul 2025 01:15:52 +0000 (19:15 -0600)] 
sandbox: Add more dummy functions to mimic other architectures

This adds more common functions found on other architectures that will
allow for more compile-testing of drivers. These are either dummy
functions as we do not need them or mappings to existing functions,
similar to how other architectures handle it.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoarm: bcm235xx: Remove this SoC
Tom Rini [Fri, 18 Jul 2025 01:15:48 +0000 (19:15 -0600)] 
arm: bcm235xx: Remove this SoC

As there are no platforms for this SoC, remove the code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agonvme: Tighten requirements on NVME_APPLE driver
Tom Rini [Fri, 18 Jul 2025 01:15:30 +0000 (19:15 -0600)] 
nvme: Tighten requirements on NVME_APPLE driver

This driver requires Apple rtkit headers in order to build.  Express
that requirement in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agopci: Tighten some PCI controller dependencies
Tom Rini [Fri, 18 Jul 2025 01:15:26 +0000 (19:15 -0600)] 
pci: Tighten some PCI controller dependencies

A large number of PCI controllers cannot build without access to some
platform specific header files. Express those requirements in Kconfig as
well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agopci: Add missing <linux/sizes.h> to pcie_iproc.c
Tom Rini [Fri, 18 Jul 2025 01:15:21 +0000 (19:15 -0600)] 
pci: Add missing <linux/sizes.h> to pcie_iproc.c

This driver references the SZ_ macros while relying on an indirection
inclusion of <linux/sizes.h>. Add the missing include directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoMerge patch series "arch: arm: dts: k3-am625-phyboard-lyra: Disable unused watchdogs...
Tom Rini [Mon, 11 Aug 2025 20:54:10 +0000 (14:54 -0600)] 
Merge patch series "arch: arm: dts: k3-am625-phyboard-lyra: Disable unused watchdogs in U-Boot"

This series from Wadim Egorov <w.egorov@phytec.de> cleans up how
watchdogs are handled on some phytec TI K3 platforms.

Link: https://lore.kernel.org/r/20250730154217.1116751-1-w.egorov@phytec.de
2 months agoinclude: env: phytec: k3: Add deprecation warning to legacy boot flow
Wadim Egorov [Wed, 30 Jul 2025 15:42:17 +0000 (17:42 +0200)] 
include: env: phytec: k3: Add deprecation warning to legacy boot flow

We switched towards standard boot with still keeping a fallback
using legacy boot command alive. Add a deprecation warning to
make it more clear that we will remove it in future versions.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 months agoboard: phytec: phycore-am62ax: Add watchdog start to bootcmd
Wadim Egorov [Wed, 30 Jul 2025 15:42:16 +0000 (17:42 +0200)] 
board: phytec: phycore-am62ax: Add watchdog start to bootcmd

Allows run-time control over watchdog auto-start and the timeout via
setting the environment variable watchdog_timeout_ms. A value of zero
means "do not start". Use CONFIG_WATCHDOG_TIMEOUT_MSECS as initial value.
Users can enable the watchdog to monitor the boot process until userspace
or OS takes over to serve the watchdog.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 months agoboard: phytec: phycore-am64x: Add watchdog start to bootcmd
Wadim Egorov [Wed, 30 Jul 2025 15:42:15 +0000 (17:42 +0200)] 
board: phytec: phycore-am64x: Add watchdog start to bootcmd

Allows run-time control over watchdog auto-start and the timeout via
setting the environment variable watchdog_timeout_ms. A value of zero
means "do not start". Use CONFIG_WATCHDOG_TIMEOUT_MSECS as initial value.
Users can enable the watchdog to monitor the boot process until userspace
or OS takes over to serve the watchdog.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 months agoboard: phytec: phycore-am62x: Add watchdog start to bootcmd
Wadim Egorov [Wed, 30 Jul 2025 15:42:14 +0000 (17:42 +0200)] 
board: phytec: phycore-am62x: Add watchdog start to bootcmd

Allows run-time control over watchdog auto-start and the timeout via
setting the environment variable watchdog_timeout_ms. A value of zero
means "do not start". Use CONFIG_WATCHDOG_TIMEOUT_MSECS as initial value.
Users can enable the watchdog to monitor the boot process until userspace
or OS takes over to serve the watchdog.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 months agoarch: arm: dts: k3-am642-phyboard-electra: Disable unused watchdogs in U-Boot
Wadim Egorov [Wed, 30 Jul 2025 15:42:13 +0000 (17:42 +0200)] 
arch: arm: dts: k3-am642-phyboard-electra: Disable unused watchdogs in U-Boot

The watchdog driver probes all available watchdog devices.
This causes SMP boot errors when bringing up secondary CPUs.
In our setup, only a single watchdog is needed to monitor the
boot process until userspace or the OS takes over. Disable all
unnecessary watchdog devices in U-Boot to avoid conflicts
during CPU bring-up.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 months agoarch: arm: dts: k3-am62a7-phyboard-lyra: Disable unused watchdogs in U-Boot
Wadim Egorov [Wed, 30 Jul 2025 15:42:12 +0000 (17:42 +0200)] 
arch: arm: dts: k3-am62a7-phyboard-lyra: Disable unused watchdogs in U-Boot

The watchdog driver probes all available watchdog devices.
This causes SMP boot errors when bringing up secondary CPUs.
In our setup, only a single watchdog is needed to monitor the
boot process until userspace or the OS takes over. Disable all
unnecessary watchdog devices in U-Boot to avoid conflicts
during CPU bring-up.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 months agoarch: arm: dts: k3-am625-phyboard-lyra: Disable unused watchdogs in U-Boot
Wadim Egorov [Wed, 30 Jul 2025 15:42:11 +0000 (17:42 +0200)] 
arch: arm: dts: k3-am625-phyboard-lyra: Disable unused watchdogs in U-Boot

The watchdog driver probes all available watchdog devices.
This causes SMP boot errors when bringing up secondary CPUs.
In our setup, only a single watchdog is needed to monitor the
boot process until userspace or the OS takes over. Disable all
unnecessary watchdog devices in U-Boot to avoid conflicts
during CPU bring-up.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
2 months agoPrepare v2025.10-rc2 v2025.10-rc2
Tom Rini [Mon, 11 Aug 2025 19:47:46 +0000 (13:47 -0600)] 
Prepare v2025.10-rc2

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoconfigs: Resync with savedefconfig
Tom Rini [Mon, 11 Aug 2025 18:05:31 +0000 (12:05 -0600)] 
configs: Resync with savedefconfig

Resync all defconfig files using qconfig.py

Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoarm: socfpga: Correct how we set BOOTFILE
Tom Rini [Mon, 11 Aug 2025 17:58:25 +0000 (11:58 -0600)] 
arm: socfpga: Correct how we set BOOTFILE

In order to set the BOOTFILE symbol we first need to have USE_BOOTFILE
be set, or some of the logic might not work as expected later on when
building. Second, defaults like this belong with the symbol itself.

Fixes: da595d236b97 ("include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile")
Signed-off-by: Tom Rini <trini@konsulko.com>
2 months agoMerge tag 'u-boot-socfpga-next-20250808' of https://source.denx.de/u-boot/custodians...
Tom Rini [Fri, 8 Aug 2025 17:13:41 +0000 (11:13 -0600)] 
Merge tag 'u-boot-socfpga-next-20250808' of https://source.denx.de/u-boot/custodians/u-boot-socfpga

This pull request introduces initial U-Boot support for Agilex7 M-series, along
with several enhancements and cleanups across existing Agilex platforms. Key
changes include new board support, DDR driver additions, updated device trees,
and broader SoCFPGA SPL improvements.

Highlights:

- Agilex7 M-series bring-up:
  - Basic DT support and board initialization for Agilex7 M-series SoC and
    SoCDK.
  - New sdram_agilex7m DDR driver with UIBSSM mailbox support and HBM support.
  - Clock driver support for Agilex7 M-series.
  - New defconfig: socfpga_agilex7m_defconfig.
- Agilex and Agilex5 enhancements:
  - Improved SPL support: ASYNC interrupt enabling, system manager init
    refactor, and cold scratch register usage.
  - Updated firewall probing and watchdog support in SPL.
  - Cleaned up DDR code, added secure region support for ATF, and improved warm
    reset handling.
- Device Tree and config updates:
  - Migration to upstream Linux DT layout for Agilex platforms.
  - Consolidated socfpga_agilex_defconfig and removed deprecated configs.
  - Platform-specific environment variables for Distro Boot added.
- Driver fixes and cleanups:
  - dwc_eth_xgmac and clk-agilex cleanup and improvements.
  - Several coverity and style fixes.

Contributions in this PR are from Alif Zakuan Yuslaimi, Tingting Meng, and
Andrew Goodbody.  This patch set has been tested on Agilex 5 devkit, Agilex
devkit and Agilex7m devkit.

Passing all pipeline tests at SoCFPGA U-boot custodian
https://source.denx.de/u-boot/custodians/u-boot-socfpga/-/pipelines/27318

2 months agoMerge tag 'efi-2025-10-rc2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Tom Rini [Fri, 8 Aug 2025 17:09:42 +0000 (11:09 -0600)] 
Merge tag 'efi-2025-10-rc2' of https://source.denx.de/u-boot/custodians/u-boot-efi

Pull request efi-2025-10-rc2

Documentation:

* Describe running U-Boot as a pflash image on RISC-V QEMU
* Correct the description of the bootph-verify device-tree property

UEFI:

* In mkeficapsule fix a resource leak in read_bin_file()
* Support loading a Linux initial RAM disk with the bootefi command.

2 months agoMAINTAINERS: update email address of Heiko Schocher
Heiko Schocher [Fri, 8 Aug 2025 11:40:14 +0000 (13:40 +0200)] 
MAINTAINERS: update email address of Heiko Schocher

use the new email address for community work.

While at it, cleanup git shortlog output, by adding
fixes in .mailmap

Signed-off-by: Heiko Schocher <hs@nabladev.com>
2 months agoMerge tag 'u-boot-imx-master-20250808' of https://gitlab.denx.de/u-boot/custodians...
Tom Rini [Fri, 8 Aug 2025 14:33:19 +0000 (08:33 -0600)] 
Merge tag 'u-boot-imx-master-20250808' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx

CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/27314

- Several Smatch reported fixes.
- Enable the temperature command on imx8ulp-evk.
- Fix mx8mm_fracpll_tbl.
- Make optee packaging optional for imx8m.
- Reuse and export low_drive_freq_update() on imx9.
- Enable USB OTG ID pin pull up in SPL on dh-imx6.

2 months agoconfigs: Add defconfig for Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:25:01 +0000 (18:25 -0700)] 
configs: Add defconfig for Agilex7 M-series

Add defconfig for Agilex7 M-series.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoarch: arm: dts: Update Makefile for new platform Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:25:00 +0000 (18:25 -0700)] 
arch: arm: dts: Update Makefile for new platform Agilex7 M-series

Update Makefile to support Agilex7 M-series platform enablement.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoarch: arm: mach-socfpga: Update kconfig for new platform Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:24:59 +0000 (18:24 -0700)] 
arch: arm: mach-socfpga: Update kconfig for new platform Agilex7 M-series

Update Kconfig for new platform Agilex7 M-series.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoddr: altera: soc64: Fix dram size calculation in clamshell mode
Tingting Meng [Mon, 4 Aug 2025 01:24:58 +0000 (18:24 -0700)] 
ddr: altera: soc64: Fix dram size calculation in clamshell mode

Fix wrong memory size calculation in clamshell mode

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoddr: altera: soc64: Clean up bit-shift by zero bit
Tingting Meng [Mon, 4 Aug 2025 01:24:57 +0000 (18:24 -0700)] 
ddr: altera: soc64: Clean up bit-shift by zero bit

Clean up bit-shift by zero bit

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoddr: altera: Add DDR driver for Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:24:56 +0000 (18:24 -0700)] 
ddr: altera: Add DDR driver for Agilex7 M-series

This is for new platform enablement for Agilex7 M-series.
Add DDR driver for Agilex7 M-series. This driver is designed to support
DDR and HBM memory. The official HBM handoff is not ready yet, therefore
hardcoded handoff is used for HBM driver validation on mUDV board.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoddr: altera: Add uibssm mailbox support for Agilex7 M-series with HBM
Tingting Meng [Mon, 4 Aug 2025 01:24:55 +0000 (18:24 -0700)] 
ddr: altera: Add uibssm mailbox support for Agilex7 M-series with HBM

Add uibssm mailbox driver for Agilex7 M-series. HPS will interact with UIB
and HBM subsystem through software defined mailbox interface.
HPS can retrieve HBM memory interface calibration status, UIB
configuration, memory interfae configuration, trigger calibration and etc
with the list of supported mailbox command type and opcode.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoclk: altera: Add clock support for Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:24:54 +0000 (18:24 -0700)] 
clk: altera: Add clock support for Agilex7 M-series

Agilex7 M-series reuse the clock driver from Agilex.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoinclude: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile
Tingting Meng [Mon, 4 Aug 2025 01:24:53 +0000 (18:24 -0700)] 
include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile

ATF boot flow (SPL->ATF->U-Boot Proper->OS) boot to OS via kernel.itb file
using bootm command.

Change to use CONFIG_SPL_ATF to differentiate the bootfile of default
environment variable. We shouldn't use CONFIG_FIT because it is enabled
by default for U-Boot Proper.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoinclude: configs: Add config header file for Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:24:52 +0000 (18:24 -0700)] 
include: configs: Add config header file for Agilex7 M-series

Add config header file for new platform Agilex7 M-series.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoarch: arm: mach-socfpga: Update handoff settings for Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:24:51 +0000 (18:24 -0700)] 
arch: arm: mach-socfpga: Update handoff settings for Agilex7 M-series

Handoff settings updated for new platform Agilex7 M-series.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoarch: arm: mach-socfpga: Improve help info.
Tingting Meng [Mon, 4 Aug 2025 01:24:50 +0000 (18:24 -0700)] 
arch: arm: mach-socfpga: Improve help info.

To improve help info for bridge enable/disable command.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoarch: arm: mach-socfpga: Add Agilex7 M-series mach-socfgpa enablement
Tingting Meng [Mon, 4 Aug 2025 01:24:49 +0000 (18:24 -0700)] 
arch: arm: mach-socfpga: Add Agilex7 M-series mach-socfgpa enablement

Add platform related files for new platform Agilex7 M-series.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
2 months agoarch: arm: dts: Basic device tree support added for Agilex7 M-series
Tingting Meng [Mon, 4 Aug 2025 01:24:48 +0000 (18:24 -0700)] 
arch: arm: dts: Basic device tree support added for Agilex7 M-series

Agilex7 M-series support has been added using upstream Linux DTS.

socfpga_agilex_socdk-u-boot.dtsi was updated to support both Agilex and
Agilex7 M-series platforms.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>