Re: [PATCH v2 3/5] board: rock5b-rk3588: add USB-C controller support

2024-07-05 Thread Marek Vasut
On 6/4/24 6:33 PM, Sebastian Reichel wrote: Enable support for the fusb302 USB Type-C controller. This will do early USB PD (power deliver) negotiation, which must happen within 5 seconds after the USB-C connector has plugged in according to the specification. It takes almost 5 seconds to go thr

Re: [PATCH v2 2/5] usb: tcpm: fusb302: add driver

2024-07-05 Thread Marek Vasut
On 6/4/24 6:33 PM, Sebastian Reichel wrote: [...] +static int fusb302_i2c_block_write(struct udevice *dev, u8 address, + u8 length, const u8 *data) +{ + int ret = 0; This initialization of ret = 0 is probably unnecessary, see right below. + if (l

Re: [PATCH v2 1/5] usb: tcpm: add core framework

2024-07-05 Thread Marek Vasut
On 6/4/24 6:33 PM, Sebastian Reichel wrote: Hi, sorry for the abysmal delay diff --git a/cmd/tcpm.c b/cmd/tcpm.c new file mode 100644 index ..37cc3ed6a3b4 --- /dev/null +++ b/cmd/tcpm.c @@ -0,0 +1,142 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2024 Collabora + *

[PATCH] dt-bindings: nvmem: convert U-Boot env to a layout

2024-07-05 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot environment variables can be stored in various data sources. MTD is just one of available options. Refactor DT binding into a layout so it can be used with UBI volumes and other NVMEM devices. Link: https://lore.kernel.org/all/20231221173421.13737-1-zaj...@gmail.com/ S

Re: [PATCH] watchdog: mpc8xxx: Fix timer value

2024-07-05 Thread Tom Rini
On Thu, Jun 27, 2024 at 10:26:08AM +0200, Christophe Leroy wrote: > Timer value is a 16 bits calculated from the wanted timeout and the > system clock. On powerpc/8xx, a timeout of 2s gives a value which > is over U16_MAX so U16_MAX shall be used. But the calculation is > casted to u16 so at the e

Re: [PATCH] pci_ids: fix i225 unprogrammed value

2024-07-05 Thread Tom Rini
On Mon, Jun 24, 2024 at 07:49:07PM +, Marjolaine Amate wrote: > 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 Applied to u-boot/master, thanks! -- Tom signature.asc Des

Re: [PATCH] e1000: add support for i226

2024-07-05 Thread Tom Rini
On Mon, Jun 24, 2024 at 07:15:32PM +, Marjolaine Amate wrote: > This patch adds support for Intel Foxville I226 > devices LM,V,I,K in e1000 driver. > > Signed-off-by: Marjolaine Amate Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] configs: am64x_evm_a53_defconfig: Enable I2C GPIO drivers

2024-07-05 Thread Tom Rini
On Sun, Jun 23, 2024 at 10:41:19AM +0300, Roger Quadros wrote: > The board has the TCA9554 I2C GPIO expander chip for expansion > board presence detection logic. > > Enable the relevant I2C GPIO drivers. > > Signed-off-by: Roger Quadros Applied to u-boot/master, thanks! -- Tom signature.as

Re: [PATCH] doc: board: phytec: phycore-am6: Describe UART based boot

2024-07-05 Thread Tom Rini
On Thu, Jun 20, 2024 at 02:05:54PM +0200, Wadim Egorov wrote: > Describe how to boot via UART. > > Signed-off-by: Wadim Egorov Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v5] cmd: bootm: add ELF file support

2024-07-05 Thread Tom Rini
On Fri, Jun 21, 2024 at 02:42:10PM +0300, Maxim Moskalets wrote: > Some operating systems (e.g. seL4) and embedded applications are ELF > images. It is convenient to use FIT-images to implement trusted boot. > Added "elf" image type for booting using bootm command. > > Signed-off-by: Maxim Moskal

Re: [PATCH] mkimage: Allow 'auto-conf' signing of scripts

