Re: [PATCH] dt-bindings: remove phy/phy-qcom-qmp.h in favor of dts/upstream

2024-10-16 Thread Sumit Garg
define QMP_USB43DP_DP_PHY 1 > - > -#endif /* _DT_BINDINGS_PHY_QMP */ > > --- > base-commit: d5cab0d6adc26ec1bbd45c2fed101184d04454ae > change-id: 20241016-topic-sm8x50-drop-phy-qcom-qmp-local-bindings-f036014e174e > > Best regards, > -- > Neil Armstrong >

[PATCH 6/6] DONOTMERGE: For testing only

2024-10-16 Thread Aniket Limaye
From: Reid Tonking This just provides some useful print outs and the proper config to test the functionality. For J7200 boards that do not have efuse burned in, the hardcoded 76 is needed in the vd_data, since it would be populated otherwise Signed-off-by: Reid Tonking Signed-off-by: Aniket

[PATCH 5/6] configs: j7200_evm_r5_defconfig: Define K3_OPP_LOW

2024-10-16 Thread Aniket Limaye
From: Reid Tonking Adds the default config for K3_OPP_LOW in J7200 Signed-off-by: Reid Tonking Signed-off-by: Aniket Limaye --- arch/arm/mach-k3/Kconfig | 6 ++ configs/j7200_evm_r5_defconfig | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/m

[PATCH 4/6] arm: mach-k3: j721e-init.c: J7200: Add support for CONFIG_K3_OPP_LOW

2024-10-16 Thread Aniket Limaye
From: Reid Tonking The default j7200 devicetree and k3_avs driver set 2GHz/1GHz frequency for A72/MSMC clks and the OPP_NOM voltage. J7200 SOCs may support OPP_LOW Operating Performance Point: 1GHz/500MHz clks for A72/MSMC and OPP_LOW AVS voltage read from efuse. Hence, add a config check to se

[PATCH 3/6] misc: k3_avs: Add k3_check_opp function

2024-10-16 Thread Aniket Limaye
From: Reid Tonking Useful when trying to check if an opp efuse is burned in or not. k3_avs driver checks opp_ids when probing and overwrites the voltage values in vd_data for the respective board. This can be called to check that data and returns 0 if valid. Signed-off-by: Reid Tonking Signed-

[PATCH 2/6] misc: k3_avs: Add OPP_LOW voltage and frequency to vd_data

2024-10-16 Thread Aniket Limaye
From: Reid Tonking J7200 SOC supports OPP_LOW and OPP_NOM as two Operating Performance Points as per (7.5 Operating Performance Points) section in the Datasheet [0]. - A72SS/MSMC at 2 GHz/1GHz operation must use OPP_NOM. - A72SS/MSMC at 1 GHz/500 MHz operation can use OPP_NOM or OPP_LOW voltage

[PATCH 1/6] arm: dts: k3-j7200-r5-common: Add msmc clk to a72 node

2024-10-16 Thread Aniket Limaye
From: Reid Tonking Define the MSMC clk in the a72 node Signed-off-by: Reid Tonking Signed-off-by: Aniket Limaye --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/a

[PATCH 0/6] Add OPP_LOW support for J7200

2024-10-16 Thread Aniket Limaye
This series adds OPP_LOW spec data in k3_avs driver and enables a config option to select the OPP_LOW performance point. AVS test logs (CONFIG_K3_OPP_LOW enabled and dummy efuse value): https://gist.github.com/aniket-l/3bdb454d2416e1900dce795ce6090507 J7200 SOC supports OPP_LOW and OPP_NOM as two

Re: [PATCH] arm: dts: k3-j722s-r5-evm: Add LPDDR4 4000 MT/s configs

2024-10-16 Thread Kumar, Udit
On 10/17/2024 2:01 AM, Bryan Brattlof wrote: Hi Vaishnav! On October 16, 2024 thus sayeth Vaishnav Achath: Add the latest 4000 MT/s DDR config generated by Jacinto7_DDRSS_RegConfigTool Rev 0.11 for J722S , make it the default config and update A53 default clock to 1.4 GHz matching the default

Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Tom Rini
On Thu, Oct 17, 2024 at 03:14:46AM +, Peng Fan wrote: > > Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device > > tree > > > > On Fri, Oct 11, 2024 at 06:58:27PM +0800, Peng Fan (OSS) wrote: > > > > > From: Peng Fan > > > > > > U-Boot device tree is padded just after U-Boot

Re: [PATCH v7 0/6] FUSB302 USB-C controller support

2024-10-16 Thread Marek Vasut
On 10/15/24 5:26 PM, Sebastian Reichel wrote: Hi, Hi, On ROCK 5B power is usually supplied via it's USB-C port. This port has the data lines connected to RK3588, VBUS connected to the input regulator and CC pins connected to FUSB302. FUSB302 is a USB-C controller, which can be accessed via I2

RE: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Peng Fan
> Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device > tree > > On Fri, Oct 11, 2024 at 06:58:27PM +0800, Peng Fan (OSS) wrote: > > > From: Peng Fan > > > > U-Boot device tree is padded just after U-Boot proper. After the > whole > > stuff loaded to DRAM space, the device tree

[PULL] u-boot-usb/master

