[PATCH v3 8/8] configs: Introduce configs for J742S2

2025-02-12 Thread Manorit Chawdhry
Based off j784s4 configs with delta changes for J742S2 [ Add AVS support for J742S2 ] Signed-off-by: Keerthy Signed-off-by: Manorit Chawdhry --- board/ti/j784s4/MAINTAINERS | 2 ++ configs/j742s2_evm_a72_defconfig | 9 + configs/j742s2_evm_r5_defconfig | 9 + 3 files chang

[PATCH v3 6/8] board: ti: Introduce basic board files for the J742S2 family

2025-02-12 Thread Manorit Chawdhry
Introduce the basic files needed to support the TI J742S2 family of SoCs. Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/j784s4/Kconfig | 18 ++ board/ti/j784s4/Kconfig | 33 + board/ti/j784s4/j784s4.env | 4 3 files change

[PATCH v3 5/8] arm: mach-k3: j742s2: Introduce clock and device files for J742S2 SoC

2025-02-12 Thread Manorit Chawdhry
Re-use j784s4 clocks and power domains for j742s2 family of device. Reviewed-by: Udit Kumar Signed-off-by: Manorit Chawdhry --- drivers/clk/ti/clk-k3.c| 4 drivers/power/domain/ti-power-domain.c | 4 2 files changed, 8 insertions(+) diff --git a/drivers/clk/ti/clk-k3.

[PATCH v3 1/8] tools: binman: control.py: Delete template nodes after parsing

2025-02-12 Thread Manorit Chawdhry
From: Neha Malcom Francis Dynamically going through the subnode array and deleting leads to templates being skipped from deletion when templates are consecutive in the subnode list. Prevent this from happening by first parsing the DT and then deleting the nodes. Signed-off-by: Neha Malcom Franci

[PATCH v3 4/8] soc: Add information to identify the J742S2 SoC family

2025-02-12 Thread Manorit Chawdhry
J742S2 has the same part number as J784S4 but JTAG_DEVICE_ID has a PKG bit that tells about J742S2. Add support for reading JTAG_DEVICE_ID and set family as J742S2 based on that. Link: https://www.ti.com/lit/pdf/spruje3 (TRM) Signed-off-by: Manorit Chawdhry --- arch/arm/mach-k3/include/mach/har

[PATCH v3 2/8] arm: dts: k3-j784s4-binman.dtsi: Clean up and templatize boot binaries

2025-02-12 Thread Manorit Chawdhry
From: Neha Malcom Francis Clean up templatized boot binaries for j784s4 soc. This includes modifying the k3-j784s4-binman.dtsi to use SPL_BOARD_DTB, BOARD_DESCRIPTION and UBOOT_BOARD_DESCRIPTION from the files that include it to further reuse code. k3-j784s4-binman.dtsi will contain only templat

[PATCH v3 0/8] Introduce J742S2 SoC and EVM

2025-02-12 Thread Manorit Chawdhry
The series adds support for J742S2 family of SoCs. Also adds J742S2 EVM Support and re-uses most of the stuff from the superset device J784s4. This device is a subset of J784S4 and shares the same memory map and thus the code is being reused from J784S4 to avoid duplication. It initially cleans u

Re: [PATCH RFC 6/6] binman: doc: update Optional entries

2025-02-12 Thread Yannic Moog
On Mon, 2025-02-10 at 06:08 -0700, Simon Glass wrote: > On Wed, 29 Jan 2025 at 03:30, Yannic Moog wrote: > > > > The binman documentation of Optional entries is not accurate in the > > sense that it does not cover blobs entry type. As this is also the most > > widely used type to have the optiona

Re: [PATCH RFC 3/6] tools: binman: ftest: fix tests that require non-faked ext blobs

2025-02-12 Thread Yannic Moog
On Mon, 2025-02-10 at 06:09 -0700, Simon Glass wrote: > Hi, > > On Wed, 29 Jan 2025 at 03:30, Yannic Moog wrote: > > > > By default, external blobs are faked. Some tests care only about more > > basic functionality. In those cases no external blobs should be faked. > > That would trigger a diffe

Re: [PATCH RFC 1/6] tools: binman: ftest.py: fake ext blobs per default

