Re: [PATCH 2/3] rockchip: fix wrong PCI range address in rk3568 dtsi

2024-06-24 Thread Etienne Dublé
Hi Quentin, Le 24/06/2024 à 15:15, Quentin Schulz a écrit : Hi Etienne, On 6/24/24 2:40 PM, ETIENNE DUBLE wrote: One of the PCI ranges was wrong in this device tree. When testing with a FriendlyElec Nanopi R5C board, the 2nd ethernet interface (labelled "wan") was not working in u-boot because

Re: [PATCH 1/3] net: give a different name to rtl8169 interfaces

2024-06-24 Thread Etienne Dublé
Hi Quentin, Thanks for reviewing my patches. Le 24/06/2024 à 15:08, Quentin Schulz a écrit : [...]   1 file changed, 11 insertions(+) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 93e83661ce..b30d51731f 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169.c @@ -109

Re: [PATCH v4 10/14] net-lwip: add wget command

2024-06-24 Thread Jon Humphreys
Jerome Forissier writes: > On 6/24/24 08:21, Jon Humphreys wrote: >> Jerome Forissier writes: >> >>> Add support for the wget command with NET_LWIP. >>> >>> Based on code initially developed by Maxim U. >>> >>> Signed-off-by: Jerome Forissier >>> Co-developed-by: Maxim Uvarov >>> Cc: Maxim Uv

Re: [PATCH] imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN

2024-06-24 Thread Marek Vasut
On 6/24/24 10:20 AM, Paul Geurts wrote: The decision on whether HAB is enabled is solely based on the SEC_CONFIG fuse. The HAB FIELD_RETURN feature is able to permanently disable HAB on a CPU, after which it is able to boot unsigned firmware. U-Boot however does not take into account the FIELD_RE

Re: [PATCH v3 4/6] buildman: Always use the full path in CROSS_COMPILE

2024-06-24 Thread Andrejs Cainikovs
On Sun, Jun 23, 2024 at 11:56:20AM -0600, Simon Glass wrote: > The feature to set the toolchain path does not seem to be needed. It > causes problems with venv (see [1]). Let's remove it. > > Add some tests while we are here. > > It does not look like any docs changes are needed for this. > > [1

Re: [PATCH 25/42] test: Allow connecting to a running board

2024-06-24 Thread Andrejs Cainikovs
On Tue, Jun 11, 2024 at 02:01:39PM -0600, Simon Glass wrote: > Sometimes we know that the board is already running the right software, > so provide an option to allow running of tests directly, without first > resetting the board. > > This saves time when re-running a test where only the Python co

Re: [PATCH v4 00/14] Introduce the lwIP network stack

2024-06-24 Thread Tim Harvey
On Sat, Jun 22, 2024 at 1:09 AM Maxim Uvarov wrote: > > пт, 21 июн. 2024 г. в 21:42, Fabio Estevam : > > > > Hi Tim and Jerome, > > > > On Fri, Jun 21, 2024 at 1:08 PM Tim Harvey wrote: > > > > > I tried your to-upstream/v5-wip branch > > > (042bea36eb9731079a3d7afffe3774d79e06ac5d) and it behave

Re: [PATCH v2] fs: btrfs: fix out of bounds write

2024-06-24 Thread Tom Rini
On Tue, Jun 25, 2024 at 01:22:01AM +0300, Alex ThreeD wrote: > Hi all, > > Is there something on my side needed to push this forward? I will pick it up for -next in a while, thanks. > > On Wed, Jun 19, 2024 at 12:41 AM Alex Shumsky wrote: > > > Fix btrfs_read/read_and_truncate_page write out

Re: [PATCH v2] fs: btrfs: fix out of bounds write

2024-06-24 Thread Alex ThreeD
Hi all, Is there something on my side needed to push this forward? On Wed, Jun 19, 2024 at 12:41 AM Alex Shumsky wrote: > Fix btrfs_read/read_and_truncate_page write out of bounds of destination > buffer. Old behavior break bootstd malloc'd buffers of exact file size. > Previously this OOB writ

[PATCH 9/9] doc: introduce led.rst documentation

2024-06-24 Thread Christian Marangi
Introduce simple led.rst documentation to document all the additional Kconfig and the current limitation of LED_BLINK and GPIO software blink. Signed-off-by: Christian Marangi --- doc/api/index.rst | 1 + doc/api/led.rst | 10 ++ include/led.h | 38

[PATCH 8/9] ubi: implement support for LED activity

2024-06-24 Thread Christian Marangi
Implement support for LED activity. If the feature is enabled, make the defined ACTIVITY LED to signal ubi write operation. Signed-off-by: Christian Marangi --- cmd/ubi.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cmd/ubi.c b/cmd/ubi.c index 8c1b5df0572..

[PATCH 7/9] mtd: implement support for LED activity

2024-06-24 Thread Christian Marangi
Implement support for LED activity. If the feature is enabled, make the defined ACTIVITY LED to signal mtd write or erase operations. Signed-off-by: Christian Marangi --- cmd/mtd.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/cmd/mtd.c b/cmd/mtd.c index 795aaa2b37d..b

[PATCH 6/9] tftp: implement support for LED activity