2024-10-16 Thread Marek Vasut
The following changes since commit 608a31bdec6284ad6f821226e4c62c9cd3052874: Merge patch series "Introduce the lwIP network stack" (2024-10-16 11:11:57 -0600) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch changes up to 6852a2c82e695c418

Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Tom Rini
On Fri, Oct 11, 2024 at 06:58:27PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > U-Boot device tree is padded just after U-Boot proper. After the whole > stuff loaded to DRAM space, the device tree area is conflict with BSS > region before U-Boot relocation. So any write to BSS area before >

RE: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Peng Fan
> Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device > tree > > On Thu, Oct 17, 2024 at 01:10:02AM +, Peng Fan wrote: > > > Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt > device > > > tree > > > > > > On Sat, Oct 12, 2024 at 12:16:14AM +, Peng Fan wrote:

Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Tom Rini
On Thu, Oct 17, 2024 at 01:10:02AM +, Peng Fan wrote: > > Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device > > tree > > > > On Sat, Oct 12, 2024 at 12:16:14AM +, Peng Fan wrote: > > > > Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt > > device > > > > tre

Re: [PATCH 0/4] some serial rx buffer patches

2024-10-16 Thread Tom Rini
On Thu, 03 Oct 2024 16:10:25 +0200, Rasmus Villemoes wrote: > Some small improvements to the serial rx buffer feature. > > CI seems happy: https://github.com/u-boot/u-boot/pull/674 > > Rasmus Villemoes (4): > serial: fix circular rx buffer edge case > serial: do not overwrite not-consumed ch

Re: [PATCH v3 1/2] dts: Add ability to build fallback DTBOs from arch/$(ARCH)/dts

2024-10-16 Thread Fabio Estevam
On Wed, Oct 16, 2024 at 10:11 PM Marek Vasut wrote: > I sent a V4, there was SPL->XPL symbol rename that git couldn't resolve. > V4 should apply fine on top of: > > 608a31bdec62 ("Merge patch series "Introduce the lwIP network stack"") Thanks, v4 applies correctly.

Re: [PATCH v3 1/2] dts: Add ability to build fallback DTBOs from arch/$(ARCH)/dts

2024-10-16 Thread Marek Vasut
On 10/16/24 8:42 PM, Fabio Estevam wrote: On Wed, Oct 16, 2024 at 3:34 PM Fabio Estevam wrote: On Tue, Oct 15, 2024 at 5:22 PM Marek Vasut wrote: This should now apply on u-boot/master . Thanks for the heads up. This will be part of my next PR to Tom. Hmm, still fails to apply. Please c

RE: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Peng Fan
> Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device > tree > > On Sat, Oct 12, 2024 at 12:16:14AM +, Peng Fan wrote: > > > Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt > device > > > tree > > > > > > > Why isn't this padding and alignment with the BSS being

[PATCH v4] dts: Add ability to build fallback DTBOs from arch/$(ARCH)/dts

2024-10-16 Thread Marek Vasut
Currently the enablement of OF_UPSTREAM results on the build system searching for DTs only in dts/upstream/ . There are platforms which use U-Boot specific DTBOs applied on top of U-Boot control DT during SPL stage, and source DTs for these are located in arch/$(ARCH)/dtb. Add dedicated 'dtbos' ta

Re: [PATCH 2/2] arm64: imx8mp: Read item and serial number from EEPROM ID page on DH i.MX8MP DHCOM

2024-10-16 Thread Marek Vasut
On 10/16/24 2:31 PM, Christoph Niedermaier wrote: [...] diff --git a/board/dhelectronics/common/dh_common.h b/board/dhelectronics/common/dh_common.h index 4c22ece435..1baa45e340 100644 --- a/board/dhelectronics/common/dh_common.h +++ b/board/dhelectronics/common/dh_common.h @@ -6,6 +6,8 @@

Re: [PATCH] ARM: stm32: Add script to install U-Boot from SD/eMMC to SPI NOR on DH STM32MP15xx DHSOM