2025-02-12 Thread Yannic Moog
Hi Simon, On Mon, 2025-02-10 at 06:06 -0700, Simon Glass wrote: > Hi Yannic, > > On Wed, 29 Jan 2025 at 03:30, Yannic Moog wrote: > > > > The top level Makefile calls binman with fake-ext-blobs. > > The test setup should reflect this to spot potential bugs before > > reaching users. > > > > Si

Re: [PATCH] tools: binman: ti_board_cfg: Fix pylint error over 'br'

2025-02-12 Thread Neha Malcom Francis
Hi Tom, On 13/02/25 03:53, Tom Rini wrote: > With a newer pylint, we get a warning that 'br' could be used before > assignment. Fix this by declaring br first as an empty bytearray. > > Signed-off-by: Tom Rini > --- > Cc: Neha Malcom Francis > Cc: Simon Glass > --- > tools/binman/etype/ti_boa

RE: [resend v2 00/19] Add Cadence NAND Driver support

2025-02-12 Thread Maniyam, Dinesh
Hi Michael, Did you manage to run the CI test, may I know the status ? Thanks. > -Original Message- > From: Michael Nazzareno Trimarchi > Sent: Saturday, 25 January 2025 6:40 pm > To: Maniyam, Dinesh > Cc: u-boot@lists.denx.de; Marek ; Simon > ; Tom Rini ; Dario > Binacchi ; Johan Jonk

Re: [RFC PATCH 1/2 v1] arch: arm: Kconfig: Add config to use subnode's bootph property for binding drivers

2025-02-12 Thread Moteen Shah
Hey Udit, On 12/02/25 20:19, Kumar, Udit wrote: On 2/12/2025 2:48 PM, Moteen Shah wrote: Add a new config when set will traverse through all the subnodes of a given node scanning for bootph-all property and propagate it to all of its parent node up the hierarchy. Signed-off-by: Moteen Shah -

Re: xPL Proposal

2025-02-12 Thread Tom Rini
On Wed, Feb 12, 2025 at 01:05:11PM -0700, Simon Glass wrote: > Hi Tom, > > On Wed, 12 Feb 2025 at 11:35, Tom Rini wrote: > > > > On Wed, Feb 12, 2025 at 10:41:45AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 12 Feb 2025 at 09:40, Tom Rini wrote: > > > > > > > > On Tue, Feb 11, 20

[PATCH] test/py: Rework test_spi.py to assert we found output

2025-02-12 Thread Tom Rini
When running a newer version of pylint it will complain that page_size may be used before being assignment. Looking deeper what is going on is that we could run in to the case where the regex we run for any of the flash information fails but since we don't have a result, we don't check it either. I

[PATCH] tools/microcode-tool.py: Disable some new pylint warnings

2025-02-12 Thread Tom Rini
With a newer pylint it is no longer happy with parser.error('') (which will cause the program to exit with an exit status of 2) as sufficient to ensure we won't reference some variables before assignment. Disable these warnings here. Signed-off-by: Tom Rini --- Cc: Simon Glass --- tools/mic

[PATCH] Dockerfile: Add missing 'rm -rf /tmp/coreboot-24.08'

2025-02-12 Thread Tom Rini
We had missed removing the coreboot directory once done, fix this. Signed-off-by: Tom Rini --- tools/docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index d2848ab85f35..c080c735af65 100644 --- a/tools/docke

[PATCH] test/py: Rework how test_ums.py handles (not) having write enabled

2025-02-12 Thread Tom Rini
With a newer pylint version we get a warning about how mounted_test_fn could be used before assignment. Evaluating the code, this can't happen because we check for "not have_writable_fs_partition" and return before moving to the part of the tests which use mounted_test_fn. However, we should instea

[PATCH] dtoc: Switch to setuptools

2025-02-12 Thread Tom Rini
With the distutils module having been removed with Python 3.12, switch to using setuptools instead. Signed-off-by: Tom Rini --- Cc: Simon Glass --- tools/dtoc/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dtoc/setup.py b/tools/dtoc/setup.py index 5e092fe0872

[PATCH] test/py: Have test_usb.py raise an Exception with unsupported filesystems