2024-07-05 Thread Tom Rini
On Thu, Jun 20, 2024 at 04:20:59PM +0200, Alexander Dahl wrote: > U-Boot configured for verified boot with the "required" option set to > "conf" also checks scripts put in FIT images for a valid signature, and > refuses to source and run such a script if the signature for the > configuration is ba

Re: [PATCH] Fix Kconfig coding style from spaces to tab

2024-07-05 Thread Tom Rini
On Sun, Jun 23, 2024 at 11:10:21PM +0530, Anand Moon wrote: > Adjust indentation from spaces to tab (+optional two spaces) as in > coding style with command like: > $ sed -e 's/^/\t/' -i */Kconfig > > Signed-off-by: Anand Moon Applied to u-boot/master, thanks! -- Tom signature

Re: [PATCH] configs: Remove duplicate newlines

2024-07-05 Thread Tom Rini
On Sun, Jun 16, 2024 at 05:19:11PM +0200, Marek Vasut wrote: > Drop all duplicate newlines from config headers. > No functional change. > > Signed-off-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 0/8] net: tcp: improve tcp support

2024-07-05 Thread Peter Robinson
On Fri, 5 Jul 2024 at 22:16, Mikhail Kshevetskiy wrote: > > > On 05.07.2024 20:56, Peter Robinson wrote: > > Hi Mikhail, > > > >> This series of patches greatly improve TCP support. > > Where's the changelog of what changed from v1? > > no changes, just remove some patches and add a cover letter

Re: [PATCH 1/5] arm64: dts: imx8mp: rename DHCOM SoM overlays to .dtso

2024-07-05 Thread Marek Vasut
On 7/5/24 10:29 PM, Rasmus Villemoes wrote: Distinguish more clearly between source files meant for producing .dtb from those meant for producing .dtbo. No functional change, as we currently have rules for producing a foo.dtbo from either foo.dts or foo.dtso. Note that in the linux tree, all dev

[PATCH] Revert "buildman: Always use the full path in CROSS_COMPILE"

2024-07-05 Thread Tom Rini
There are operations in buildman that result in running the cross-tools (such as performing size checks) and now that we have not modified PATH to know where our tools are, these operations fail. This reverts commit 6c0a3cf75f72370deec3ee516a9dd377397af207. Signed-off-by: Tom Rini --- I'm likely

Re: [RFC PATCH v2 38/48] lib: Kconfig: add a config symbol for getting lmb memory map updates

2024-07-05 Thread Tom Rini
On Thu, Jul 04, 2024 at 01:05:34PM +0530, Sughosh Ganu wrote: > Add a Kconfig symbol to enable getting updates on any memory map > changes that might be done by the LMB module. This notification > mechanism can then be used to have a synchronous view of allocated and > free memory. > > Signed-off

Re: [RFC PATCH v2 16/48] lmb: config: add lmb config symbols for SPL

2024-07-05 Thread Tom Rini
On Thu, Jul 04, 2024 at 01:05:12PM +0530, Sughosh Ganu wrote: > Add separate config symbols for enabling the LMB module for the SPL > phase. The LMB module implementation now relies on alloced list data > structure which requires heap area to be present. Add specific config > symbol for the SPL ph

Re: [RFC PATCH v2 48/48] temp: mx6sabresd: bump up the size limit of the board

2024-07-05 Thread Tom Rini
On Thu, Jul 04, 2024 at 01:05:44PM +0530, Sughosh Ganu wrote: o > With the changes to add notifications for any changes to the LMB map, > the size of the image exceeds the limit set. Bump up the image size > limit for now to get the platform to build. > > This is not for committing. > > Signed-of

Re: [PATCH v2 0/8] net: tcp: improve tcp support

2024-07-05 Thread Peter Robinson
Hi Mikhail, > This series of patches greatly improve TCP support. Where's the changelog of what changed from v1? > The benefits: > * a lot of bug was fixed > * tcp cliens becomes smaller/simpler > * fix data uploading (now it's possible to transmit a huge >array of data from the board to

Re: [PULL] Early Qualcomm changes for v2024.10

2024-07-05 Thread Tom Rini
On Fri, Jul 05, 2024 at 01:22:46PM +0200, Caleb Connolly wrote: > Hi Tom, > > Various minor fixes and improvements: > > * Fix Qualcomm SPMI v5 support > * Move default environment to a file > * Add support for special pins (e.g ufs/mmc reset/data pins) > * IPQ moves to OF_UPSTREAM and receives s

Re: Please pull u-boot-tegra staging

2024-07-05 Thread Tom Rini
On Fri, Jul 05, 2024 at 04:15:40PM +0300, Svyatoslav Ryhel wrote: > Dear Tom, > > The following changes since commit 7c9c5c0562347dccb8ac89148784a34de402ea9e: > > Merge patch series "xtensa: Enable qemu-xtensa board" (2024-07-04 16:11:08 > -0600) > > are available in the Git repository at: >

[PATCH V5 6/6] MAINTAINERS: Include the TI docs under ARM TI

2024-07-05 Thread Dhruva Gole
Add entry for the TI boards documentation under ARM TI Signed-off-by: Dhruva Gole --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6b32a6d94644..da730c6e4840 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -733,6 +733,7 @@ F: arch/arm/mach-omap2/

[PATCH V5 4/6] doc: ti: k3: Add TIFS Stub documentation

2024-07-05 Thread Dhruva Gole
Add documentation to briefly explain the role of TIFS Stub in relevant K3 SoC's. This also sheds light on why TIFS Stub isn't package with the DM firmware itself. Signed-off-by: Dhruva Gole --- doc/board/ti/k3.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/board/ti/k3.r

[PATCH V5 5/6] doc: ti: am62*: Mention TIFS Stub in img fmts and boot flow

2024-07-05 Thread Dhruva Gole
Since AM62x, AM62P and AM62A all use similar boot flows and their low power mode s/w ARCH is also similar in the way that they make use of the TIFS Stub, update their documentation to show where TIFS Stub is. Signed-off-by: Dhruva Gole --- doc/board/ti/am62ax_sk.rst | 4 ++-- doc/board/ti/am62px

[PATCH V5 3/6] doc: beagle: am62x_beagleplay: Add TIFS Stub in image format

2024-07-05 Thread Dhruva Gole
Mention the TIFS Stub in the TISP image format Signed-off-by: Dhruva Gole --- doc/board/beagle/am62x_beagleplay.rst | 2 +- doc/board/ti/img/tifsstub_dm_tispl.bin.svg | 353 + 2 files changed, 354 insertions(+), 1 deletion(-) create mode 100644 doc/board/ti/img/tifsst

[PATCH V5 2/6] doc: beagle: am62x_beagleplay: Update the boot flow to show TIFS Stub

2024-07-05 Thread Dhruva Gole
Add the AM62x boot flow to show at which point the TIFS Stub actually gets loaded. Signed-off-by: Dhruva Gole --- doc/board/beagle/am62x_beagleplay.rst |2 +- doc/board/ti/img/boot_diagram_am62.svg | 1983 2 files changed, 1984 insertions(+), 1 deletion(-) create m

[PATCH V5 1/6] arm: dts: k3-am625-beagleplay: Package TIFS Stub

2024-07-05 Thread Dhruva Gole
Add support for packaging the TIFS Stub as it's required for basic Low Power Modes like Deep Sleep. The reason it is packaged using binman and not inherently as part of the DM firmware is because for HS devices, customer owns the customer key and only customer has access to it. DM is release by TI,

[PATCH V5 0/6] Low Power Mode: Package TIFS Stub in BeaglePlay

2024-07-05 Thread Dhruva Gole
This series includes the binman related changes required to package TIFS Stub to support Low Power Modes on BeaglePlay. It also documents the boot flow and tispl packaging details regarding the same. Changelog: * Add more documentation around last time's discussion[1] on packaging TIFS Stub in D

Re: [PATCH] zlib: Fix big performance regression

2024-07-05 Thread Tom Rini
On Sun, Jun 30, 2024 at 08:49:08PM +0200, Christophe Leroy wrote: > > > Le 30/06/2024 à 20:28, Christophe Leroy a écrit : > > > > > > Le 30/06/2024 à 16:54, Tom Rini a écrit : > > > On Sun, Jun 30, 2024 at 10:47:06AM +0200, Christophe Leroy wrote: > > > > > > > > > > > > Le 27/06/2024 à 21:40

Re: [PATCH v3 10/10] arch: arm: dts: k3-am62-sk-u-boot: Add missing "bootph-all" property to phy_gmii_sel node

2024-07-05 Thread Tom Rini
On Fri, Jul 05, 2024 at 10:20:30AM +0530, Chintan Vankar wrote: > Add "bootph-all" property to CPSW MAC's PHY node phy_gmii_sel. > > Signed-off-by: Chintan Vankar > --- > > Link to v2: > https://lore.kernel.org/r/20240425120822.2048012-11-c-van...@ti.com/ > > Changes from v2 to v3: > - Since "

Re: [PATCH v3 08/10] configs: am62: Enable configs required for Ethboot

2024-07-05 Thread Tom Rini
On Fri, Jul 05, 2024 at 10:20:28AM +0530, Chintan Vankar wrote: > From: Kishon Vijay Abraham I > > Enable config options needed to support Ethernet boot on AM62x SK. > > Signed-off-by: Kishon Vijay Abraham I > Signed-off-by: Siddharth Vadapalli > Signed-off-by: Chintan Vankar > --- > > Link

Re: [PATCH v3 01/10] common: spl: spl: Init DRAM size in R5/A53 SPL

2024-07-05 Thread Tom Rini
On Fri, Jul 05, 2024 at 10:20:21AM +0530, Chintan Vankar wrote: > Initialize DRAM size in SPL stage since networking requires DDR > to be initialized. > > Signed-off-by: Kishon Vijay Abraham I > Signed-off-by: Chintan Vankar Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP sign

Re: [PATCH v2] msc_sm2s_imx8mp: Adjust the initrd_addr location

2024-07-05 Thread Tom Rini
On Thu, Jul 04, 2024 at 09:03:37AM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Booting an initramfs with the current initrd_addr address may lead to > initramfs corruption and boot failure. > > Fix the initramfs problem by applying the following layout > suggested by Tom Rini: > > lo

Re: [PATCH v3 07/10] configs: am62: Add configs for enabling ETHBOOT in R5SPL

2024-07-05 Thread Tom Rini
On Fri, Jul 05, 2024 at 10:20:27AM +0530, Chintan Vankar wrote: > From: Kishon Vijay Abraham I > > Add configs for enabling ETHBOOT in R5SPL. > > Signed-off-by: Kishon Vijay Abraham I > Signed-off-by: Andreas Dannenberg > Signed-off-by: Siddharth Vadapalli > Signed-off-by: Chintan Vankar >

Re: [PATCH V3 0/4] Low Power Mode: Pakage TIFS Stub on BeaglePlay

2024-07-05 Thread Nishanth Menon
On 17:31-20240703, Sebin Francis wrote: > > On 01/07/24 20:54, Nishanth Menon wrote: > > On 15:25-20240701, Sebin Francis wrote: > > > For HS-FS device we need to sign the fs-stub with customer key. DM > > > firmware > > > cannot have a component which is signed using customer key. > > Please exp

[PATCH v2 9/9] net/netcat: add netcat over tcp support

2024-07-05 Thread Mikhail Kshevetskiy
This patch adds downloading/uploading of data with netcat. Client/server mode both supported. Signed-off-by: Mikhail Kshevetskiy --- cmd/Kconfig | 7 ++ cmd/net.c| 34 +++-- include/net.h| 2 +- include/net/netcat.h | 20 ++ net/Makefile | 1 +

[PATCH v2 8/9] net/tcp: define a fallback value for rcv_wnd size

2024-07-05 Thread Mikhail Kshevetskiy
Some driver implements it's own network packet pool, so PKTBUFSRX is zero. This results in zero-size TCP receive window, so data transfer doesn't work. Avod it by setting a reasonable fallback value. Signed-off-by: Mikhail Kshevetskiy --- net/tcp.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH v2 7/9] net/tcp: simplify tcp header filling code

2024-07-05 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- net/tcp.c | 70 +-- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index a5689a892b2..9fb80f9c2a8 100644 --- a/net/tcp.c +++ b/net/tcp.c @@ -528,10 +528,37 @@ void net

[PATCH v2 6/9] net/tcp: improve tcp framework, use better state machine

2024-07-05 Thread Mikhail Kshevetskiy
Changes: * Fix initial send sequence always zero issue * Use state machine close to RFC 9293. This should make TCP transfers more reliable (now we can upload a huge array of data from the board to external server) * Improve TCP framework a lot. This should make tcp client code much more

[PATCH v2 5/9] net/tcp: rename ack_edge and seq_init to more common rcv_nxt and irs

2024-07-05 Thread Mikhail Kshevetskiy
Use the names from RFC 9293 Signed-off-by: Mikhail Kshevetskiy --- include/net/tcp.h | 8 net/tcp.c | 32 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index f224d0cae2f..0694af9d5b1 10064

[PATCH v2 4/9] net/tcp: add connection info to tcp_stream structure

2024-07-05 Thread Mikhail Kshevetskiy
Changes: * Avoid use net_server_ip in tcp code, use tcp_stream data instead * Ignore packets from other connections if connection already created. This prevents us from connection break caused by other tcp stream. Signed-off-by: Mikhail Kshevetskiy --- include/net.h | 5 +- include/n

[PATCH v2 3/9] net/tcp: put connection specific data into a tcp_stream structure

2024-07-05 Thread Mikhail Kshevetskiy
no functional changes Signed-off-by: Mikhail Kshevetskiy --- include/net/tcp.h | 37 +++- net/net.c | 11 ++- net/tcp.c | 231 +++--- net/wget.c| 3 +- 4 files changed, 163 insertions(+), 119 deletions(-) diff --git a/inclu

[PATCH v2 2/9] net/tcp: fix selective acknowledge

2024-07-05 Thread Mikhail Kshevetskiy
Current code assume that all (except last) packets are of the same size. This is definitely wrong. Replace SACK code with a new one, that does not rely on this assumption. Also this code uses less memory. Signed-off-by: Mikhail Kshevetskiy --- net/tcp.c | 200 +++-

[PATCH v2 1/9] net/tcp: fix TCP options processing

2024-07-05 Thread Mikhail Kshevetskiy
Current TCP code may miss an option if TCP_O_NOP option was used before it for proper aligning. Signed-off-by: Mikhail Kshevetskiy --- net/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tcp.c b/net/tcp.c index a713e1dd609..c9bcd364ee3 100644 --- a/net/tcp.c +

[PATCH v2 0/8] net: tcp: improve tcp support

2024-07-05 Thread Mikhail Kshevetskiy
This series of patches greatly improve TCP support. The benefits: * a lot of bug was fixed * tcp cliens becomes smaller/simpler * fix data uploading (now it's possible to transmit a huge array of data from the board to external server) * data downloading/uploading with netcat over tcp was a

Re: [PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

2024-07-05 Thread Christopher Obbard
Hi Jonas, On Tue, 2023-10-17 at 10:02 +0100, Christopher Obbard wrote: > Hi Jonas, > > On Sat, 2023-10-14 at 21:22 +0200, Jonas Karlman wrote: > > On 2023-10-14 20:58, Jonas Karlman wrote: > > > Hi Christopher, > > > > > > On 2023-10-12 13:46, Christopher Obbard wrote: > > > > Hi Jonas, > > > >

[PATCH v2 7/7] mtd: spinand: add Winbond W25N04KV flash support

2024-07-05 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/winbond.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index 5fe35e35ed5..f38ae95c570 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/

[PATCH v2 6/7] mtd: spinand: sync supported flashes with linux-6.6

2024-07-05 Thread Mikhail Kshevetskiy
Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/Makefile | 4 +- drivers/mtd/nand/spi/alliancememory.c | 155 + drivers/mtd/nand/spi/ato.c| 84 drivers/mtd/nand/spi/core.c | 4 +- drivers/mtd/nand/spi/esmt.c

[PATCH v2 5/7] mtd: nand: add initial ecc engine support

2024-07-05 Thread Mikhail Kshevetskiy
just now only spinand on_die ecc is supported Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/Makefile | 2 +- drivers/mtd/nand/core.c | 130 +++- drivers/mtd/nand/ecc.c | 150 ++ drivers/mtd/nand/spi/core.c | 206 +

[PATCH v2 4/7] mtd: spinand: preparation for ecc engine adding

2024-07-05 Thread Mikhail Kshevetskiy
Changes: * add missed MODULE_DEVICE_TABLE() * update mtd stats after data reading Code reorganization: * use spinand_to_nand() and spinand_to_mtd() helpers instead of nanddev_to_mtd() and direct access to spinand structure fields * rename enable_ecc variable to disable_ecc and update corres

[PATCH 1/1] mmc: fsl_esdhc_imx: Fix error message

2024-07-05 Thread Alexander Stein
Add missing newline character and also add the return code of regulator_set_value() to the output. Signed-off-by: Alexander Stein --- drivers/mmc/fsl_esdhc_imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c inde

[PATCH v2 3/7] mtd: spinand: simulate behavior of linux's function spinand_wait()

2024-07-05 Thread Mikhail Kshevetskiy
also call schedule() to allow periodic actions Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/core.c | 35 --- include/linux/mtd/spinand.h | 22 ++ 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/nand/sp

[PATCH v2 2/7] mtd: spinand: Add a NAND page I/O request type

2024-07-05 Thread Mikhail Kshevetskiy
Use an enum to differentiate the type of I/O (reading or writing a page). Also update the request iterator. This is a port of linux patch 701981cab01696584a12e5f0e7c2ad931a326059 created by Miquel Raynal Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi/core.c | 4 ++-- include/linu

[PATCH v2 1/7] mtd: spinand: Use the spi-mem dirmap API

2024-07-05 Thread Mikhail Kshevetskiy
Make use of the spi-mem direct mapping API to let advanced controllers optimize read/write operations when they support direct mapping. This is a port of linux patch 981d1aa0697ce1393e00933f154d181e965703d0 created by Boris Brezillon . Signed-off-by: Mikhail Kshevetskiy --- drivers/mtd/nand/spi

[PATCH v2 0/7] mtd: spinand: initial ecc engine support & sync supported flashes with linux-6.6

2024-07-05 Thread Mikhail Kshevetskiy
Up to now only software ecc is supported, but other engines can be add quite easily Mikhail Kshevetskiy (7): mtd: spinand: Use the spi-mem dirmap API mtd: spinand: Add a NAND page I/O request type mtd: spinand: simulate behavior of linux's function spinand_wait() mtd: spinand: preparation

Please pull u-boot-tegra staging

2024-07-05 Thread Svyatoslav Ryhel
Dear Tom, The following changes since commit 7c9c5c0562347dccb8ac89148784a34de402ea9e: Merge patch series "xtensa: Enable qemu-xtensa board" (2024-07-04 16:11:08 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-tegra.git staging for you to fet

[PATCH v2] net/tftp: make tftpput working with servers that do not use OACK

2024-07-05 Thread Mikhail Kshevetskiy
Option Acknowledgment (OACK) is an extension of TFTP protocol (see rfc2347). Not all tftp servers implements it. U-Boot supports two tftp specific commands: * tftpboot works with both types of servers, * tftpput waits for OACK from the server, so the data transfer does not start if the servers

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-05 Thread Mikhail Kshevetskiy
On 05.07.2024 11:29, Mark Kettenis wrote: > [You don't often get email from mark.kette...@xs4all.nl. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > >> From: Mikhail Kshevetskiy >> Date: Fri, 5 Jul 2024 06:26:24 +0400 >> >> From: Michael Polyntsov >> >> If h

Re: [PATCH] include/fastboot.h: add missing types.h include

2024-07-05 Thread Mattijs Korpershoek
Hi Caleb, Thank you for the patch. On ven., juin 21, 2024 at 03:51, Caleb Connolly wrote: > Fixes a compile error when building with only the TCP fastboot implementation. > > Signed-off-by: Caleb Connolly Reviewed-by: Mattijs Korpershoek > --- > include/fastboot.h | 2 ++ > 1 file changed

[PATCH] configs: phycore-imx8mp_defconfig: Initialize caam

2024-07-05 Thread Leonard Anderweit
Initialize the Cryptographic Accelerator and Assurance Module. Signed-off-by: Leonard Anderweit --- configs/phycore-imx8mp_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/phycore-imx8mp_defconfig b/configs/phycore-imx8mp_defconfig index e84d761aeb8c..74d

Re: [PATCH 00/11] usb: gadget: Introduce handle_interrupts ops to USB_GADGET_GENERIC uclass

2024-07-05 Thread Mattijs Korpershoek
Hi, On Fri, 14 Jun 2024 02:51:15 +0200, Marek Vasut wrote: > Introduce .ops for USB_GADGET_GENERIC uclass. The first new ops is > .handle_interrupts which must be implemented by DM capable USB gadget > controller drivers and must implement interrupt handling similar to > dm_usb_gadget_handle_inter

[PATCH v4 2/2] led: Add dts property to specify blinking of the led

2024-07-05 Thread Mikhail Kshevetskiy
From: Michael Polyntsov The standard property linux,default-trigger = "pattern"; used to get an effect. No blinking parameters can be set yet. Signed-off-by: Michael Polyntsov Signed-off-by: Mikhail Kshevetskiy --- drivers/led/led-uclass.c | 33 + 1 file

[PATCH v4 0/2] led: implement software blinking

2024-07-05 Thread Mikhail Kshevetskiy
v2 changes: * Drop sw_blink_state structure, move its necessary fields to led_uc_plat structure. * Add cyclic_info pointer to led_uc_plat structure. This simplify code a lot. * Remove cyclic function search logic. Not needed anymore. * Fix blinking period. It was twice large. * Other cle

[PATCH v4 1/2] led: Implement software led blinking

2024-07-05 Thread Mikhail Kshevetskiy
From: Michael Polyntsov If hardware (or driver) doesn't support leds blinking, it's now possible to use software implementation of blinking instead. This relies on cyclic functions. Signed-off-by: Michael Polyntsov Signed-off-by: Mikhail Kshevetskiy --- drivers/led/Kconfig| 14 +

Re: [PATCH 1/6] usb: gadget: g_dnl: Drop usb_gadget_controller_number()

2024-07-05 Thread Mattijs Korpershoek
Hi, On Sun, 09 Jun 2024 23:32:14 +0200, Marek Vasut wrote: > The bcdDevice field is defined as > |Device release number in binary-coded decimal > in the USB 2.0 specification. We use this field to distinguish the UDCs > from each other. In theory this could be used on the host side to apply > cert

[PULL] Early Qualcomm changes for v2024.10

2024-07-05 Thread Caleb Connolly
Hi Tom, Various minor fixes and improvements: * Fix Qualcomm SPMI v5 support * Move default environment to a file * Add support for special pins (e.g ufs/mmc reset/data pins) * IPQ moves to OF_UPSTREAM and receives some cleanup and MAINTAINERS changes * Add a reset driver for devices without PSCI

Re: [PATCH v2 1/1] efi_loader: print device-tree in dtbdump.efi

2024-07-05 Thread Ilias Apalodimas
On Sat, 29 Jun 2024 at 10:01, Heinrich Schuchardt wrote: > > The dtbdump.efi binary can be used for testing the EFI_DT_FIXUP_PROTOCOL. > It provides a command to load a file and have it fixed up and a > command to save the resulting file. > > Add a command 'dump' for displaying the device-tree. >

Re: [PATCH] bootstash: Do not provide a default address for all

2024-07-05 Thread Simon Glass
Hi Tom, On Wed, 3 Jul 2024 at 22:23, Tom Rini wrote: > > A valid memory location to stash bootstage information at will be > architecture dependent. Move the existing defaults to the main Kconfig > file for this option and set 0x0 as the default only for sandbox. > > Signed-off-by: Tom Rini > --

Re: [PATCH] test/py/tests/test_fpga.py: Correct check for legacy image format support

2024-07-05 Thread Simon Glass
On Wed, 3 Jul 2024 at 22:19, Tom Rini wrote: > > The build option to support images of type 'IMAGE_FORMAT_LEGACY' is > CONFIG_LEGACY_IMAGE_FORMAT so update the pytest to check for the correct > option. > > Signed-off-by: Tom Rini > --- > test/py/tests/test_fpga.py | 12 ++-- > 1 file cha

Re: [PATCH v4 08/29] hash: integrate hash on mbedtls

2024-07-05 Thread Simon Glass
Hi, On Wed, Jul 3, 2024, 09:56 Ilias Apalodimas wrote: > > Hi Raymond > > On Tue, 2 Jul 2024 at 21:27, Raymond Mao wrote: > > > > Integrate common/hash.c on the hash shim layer so that hash APIs > > from mbedtls can be leveraged by boot/image and efi_loader. > > > > Signed-off-by: Raymond Mao >

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-05 Thread Mark Kettenis
> From: Mikhail Kshevetskiy > Date: Fri, 5 Jul 2024 06:26:24 +0400 > > From: Michael Polyntsov > > If hardware (or driver) doesn't support leds blinking, it's > now possible to use software implementation of blinking instead. > This relies on cyclic functions. > > v2 changes: > * Drop sw_bli

Re: [PATCH v2 1/8] usb: cdns3: Set USB PHY mode in cdns3_core_init_role()

2024-07-05 Thread Minda Chen
> > Hi, > > On 04/07/2024 08:50, Minda Chen wrote: > > USB PHY maybe need to set PHY mode in different USB dr mode. So > > translate to generic PHY mode and call generic_phy_set_mode(). > > > > Signed-off-by: Minda Chen > > --- > > drivers/usb/cdns3/core.c | 25 + > >

Re: [PATCH v1] verdin-am62: add DFU, USB and UUU fastboot support

2024-07-05 Thread Francesco Dolcini
On Thu, Jul 04, 2024 at 04:49:32PM +0100, Vitor Soares wrote: > From: Vitor Soares > > Enable USB host as well as USB gadget and DFU support for a53 and r5 > configs. Also, enable UUU fastboot support to download files with > the UUU tool from a53. > > Additionally, configure usb0 to peripheral

[PATCH V2] clk: imx: add mux ops for i.MX8M composite clk

2024-07-05 Thread Michael Trimarchi
Upstream Linux commit f90b68d6c8b0. The CORE/BUS root slice has following design, simplied graph: The difference is core not have pre_div block. A composite core/bus clk has 8 inputs for mux to select, saying clk[0-7]. It support target(smart) interface and normal interface. Target interface is e

[PATCH V2 1/2] clk: clk-mux: Make public the clk_fetch_parent_index

2024-07-05 Thread Michael Trimarchi
Make public the clk_fetch_parent_index and rename it. This allow us to be reused in driver specialization Signed-off-by: Michael Trimarchi --- V1->V2: Nothing changed --- drivers/clk/clk-mux.c| 5 ++--- include/linux/clk-provider.h | 1 + 2 files changed, 3 insertions(+), 3 delet

[PATCH V2 0/2] Support imx8m composite mux

2024-07-05 Thread Michael Trimarchi
The mux ops for i.MX8M composite clk needs to be specialized. In order to reduce the code duplication we need to make public some interface and write a specific function in the mux ops. Those patches implement the behavior. Addressed comment in V1 Michael Trimarchi (2): clk: clk-mux: Make publi

[PATCH V2] clk: Propagate clk_set_rate() if CLK_SET_PARENT_RATE present for gate and mux

2024-07-05 Thread Michael Trimarchi
Gate and mux does not have .set_rate operation, but they could have CLK_SET_PARENT_RATE flag set. In that case it's usually possible to find a parent up the tree which is capable of setting the rate (div, pll, etc). Add clk_generic_set_rate to allow them to trasverse the clock tree. Cc: Sam Protse