2024-10-16 Thread Marek Vasut
On 10/16/24 7:59 PM, Patrick DELAUNAY wrote: Hello Patrick, b) you are using "sf" command and not "mtd" to udpate SPI NOR ? the MTD command allows to use the MTD partition name, defined in DT, so no need to know offset in script (and avoid "sf probe") mtd erase fsbl1; mtd write fsbl1 ${loada

[PATCH] mbedtls: fix defects in coverity scan

2024-10-16 Thread Raymond Mao
Fixes of unreleased buffer, deadcode and wrong variable type detected by coverity scan. Addresses-Coverity-ID: 510809: Resource leaks (RESOURCE_LEAK) Addresses-Coverity-ID: 510806: Control flow issues (DEADCODE) Addresses-Coverity-ID: 510794 Control flow issues (NO_EFFECT) Signed-off-by: Ray

Re: [PATCH v1 1/1] usb: ci_udc: don't use "advance" feature when setting address

2024-10-16 Thread Ion Agorria
Hello, Yes that's the correct commit I found when researching why the issue didn't happen in Linux, I already found that Tegra 2 reference docs had a different information about the register compared to Tegra 3. I consider that a single variable is enough since the value is only non-zero when we

Re: [PATCH v13 00/21] Introduce the lwIP network stack

2024-10-16 Thread Tom Rini
On Wed, Oct 16, 2024 at 02:07:45PM -0600, Tom Rini wrote: > On Wed, 16 Oct 2024 11:56:22 +0200, Jerome Forissier wrote: > > > This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip > > library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP > > stack [2] [3] a

Re: [PATCH] arm: dts: k3-j722s-r5-evm: Add LPDDR4 4000 MT/s configs

2024-10-16 Thread Bryan Brattlof
Hi Vaishnav! On October 16, 2024 thus sayeth Vaishnav Achath: > Add the latest 4000 MT/s DDR config generated by > Jacinto7_DDRSS_RegConfigTool Rev 0.11 for J722S , make it the > default config and update A53 default clock to 1.4 GHz matching > the default speed grade (K). > > Signed-off-by: Vais

[PATCH v2] pico-imx7d: Increase ODT resistor value

2024-10-16 Thread egyszeregy
From: Ray Chang Increase ODT resistor value from 60 to 120 ohm to improve DRAM stability. Based on the following commit from TechNexion U-Boot: https://github.com/TechNexion/u-boot-tn-imx/commit/8a00e57b697c6f7d3d3abcfc552550ac7d8cc96d Signed-off-by: Ray Chang Signed-off-by: Benjamin Szőke --

[PATCH] rockchip: rk3399-pinephone-pro: Drop upstream props from u-boot.dtsi

2024-10-16 Thread Jonas Karlman
The SPI flash node has been added in upstream DT, drop all props beside bootph-* props from the SPI flash related nodes in u-boot.dtsi. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/dts/rk3399-pinep

[PATCH] rockchip: rk3588-rock-5b: Drop upstream props from u-boot.dtsi

2024-10-16 Thread Jonas Karlman
The SPI flash node has been added in upstream DT, drop all props beside bootph-* props from the SPI flash related nodes in u-boot.dtsi. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/dts/rk3588-rock-5b

Re: [PATCH v9 22/37] drivers: misc: irq-uclass: Update irq_get_by_index

2024-10-16 Thread Moritz Fischer
On Tue, Oct 15, 2024 at 11:16 PM Patrick Rudolph wrote: > > Support reading the "interrupts" property from the devicetree in case > the "interrupts-extended" property isn't found. As the "interrupts" > property is commonly used, this allows to parse all existing FDT and > makes irq_get_by_index()

Re: [PATCH v9 20/37] arm: gic-v3-its: Implement of_xlate

2024-10-16 Thread Moritz Fischer
On Tue, Oct 15, 2024 at 11:15 PM Patrick Rudolph wrote: > > Translate IRQs by implementing of_xlate() as required by > irq_get_by_index() to parse interrupt properties. > > Map DT interrupts to ARM GIC interrupts as follows: > > - Interrupt numbers ID32-ID1019 are used for SPIs > - ID0-ID15 are us

Re: [PATCH v13 00/21] Introduce the lwIP network stack

2024-10-16 Thread Tom Rini
On Wed, 16 Oct 2024 11:56:22 +0200, Jerome Forissier wrote: > This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip > library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP > stack [2] [3] as an alternative to the current implementation in net/, > selectable

Re: [PATCH] pico-imx7d: increase ODT resistor value from 60 to 120 ohm to improve DRAM stability

2024-10-16 Thread Fabio Estevam
On Wed, Oct 16, 2024 at 4:35 PM Szőke Benjamin wrote: > I am not the author of this patch why i need to Signed-off it? It is a DDR > calib Because you are in the delivery path of someone else patch. This is explained at: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/D

Re: [PATCH] imx9: Improve boot device auto-selection

2024-10-16 Thread Szőke Benjamin
2024. 10. 16. 20:28 keltezéssel, Fabio Estevam írta: Benjamin, On Sun, Oct 13, 2024 at 9:39 PM Peng Fan wrote: Would you please give more background on this, I not got the point on why doing this? I also do not understand the reason for this change. It is not clear by reading the commit log

Re: [PATCH] pico-imx7d: increase ODT resistor value from 60 to 120 ohm to improve DRAM stability

2024-10-16 Thread Szőke Benjamin
2024. 10. 16. 20:32 keltezéssel, Fabio Estevam írta: The subject is too long. Make it succinct: pico-imx7d: Increase ODT resistor value On Mon, Oct 14, 2024 at 9:26 PM wrote: From: Ray Chang Place here the explanation for this change: Increase ODT resistor value from 60 to 120 ohm to imp

Re: [PATCH v2] cmd: setexpr: fix no matching string in gsub return empty value

2024-10-16 Thread Tom Rini
On Fri, Oct 11, 2024 at 08:17:02PM +0200, Francesco Dolcini wrote: > Il 11 ottobre 2024 18:01:22 CEST, Massimiliano Minella > ha scritto: > >Hello, > > > >On Tue, Oct 8, 2024 at 7:20 PM Francesco Dolcini > >wrote: > >> > >> +Tom > >> > >> Hello Massimiliano, > >> > >> On Tue, Sep 03, 2024 at 01

Re: [PATCH] ARM: dts: imx6-dhcom: Remove fdt_high and initrd_high env variables

2024-10-16 Thread Fabio Estevam
On Tue, Oct 15, 2024 at 8:45 PM Marek Vasut wrote: > > Remove both "fdt_high" and "initrd_high" environment variables > in favor of "bootm_size" to safely contain a kernel, device tree > and initrd for relocation inside of 256 MiB region of DRAM. > > Signed-off-by: Marek Vasut Reviewed-by: Fabio

Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Tom Rini
On Sat, Oct 12, 2024 at 12:16:14AM +, Peng Fan wrote: > > Subject: Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device > > tree > > > > > Why isn't this padding and alignment with the BSS being taken care > > of > > > in either the linker script or the binman dts? > > Sorry, I am not

Re: [PATCH] envtools: make them build again

2024-10-16 Thread Fabio Estevam
On Wed, Oct 16, 2024 at 12:10 PM Rasmus Villemoes wrote: > > In v2024.10, "make envtools" is broken for at least these defconfigs: > >am335x_evm_defconfig >rpi_3_defconfig >rpi_4_defconfig >mx7dsabresd_defconfig >wandboard_defconfig >imx8mp_evk_defconfig > > The only defcon

Re: [PATCH v3 1/2] dts: Add ability to build fallback DTBOs from arch/$(ARCH)/dts

2024-10-16 Thread Fabio Estevam
On Wed, Oct 16, 2024 at 3:34 PM Fabio Estevam wrote: > > On Tue, Oct 15, 2024 at 5:22 PM Marek Vasut wrote: > > > This should now apply on u-boot/master . > > Thanks for the heads up. This will be part of my next PR to Tom. Hmm, still fails to apply. Please check.

Re: [PATCH v3 1/2] dts: Add ability to build fallback DTBOs from arch/$(ARCH)/dts

2024-10-16 Thread Fabio Estevam
On Tue, Oct 15, 2024 at 5:22 PM Marek Vasut wrote: > This should now apply on u-boot/master . Thanks for the heads up. This will be part of my next PR to Tom.

Re: [PATCH 4/4] stm32mp: fix name of optee reserved memory node

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/11/24 17:31, Patrick Delaunay wrote: In OP-TEE, the "optee_core@" node is reserved, appended in non secure device tree (see mark_tzdram_as_reserved() function under CFG_DT) so this name must be checked in optee_get_reserved_memory(). We keep the check on /reserved-memory/optee@ node to

Re: [PATCH 3/4] doc: clarify scmi device tree for stm32mp15 boards

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/11/24 17:31, Patrick Delaunay wrote: Clarify the usage of SCMI specific device tree to use with stm32mp15_defconfig and with OP-TEE. Signed-off-by: Patrick Delaunay --- doc/board/st/stm32mp1.rst | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) A