2025-02-12 Thread Tom Rini
With a newer pylint we get a warning about how offset could be used before assigned. This is because when the underlying filesystem wasn't one that is supported we would have runtime test failures. Address this by raise'ing an Exception if fs is not supported. Signed-off-by: Tom Rini --- Cc: Love

[PATCH] binman: Switch to setuptools

2025-02-12 Thread Tom Rini
With the distutils module having been removed with Python 3.12, switch to using setuptools instead. Signed-off-by: Tom Rini --- Cc: Simon Glass --- tools/binman/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/setup.py b/tools/binman/setup.py index 9a920

[PATCH] tools: binman: ti_board_cfg: Fix pylint error over 'br'

2025-02-12 Thread Tom Rini
With a newer pylint, we get a warning that 'br' could be used before assignment. Fix this by declaring br first as an empty bytearray. Signed-off-by: Tom Rini --- Cc: Neha Malcom Francis Cc: Simon Glass --- tools/binman/etype/ti_board_config.py | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] tools/patman: Don't call a non-existent suite

2025-02-12 Thread Tom Rini
With a newer pylint we get a warning that gitutil.RunTests does not exist, so remove the line. Signed-off-by: Tom Rini --- Cc: Simon Glass --- tools/patman/test_checkpatch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/patman/test_checkpatch.py b/tools/patman/test_checkpatch.py ind

[PATCH] buildman: Fix some newer pylint warnings

2025-02-12 Thread Tom Rini
With a newer pylint we get a warning about "color" or "col" being used before assigned. This is most easily handled by setting them to None to indicate no specific color is needed, only the default. Signed-off-by: Tom Rini --- Cc: Simon Glass --- tools/buildman/builder.py | 3 +++ 1 file change

[PATCH RFC] binman: Handle some newer pylint warnings

2025-02-12 Thread Tom Rini
With a newer pylint we have a few warnings show up now that are harder to handle. The first problem is that when we call self.Raise(...) this is no longer enough to have pylint see that we're now bailing out and won't attempt to reference an unassigned variable. This is all of the pylint disabling,

Re: [PATCH v2 1/5] clk/qcom: apq8016: use BIT macro for clk en_vals

2025-02-12 Thread Heinrich Schuchardt
Am 12. Februar 2025 08:01:27 MEZ schrieb Sam Day : >This reads a little bit nicer (IMO), and is consistent with the kernel. > >Signed-off-by: Sam Day Reviewed-by: Heinrich Schuchardt >--- > drivers/clk/qcom/clock-apq8016.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git

Re: xPL Proposal

2025-02-12 Thread Simon Glass
Hi Tom, On Wed, 12 Feb 2025 at 11:35, Tom Rini wrote: > > On Wed, Feb 12, 2025 at 10:41:45AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 12 Feb 2025 at 09:40, Tom Rini wrote: > > > > > > On Tue, Feb 11, 2025 at 03:54:21PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: [PATCH] fs/erofs: fix an integer overflow in symlink resolution

2025-02-12 Thread Jonathan Bar Or
Got it, looks good. Jonathan On Wed, Feb 12, 2025, 7:33 AM Gao Xiang wrote: > > > On 2025/2/12 22:17, Jonathan Bar Or wrote: > > This is good, but may I suggest using __builtin_add_overflow instead? > > They are just the same. > > erofs-utils follows the kernel style, mostly the kernel doesn't

Re: [PATCH] fs/erofs: fix an integer overflow in symlink resolution

2025-02-12 Thread Jonathan Bar Or
This is good, but may I suggest using __builtin_add_overflow instead? Jonathan On Wed, Feb 12, 2025, 1:31 AM Gao Xiang wrote: > See the original report [1], otherwise len + 1 will be overflowed. > > Note that EROFS archive can record arbitary symlink sizes in principle, > so we don't assume a s

Re: Please pull u-boot-net-20250212

2025-02-12 Thread Jerome Forissier
:57:33 -0600) >> >> are available in the Git repository at: >> >> https://source.denx.de/u-boot/custodians/u-boot-net.git/ >> u-boot-net-20250212 > > Did that tag get pushed? I had to look around and found the commit > mentioned but not the tag/branch. O