2024-06-24 Thread Christian Marangi
Implement support for LED activity. If the feature is enabled, make the defined ACTIVITY LED to signal traffic. Signed-off-by: Christian Marangi --- net/tftp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/net/tftp.c b/net/tftp.c index 6b16bdcbe4c..1d6609342a9 100644 --- a/net/tftp.

[PATCH 5/9] led: implement LED activity API

2024-06-24 Thread Christian Marangi
Implement LED activity API similar to BOOT LED API. Usual activity might be a file transfer with TFTP, a flash write... User of this API will call led_activity_on/off/blink() to signal these kind of activity. New Kconfig are implemented similar to BOOT LED, LED_ACTIVITY_ENABLE to enable support

[PATCH 4/9] common: board_r: rework BOOT LED handling

2024-06-24 Thread Christian Marangi
Rework BOOT LED handling. There is currently one legacy implementation for BOOT LED from Status Led API. This work on ancient implementation wused by BOOTP by setting the LED to Blink on boot and to turn it OFF when the firmware was correctly received by network. Now that we new LED implementatio

[PATCH 3/9] led: implement LED boot API

2024-06-24 Thread Christian Marangi
Implement LED boot API to signal correct boot of the system. led_boot_on/off/blink() are introduced to turn ON, OFF and BLINK the designated boot LED. New Kconfig are introduced, CONFIG_LED_BOOT_ENABLE to enable the feature, CONFIG_LED_BOOT_LABEL to declare the LED label in DT to reference the LE

[PATCH 2/9] led: implement led_set_state/paeriod_by_label

2024-06-24 Thread Christian Marangi
Introduce new API led_set_state/period_by label as a shorthand to set LED state and LED blink period by referencing them by label. This is needed for the upcoming additional API that will declare LED in .confg and reference them by their LED label name. Signed-off-by: Christian Marangi --- driv

[PATCH 1/9] led: led_gpio: add support for SW Blink

2024-06-24 Thread Christian Marangi
Add support for GPIO-connected LEDs to make use of Cyclic API to simulate Blink by software. A new Kconfig is introduced to enable this, CONFIG_LED_GPIO_SW_BLINK. Signed-off-by: Christian Marangi --- drivers/led/Kconfig| 9 +++ drivers/led/led_gpio.c | 56 ++

[PATCH 0/9] led: introduce LED boot and activity function

2024-06-24 Thread Christian Marangi
This series is a reworked version of the previous seried: misc: introduce STATUS LED activity function This series port and expand the legacy concept of LED boot from the legacy Status LED API to new LED API. One thing that many device need is a way to communicate to the user that the device is

Re: [GIT PULL] Please pull u-boot-imx-next-20240624

2024-06-24 Thread Tom Rini
BOOTMGR > support + typos" (2024-06-20 11:41:43 -0600) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-next-20240624 > > for you to fetch changes up to b7f677dc40429a8172c7ba5edcf3b426097e28

Re: [PATCH] board: beagle: beagleplay: enable OF_SYSTEM_SETUP

2024-06-24 Thread Tom Rini
On Wed, 19 Jun 2024 14:12:30 -0500, Bryan Brattlof wrote: > Unfortunately when enabling FDT fixups for the AM62x family of SoCs and > moving TF-A to the bottom of RAM we missed the BeaglePlay. This is > causing Linux's memory allocator to clobber TF-A and break its boot. > > Enable OF_SYSTEM_SETU

Re: [PATCH v2 0/5] FUSB302 USB-C controller support

2024-06-24 Thread Tim Harvey
On Tue, Jun 4, 2024 at 9:35 AM Sebastian Reichel wrote: > > 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 >

[PATCH] pci_ids: fix i225 unprogrammed value

2024-06-24 Thread Marjolaine Amate
This patch fixes the I225 hardware default value at 0x15FD meaning empty flash image or the NVM configuration loading failed Signed-off-by: Marjolaine Amate --- include/pci_ids.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pci_ids.h b/include/pci_ids.h index f1886

[PATCH v2 1/2] imx: hab: rename imx_sec_config_fuse_t to imx_fuse_t

2024-06-24 Thread Paul Geurts
The imx_sec_config_fuse_t structure is not specific to the sec_config fuse, but can be used for all fuse words. Rename the structure to a more generic name to be reused for other fuses. Signed-off-by: Paul Geurts --- arch/arm/include/asm/mach-imx/hab.h | 4 ++-- arch/arm/mach-imx/hab.c

[PATCH v2 2/2] imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN

2024-06-24 Thread Paul Geurts
The decision on whether HAB is enabled is solely based on the SEC_CONFIG fuse. The HAB FIELD_RETURN feature is able to permanently disable HAB on a CPU, after which it is able to boot unsigned firmware. U-Boot however does not take into account the FIELD_RETURN mode, and refuses to boot unsigned so

[PATCH v2 0/2] imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN

2024-06-24 Thread Paul Geurts
The imx_hab_is_enabled function makes sure SPL and U-Boot only blocks the boot process when HAB is actually enabled. Currently only the SEC_CONFIG fuse is checked for this, as this is the fuse that closes the board for HAB. The Field return fuse however is used to permanently disable HAB. This fuse

[PATCH] e1000: add support for i226

2024-06-24 Thread Marjolaine Amate
This patch adds support for Intel Foxville I226 devices LM,V,I,K in e1000 driver. Signed-off-by: Marjolaine Amate --- drivers/net/e1000.c | 18 ++ drivers/net/e1000.h | 2 ++ include/pci_ids.h | 7 +++ 3 files changed, 27 insertions(+) diff --git a/drivers/net/e1000.c b/

[PATCH v4 14/14] clk: mediatek: mt7986: support alternative compatible for fixed-plls

2024-06-24 Thread Christian Marangi
Support alternative compatible for fixed-plls clocks used upstream with the compatible mediatek,mt7986-apmixedsys. Signed-off-by: Christian Marangi --- drivers/clk/mediatek/clk-mt7986.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/mediatek/clk-mt7986.c b/drivers/clk/mediatek/

[PATCH v4 13/14] clk: mediatek: mt7988: support alternative compatible for fixed-plls

2024-06-24 Thread Christian Marangi
Support alternative compatible for fixed-plls clocks used upstream with the compatible mediatek,mt7988-apmixedsys. Signed-off-by: Christian Marangi --- drivers/clk/mediatek/clk-mt7988.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/mediatek/clk-mt7988.c b/drivers/clk/mediatek/

[PATCH v4 12/14] pci: mediatek: make pcie-phy optional for gen3

2024-06-24 Thread Christian Marangi
Set pcie-phy optional for PCIe gen3. MT7988 doesn't require it and making it mandatory prevent the driver to correctly probe. Signed-off-by: Christian Marangi --- drivers/pci/pcie_mediatek_gen3.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers

[PATCH v4 11/14] pinctrl: mediatek: mt7981: init device before relocation

2024-06-24 Thread Christian Marangi
Upstream kernel linux define pinctrl for uart0, hence this pin group and pinctrl driver is needed before relocation. Add DM_FLAG_PRE_RELOC flag to init and mute mtk_serial error on early serial init. Signed-off-by: Christian Marangi --- drivers/pinctrl/mediatek/pinctrl-mt7981.c | 1 + 1 file cha

[PATCH v4 10/14] pinctrl: mediatek: add support for gpio-controller property in root node

2024-06-24 Thread Christian Marangi
Add support for gpio-controller property in root pinctrl node. This is to follow upstream linux DTSI that doesn't define the gpio-controller and cells in dedicated nodes. Signed-off-by: Christian Marangi --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 10 ++ 1 file changed, 10 insert

[PATCH v4 09/14] clk: mediatek: mt7981: support alternative compatible for fixed-plls

2024-06-24 Thread Christian Marangi
Support alternative compatible for fixed-plls clocks used upstream with the compatible mediatek,mt7981-apmixedsys. Signed-off-by: Christian Marangi --- drivers/clk/mediatek/clk-mt7981.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/mediatek/clk-mt7981.c b/drivers/clk/mediatek/

[PATCH v4 08/14] mmc: mediatek: add support for upstream linux clock and property

2024-06-24 Thread Christian Marangi
Add support for upstream linux clock and map U-Boot property to the one use in upstream linux where supported. Also add handling for the use_internal_cd that on upstream is hardcoded enabled on mt7620. Signed-off-by: Christian Marangi --- drivers/mmc/mtk-sd.c | 35 ++

[PATCH v4 07/14] serial: mediatek: add special handling for highspeed and linux compat

2024-06-24 Thread Christian Marangi
Upstream linux serial driver use a different logic to setup serial regs. They have 2 interval: - < 115200 we use lowspeed regs and 16 * baud - >= 115200 we use highspeed We currently use force_highspeed property to force usage of highspeed regs even with low baud rate. Add special handling if th

[PATCH v4 06/14] serial: mediatek: add support for bus clock and enable it

2024-06-24 Thread Christian Marangi
Upstream linux also provide the additional optional bus clock. Add support for it and also enable the baud and bus clock on probe. Signed-off-by: Christian Marangi --- drivers/serial/serial_mtk.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/serial/serial_mtk.c b/drivers/s

[PATCH v4 05/14] i2c: mediatek: add support for optional arb and pmic clock

2024-06-24 Thread Christian Marangi
Add support for optional arb and pmic clock for i2c provided in upstream linux DTSI. Signed-off-by: Christian Marangi --- drivers/i2c/mtk_i2c.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/i2c/mtk_i2c.c b/drivers/i2c/mtk_i2c.c index 5592fe91817..345

[PATCH v4 04/14] net: mediatek: handle alternative name for pn_swap property

2024-06-24 Thread Christian Marangi
Handle alternative name for pn_swap property as upstream linux use mediatek,pnswap. Signed-off-by: Christian Marangi --- drivers/net/mtk_eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 94f17a97fe0..5098afef8a8 10064

[PATCH v4 03/14] spi: mtk_spim: add support for upstream mediatek, spi-ipm compatible

2024-06-24 Thread Christian Marangi
Upstream kernel linux use a different compatible mediatek,spi-ipm. Add support for this compatible and add handling for the additional clock similar to how it's done by the upstream driver and handling for all the property enabled by default. Signed-off-by: Christian Marangi --- drivers/spi/mtk

[PATCH v4 02/14] pci: mediatek: add PCIe controller support for filogic silicon

2024-06-24 Thread Christian Marangi
From: John Crispin Add MediaTek GEN3 PCIe controller support for filogic silicon. This is adapted from the Linux version of the driver. Signed-off-by: John Crispin [ fix minor problems, fix checkpatch errors ] Signed-off-by: Christian Marangi --- drivers/pci/Kconfig | 7 + driv

[PATCH v4 01/14] phy: phy-mtk-tphy: add support for phy type switch

2024-06-24 Thread Christian Marangi
Add support for PHY type switch via the mediatek topmisc syscon. This is needed on mt7981 to make the PCIe correctly work and display LinkUp. Follow the same implementation done on Linux kernel with the usage of the mediatek,syscon-type property. Example: u3port0: usb-phy@11e10700 { reg

[PATCH v4 00/14] mediatek: cumulative trivial fix for OF_UPSTREAM support

2024-06-24 Thread Christian Marangi
This is an initial series that have all the initial trivial fixes required for usage of OF_UPSTREAM for the mediatek SoC This also contains the pcie-gen3 driver and the required tphy support driver to make it work. Subsequent series will follow with conversion of the mtk-clk to permit usage of OF

Re: [U-BOOT-TEST][PATCH 1/1] travis-ci: SiFive Unleashed: avoid format warning

2024-06-24 Thread Tom Rini
On Sun, 23 Jun 2024 12:58:15 +0200, Heinrich Schuchardt wrote: > QEMU expects the file format to be specified even for raw files. > Currently this change only suppresses a warning. > > Applied to u-boot/u-boot-test-hooks.git/master, thanks! -- Tom

[PATCH] rockchip: add support for Radxa ROCK Pi E v3.0

2024-06-24 Thread FUKAUMI Naoki
ROCK Pi E v3.0 uses DDR4 SDRAM instead of DDR3 SDRAM used in v1.2x. prepare new rk3328-rock-pi-e-v3.dts in u-boot which just includes upstream rk3328-rock-pi-e.dts. defconfig still uses CONFIG_DEFAULT_FDT_FILE="rockchip/rk3328-rock-pi-e.dtb" because v3.0 and prior are compatible. Suggested-by:

Re: USB OTG mode for DWC3 (ie imx8mp) host controller with usb_ether USB Ethernet gadget?

2024-06-24 Thread Fabio Estevam
On Mon, Jun 24, 2024 at 4:54 PM Adam Ford wrote: > I think some people tried to push a Type-C driver if memory serves, > but I think it was rejected. I don't recall the details and my memory > is terrible. :-) There is a recent series from Sebastian that adds USB Type-C support: https://lore.

Re: USB OTG mode for DWC3 (ie imx8mp) host controller with usb_ether USB Ethernet gadget?

2024-06-24 Thread Tim Harvey
On Mon, Jun 24, 2024 at 12:54 PM Adam Ford wrote: > > On Mon, Jun 24, 2024 at 2:39 PM Tim Harvey wrote: > > > > Greetings, > > > > What is missing in U-Boot for the DWC3 host controller to support OTG > > mode for usb_ether (USB Ethernet gadget)? I'm unable to get the usb > > ethernet gadget to w

Re: USB OTG mode for DWC3 (ie imx8mp) host controller with usb_ether USB Ethernet gadget?

2024-06-24 Thread Adam Ford
On Mon, Jun 24, 2024 at 2:39 PM Tim Harvey wrote: > > Greetings, > > What is missing in U-Boot for the DWC3 host controller to support OTG > mode for usb_ether (USB Ethernet gadget)? I'm unable to get the usb > ethernet gadget to work for the imx8mp as it errors out with 'No UDC > available in the

USB OTG mode for DWC3 (ie imx8mp) host controller with usb_ether USB Ethernet gadget?

2024-06-24 Thread Tim Harvey
Greetings, What is missing in U-Boot for the DWC3 host controller to support OTG mode for usb_ether (USB Ethernet gadget)? I'm unable to get the usb ethernet gadget to work for the imx8mp as it errors out with 'No UDC available in the system'. The ums/acm/sdp gadget's all call udc_device_get_by_i

[ANN] U-Boot v2024.07-rc5 released

2024-06-24 Thread Tom Rini
Hey all, Well, once again I need to check my calender reminders since, whoops, I'm a week late. That said, looking at the list of changes in this slightly elongated period, I think it's OK. At this point we're a week out from the release, so it's time for clear and obvious regression fixes. Ideall

Re: Pull request for tpm-master-24062024

2024-06-24 Thread Tom Rini
On Mon, Jun 24, 2024 at 03:29:56PM +0300, Ilias Apalodimas wrote: > Hi Tom, > > A few last minutes fixes for EFI, but this time via the TPM tree > > The following changes since commit fe2ce09a0753634543c32cafe85eb87a625f76ca: > > Merge branch 'master' of > https://source.denx.de/u-boot/custo

Re: [PATCH] imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN

2024-06-24 Thread Paul Geurts
Hi Fabio, >Hi Paul, > >On Fri, Jun 21, 2024 at 10:06 AM Paul Geurts > wrote: > >> -struct imx_sec_config_fuse_t { >> +struct imx_fuse_t { > >Please make the struct renaming a separate patch. Yes, I will do that. > >Peng Fan, Ye Li, > >Could you please help review this patch? > >Thanks >

[PATCH] doc: fit: Make data-size a conditionally mandatory property

2024-06-24 Thread Bastian Germann
Before 9d0750064e (doc: Move external FIT docs into the main body), the FIT property data-size was not a mandatory property and still it is not expected to be set alongside the data property. Move the data-size property to the "Conditionally mandatory property" section, where it actually belongs.

Re: [PATCH 13/14] Update u-boot.cfg to include CFG also

2024-06-24 Thread Tom Rini
On Sun, Jun 23, 2024 at 02:30:32PM -0600, Simon Glass wrote: > Some configuration is now in variables with a CFG_ prefix. Add these to > the .cfg file so that we can see everything in one place. Sort the > options so they are easier to find and compare. > > Signed-off-by: Simon Glass > --- > >

Re: [PATCH v3 08/19] test: Introduce the concept of a role

2024-06-24 Thread Tom Rini
On Sun, Jun 23, 2024 at 02:32:02PM -0600, Simon Glass wrote: > In Labgrid there is the concept of a 'role', which is similar to the > U-Boot board ID in U-Boot's pytest subsystem. > > The role indicates both the target and information about the U-Boot > build to use. It can also provide any amoun

Re: [PATCH v3 06/19] test: Avoid failing skipped tests

2024-06-24 Thread Tom Rini
On Sun, Jun 23, 2024 at 02:32:00PM -0600, Simon Glass wrote: > When a test returns -EAGAIN this should not be considered a failure. > Fix what seems to be a problem case, where the pytests see a failure > when a test has merely been skipped. > > Signed-off-by: Simon Glass > --- > > (no changes

Re: [PATCH v3 19/19] CI: Allow running tests on sjg lab

2024-06-24 Thread Tom Rini
On Mon, Jun 24, 2024 at 04:56:02PM +0200, Michael Nazzareno Trimarchi wrote: > Hi Simon > > On Mon, Jun 24, 2024 at 2:52 PM Andrejs Cainikovs > wrote: > > > > On Sun, Jun 23, 2024 at 02:32:13PM -0600, Simon Glass wrote: > > > Add a way to run tests on a real hardware lab. This is in the very earl

Re: [PATCH v2 2/9] tpm: Avoid code bloat when not using EFI_TCG2_PROTOCOL

2024-06-24 Thread Tom Rini
On Sun, Jun 23, 2024 at 03:52:12PM -0600, Simon Glass wrote: > Hi Tom, > > On Fri, 21 Jun 2024 at 16:12, Tom Rini wrote: > > > > On Fri, Jun 21, 2024 at 01:38:07PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 21 Jun 2024 at 13:19, Tom Rini wrote: > > > > > > > > On Fri, Jun 21, 20

Re: [PATCH v2 0/8] Enable QoS for DSS on J7 family of TI SoCs

2024-06-24 Thread Tom Rini
On Fri, 14 Jun 2024 18:14:34 +0530, Jayesh Choudhary wrote: > This series adds the QoS for DSS on J721E, J721S2 and J784S4 family of > SoCs. > > Before adding the support, cleanup is done for AM62A QoS support[0] > and common bit mask defines are moved to the common file so that they > are not de

Re: [PATCH 05/14] sunxi: Mark scp as optional

2024-06-24 Thread Dragan Simic
Hello Simon, On 2024-06-23 22:30, Simon Glass wrote: This binary does not prevent the system from booting. Mark it optional so that U-Boot can be built without it. It should read "Lack of this binary..." instead, to properly describe the background of this patch. Signed-off-by: Simon Glass

Re: [PATCH v3 6/6] CI: Run code-coverage test for Binman

2024-06-24 Thread Tom Rini
On Sun, Jun 23, 2024 at 11:56:22AM -0600, Simon Glass wrote: > Binman includes a good set of tests covering all of its functionality. > This includes a code-coverage test. > > However to date the code-coverage test has not been checked > automatically by CI, relying on people to run 'binman test

Re: [PATCH v3 4/6] buildman: Always use the full path in CROSS_COMPILE

2024-06-24 Thread Tom Rini
On Sun, Jun 23, 2024 at 11:56:20AM -0600, Simon Glass wrote: > The feature to set the toolchain path does not seem to be needed. It > causes problems with venv (see [1]). Let's remove it. > > Add some tests while we are here. > > It does not look like any docs changes are needed for this. > > [

Re: [PULL] u-boot-usb/master

2024-06-24 Thread Tom Rini
On Sun, Jun 23, 2024 at 02:27:06AM +0200, Marek Vasut wrote: > This can also go into next if you prefer. > > The following changes since commit fe2ce09a0753634543c32cafe85eb87a625f76ca: > > Merge branch 'master' of > https://source.denx.de/u-boot/custodians/u-boot-watchdog (2024-06-18 08:34:5

Re: Pull request doc-2024-07-rc5-2

2024-06-24 Thread Tom Rini
On Sat, Jun 22, 2024 at 06:46:15PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit fe2ce09a0753634543c32cafe85eb87a625f76ca: > > Merge branch 'master' of > https://source.denx.de/u-boot/custodians/u-boot-watchdog (2024-06-18 > 08:34:56 -0600) > > are avail

Re: [PATCH v7 1/4] Add fdt_kaslrseed function to add kaslr-seed to chosen node

2024-06-24 Thread Tim Harvey
On Thu, Jun 20, 2024 at 6:58 AM Caleb Connolly wrote: > > Hi Tim, > > On 18/06/2024 23:06, Tim Harvey wrote: > > If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to > > randomize the virtual address at which the kernel image is loaded, it > > expects entropy to be provided by the bo

Re: [PATCH v3 19/19] CI: Allow running tests on sjg lab

2024-06-24 Thread Michael Nazzareno Trimarchi
Hi Simon On Mon, Jun 24, 2024 at 2:52 PM Andrejs Cainikovs wrote: > > On Sun, Jun 23, 2024 at 02:32:13PM -0600, Simon Glass wrote: > > Add a way to run tests on a real hardware lab. This is in the very early > > experimental stages. There are only 23 boards and 3 of those are broken! > > (bob, ff

Re: [PATCH v2 0/5] usb: meson: switch to set_mode callback and other cleanup

2024-06-24 Thread Marek Vasut
On 6/24/24 11:11 AM, Neil Armstrong wrote: Hi Marek, Hi, On 20/06/2024 09:42, Neil Armstrong wrote: Switch to set_mode callback now it's available and in the same time make public functions static and drop useless mach-meson headers that are no more needed. Thanks for the review, is it ok

Re: [PATCH] usb: dwc3: respect role-switch-default-mode

2024-06-24 Thread Marek Vasut
On 6/24/24 1:41 PM, Caleb Connolly wrote: Hi Marek, On 24/06/2024 02:33, Marek Vasut wrote: On 6/21/24 4:11 AM, Caleb Connolly wrote: * Factor out the common pattern of checking the dr_mode property on    the usb node and it's parent * Respect the usb-role-switch property, rather than requirin

Re: [PATCH] ARM: imx: Enable SPL DTO application support for i.MX8MP DHCOM PDK2

2024-06-24 Thread Fabio Estevam
On Sun, Jun 23, 2024 at 3:44 PM Marek Vasut wrote: > > Enable SPL DTO support to apply matching SoM specific DTOs to cater > for the SoM differences in DH i.MX8MP DHCOM PDK2 configuration. This > is already enabled in DH i.MX8MP DHCOM PDK3 configuration so align > the two configurations. > > Fixes

Re: [PATCH] imx8mp-venice-gw702x: Drop EQos clock workaround

2024-06-24 Thread Fabio Estevam
Hi Tim, On Fri, Jun 21, 2024 at 12:42 PM Tim Harvey wrote: > Hi Fabio, > > It doesn't make much difference to me. This is a fix for a board model > that was renamed from gw7905 to gw7500 anyway which is a change in > dts/upstream I'm going to have to wait for anyway so you can leave it > for nex

Re: [PATCH] dt-bindings: imx: Drop redundant imports with dts/upstream

2024-06-24 Thread Fabio Estevam
On Wed, Jun 19, 2024 at 12:10 PM Sumit Garg wrote: > > Drop redundant header imports with dts/upstream already providing > updated headers which have been checked to be backwards compatibility. > > The imx headers which aren't present in dts/upstream are as follows: > > - include/dt-bindings/clock

Re: [PATCH] arm: fsl: imx6ulz_bsh_smm_m2: Migrate to OF_UPSTREAM

2024-06-24 Thread Fabio Estevam
On Thu, Jun 13, 2024 at 7:24 AM Patrick Barsanti wrote: > > Migrate imx6ulz_bsh_smm_m2 board to OF_UPSTREAM. > > Signed-off-by: Patrick Barsanti Applied to u-boot-imx/next, thanks.

Re: [PATCH] arm: fsl: imx8mn_bsh_smm_s2: Migrate to OF_UPSTREAM

2024-06-24 Thread Fabio Estevam
On Mon, Jun 10, 2024 at 6:23 PM Patrick Barsanti wrote: > > Migrate imx8mn_bsh_smm_s2 and imx8mn_bsh_smm_s2pro boards to OF_UPSTREAM. > > Signed-off-by: Patrick Barsanti > Tested-by: Michael Trimarchi Applied to u-boot-imx/next, thanks.

[GIT PULL] Please pull u-boot-imx-next-20240624

2024-06-24 Thread Fabio Estevam
: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-next-20240624 for you to fetch changes up to b7f677dc40429a8172c7ba5edcf3b426097e2881: ARM: imx: Enable SPL DTO application support for i.MX8MP DHCOM PDK2 (2024-06-24 09:24:16 -0300) u-boot-imx-nex

Re: [PATCH 2/3] rockchip: fix wrong PCI range address in rk3568 dtsi

2024-06-24 Thread Quentin Schulz
Hi Etienne, On 6/24/24 2:40 PM, ETIENNE DUBLE wrote: One of the PCI ranges was wrong in this device tree. When testing with a FriendlyElec Nanopi R5C board, the 2nd ethernet interface (labelled "wan") was not working in u-boot because of that. With the correct value (found in FriendlyElec's dow

Re: [PATCH 1/3] net: give a different name to rtl8169 interfaces

2024-06-24 Thread Quentin Schulz
Hi Etienne, On 6/24/24 2:40 PM, ETIENNE DUBLE wrote: This commit implements the .bind member function, and gives a different name to interfaces: "RTL8169#0", "RTL8169#1", etc. This was tested on a FriendlyElec Nanopi R5C board, which has two RTL-8125B interfaces managed by this driver. Since th

Re: [PATCH v2] mach-snapdragon: move default environment to a file

2024-06-24 Thread Neil Armstrong
On 24/06/2024 14:31, Caleb Connolly wrote: Make use of CONFIG_DEFAULT_ENV_FILE and move the default qcom environment to a file under board/qualcomm. This is much cleaner and means we don't need to recompile on changing the environment. Signed-off-by: Caleb Connolly --- Changes since v1: - Don'

Re: [PATCH v2] spmi: msm: demote to debug()

2024-06-24 Thread Neil Armstrong
On 24/06/2024 14:46, Caleb Connolly wrote: Most devices have buttons exposed via the PMIC, the button polling therefore triggers a log spam if debug logging is enabled. Demote these to debug() so that they aren't printed unless LOG_DEBUG is defined explicitly for this file. Signed-off-by: Caleb

[PATCH 3/3] net: RTL-8125B -- write mac to MAC0_BKP

2024-06-24 Thread ETIENNE DUBLE
In the case of RTL-8125B, Linux reads the mac address from register MAC0_BKP instead of MAC0, so let u-boot write the mac address there. Note: writing to MAC0 is still needed too, because this register is used by the hardware for mac filtering (the board will not receive packets if MAC0 is not set

[PATCH 2/3] rockchip: fix wrong PCI range address in rk3568 dtsi

2024-06-24 Thread ETIENNE DUBLE
One of the PCI ranges was wrong in this device tree. When testing with a FriendlyElec Nanopi R5C board, the 2nd ethernet interface (labelled "wan") was not working in u-boot because of that. With the correct value (found in FriendlyElec's downstream u-boot repository), this 2nd ethernet interface

[PATCH 1/3] net: give a different name to rtl8169 interfaces

2024-06-24 Thread ETIENNE DUBLE
This commit implements the .bind member function, and gives a different name to interfaces: "RTL8169#0", "RTL8169#1", etc. This was tested on a FriendlyElec Nanopi R5C board, which has two RTL-8125B interfaces managed by this driver. Since they were given the same name, it was previously not possi

[PATCH 0/3] Improve networking support on FriendlyElec Nanopi R5C

2024-06-24 Thread ETIENNE DUBLE
This board has two RTL-8125B interfaces (drivers/net/rtl8169.c). The secondary interface (labelled "wan") was not working because of a wrong PCI address in file rk3568.dtsi. Moreover, users could not instruct u-boot to use this secondary interface (i.e., using ethprime), because both interfaces ha

[PATCH] sandbox: Fix LTO to work with STACKPROTECTOR

2024-06-24 Thread Andrew Goodbody
Add the STACKPROTECTOR symbols to the script that generates the symbols that should not be removed by the use of LTO when linking a shared object. This prevents a fail to build due to link errors. https://source.denx.de/u-boot/u-boot/-/issues/35 Signed-off-by: Andrew Goodbody --- scripts/gen_l

Re: [PATCH] imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN

2024-06-24 Thread Paul Geurts
>> The decision on whether HAB is enabled is solely based on the SEC_CONFIG >> fuse. The HAB FIELD_RETURN feature is able to permanently disable HAB on >> a CPU, after which it is able to boot unsigned firmware. U-Boot however >> does not take into account the FIELD_RETURN mode, and refuses to boot

File renaming problem with systemd-boot after u-boot

2024-06-24 Thread Hugo LAFFONT
Hello, I am creating an update system using systemd (repart + sysupdate) and systemd-boot on an embedded target (beaglebone black). Everything seems to work except the bootcounting of systemd-boot. "Failed to rename '\loader\entries\entry+3-0.conf' to 'entry+2-1.conf', ignoring: Access denied". T

Re: [PATCH v3 19/19] CI: Allow running tests on sjg lab

2024-06-24 Thread Andrejs Cainikovs
On Sun, Jun 23, 2024 at 02:32:13PM -0600, Simon Glass wrote: > Add a way to run tests on a real hardware lab. This is in the very early > experimental stages. There are only 23 boards and 3 of those are broken! > (bob, ff3399, samus). A fourth fails due to problems with the TPM tests. > > To try t

Re: [PATCH v4 10/14] net-lwip: add wget command

2024-06-24 Thread Jon Humphreys
Subject: [PATCH] net-lwip: Add message if not using http:// for wget U-Boot's wget only supports http://, so give the user a clue if they don't use it. Signed-off-by: Jonathan Humphreys --- net-lwip/wget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net-lwip/wget.c b/

Re: [PATCH v4 10/14] net-lwip: add wget command

2024-06-24 Thread Jon Humphreys
Subject: [PATCH] net-lwip: fixes off-by-one array access error with wget When wget parses the url and extracts the host, it is off by one on the index to terminate the character array. Signed-off-by: Jonathan Humphreys --- net-lwip/wget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [PATCH v4 10/14] net-lwip: add wget command

2024-06-24 Thread Jon Humphreys
Jerome Forissier writes: > Add support for the wget command with NET_LWIP. > > Based on code initially developed by Maxim U. > > Signed-off-by: Jerome Forissier > Co-developed-by: Maxim Uvarov > Cc: Maxim Uvarov > Signed-off-by: Jerome Forissier > --- > cmd/Kconfig| 7 ++ > cmd/net

[PATCH v2] spmi: msm: demote to debug()

2024-06-24 Thread Caleb Connolly
Most devices have buttons exposed via the PMIC, the button polling therefore triggers a log spam if debug logging is enabled. Demote these to debug() so that they aren't printed unless LOG_DEBUG is defined explicitly for this file. Signed-off-by: Caleb Connolly --- Changes since v1: - use debug(

[PATCH v2] mach-snapdragon: move default environment to a file

2024-06-24 Thread Caleb Connolly
Make use of CONFIG_DEFAULT_ENV_FILE and move the default qcom environment to a file under board/qualcomm. This is much cleaner and means we don't need to recompile on changing the environment. Signed-off-by: Caleb Connolly --- Changes since v1: - Don't set bootfile - V1: https://lore.kernel.org

Pull request for tpm-master-24062024

2024-06-24 Thread Ilias Apalodimas
Hi Tom, A few last minutes fixes for EFI, but this time via the TPM tree The following changes since commit fe2ce09a0753634543c32cafe85eb87a625f76ca: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-watchdog (2024-06-18 08:34:56 -0600) are available in the Git reposi

Re: [PATCH] imx: hab: Make imx_hab_is_enabled dependent on FIELD_RETURN

2024-06-24 Thread Fabio Estevam
Hi Paul, On Fri, Jun 21, 2024 at 10:06 AM Paul Geurts wrote: > -struct imx_sec_config_fuse_t { > +struct imx_fuse_t { Please make the struct renaming a separate patch. Peng Fan, Ye Li, Could you please help review this patch? Thanks

Re: [PATCH] usb: dwc3: respect role-switch-default-mode

2024-06-24 Thread Caleb Connolly
Hi Marek, On 24/06/2024 02:33, Marek Vasut wrote: On 6/21/24 4:11 AM, Caleb Connolly wrote: * Factor out the common pattern of checking the dr_mode property on    the usb node and it's parent * Respect the usb-role-switch property, rather than requiring dr_mode be    set * Override OTG mode wit

[PATCH] board: sifive: unmatched: remove extra space in fdtfile value

2024-06-24 Thread Andreas Schwab
Fixes: 44a792c994 ("riscv: sifive: unmatched: migrate to text environment") Signed-off-by: Andreas Schwab --- board/sifive/unmatched/unmatched.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sifive/unmatched/unmatched.env b/board/sifive/unmatched/unmatched.env index

Re: [PATCH 05/14] sunxi: Mark scp as optional

2024-06-24 Thread Andre Przywara
On Sun, 23 Jun 2024 14:30:24 -0600 Simon Glass wrote: > This binary does not prevent the system from booting. Mark it optional > so that U-Boot can be built without it. > > Signed-off-by: Simon Glass Reviewed-by: Andre Przywara Cheers, Andre > --- > > (no changes since v1) > > arch/arm/d

Re: [PATCH v1 1/3] mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag

2024-06-24 Thread Alexander Dahl
Hello Arseniy, Am Sun, Jun 02, 2024 at 11:08:34PM +0300 schrieb Arseniy Krasnov: > Based on Linux kernel: > commit f922bd798bb9 ("mtd: rawnand: add an option to specify NAND chip as a > boot device") > > Allow to define a NAND chip as a boot device. This can be helpful > for the selection of the

Re: [PATCH v3 0/7] efi: CapsuleUpdate: support for dynamic UUIDs

2024-06-24 Thread Vincent Stehlé
On Fri, Jun 21, 2024 at 07:11:28PM +0200, Caleb Connolly wrote: > On Fri, 21 Jun 2024, 19:06 Vincent Stehlé, wrote: > > > On Fri, Jun 21, 2024 at 01:00:51PM +0200, Heinrich Schuchardt wrote: > > (..) > > > The current specification is in RFC 9562, 4.1, "Variant field" > > > > > > "The variant fie

Re: [PATCH v2 0/5] usb: meson: switch to set_mode callback and other cleanup

2024-06-24 Thread Neil Armstrong
Hi Marek, On 20/06/2024 09:42, Neil Armstrong wrote: Switch to set_mode callback now it's available and in the same time make public functions static and drop useless mach-meson headers that are no more needed. Thanks for the review, is it ok to apply it via my tree ? Thanks, Neil Signed-o

Re: [PATCH v1 1/3] mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag

2024-06-24 Thread Arseniy Krasnov
Hi, thanks, ok! What build problem ? With this [PATCH v1] mtd: rawnand: macronix: OTP access for MX30LFxG18AC ? Thanks On 24.06.2024 11:37, Michael Nazzareno Trimarchi wrote: > Hi > > Yes I have seen and I will review today and cross-check. Did you lunch > the testing on the other patches serie

Re: [PATCH v4 14/16] rockchip: Avoid #ifdefs in RK3399 SPL

2024-06-24 Thread Jonas Karlman
Hi Simon, On 2024-06-23 19:53, Simon Glass wrote: > The code here is confusing due to large blocks which are #ifdefed out. > Add a function phase_sdram_init() which returns whether SDRAM init > should happen in the current phase, using that as needed to control the > code flow. > > This increases

  1   2   >