Re: [PATCH] pico-imx7d: increase ODT resistor value from 60 to 120 ohm to improve DRAM stability

2024-10-16 Thread Fabio Estevam
The subject is too long. Make it succinct: pico-imx7d: Increase ODT resistor value On Mon, Oct 14, 2024 at 9:26 PM wrote: > > From: Ray Chang Place here the explanation for this change: Increase ODT resistor value from 60 to 120 ohm to improve DRAM stability. > Signed-off-by: Ray Chang You

Re: [PATCH 2/4] ARM: stm32mp: enable data cache after LMB configuration for STM32MP1

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/11/24 17:31, Patrick Delaunay wrote: Move the stm32mp1 data cache reconfiguration after the lmb init call board_r::initr_lmb to allow parsing of the reserved region with no-map tag. After this patch the DDR is not fully mapped up to arch_early_init_r() call, only the relocation region

Re: [PATCH 1/4] stm32mp: compute ram_top based on the optee base address only for STM32MP1

2024-10-16 Thread Patrick DELAUNAY
Hi On 10/11/24 17:31, Patrick Delaunay wrote: Reserved memory for OP-TEE is located at end of DDR for STM32MP1 SoC only (STM32MP13 and STM32MP15) and the OP-TEE reserved memory is located at the beginning of DDR for STM32MP25 SoC, before CONFIG_TEXT_BASE and with reserved memory for companion co

Re: [PATCH] stm32mp: cosmetic: remove empty comment block in configs file

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/16/24 19:54, Patrick Delaunay wrote: This is cosmetic change. Remove the empty comment blocks remaining after conversion to Kconfig of CONFIG_SYS_MAX_NAND_DEVICE and CONFIG_SERVERIP. Signed-off-by: Patrick Delaunay --- include/configs/stm32mp13_common.h | 2 -- include/configs/s

Re: [PATCH] imx9: Improve boot device auto-selection

2024-10-16 Thread Fabio Estevam
Benjamin, On Sun, Oct 13, 2024 at 9:39 PM Peng Fan wrote: > Would you please give more background on this, I not got > the point on why doing this? I also do not understand the reason for this change. It is not clear by reading the commit log. Please describe what exactly fails to work before

Re: [PATCH v2] ARM: stm32: Add script to install U-Boot from SD/eMMC to SPI NOR on DH STM32MP15xx DHSOM

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/12/24 04:54, Marek Vasut wrote: Make the dh_update_sd_to_sf script generic, rename it to dh_update_block_to_sf and implement two specific dh_update_sd_to_sf and dh_update_emmc_to_sf scripts which load U-Boot from either SD or eMMC and install it into SPI NOR. Signed-off-by: Marek Vasu

Re: [PATCH] cpu: imx8_cpu: Avoid revision to corrupt device tree

2024-10-16 Thread Fabio Estevam
Hi Peng, On Fri, Oct 11, 2024 at 1:56 PM Tom Rini wrote: > Why isn't this padding and alignment with the BSS being taken care of in > either the linker script or the binman dts? I have the same concern as Tom. This fix looks fragile. Can you propose another solution?