Re: Please pull u-boot-net-20250212

2025-02-12 Thread Tom Rini
tory at: > > https://source.denx.de/u-boot/custodians/u-boot-net.git/ u-boot-net-20250212 Did that tag get pushed? I had to look around and found the commit mentioned but not the tag/branch. > for you to fetch changes up to 893e32848f00e71eacdda2f7bfc32aa303f7a01f: > > net: Kconfig: depe

Re: xPL Proposal

2025-02-12 Thread Tom Rini
On Wed, Feb 12, 2025 at 10:41:45AM -0700, Simon Glass wrote: > Hi Tom, > > On Wed, 12 Feb 2025 at 09:40, Tom Rini wrote: > > > > On Tue, Feb 11, 2025 at 03:54:21PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 11 Feb 2025 at 14:22, Tom Rini wrote: > > > > > > > > On Tue, Feb 11, 20

Re: xPL Proposal

2025-02-12 Thread Simon Glass
Hi Tom, On Wed, 12 Feb 2025 at 09:40, Tom Rini wrote: > > On Tue, Feb 11, 2025 at 03:54:21PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 11 Feb 2025 at 14:22, Tom Rini wrote: > > > > > > On Tue, Feb 11, 2025 at 08:03:20AM -0700, Simon Glass wrote: > > > > Hi, > > > > > > > > I just wan

Please pull u-boot-net-20250212

