[PATCH v4 0/7] Add SE HMBSC board support

2024-04-12 Thread Sumit Garg
SE HMIBSC board is based on Qcom APQ8016 SoC. One of the major difference from db410c is serial port where HMIBSC board uses UART1 as the debug console with an RS232 port, patch #2 - #5 adds corresponding driver support. Patch #6 adds main HMIBSC board specific bits, features: - Qualcomm

Re: [PATCH 1/7] mmc: msm_sdhci: correct vendor_spec_cap0 register for v5

2024-04-12 Thread Sumit Garg
On Fri, 12 Apr 2024 at 14:06, Neil Armstrong wrote: > > On 11/04/2024 15:59, Sumit Garg wrote: > > On Tue, 9 Apr 2024 at 23:33, Caleb Connolly > > wrote: > >> > >> The V4 and V5 controllers have quite varied register layouts. Inherit > >> the register offsets and naming from the Linux driver.

[PATCH v4 1/7] qcom: Don't enable LINUX_KERNEL_IMAGE_HEADER by default

2024-04-12 Thread Sumit Garg
Enabling LINUX_KERNEL_IMAGE_HEADER by default doesn't allow ENABLE_ARM_SOC_BOOT0_HOOK to work properly on db410c when U-Boot is loaded as a first stage bootloader. It leads to secondary CPUs bringup failure and later causing the Linux kernel to freeze. So fix it via selectively enabling

[PATCH v4 6/7] arm: dts: qcom: Add Schneider HMIBSC board dts

2024-04-12 Thread Sumit Garg
Schneider HMIBSC board dts has already been reviewed upstream on the linux-arm-msm mailing list. So once it comes through the Linux kernel release cycle into the U-Boot dts/upstream subtree, a switch to OF_UPSTREAM can be made. For the time being maintain the U-Boot copy. Link:

[PATCH v4 2/7] apq8016: Add support for UART1 clocks and pinmux

2024-04-12 Thread Sumit Garg
SE HMIBSC board uses UART1 as the main debug console, so add corresponding clocks and pinmux support. Along with that update instructions to enable clocks for debug UART support. Reviewed-by: Caleb Connolly Signed-off-by: Sumit Garg --- drivers/clk/qcom/clock-apq8016.c | 38

[PATCH v4 3/7] serial_msm: Enable RS232 flow control

2024-04-12 Thread Sumit Garg
SE HMIBSC board debug console requires RS232 flow control, so enable corresponding support if RS232 gpios are present. Reviewed-by: Caleb Connolly Signed-off-by: Sumit Garg --- drivers/serial/serial_msm.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH v4 4/7] pinctrl: qcom: Add support for driving GPIO pins output

2024-04-12 Thread Sumit Garg
Add support for driving the GPIO pins as output low or high. Signed-off-by: Sumit Garg --- drivers/pinctrl/qcom/pinctrl-qcom.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-qcom.c

[PATCH v4 5/7] pinctrl: qcom: apq8016: Add GPIO pinctrl function

2024-04-12 Thread Sumit Garg
Add GPIO pinctrl function to enable driving GPIO pins as output low or high. Signed-off-by: Sumit Garg --- drivers/pinctrl/qcom/pinctrl-apq8016.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index

Re: [PATCH v2 02/16] board: am64x: Define capsule update firmware info

2024-04-12 Thread Ilias Apalodimas
Hi Tom >From a capsule update POV the patch looks correct Acked-by: Ilias Apalodimas On Wed, 10 Apr 2024 at 02:44, Tom Rini wrote: > > On Tue, Apr 09, 2024 at 06:31:02AM +0200, Heinrich Schuchardt wrote: > > On 4/9/24 00:31, Jonathan Humphreys wrote: > [snip] > > The series has been assigned

Re: [PATCH v5 2/5] serial: lpuart: use ipg clk for i.MX7ULP

2024-04-12 Thread Fabio Estevam
Hi Peng, On Thu, Apr 11, 2024 at 12:23 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > To i.MX7ULP compatible lpuart, there is only ipg clk, no per clk. > So add a devtype check for i.MX7ULP. > > Signed-off-by: Peng Fan > --- > drivers/serial/serial_lpuart.c | 28 +++-

Re: [PATCH] usb: dwc3: support USB 3.1 controllers

2024-04-12 Thread neil . armstrong
On 11/04/2024 18:05, Caleb Connolly wrote: The revision is different for these, add the additional check as in xhci-dwc3 core_init code. Signed-off-by: Caleb Connolly --- drivers/usb/dwc3/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.c

Re: [PATCH 1/7] mmc: msm_sdhci: correct vendor_spec_cap0 register for v5

2024-04-12 Thread Neil Armstrong
On 11/04/2024 15:59, Sumit Garg wrote: On Tue, 9 Apr 2024 at 23:33, Caleb Connolly wrote: The V4 and V5 controllers have quite varied register layouts. Inherit the register offsets and naming from the Linux driver. More version specific offsets can be inherited from Linux as needed. Fixes:

[PATCH v4 7/7] board: add support for Schneider HMIBSC board

2024-04-12 Thread Sumit Garg
Support for Schneider Electric HMIBSC. Features: - Qualcomm Snapdragon 410C SoC - APQ8016 (4xCortex A53, Adreno 306) - 2GiB RAM - 64GiB eMMC, SD slot - WiFi and Bluetooth - 2x Host, 1x Device USB port - HDMI - Discrete TPM2 chip over SPI Features enabled in U-Boot: - RAUC updates - Environment

Re: [PATCH 01/13] ti:keys Add EFI signature list

2024-04-12 Thread Ilias Apalodimas
Hi Jon, On Wed, 10 Apr 2024 at 20:35, Jon Humphreys wrote: > > Ilias Apalodimas writes: > > > On Tue, 9 Apr 2024 at 23:14, Andrew Davis wrote: > >> > >> On 4/9/24 2:26 PM, Heinrich Schuchardt wrote: > >> > On 4/9/24 14:14, Andrew Davis wrote: > >> >> On 4/8/24 10:34 PM, Heinrich Schuchardt

Re: [PATCH 3/4] arm: dts: k3-*-binman.dtsi: Clean up and templatize boot binaries

2024-04-12 Thread Michael Walle
Hi, On Fri Apr 12, 2024 at 5:03 AM CEST, Neha Malcom Francis wrote: > On 05/04/24 13:12, Michael Walle wrote: > > On Thu Apr 4, 2024 at 11:10 AM CEST, Neha Malcom Francis wrote: > >> But again in the interest of time... this would mean this cleaning up > >> effort be > >> kept on hold. If we can

[PATCH v6 5/5] imx93: convert to OF_UPSTREAM

2024-04-12 Thread Peng Fan (OSS)
From: Peng Fan Convert all i.MX93 boards to OF_UPSTREAM. Add lpi2c2 nodes for imx93-11x11-evk-u-boot.dtsi. Add usbotg1 nodes in imx93-u-boot.dtsi and board u-boot.dtsi. The nodes could be removed after upstream linux supports them. Signed-off-by: Peng Fan --- arch/arm/dts/Makefile

Re: [PATCH 0/3] arm: Add Analog Devices SC5xx Machine Type

2024-04-12 Thread Nuno Sá
On Thu, 2024-04-11 at 20:18 -0400, Greg Malysa wrote: > I'm afraid I have to admit I don't know. I'll work with our IT team to > make sure we can run CI locally, and when v2 comes around the answer > will be yes. > AFAIR, I think you the only exception to open a PR in the github fork is to run

Re: [U-Boot] [PATCH] mmc: dw-mmc: support DesignWare MMC controller

2024-04-12 Thread 18304935041
Dear Mr. Jaehoon Chung, Hello! I am learning to write an mmc driver, I saw this driver code you wrote in 2012 in U-boot source code, I can't download the documentation of DesignWare MMC controller, so I can't work on my driver development. I hope you can provide some help! Have a nice life!

[PATCH v6 3/5] cpu: drop imx9_cpu

2024-04-12 Thread Peng Fan (OSS)
From: Peng Fan This was wrongly committed, no user, remove it. Signed-off-by: Peng Fan --- drivers/cpu/imx9_cpu.c | 224 - 1 file changed, 224 deletions(-) diff --git a/drivers/cpu/imx9_cpu.c b/drivers/cpu/imx9_cpu.c deleted file mode 100644

[PATCH v6 4/5] clk: imx93: fix anatop base

2024-04-12 Thread Peng Fan (OSS)
From: Peng Fan The PLL clk needs use anatop base, otherwise wrong PLL address will be used. Fixes: 9c153e46661b ("clk: imx: add i.MX93 CCF driver") Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx93.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 0/2] Remove ti,sci-sysreset

2024-04-12 Thread Tom Rini
On Tue, 02 Apr 2024 11:09:06 -0500, Andrew Davis wrote: > Idea here is to remove one more delta between the U-Boot and Linux > DTB files: ti,sci-sysreset. We currently have to add this to every > board's -u-boot.dtsi file as this is not a standard node. Instead do > what we are moving the kernel

Re: [PATCH 0/2] Add TIFS Stub support in AM62x

2024-04-12 Thread Tom Rini
On Wed, 03 Apr 2024 17:33:08 +0530, Dhruva Gole wrote: > Add support for signing, detection and loading of TIFSSTUB images for > for HSSE, HSFS and GP AM62x devices. > > Boot tested and Deepsleep entry exist tested with ti-linux: >

Re: [PATCH v1] verdin-am62: move verdin am62 to OF_UPSTREAM

2024-04-12 Thread Tom Rini
On Wed, 03 Apr 2024 09:15:10 +0200, Marcel Ziswiler wrote: > Move verdin-am62 to OF_UPSTREAM: > - handle the fact that dtbs now have a 'ti/' prefix > - imply OF_UPSTREAM > - remove redundant files from arch/arm/dts leaving only the > *-u-boot.dtsi files > - update MAINTAINERS file > > [...]

[PATCH] doc/sphinx: Bump idna to 3.7

2024-04-12 Thread Tom Rini
While we unlikely to have an issue with CVE-2024-3651, it is simple enough to bump our version of idna to receive the fix, do so. Cc: Heinrich Schuchardt Reported-by: GitHub dependabot Signed-off-by: Tom Rini --- doc/sphinx/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v4 4/7] pinctrl: qcom: Add support for driving GPIO pins output

2024-04-12 Thread neil . armstrong
On 12/04/2024 11:54, Sumit Garg wrote: Add support for driving the GPIO pins as output low or high. Signed-off-by: Sumit Garg --- drivers/pinctrl/qcom/pinctrl-qcom.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v2 0/3] *** Introduce get_boot_device() for K3 platform ***

2024-04-12 Thread Tom Rini
On Wed, Apr 03, 2024 at 03:59:08PM +0200, Wadim Egorov wrote: > It is handy to have some u-boot environment variables set based on > the current booting device. > Provide a way to obtain the boot device for non SPLs by factoring out > spl_boot_device() into an own function get_boot_device().

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-12 Thread Marek Vasut
On 4/8/24 9:46 AM, Janne Grunau wrote: On Sun, Apr 07, 2024 at 03:05:59AM +0200, Marek Vasut wrote: On 4/6/24 10:04 PM, Janne Grunau wrote: On Sat, Apr 06, 2024 at 08:52:17PM +0200, Marek Vasut wrote: On 4/5/24 9:05 PM, Janne Grunau wrote: On Fri, Apr 05, 2024 at 04:52:32PM +0200, Marek

Re: [PATCH] usb: musb-new: sunxi: support usage with DM_USB_GADGET

2024-04-12 Thread Marek Vasut
On 12/31/23 9:38 PM, Aren Moynihan wrote: Add support for building the sunxi-musb driver with DM_USB_GADGET including adding a separate IRQ handling function and registering the driver with the musb system differently. The implementation of usb_gadget_register_driver from musb-new/musb_uboot.c

Re: [PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-12 Thread Fabio Estevam
On Fri, Apr 12, 2024 at 10:24 AM Peng Fan (OSS) wrote: > > A few nodes were added to soc and board u-boot.dtsi(lpi2c, usbotg), those > nodes > could be dropped after upstream linux supports them. > > To support OF_UPSTREAM, a few driver changes are included. > For TMU, still use U-Boot node, I

[RFC] pci: mediatek: add PCIe controller support for Filogic

2024-04-12 Thread Frank Wunderlich
From: John Crispin This adds PCIe controller support for the MediaTek Filogic family.. Signed-off-by: John Crispin Signed-off-by: Frank Wunderlich --- Note for mt7988: pcie2 needs a dedicated phy which has no driver in uboot yet, so this pcie port is not enabled in the board device- trees.

Re: [PATCH 0/4] Cleanup K3 binman templating

2024-04-12 Thread Tom Rini
On Fri, Mar 22, 2024 at 06:40:07PM +0530, Neha Malcom Francis wrote: > This series does primarily three things: > 1. Split out the common J721E defconfig for both EVM and SK > 2. Cleanup k3-j721e-binman.dtsi to be SoC specific binman nodes > and -u-boot.dtsi files of the

RE: [PATCH v5 2/5] serial: lpuart: use ipg clk for i.MX7ULP

2024-04-12 Thread Peng Fan
> Subject: Re: [PATCH v5 2/5] serial: lpuart: use ipg clk for i.MX7ULP > > Hi Peng, > > On Thu, Apr 11, 2024 at 12:23 AM Peng Fan (OSS) > wrote: > > > > From: Peng Fan > > > > To i.MX7ULP compatible lpuart, there is only ipg clk, no per clk. > > So add a devtype check for i.MX7ULP. > > > >

[PATCH v6 0/5] imx93: Conver to OF_UPSTREAM

2024-04-12 Thread Peng Fan (OSS)
A few nodes were added to soc and board u-boot.dtsi(lpi2c, usbotg), those nodes could be dropped after upstream linux supports them. To support OF_UPSTREAM, a few driver changes are included. For TMU, still use U-Boot node, I will prepare a kernel update, then back to U-Boot support. Mathieu:

[PATCH v6 2/5] serial: lpuart: use ipg clk for i.MX7ULP

2024-04-12 Thread Peng Fan (OSS)
From: Peng Fan To i.MX7ULP compatible lpuart, there is only ipg clk, no per clk. So add a devtype check for i.MX7ULP. Signed-off-by: Peng Fan --- drivers/serial/serial_lpuart.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git

[PATCH v6 1/5] gpio: imx_rgpio2p: support one address

2024-04-12 Thread Peng Fan (OSS)
From: Peng Fan The i.MX8ULP/93 gpio dt-schema have been updated to only have one address entry, update the driver to support it. Signed-off-by: Peng Fan --- drivers/gpio/imx_rgpio2p.c | 42 ++ 1 file changed, 38 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] doc/sphinx: Bump idna to 3.7

2024-04-12 Thread Heinrich Schuchardt
On 4/12/24 16:23, Tom Rini wrote: While we unlikely to have an issue with CVE-2024-3651, it is simple enough to bump our version of idna to receive the fix, do so. Cc: Heinrich Schuchardt Reported-by: GitHub dependabot Signed-off-by: Tom Rini Tested-by: Heinrich Schuchardt ---

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-12 Thread Marek Vasut
On 4/12/24 8:37 PM, Tom Rini wrote: On Fri, Apr 12, 2024 at 08:26:18PM +0200, Marek Vasut wrote: On 4/12/24 2:53 PM, Marek Vasut wrote: Hi, Seems to work here with a broken imx8 config from the CI. Is it ok to rely on dead code elimination? Apparently it is, build with KCFLAGS=-O0 has

[PATCH v2 1/2] lmb: Avoid to add identical region in lmb_add_region_flags()

2024-04-12 Thread Patrice Chotard
In case lmb_add_region_flags() is called with the same parameter than an already existing lmb and this lmb is adjacent to its previous lmb with different flag, this lmb is added again. Instead breaking the loop, continue, at the next iteration, we are able to detect that this region already

[PATCH v2 2/2] lmb: Fix adjacent region merge in lmb_add_region_flags()

2024-04-12 Thread Patrice Chotard
In case a new region is adjacent to a previous region with similar flag, this region is merged with its predecessor, but no check are done if this new added region is overlapping another region present in lmb (see reserved[3] which overlaps reserved[4]). This occurs when the LMB

Re: [PATCH 1/5] zfs: Fix malloc() success check

2024-04-12 Thread mwleeds
On Sunday, April 7th, 2024 at 4:22 AM, Igor Opaniuk wrote: > Hi Phaedrus, > > On Sun, Apr 7, 2024 at 4:00 AM mwle...@mailtundra.com wrote: > > > This code was hitting the error code path whenever malloc() succeeded > > rather than when it failed, so presumably this part of the code hasn't > >

[PATCH v11 1/2] dt-bindings: mtd: fixed-partitions: Add alignment properties

2024-04-12 Thread Simon Glass
Add three properties for controlling alignment of partitions, aka 'entries' in fixed-partition. For now there is no explicit mention of hierarchy, so a 'section' is just the 'fixed-partitions' node. These new properties are inputs to the Binman packaging process, but are also needed if the

[PATCH v11 2/2] dt-bindings: mtd: fixed-partition: Add binman compatibles

2024-04-12 Thread Simon Glass
Add two compatibles for binman entries, as a starting point for the schema. Note that, after discussion on v2, we decided to keep the existing meaning of label so as not to require changes to existing userspace software when moving to use binman nodes to specify the firmware layout. Note also

Re: [PATCH v10 1/2] dt-bindings: mtd: fixed-partitions: Add alignment properties

2024-04-12 Thread Simon Glass
Hi Miquel, On Mon, 8 Apr 2024 at 07:11, Miquel Raynal wrote: > > Hi Simon, > > s...@chromium.org wrote on Tue, 26 Mar 2024 14:06:44 -0600: > > > Add three properties for controlling alignment of partitions, aka > > 'entries' in fixed-partition. > > > > For now there is no explicit mention of

Re: [PATCH] mmc: msm_sdhci: fix vendor_spec_cap0 registers

2024-04-12 Thread Caleb Connolly
On Fri, 12 Apr 2024 20:10:21 +0200, Caleb Connolly wrote: > The addresses were mistakenly swapped. Put them right. > > Applied, thanks! [1/1] mmc: msm_sdhci: fix vendor_spec_cap0 registers commit: f09537bdd940c051b851c235e8906f1ba83233d1 Best regards, -- Caleb Connolly

Re: [PATCH 1/1] cli: always show cursor

2024-04-12 Thread Tom Rini
On Fri, Mar 29, 2024 at 05:09:22PM +0100, Heinrich Schuchardt wrote: > We may enter the command line interface in a state where on the remote > console the cursor is not shown. Send an escape sequence to enable it. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! --

Re: [PATCH] fdt: Fix fdt_pack_reg() on 64-bit platforms

2024-04-12 Thread Tom Rini
On Fri, Mar 29, 2024 at 07:55:53PM -0500, Sam Protsenko wrote: > When "memory" node is being processed in fdt_pack_reg() on ARM64 > platforms, an unaligned bus access might happen, which leads to > "synchronous abort" CPU exception. Consider next dts example: > > / { > #address-cells

Re: [PATCH 1/1] test: remove unused import from pkg_resources

2024-04-12 Thread Tom Rini
On Wed, Apr 03, 2024 at 01:11:41PM +0200, Heinrich Schuchardt wrote: > load_entry_point is not used. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] ARM: uniphier: Move uniphier_mem_map_init() call into dram_init()

2024-04-12 Thread Tom Rini
On Fri, Apr 05, 2024 at 05:37:15PM +0900, Kunihiko Hayashi wrote: > The function uniphier_mem_map_init() is to change global variable > 'mem_map', which is referenced to get_page_table_size() to calculate > the size of page table. > > However, uniphier_mem_map_init() is called after

Re: [PATCH 1/1] disk: simplify print_part_header()

2024-04-12 Thread Tom Rini
On Wed, Apr 03, 2024 at 01:40:47PM +0200, Heinrich Schuchardt wrote: > Using uclass_get_name() reduces the code size. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] sandbox: improve description of CONFIG_SANDBOX_CRASH_RESET

2024-04-12 Thread Tom Rini
On Mon, Feb 12, 2024 at 09:37:30AM +0100, Heinrich Schuchardt wrote: > Mentions that command line option --signal is needed to make use of this > configuration option. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] sandbox: move sandbox specifics to booti_setup()

2024-04-12 Thread Tom Rini
On Thu, Jan 11, 2024 at 09:03:43AM +0100, Heinrich Schuchardt wrote: > Instead of checking a configuration setting in booti_start() adjust the > sandbox implementation of booti_setup(). > > Write a console message when trying to run the booti command on the sandbox > indicating that it is not

Re: [PATCH 1/2] part: Check all partitions in part_get_info_by_name()

2024-04-12 Thread Tom Rini
On Thu, Mar 28, 2024 at 05:29:50PM -0500, Sam Protsenko wrote: > In part_get_info_by_name() the inability to get some partition info > shouldn't be a reason for dropping out of the loop. That might happen > e.g. if the partition is hidden or unused. An example of such case are > Samsung devices,

Re: [PATCH] image-host: Fix error value paths and emit error messages to stderr.

2024-04-12 Thread Tom Rini
On Thu, Mar 21, 2024 at 12:22:22PM +0100, Hugo Cornelis wrote: > A recent refactoring in image-host.c messed up the return values of > the function that reads the encryptiong keys. This patch fixes this > and also makes sure that error output goes to stderr instead of to > stdout. > >

Re: [PATCH 1/1] sandbox: missing return value checks in eth-raw-os

2024-04-12 Thread Tom Rini
On Sun, Jan 07, 2024 at 09:27:12AM +0100, Heinrich Schuchardt wrote: > We should check the return value of fcntl(). > > Addresses-Coverity-ID: 131108 ("Unchecked return value from library") > Addresses-Coverity-ID: 131109 ("Unchecked return value from library") > Signed-off-by: Heinrich

[PATCH] event: add an event for livetree fixups

2024-04-12 Thread Caleb Connolly
Introduce a new EVT_OF_LIVE event to allow for the livetree to be modified before dm_init_and_scan(). Boards can perform fixups here to handle incompatibilities between U-Boot drivers and upstream DT. This will be used by Qualcomm platforms in future patches to enable setting the dr_mode property

Re: [PATCH 1/1] bootflow: always initialize bootflow_iter_set_dev parameters

2024-04-12 Thread Nam Cao
On 2024-04-11 Nam Cao wrote: > On 11/Apr/2024 Heinrich Schuchardt wrote: > > method_flags may be passed uninitialized to bootflow_iter_set_dev() > > if dev is not NULL. > > > > Always initialize method_flags. > > > > Addresses-Coverity-ID: 467057 Uninitialized scalar variable > > Signed-off-by:

Re: [PATCH] event: add an event for livetree fixups

2024-04-12 Thread Tom Rini
On Fri, Apr 12, 2024 at 08:04:02PM +0100, Caleb Connolly wrote: > Introduce a new EVT_OF_LIVE event to allow for the livetree to be > modified before dm_init_and_scan(). Boards can perform fixups here to > handle incompatibilities between U-Boot drivers and upstream DT. > > This will be used by

Re: [PATCH 1/1] net: add support to parse the NIS domain for the dhcp options

2024-04-12 Thread Tom Rini
On Mon, Apr 01, 2024 at 12:13:19PM -0700, Charles Hardin wrote: > There is code in the bootp parsing for NIS domain and add the > same support for the dhcp options as well. This allows the same > usage of the data when the dhcp command is used in the boot > command. > > Signed-off-by: Charles

[PATCH 0/6] usb: dwc3: gadget: avoid EP command timeout

2024-04-12 Thread A. Sverdlin
From: Alexander Sverdlin While there are happy users who successfully have been using DFU on TI AM62x [1][2], there are also others who were not so lucky up to now [3]. I felt into latter category and was wondering why I observe this: -- U-Boot SPL 2024.04-61876f393762 (Apr 11 2024 - 09:27:15

[PATCH 4/6] usb: dwc3: gadget: Check ENBLSLPM before sending ep command

2024-04-12 Thread A. Sverdlin
From: Thinh Nguyen Upstream Linux commit 87dd96111b0b. When operating in USB 2.0 speeds (HS/FS), if GUSB2PHYCFG.ENBLSLPM or GUSB2PHYCFG.SUSPHY is set, it must be cleared before issuing an endpoint command. Current implementation only save and restore GUSB2PHYCFG.SUSPHY configuration. We must

[PATCH 1/6] usb: dwc3: gadget: combine return points into a single one

2024-04-12 Thread A. Sverdlin
From: Felipe Balbi Upstream Linux commit c0ca324d09a0. dwc3_send_gadget_ep_cmd() had three return points. That becomes a pain to track when we need to debug something or if we need to add more code before returning. Let's combine all three return points into a single one just by introducing a

[PATCH 2/6] usb: dwc3: gadget: clear SUSPHY bit before ep cmds

2024-04-12 Thread A. Sverdlin
From: Felipe Balbi Upstream Linux commit 2b0f11df84bb. Synopsys Databook 2.60a has a note that if we're sending an endpoint command we _must_ make sure that DWC3_GUSB2PHY(n).SUSPHY bit is cleared. This patch implements that particular detail. Signed-off-by: Felipe Balbi Signed-off-by:

[PATCH 3/6] usb: dwc3: gadget: only resume USB2 PHY in <=HIGHSPEED

2024-04-12 Thread A. Sverdlin
From: Felipe Balbi Upstream Linux commit ab2a92e7a608. As a micro-power optimization, let's only resume the USB2 PHY if we're working on <=HIGHSPEED. If we're gonna work on SUPERSPEED or SUPERSPEED+, there's no point in resuming the USB2 PHY. Fixes: 2b0f11df84bb ("usb: dwc3: gadget: clear

[PATCH 6/6] usb: dwc3: gadget: Disable GUSB2PHYCFG.SUSPHY for End Transfer

2024-04-12 Thread A. Sverdlin
From: Thinh Nguyen Upstream Linux commit 3aa07f72894d. If there's a disconnection while operating in eSS, there may be a delay in VBUS drop response from the connector. In that case, the internal link state may drop to operate in usb2 speed while the controller thinks the VBUS is still high.

[PATCH 5/6] usb: dwc3: gadget: properly check ep cmd

2024-04-12 Thread A. Sverdlin
From: Felipe Balbi Upstream Linux commit 514f227b. The cmd argument we pass to dwc3_send_gadget_ep_cmd() could contain extra arguments embedded. When checking for StartTransfer command, we need to make sure to match only lower 4 bits which contain the actual command and ignore the rest.

Re: [PATCH v4 4/7] arm: dts: k3-am625-sk: Enable usb port in u-boot

2024-04-12 Thread Sverdlin, Alexander
Hi Sjoerd! On Fri, 2024-01-12 at 09:52 +0100, Sjoerd Simons wrote: > Enable usb0 in all boot phases for use with DFU > > Signed-off-by: Sjoerd Simons Reviewed-by: Alexander Sverdlin > --- > > Changes in v4: > - Don't force usb0 into peripheral mode > > Changes in v3: > - Enable usb nodes

Re: [PATCH v4 2/7] usb: dwc3: Switch to device mode on gadget start

2024-04-12 Thread Sverdlin, Alexander
Hi Sjoerd! On Fri, 2024-01-12 at 09:52 +0100, Sjoerd Simons wrote: > When dr_mode is "otg" the dwc3 is initially configured in _OTG mode; > However in this mode the gadget functionality doesn't work without > further configuration. To resolve that on gadget start switch to _DEVICE > mode globally

[PATCH] mmc: msm_sdhci: fix vendor_spec_cap0 registers

2024-04-12 Thread Caleb Connolly
The addresses were mistakenly swapped. Put them right. Reported-by: Sumit Garg Fixes: a737d8962cae ("mmc: msm_sdhci: correct vendor_spec_cap0 register for v5") Signed-off-by: Caleb Connolly --- drivers/mmc/msm_sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-12 Thread Marek Vasut
On 4/12/24 2:53 PM, Marek Vasut wrote: Hi, Seems to work here with a broken imx8 config from the CI. Is it ok to rely on dead code elimination? Apparently it is, build with KCFLAGS=-O0 has already several other missing symbols. See attached fixup Thanks, squashed, let's see how CI likes

Re: [PATCH v4 0/6] USB keyboard improvements for asahi / desktop systems

2024-04-12 Thread Tom Rini
On Fri, Apr 12, 2024 at 08:26:18PM +0200, Marek Vasut wrote: > On 4/12/24 2:53 PM, Marek Vasut wrote: > > Hi, > > > > Seems to work here with a broken imx8 config from the CI. Is it ok to > > > rely on dead code elimination? Apparently it is, build with KCFLAGS=-O0 > > > has already several

Re: [PATCH 3/5] zfs: Fix unaligned read of uint64

2024-04-12 Thread Caleb Connolly
Hi Phaedrus, On 07/04/2024 03:47, mwle...@mailtundra.com wrote: Without this patch, when trying to boot zfs using U-Boot on a Jetson TX2 NX (which is aarch64), I get a CPU reset error like so: "Synchronous Abort" handler, esr 0x9621 elr: 800c9000 lr : 800c8ffc (reloc) elr:

Re: [PATCH 3/5] zfs: Fix unaligned read of uint64

2024-04-12 Thread Caleb Connolly
On 12/04/2024 20:50, Caleb Connolly wrote: Hi Phaedrus, On 07/04/2024 03:47, mwle...@mailtundra.com wrote: Without this patch, when trying to boot zfs using U-Boot on a Jetson TX2 NX (which is aarch64), I get a CPU reset error like so: "Synchronous Abort" handler, esr 0x9621 elr:

Re: [PATCH v4 3/7] board: ti: am62x: am62x: include env for DFU

2024-04-12 Thread Sverdlin, Alexander
Hi Sjoerd! On Fri, 2024-01-12 at 09:52 +0100, Sjoerd Simons wrote: > Include standard TI K3 dfu environment > > Signed-off-by: Sjoerd Simons > Reviewed-by: Mattijs Korpershoek Reviewed-by: Alexander Sverdlin > --- > > (no changes since v3) > > Changes in v3: > - Add dfu via environment

Re: [PATCH v4 1/7] usb: dwc3: Add dwc3 glue driver for am62

2024-04-12 Thread Sverdlin, Alexander
Hi Sjoerd! Thank you for your efforts on the topic! On Fri, 2024-01-12 at 09:52 +0100, Sjoerd Simons wrote: > Add glue code for TI AM62 to the dwc3 driver; Most code adopted from > TI vendor u-boot code. > > Signed-off-by: Sjoerd Simons > Reviewed-by: Mattijs Korpershoek Works for me on

Re: Can't get U-Boot working on Geniatech XPI-3566-ZERO

2024-04-12 Thread Mizsei Zoltán
Hi Jonas, thank You, i tried my best to follow your hints as good as possible. This is what i did: - git clone https://github.com/rockchip-linux/rkbin - git clone https://github.com/u-boot/u-boot - modified the following files: ``` diff --git a/arch/arm/dts/rk3568-generic.dts

[PATCH] mmc: sdhci: programmable clock calculation needs multiplier +1

2024-04-12 Thread curtis . machida
From: cmachida According to the SD Host Controller Simplified Specification v4.20, the multiplier value M is one more than the Clock Multiplier field. Copied code from Linux project. drivers/mmc/host/sdhci.c line 4405 Signed-off-by: cmachida --- drivers/mmc/sdhci.c | 9 + 1 file

[PATCHv2] net: add support to parse the NIS domain for the dhcp options

2024-04-12 Thread Charles Hardin
There is code in the bootp parsing for NIS domain and add the same support for the dhcp options as well. This allows the same usage of the data when the dhcp command is used in the boot command. Signed-off-by: Charles Hardin --- net/bootp.c | 8 1 file changed, 8 insertions(+) diff

Re: [PATCH v1] net: designware: Pass all multicast frames in designware driver

2024-04-12 Thread Tom Rini
On Mon, 08 Apr 2024 16:50:17 +0800, Jim Liu wrote: > Allowing multicast packets is required for IPv6 neighbor discovery > protocol. > > Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v1] net: designware: Invalidate RX buffer cache before freeing the DMA descriptor

2024-04-12 Thread Tom Rini
On Mon, 08 Apr 2024 16:49:02 +0800, Jim Liu wrote: > In IPv6 context, the ICMP and UDP checksum byte in the RX packet > is initially set to 0, recaclculated, and then re-inserted. > This process can result in a dirty cache line. To prevent issues, > it is essential to invalidate cache for the RX

Re: [PATCH] net: dwc_eth_qos: Fix compilation warning in eqos_free_pkt()

2024-04-12 Thread Tom Rini
On Fri, 05 Apr 2024 18:15:29 +0200, Patrice Chotard wrote: > Fix compilation warning: > > ../arch/arm/include/asm/io.h: In function 'eqos_free_pkt': > ../arch/arm/include/asm/io.h:103:32: warning: 'rx_desc' may be used > uninitialized [-Wmaybe-uninitialized] > 103 | #define writel(v,c) ({

Re: [PATCH v5 0/5] Introduce ICSSG Ethernet driver

2024-04-12 Thread Tom Rini
On Thu, 04 Apr 2024 12:37:58 +0530, MD Danish Anwar wrote: > Introduce ICSSG PRUETH support in uboot. The ICSSG driver is used in TI > AM654 SR2.0. > > The ICSSG PRU Sub-system runs on EMAC firmware. This series Introduces > support for ICSSG driver in uboot. > > This series has been tested on

Re: [PATCH 01/13] ti:keys Add EFI signature list

2024-04-12 Thread Jon Humphreys
Ilias Apalodimas writes: > Hi Jon, > > > On Wed, 10 Apr 2024 at 20:35, Jon Humphreys wrote: >> >> Ilias Apalodimas writes: >> >> > On Tue, 9 Apr 2024 at 23:14, Andrew Davis wrote: >> >> >> >> On 4/9/24 2:26 PM, Heinrich Schuchardt wrote: >> >> > On 4/9/24 14:14, Andrew Davis wrote: >> >> >>

Re: [PATCH v2 01/16] board: Define GUIDs for firmware images

2024-04-12 Thread Jon Humphreys
Ilias Apalodimas writes: > Hi both > > On Wed, 10 Apr 2024 at 10:36, Heinrich Schuchardt wrote: >> >> On 09.04.24 23:05, Jon Humphreys wrote: >> > Heinrich Schuchardt writes: >> > >> >> On 4/9/24 00:31, Jonathan Humphreys wrote: >> >>> Define GUIDs for the different firmware images

Re: [PATCH 1/1] net: add support to parse the NIS domain for the dhcp options

2024-04-12 Thread Tom Rini
On Mon, 01 Apr 2024 12:13:19 -0700, Charles Hardin wrote: > There is code in the bootp parsing for NIS domain and add the > same support for the dhcp options as well. This allows the same > usage of the data when the dhcp command is used in the boot > command. > > Applied to u-boot/master,

Re: [PATCH 0/4] zlib: Address CVE-2016-9841

2024-04-12 Thread Tom Rini
On Wed, 27 Mar 2024 15:14:49 +0100, Michal Simek wrote: > it looks like that only CVE-2016-9841 is not fixed and this series is > trying to address it. The first two patches are just preparation based on > changes which happened in past. The third one is actual fix and the last > one is following

Re: [PATCH] usb: musb-new: sunxi: support usage with DM_USB_GADGET

2024-04-12 Thread Aren
On Thu, Apr 11, 2024 at 04:46:17PM +1000, John Watts wrote: > On Sun, Dec 31, 2023 at 03:38:37PM -0500, Aren Moynihan wrote: > > Add support for building the sunxi-musb driver with DM_USB_GADGET > > including adding a separate IRQ handling function and registering the > > driver with the musb