Re: [PATCH 13/17] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95

2024-10-16 Thread Tom Rini
On Wed, Oct 16, 2024 at 03:18:06PM +0800, Alice Guo wrote: > From: Alice Guo > > i.MX95 only supports low power boot, which means A55 is kicked by M33. > There is no ROM runs on A55 in such case so that deselect IMX8_ROMAPI > for i.MX95. > > Signed-off-by: Alice Guo > --- > arch/arm/mach-imx/K

Re: [PATCH v2 1/3] ARM: dts: stm32: Duplicate cpu0-opp-table node into stm32mp15-u-boot.dtsi

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/11/24 19:57, Patrick DELAUNAY wrote: Hi, On 10/5/24 03:15, Marek Vasut wrote: The cpu0-opp-table {} node does not exist in upstream Linux stm32mp151.dtsi file, in order to enable conversion to OF_UPSTREAM, duplicate the node from current U-Boot stm32mp151.dtsi into stm32mp15-u-boot.

Re: [PATCH v2 3/3] ARM: dts: stm32: Generate u-boot.itb using binman on DH STM32 DHSOM

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/11/24 20:15, Patrick DELAUNAY wrote: Hi, On 10/5/24 03:15, Marek Vasut wrote: Describe the u-boot.its generation in stm32mp15xx-dhsom-u-boot.dtsi binman {} DT node as a replacement for current CONFIG_SPL_FIT_SOURCE use, dispose of both u-boot-dhcom.its and u-boot-dhcor.its. Use fdt-

Re: [PATCH v2 2/3] ARM: dts: stm32: Switch to using upstream DT on DH STM32 DHSOM

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/11/24 19:54, Patrick DELAUNAY wrote: Hi, On 10/5/24 03:15, Marek Vasut wrote: Enable OF_UPSTREAM to use upstream DT and add st/ prefix to the DEFAULT_DEVICE_TREE. And thereby directly build DTB from dts/upstream/src/ including *-u-boot.dtsi from arch/$(ARCH)/dts/ directory. The pr

Re: [PATCH v2] ARM: stm32: Update MAINTAINERS file globs for STM32MP DHSOM

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/5/24 01:56, Marek Vasut wrote: Update the MAINTAINERS file glob to cover all of STM32MP DHSOM related files. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com --- V2: Use

Re: [PATCH 08/17] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2024-10-16 Thread Tom Rini
On Wed, Oct 16, 2024 at 03:18:01PM +0800, Alice Guo wrote: > From: Ye Li > > @protocols is an array of protocol identifiers that are implemented, > excluding the Base protocol. The number of elements of @protocols is > specified by callee-side. Currently, set it to 4 is enough for i.MX95. This n

Re: [PATCH 01/17] mailbox: add i.MX95 Messaging Unit (MU) driver

2024-10-16 Thread Tom Rini
On Wed, Oct 16, 2024 at 03:17:54PM +0800, Alice Guo wrote: > From: Peng Fan > > i.MX95 Messaging Unit (MU) enables 2 processors on a chip to communicate > and coordinate by passing messages (e.g. frame information, event > notices and requests) through the MU interface. This patch provides a > dr

Re: [PATCH] ARM: stm32: Add script to install U-Boot from SD/eMMC to SPI NOR on DH STM32MP15xx DHSOM

2024-10-16 Thread Patrick DELAUNAY
Hi, On 10/12/24 05:01, Marek Vasut wrote: On 10/11/24 5:30 PM, Patrick DELAUNAY wrote: Hi, Hi, On 9/30/24 21:23, Marek Vasut wrote: Make the dh_update_sd_to_sf script generic, rename it to dh_update_sdmmc_to_sf and implement two specific dh_update_sd_to_sf and dh_update_emmc_to_sf scripts

[PATCH] stm32mp: cosmetic: remove empty comment block in configs file

2024-10-16 Thread Patrick Delaunay
This is cosmetic change. Remove the empty comment blocks remaining after conversion to Kconfig of CONFIG_SYS_MAX_NAND_DEVICE and CONFIG_SERVERIP. Signed-off-by: Patrick Delaunay --- include/configs/stm32mp13_common.h | 2 -- include/configs/stm32mp15_common.h | 4 2 files changed, 6 delet

Re: [PATCH 14/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2024-10-16 Thread Tom Rini
On Wed, Oct 16, 2024 at 08:36:12AM -0300, Fabio Estevam wrote: > Hi Alice, > > On Wed, Oct 16, 2024 at 4:19 AM Alice Guo wrote: > > > > From: Ye Li > > > > This patch adds i.MX95 19x19 EVK board basic support. > > > > Signed-off-by: Ye Li > > Signed-off-by: Alice Guo > > Reviewed-by: Peng Fan

Re: [PATCH 1/1] arm: provide noncached_set_region prototype to fix build

2024-10-16 Thread Tom Rini
On Wed, Oct 16, 2024 at 01:24:55PM +0200, Jonas Jelonek wrote: > Due to the removal of weak functions in 7d6cee2cd0 ("cmd: cache: Remove > weak function"), uboot fails to compile after updating to v2024.10 for Should be "U-Boot" but I can fix that on applying. > mediatek target in OpenWrt with G

Re: [PATCH] efi_loader: Don't allocate from Special purpose memory

2024-10-16 Thread Heinrich Schuchardt
On 17.09.24 11:02, Ilias Apalodimas wrote: The EFI spec defines special-purpose memory in §7.2. That memory serves as a hint to the OS to avoid allocating this memory for core OS data or code that can not be relocated. So let's ignore it when allocating from conventional memory. Signed-off-by: I

Re: [PATCH] envtools: make them build again

2024-10-16 Thread Tom Rini
On Wed, Oct 16, 2024 at 05:10:35PM +0200, Rasmus Villemoes wrote: > In v2024.10, "make envtools" is broken for at least these defconfigs: > >am335x_evm_defconfig >rpi_3_defconfig >rpi_4_defconfig >mx7dsabresd_defconfig >wandboard_defconfig >imx8mp_evk_defconfig > > The on

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-16 Thread Dmitry Rokosov
Hi Simon, On Tue, Oct 15, 2024 at 09:27:14AM -0600, Simon Glass wrote: > Hi Dmitry, > > On Tue, 15 Oct 2024 at 08:42, Dmitry Rokosov > wrote: > > > > Hi Mattijs, Simon, > > > > On Tue, Oct 15, 2024 at 02:10:10PM +0200, Mattijs Korpershoek wrote: > > > Hi Simon, Dmitry > > > > > > On lun., oct. 1

[PATCH 3/3] image: android: handle ramdisk default address

2024-10-16 Thread Neil Armstrong
The two tools that create android boot images, mkbootimg and the fastboot client, set the kernel address by default to 0x11008000. U-boot always honors this field, and will try to copy the ramdisk to whatever value is set in the header, which won't be mapped to the actual RAM on most platforms, re

[PATCH 2/3] boot: image-android: do not boot XIP when kernel is compressed

2024-10-16 Thread Neil Armstrong
When trying to boot an android boot image with a compressed kernel, if the kernel is used in-place because it was created with mkbootimg, the space will be too small to properly uncompress. Take in account the compressed state, and if compressed use the kernel_addr_r which should be big enough. S

[PATCH 1/3] image: android: use ulong for kernel address

2024-10-16 Thread Neil Armstrong
When booting with platforms having > 4GiB of memory, the kernel physical address can be more than 32bits. Use ulong like all the other addresses, and fix the print to show the > 32bits address numbers. Signed-off-by: Neil Armstrong --- boot/image-android.c| 4 ++-- include/android_image.h |

[PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms

2024-10-16 Thread Neil Armstrong
mpressed image: android: handle ramdisk default address boot/image-android.c| 60 + include/android_image.h | 2 +- 2 files changed, 47 insertions(+), 15 deletions(-) --- base-commit: d5cab0d6adc26ec1bbd45c2fed101184d04454ae change-id: 202410

Re: New Defects reported by Coverity Scan for Das U-Boot

2024-10-16 Thread Raymond Mao
Hi Tom, On Tue, 15 Oct 2024 at 23:47, Tom Rini wrote: > Hey all, here's the latest report. > > -- Forwarded message - > From: > Date: Tue, Oct 15, 2024 at 5:06 PM > Subject: New Defects reported by Coverity Scan for Das U-Boot > To: > > > Hi, > > Please find the latest report o

[PATCH] envtools: make them build again

2024-10-16 Thread Rasmus Villemoes
In v2024.10, "make envtools" is broken for at least these defconfigs: am335x_evm_defconfig rpi_3_defconfig rpi_4_defconfig mx7dsabresd_defconfig wandboard_defconfig imx8mp_evk_defconfig The only defconfig we use for which it is not broken is stm32mp13_defconfig. They all work ju

Re: device_bind() with ofnode_null() tripping assert()?

2024-10-16 Thread Jonas Karlman
Hi Quentin, On 2024-10-16 13:25, Quentin Schulz wrote: > Hi all, > > Not sure how to word this better so here goes nothing. > > I recently wanted to debug some issues possibly related to DM which had > a bunch of debug() log messages I wanted to see. To see those, one needs > to define DEBUG.

Re: [PATCH v3 2/6] treewide: bcb: move ab_select command to bcb subcommands

2024-10-16 Thread Dmitry Rokosov
On Tue, Oct 15, 2024 at 05:26:37PM +0200, Mattijs Korpershoek wrote: > Hi Dmitry, > > On mar., oct. 15, 2024 at 16:26, Dmitry Rokosov > wrote: > > > Hi Mattijs, > > > > On Tue, Oct 15, 2024 at 02:10:10PM +0200, Mattijs Korpershoek wrote: > >> Hi Simon, Dmitry > >> > >> On lun., oct. 14, 2024 a

Re: [PATCH v4 5/5] efi: Keep early allocations to the U-Boot region

2024-10-16 Thread Ilias Apalodimas
[...] > > > + > > > +/** > > > + * efi_memory_coop() - Allow EFI to use all available memory > > > + * > > > + * Up until this function is called, only a small portion of memory is > > > available > > > + * for use by the EFI memory-allocator. This function is called at the > > > + * 'point of co

Re: [PATCH] usb: dwc3-generic: use DR_MODE_OTG when dr_mode isn't specified

2024-10-16 Thread Neil Armstrong
Hi, On 16/10/2024 13:22, Marek Vasut wrote: On 10/16/24 10:26 AM, Neil Armstrong wrote: The USB DRD bindingsa at [1] are clear, if not specified the dr_mode property defaults to otg, and this is how Linux behaves. A cleanup is ongoing on the Linux Device Trees to remove dr_mode when set to "ot

Re: [PATCH 1/1] efi_loader: avoid #ifdef in efi_setup.c

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 13:17, Heinrich Schuchardt wrote: > > We prefer `if` over `#ifdef` in our code. > > Eliminate #ifdef statements in efi_setup.c. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_setup.c | 25 ++--- > 1 file changed, 10 insertions(+), 15

Re: [PATCH 1/1] cmd: wget: CONFIG_CMD_WGET must depend on CONFIG_CMD_NET

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 12:50, Heinrich Schuchardt wrote: > > do_wget is defined in cmd/net.c. > cmd/net.c is not compiled if CONFIG_CMD_NET=n. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/cmd/Kconfig b/cmd/Kconfig > index 378

Re: [PATCH v13 09/21] net: lwip: add DHCP support and dhcp commmand

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 13:04, Jerome Forissier wrote: > > Add what it takes to enable NETDEVICES with NET_LWIP and enable DHCP as > well as the dhcp command. CMD_TFTPBOOT is selected by BOOTMETH_EFI due > to this code having an implicit dependency on do_tftpb(). > > Note that PXE is likely non-fon

[PATCH] .mailmap: update e-mail address for Eugen Hristev

2024-10-16 Thread Eugen Hristev
Update e-mail address. Signed-off-by: Eugen Hristev --- .mailmap | 3 ++- doc/git-mailrc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index 952e1dac4b20..4d48349f0e9f 100644 --- a/.mailmap +++ b/.mailmap @@ -38,7 +38,8 @@ Boris Brezillon Ch

[PATCH 1/1] arm: provide noncached_set_region prototype to fix build

2024-10-16 Thread Jonas Jelonek
Due to the removal of weak functions in 7d6cee2cd0 ("cmd: cache: Remove weak function"), uboot fails to compile after updating to v2024.10 for mediatek target in OpenWrt with GCC-14 with error: cmd/cache.c: In function 'do_dcache': cmd/cache.c:57:25: error: implicit declaration of function

[PATCH 0/1] arm: provide noncached_set_region prototype to fix build

2024-10-16 Thread Jonas Jelonek
In OpenWrt project, an issue recently occured after updating u-boot for mediatek to v2024.10. When building with GCC-14 toolchain, it fails with: cmd/cache.c: In function 'do_dcache': cmd/cache.c:57:25: error: implicit declaration of function 'noncached_set_region' [-Wimplicit-function-decl

[PATCH v13 09/21] net: lwip: add DHCP support and dhcp commmand

2024-10-16 Thread Jerome Forissier
Add what it takes to enable NETDEVICES with NET_LWIP and enable DHCP as well as the dhcp command. CMD_TFTPBOOT is selected by BOOTMETH_EFI due to this code having an implicit dependency on do_tftpb(). Note that PXE is likely non-fonctional with NET_LWIP (or at least not 100% functional) because DH

[PATCH v13 05/21] net: introduce alternative implementation as net/lwip/

2024-10-16 Thread Jerome Forissier
Prepare the introduction of the lwIP (lightweight IP) TCP/IP stack by adding a new net/lwip/ directory and the NET_LWIP symbol. Network support is either NO_NET, NET (legacy stack) or NET_LWIP. Subsequent commits will introduce the lwIP code, re-work the NETDEVICE integration and port some of the N

[PATCH] arm: dts: k3-j722s-r5-evm: Add LPDDR4 4000 MT/s configs

2024-10-16 Thread Vaishnav Achath
Add the latest 4000 MT/s DDR config generated by Jacinto7_DDRSS_RegConfigTool Rev 0.11 for J722S , make it the default config and update A53 default clock to 1.4 GHz matching the default speed grade (K). Signed-off-by: Vaishnav Achath --- memtester logs on J722S EVM: https://gist.github.

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2024-10-16 Thread Tudor Ambarus
+ Amit ugh, the parallel/stacked SPI NOR thingy was applied in u-boot. We rejected it in linux, this support shall be above SPI NOR. How about reverting the support until we have an agreement in linux? Or, if we want to still keep it until we come with a better approach, it would be good if Amit

Re: [PATCH v13 07/21] net: eth-uclass: add function eth_start_udev()

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 13:04, Jerome Forissier wrote: > > Add a function to start a given network device, and update eth_init() > to use it. > > Signed-off-by: Jerome Forissier > --- > include/net-common.h | 1 + > net/eth-uclass.c | 38 +- > 2 files chan

Re: [PATCH v13 06/21] net: split net into net{, -common, -legacy, -lwip}

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 13:04, Jerome Forissier wrote: > > Make net.h a wrapper which includes net-common.h and either > net-legacy.h or net-lwip.h based on NET_LWIP. The function > copy_filename() can be useful when NET_LWIP is enabled, therefore > move it out of net/net.c which is built only when

Re: [PATCH v13 13/21] net: lwip: add dns command

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 13:05, Jerome Forissier wrote: > > Add CMD_DNS when NET_LWIP is enabled to provide the dns command using > lwIP. > > Signed-off-by: Jerome Forissier > --- > cmd/Kconfig| 11 ++-- > cmd/net-lwip.c | 8 +++ > include/net-lwip.h | 1 + > net/lwip/Makefile |

Re: [PATCH v13 12/21] net: lwip: add ping command

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 13:05, Jerome Forissier wrote: > > Add support for the the ping command with NET_LWIP. The implementation > is derived from lwIP's contrib/apps/ping/ping.c. > > Signed-off-by: Jerome Forissier > --- > cmd/Kconfig| 11 +-- > cmd/net-lwip.c | 8 ++ > include/n

Re: [PATCH v13 15/21] net: lwip: add wget command

2024-10-16 Thread Ilias Apalodimas
On Wed, 16 Oct 2024 at 13:05, Jerome Forissier wrote: > > Add support for the wget command with NET_LWIP. The command normally > expects a URL: wget [loadaddr] url, but it also accepts the legacy > syntax: wget [loadaddr] [server:]file. > The server IP may alternatively be supplied via ${httpserve

Re: [PATCH 1/2] arm64: imx8mp: Read MAC address from M24C32-D write-lockable page on DH i.MX8MP DHCOM if available

2024-10-16 Thread Marek Vasut
On 10/16/24 1:57 PM, Christoph Niedermaier wrote: From: Marek Vasut Sent: Saturday, October 12, 2024 10:43 PM On 10/10/24 3:23 PM, Christoph Niedermaier wrote: The i.MX8M Plus DHCOM currently supports parsing ethernet MAC address from multiple sources in the following priority order: 1) U-Boo

Re: [PATCH] usb: dwc3-generic: use DR_MODE_OTG when dr_mode isn't specified

2024-10-16 Thread Marek Vasut
On 10/16/24 10:26 AM, Neil Armstrong wrote: The USB DRD bindingsa at [1] are clear, if not specified the dr_mode property defaults to otg, and this is how Linux behaves. A cleanup is ongoing on the Linux Device Trees to remove dr_mode when set to "otg", so take this in account and do not fail an

RE: [PATCH 2/2] arm64: imx8mp: Read item and serial number from EEPROM ID page on DH i.MX8MP DHCOM

2024-10-16 Thread Christoph Niedermaier
From: Marek Vasut Sent: Saturday, October 12, 2024 10:56 PM > On 10/10/24 3:23 PM, Christoph Niedermaier wrote: >> The new i.MX8M Plus DHCOM rev.200 is populated with M24C32-D EEPROM >> which contains additional write-lockable page called ID page, which >> is populated with a structure containing

RE: [PATCH 1/2] arm64: imx8mp: Read MAC address from M24C32-D write-lockable page on DH i.MX8MP DHCOM if available

2024-10-16 Thread Christoph Niedermaier
From: Marek Vasut Sent: Saturday, October 12, 2024 10:43 PM > On 10/10/24 3:23 PM, Christoph Niedermaier wrote: >> The i.MX8M Plus DHCOM currently supports parsing ethernet MAC address >> from multiple sources in the following priority order: >> >> 1) U-Boot environment 'ethaddr'/'eth1addr' enviro

Re: [PATCH 14/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2024-10-16 Thread Fabio Estevam
Hi Alice, On Wed, Oct 16, 2024 at 4:19 AM Alice Guo wrote: > > From: Ye Li > > This patch adds i.MX95 19x19 EVK board basic support. > > Signed-off-by: Ye Li > Signed-off-by: Alice Guo > Reviewed-by: Peng Fan A MAINTAINERS file is missing. CI flags this as an error. Please make sure to run

Re: [PATCH] dm: core: downgrade some dm_warn messages to log_debug()

2024-10-16 Thread Quentin Schulz
On 10/15/24 4:32 PM, Quentin Schulz wrote: From: Quentin Schulz People complained that enabling (SPL_)DM_WARN was now totally unusable due to the amount of messages printed on the console. Let's downgrade the log level of some messages that are clearly not on the error path. Note that ther

device_bind() with ofnode_null() tripping assert()?

2024-10-16 Thread Quentin Schulz
Hi all, Not sure how to word this better so here goes nothing. I recently wanted to debug some issues possibly related to DM which had a bunch of debug() log messages I wanted to see. To see those, one needs to define DEBUG. Once that's done, assert() calls are now built in. It turns out tha

Re: [PATCH v6] rockchip: board: Increase rng-seed size to make it sufficient for modern Linux

2024-10-16 Thread Quentin Schulz
Hi Alex, On 10/16/24 12:02 PM, Alex Shumsky wrote: Increase rng-seed size to make Linux happy and initialize rng pool instantly. Linux 5.19+ requires 32 bytes of entropy to initialize random pool, but u-boot currently provides only 8 bytes. Linux 5.18 and probably some versions before it used to

Re: [PATCH v6] rockchip: board: Increase rng-seed size to make it sufficient for modern Linux

2024-10-16 Thread Dragan Simic
Hello Alex, On 2024-10-16 12:02, Alex Shumsky wrote: Increase rng-seed size to make Linux happy and initialize rng pool instantly. Linux 5.19+ requires 32 bytes of entropy to initialize random pool, but u-boot currently provides only 8 bytes. Linux 5.18 and probably some versions before it use

[PATCH 1/1] efi_loader: avoid #ifdef in efi_setup.c

2024-10-16 Thread Heinrich Schuchardt
We prefer `if` over `#ifdef` in our code. Eliminate #ifdef statements in efi_setup.c. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_setup.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi

  1   2   >