2025-02-12 Thread Jerome Forissier
Hi Tom, The following changes since commit 3da1864b1f2fc3cf2b4eaa1849bcafa669ff674c: configs: Resync with savedefconfig (2025-02-11 09:57:33 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-net.git/ u-boot-net-20250212 for you to fetch changes

Re: xPL Proposal

2025-02-12 Thread Tom Rini
On Tue, Feb 11, 2025 at 03:54:21PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 11 Feb 2025 at 14:22, Tom Rini wrote: > > > > On Tue, Feb 11, 2025 at 08:03:20AM -0700, Simon Glass wrote: > > > Hi, > > > > > > I just wanted to send a note to (re-)introduce my ideas[1] for the > > > next iterati

Re: [PATCH v3 0/7] Align pio3 pinctrl node with Linux

2025-02-12 Thread Eugen Hristev
On 2/10/25 08:51, Manikandan Muralidharan wrote: > The series adds support in the pinctrl driver and additional > changes in the at91 DT to align the pio3 based pinctrl nodes > in the u-boot DT with that of Linux > > Changes in v3: > - 5/7 - Add comment block to describe at91_pinctrl_bind() >

Re: [PATCH 1/2] spi: ca_sflash: Remove redundant dependency

2025-02-12 Thread Eugen Hristev
On 1/23/25 16:32, Tom Rini wrote: > On Thu, Jan 23, 2025 at 08:37:12AM +0100, Alexander Dahl wrote: > >> This is inside of an 'if DM_SPI' block, and thus always true. >> >> Signed-off-by: Alexander Dahl > > Reviewed-by: Tom Rini > Applied to u-boot-at91/next ! Thanks

Re: [PATCH 2/2] spi: atmel-quadspi: Depend on SPI_MEM

2025-02-12 Thread Eugen Hristev
On 1/23/25 16:32, Tom Rini wrote: > On Thu, Jan 23, 2025 at 08:37:13AM +0100, Alexander Dahl wrote: > >> Most other spi-mem drivers also depend on SPI_MEM. Fixes this build >> error: >> >> arm-v5te-linux-gnueabi-ld.bfd: drivers/spi/atmel-quadspi.o: in function >> `atmel_qspi_supports_op':

Re: [PATCH 0/7] [U-Boot] spi: atmel-quadspi: Refresh and add classic mode support

2025-02-12 Thread Eugen Hristev
On 1/23/25 14:12, Alexander Dahl wrote: > Hello everyone, > > this patch series is for U-Boot, although Linux might be affected. > > The quadspi controller on microchip (former atmel) sama5d2, sam9x60 and > other soc variants of the at91 family is usually used in hardware > accelerated spi-mem

Re: [PATCH v2 0/5] rng: msm: fixes for MSM8916

2025-02-12 Thread Caleb Connolly
On 2/12/25 07:01, Sam Day wrote: The msm-rng driver is currently broken on MSM8916. The first issue is that the core clock isn't defined and thus not being enabled before registers in the PRNG block are accessed. The second issue is that the enable method is only initializing the PRNG regist

Re: [PATCH v3 3/3] mtd: nand: raw: atmel: Fix pulse read timing for certain NAND flashes

2025-02-12 Thread Eugen Hristev
On 2/12/25 10:45, Michael Nazzareno Trimarchi wrote: > Hi Eugen > > Please apply > > Michael > Ok, Applied to u-boot-at91/next Eugen

Re: [PATCH v2 6/6] configs: add ipq9574_mmc_defconfig

2025-02-12 Thread Caleb Connolly
Hi Varadarajan, On 1/30/25 05:37, Varadarajan Narayanan wrote: Introduce a defconfig for the Qualcomm IPQ9574 SoC based RDPs. Presently supports eMMC. Signed-off-by: Varadarajan Narayanan --- configs/ipq9574_mmc_defconfig | 111 ++ 1 file changed, 111 inserti

Re: [PATCH v2 0/6] Add initial support for IPQ9574 based boards

2025-02-12 Thread Caleb Connolly
Hi Varadarajan, On 1/30/25 05:37, Varadarajan Narayanan wrote: These patches introduce the initial support code needed for the QTI IPQ9574 SoC and RDP433 board. SoC : Qualcomm IPQ9574 RAM : 2GB DDR4 Flash : eMMC 8GB WiFi: 1 x 2.4GHz, 1 x 5GHz, 1 x 6

Re: [PATCH v2 5/6] qcom_defconfig: enable ipq9574 clock & pinctrl driver

2025-02-12 Thread Caleb Connolly
On 1/30/25 05:37, Varadarajan Narayanan wrote: Enable the IPQ9574 clock & pinctrl driver in the Qualcomm defconfig. Signed-off-by: Varadarajan Narayanan Reviewed-by: Caleb Connolly --- configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcom_defconfig

Re: [PATCH v2 1/6] dts: ipq9574-rdp433-u-boot: add override dtsi

2025-02-12 Thread Caleb Connolly
Hi Varadarajan, Sorry for the not getting to this sooner! On 1/30/25 05:37, Varadarajan Narayanan wrote: Add initial support for the IPQ9574 MMC based RDP platforms. Define memory layout statically. Signed-off-by: Varadarajan Narayanan --- v2: Use upstream and override DT instead of own DT --

Re: [PATCH v2 3/6] pinctrl: qcom: Add ipq9574 pinctrl driver

2025-02-12 Thread Caleb Connolly
On 1/30/25 05:37, Varadarajan Narayanan wrote: Add pinctrl driver for the TLMM block found in the ipq9574 SoC. Signed-off-by: Varadarajan Narayanan --- drivers/pinctrl/qcom/Kconfig | 7 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-ipq9574.c |

Re: [PATCH] fs/erofs: fix an integer overflow in symlink resolution

2025-02-12 Thread Gao Xiang
On 2025/2/12 22:17, Jonathan Bar Or wrote: This is good, but may I suggest using __builtin_add_overflow instead? They are just the same. erofs-utils follows the kernel style, mostly the kernel doesn't directly use __builtin_add_overflow, instead it has a wrapper check_add_overflow(). I cou

Re: [PATCH] scripts: kconfig: Fix potential NULL pointer dereference in

2025-02-12 Thread Tom Rini
On Tue, Feb 11, 2025 at 07:05:09PM +0300, Anton Moryakov wrote: > The function `prop_get_symbol` may return NULL, which was not checked > before dereferencing the pointer in `menu_finalize`. This could lead > to undefined behavior or crashes. > > This commit adds a NULL check before accessing `es

Re: [PATCH v2 2/6] clk/qcom: add initial clock driver for ipq9574

2025-02-12 Thread Caleb Connolly
On 1/30/25 05:37, Varadarajan Narayanan wrote: Add initial set of clocks and resets for enabling U-Boot on ipq9574 based RDP platforms. What is RDP? Signed-off-by: Varadarajan Narayanan --- v2: Combined driver file and makefile/kconfig changes into one patch --- drivers/clk/qcom/Kconfig

Re: [RFC PATCH 2/2 v1] drivers: core: lists.c: Bind drivers using bootph* property in subnodes

2025-02-12 Thread Kumar, Udit
Hello Moteen On 2/12/2025 2:48 PM, Moteen Shah wrote: Add a function to scan through all the subnodes of a given node recusively for bootph* property. If found, propagate it to all of its parent node up the hierarchy so as to bind the respective drivers of the nodes in the pre-relocation stage.

Re: [RFC PATCH 1/2 v1] arch: arm: Kconfig: Add config to use subnode's bootph property for binding drivers

2025-02-12 Thread Kumar, Udit
On 2/12/2025 2:48 PM, Moteen Shah wrote: Add a new config when set will traverse through all the subnodes of a given node scanning for bootph-all property and propagate it to all of its parent node up the hierarchy. Signed-off-by: Moteen Shah --- arch/arm/Kconfig | 11 +++ 1 file c

Re: [PATCH v1] mtd: rawnand: meson: always use OOB bytes during write

2025-02-12 Thread Arseniy Krasnov
Hi, sorry, but i don't see it merged. Is it ok? Thanks On 24.12.2024 16:56, Michael Nazzareno Trimarchi wrote: > Hi > > Yes > > Michael > > On Tue, Dec 24, 2024 at 8:55 AM Arseniy Krasnov > wrote: >> >> >> >> On 23.12.2024 15:57, Michael Nazzareno Trimarchi wrote: >>> On Sun, Dec 22, 2024 at

Re: [PATCH v4 05/15] lmb: notify of any changes to the LMB memory map

2025-02-12 Thread Tom Rini
On Wed, Feb 12, 2025 at 03:11:16PM +0530, Sughosh Ganu wrote: > On Tue, 11 Feb 2025 at 20:25, Tom Rini wrote: > > > > On Tue, Feb 11, 2025 at 07:40:40PM +0530, Sughosh Ganu wrote: > > > On Tue, 11 Feb 2025 at 19:30, Sughosh Ganu > > > wrote: > > > > > > > > On Tue, 11 Feb 2025 at 19:24, Tom Rini

Re: xPL Proposal

2025-02-12 Thread Simon Glass
Hi Marek, On Tue, 11 Feb 2025 at 19:13, Marek Vasut wrote: > > On 2/11/25 4:03 PM, Simon Glass wrote: > > Hi, > > Hi, > > > I just wanted to send a note to (re-)introduce my ideas[1] for the > > next iteration of xPL. > > > > A recent series introduced 'xPL' as the name for the various > > pre-U-

Re: [RFC PATCH 2/2 v1] drivers: core: lists.c: Bind drivers using bootph* property in subnodes

2025-02-12 Thread Simon Glass
Hi Moteen, On Wed, 12 Feb 2025 at 02:18, Moteen Shah wrote: > > Add a function to scan through all the subnodes of a given node > recusively for bootph* property. If found, propagate it to all > of its parent node up the hierarchy so as to bind the respective > drivers of the nodes in the pre-rel

[RFC PATCH 0/2 v1] Propagate bootph* property to all parent nodes

2025-02-12 Thread Moteen Shah
In the U-Boot pre-relocation stage, if the parent node lacks bootph* property and the driver lacks a pre-reloc flag, all of its subsequent subnodes gets skipped over from driver binding—even if they have a bootph* property. This series addresses the issue by scanning through all the subnodes of th

[RFC PATCH 2/2 v1] drivers: core: lists.c: Bind drivers using bootph* property in subnodes

2025-02-12 Thread Moteen Shah
Add a function to scan through all the subnodes of a given node recusively for bootph* property. If found, propagate it to all of its parent node up the hierarchy so as to bind the respective drivers of the nodes in the pre-relocation stage. The current model skips the node if there is no bootph*

[RFC PATCH 1/2 v1] arch: arm: Kconfig: Add config to use subnode's bootph property for binding drivers

2025-02-12 Thread Moteen Shah
Add a new config when set will traverse through all the subnodes of a given node scanning for bootph-all property and propagate it to all of its parent node up the hierarchy. Signed-off-by: Moteen Shah --- arch/arm/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm

Re: [PATCH v1 5/5] ARM: tegra124: dts: mark HOST1X and DC with pre-relocation flag

2025-02-12 Thread Svyatoslav Ryhel
чт, 12 груд. 2024 р. о 12:13 Svyatoslav Ryhel пише: > > Same as on previous SoC generations this is required for proper > video output work. > > Signed-off-by: Svyatoslav Ryhel > --- > arch/arm/dts/tegra124-nyan-big-u-boot.dtsi | 7 --- > arch/arm/dts/tegra124-u-boot.dtsi | 13

[PATCH 2/2] Raspberry Pi: Copy Bluetooth device address in DT

2025-02-12 Thread Fiona Klute
The firmware sets local-bd-address, copy it when loading a new DT. Signed-off-by: Fiona Klute --- This simple copy works with upstream Linux DT, and with the downstream RPi one as long as BT has not been moved to mini-UART. The downstream DT additionally defines /aliases/bluetooth, which is updat

[PATCH 1/2] Raspberry Pi: Keep warnings from firmware in DT, if any

2025-02-12 Thread Fiona Klute
The /chosen/user-warnings property is created by the RPi firmware if there are warnings to report, keep it to make debugging easier. For example, if the firmware config.txt contains "dtoverlay=error-example" and that example references an undefined symbol "&nosuchdev" the warning can be read after

Re: [PATCH v4 05/15] lmb: notify of any changes to the LMB memory map

2025-02-12 Thread Sughosh Ganu
On Tue, 11 Feb 2025 at 20:25, Tom Rini wrote: > > On Tue, Feb 11, 2025 at 07:40:40PM +0530, Sughosh Ganu wrote: > > On Tue, 11 Feb 2025 at 19:30, Sughosh Ganu wrote: > > > > > > On Tue, 11 Feb 2025 at 19:24, Tom Rini wrote: > > > > > > > > On Tue, Feb 11, 2025 at 04:41:09PM +0530, Sughosh Ganu w

[PATCH 4/6] tools: Add preload_check_sign to authenticate images with a pre-load

2025-02-12 Thread Paul HENRYS
preload_check_sign is added so that it can be used to authenticate images signed with the pre-load signature supported by binman and U-Boot. It could also be used to test the signature in binman tests signing images with the pre-load. Signed-off-by: Paul HENRYS --- tools/.gitignore |

[PATCH 6/6] binman: Authenticate the image when testing the preload signature

2025-02-12 Thread Paul HENRYS
Use preload_check_sign to authenticate the generated image when testing the preload signature in testPreLoad(). Signed-off-by: Paul HENRYS --- tools/binman/ftest.py | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index a553ca9e56

[PATCH 1/6] rsa: Add rsa_verify_openssl() to use openssl for host builds

2025-02-12 Thread Paul HENRYS
rsa_verify_openssl() is used in lib/rsa/rsa-verify.c to authenticate data when building host tools. Signed-off-by: Paul HENRYS --- include/image.h | 18 ++ lib/rsa/rsa-verify.c | 5 ++ tools/image-host.c | 141 +++ 3 files changed, 164 insert

[PATCH 3/6] boot: Add support of the pre-load signature for host tools

2025-02-12 Thread Paul HENRYS
Signed-off-by: Paul HENRYS --- boot/image-pre-load.c | 57 +-- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/boot/image-pre-load.c b/boot/image-pre-load.c index cc19017404c..adf3b341a20 100644 --- a/boot/image-pre-load.c +++ b/boot/image-pr

[PATCH 0/6] Add preload_check_sign tool

2025-02-12 Thread Paul HENRYS
This serie of patches adds a new tool to authenticate files signed with a preload header. This tool is also used in the tests to actually verify the authenticity of the file signed with such a preload header. Paul HENRYS (6): rsa: Add rsa_verify_openssl() to use openssl for host builds image:

[PATCH 5/6] configs: Enable the pre-load signature in tools-only_defconfig

2025-02-12 Thread Paul HENRYS
pre-load related config options are enabled to have support of it in host tools. 'CONFIG_FIT_SIGNATURE=y' is being automatically removed since it is selected by CONFIG_IMAGE_PRE_LOAD_SIG. Signed-off-by: Paul HENRYS --- configs/tools-only_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 del

[PATCH 2/6] image: Add an inline declaration of unmap_sysmem()

2025-02-12 Thread Paul HENRYS
Add an empty inline declaration when compiling tools for a host where unmap_sysmem() is not defined. Signed-off-by: Paul HENRYS --- tools/mkimage.h | 4 1 file changed, 4 insertions(+) diff --git a/tools/mkimage.h b/tools/mkimage.h index 15741f250fd..5d6bcc9301a 100644 --- a/tools/mkimage.

[PATCH] fs/erofs: fix an integer overflow in symlink resolution

2025-02-12 Thread Gao Xiang
See the original report [1], otherwise len + 1 will be overflowed. Note that EROFS archive can record arbitary symlink sizes in principle, so we don't assume a short number like 4096. [1] https://lore.kernel.org/r/20250210164151.GN1233568@bill-the-cat Fixes: 830613f8f5bb ("fs/erofs: add erofs fil

[PATCH v1] led: fix coverity scan error

2025-02-12 Thread Heiko Schocher
Tom reported the following covervity scan error: *** CID 541279:(TAINTED_SCALAR) /drivers/led/led-uclass.c: 284 in led_get_function_name() 278 if (!ret) { 279 snprintf(uc_plat->name, LED_MAX_NAME_SIZE, 280 "%s

Re: [PATCH v3 3/3] mtd: nand: raw: atmel: Fix pulse read timing for certain NAND flashes

2025-02-12 Thread Michael Nazzareno Trimarchi
Hi Eugen Please apply Michael On Wed, Feb 12, 2025 at 9:44 AM Eugen Hristev wrote: > > > > On 2/12/25 09:09, Alexander Dahl wrote: > > Hello, > > > > Am Wed, Oct 09, 2024 at 04:45:02AM + schrieb > > balamanikandan.gunasun...@microchip.com: > >> On 30/09/24 1:37 pm, Alexander Dahl wrote: >

Re: [PATCH v3 3/3] mtd: nand: raw: atmel: Fix pulse read timing for certain NAND flashes

2025-02-12 Thread Eugen Hristev
On 2/12/25 09:09, Alexander Dahl wrote: > Hello, > > Am Wed, Oct 09, 2024 at 04:45:02AM + schrieb > balamanikandan.gunasun...@microchip.com: >> On 30/09/24 1:37 pm, Alexander Dahl wrote: >>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the >>> content is safe >>>

Re: Security vulnerabilities report to Das-U-Boot

2025-02-12 Thread Miquel Raynal
Hello Tom, On 11/02/2025 at 15:29:09 -06, Tom Rini wrote: > On Tue, Feb 11, 2025 at 08:26:37AM -0800, Jonathan Bar Or wrote: >> Hi Tom and the rest of the team, >> >> Please let me know about fix time, whether this is acknowledged and >> whether you're going to request CVE IDs for those or if I

Re: [PATCH v4 3/3] clk: stub: add sm8150 compatible id

2025-02-12 Thread Neil Armstrong
On 10/02/2025 17:27, Caleb Connolly wrote: From: Julius Lehmann Add support for sm8150 clock controller to clk stub driver. Signed-off-by: Julius Lehmann --- drivers/clk/clk-stub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c index ea

Re: [PATCH 1/2] power: regulator: add additional supported LDOs for pm8150l

2025-02-12 Thread Neil Armstrong
On 10/02/2025 17:30, Caleb Connolly wrote: Add the other LDOs that our rpmh driver can currently support. Some of these are used on the RB5 to power the sdcard. Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 7 +++ 1 file changed, 7 insertions(+) diff

Re: [PATCH 2/2] pinctrl: qcom: sm8250: fix pin count

2025-02-12 Thread Neil Armstrong
On 10/02/2025 17:30, Caleb Connolly wrote: The pin count wasn't updated when the special pins were added, as a result it was never possible to configure the special pins on SM8250 boards. Fix the pin count and allow the special pins to be configured. This fixes sdcard support on the RB5. Fixes: