[PATCH v4 10/44] spl: Create proper symbols for enabling the malloc() pool

2023-09-26 Thread Simon Glass
For U-Boot proper we have CONFIG_SYS_MALLOC_F which indicates that a malloc() pool is available before relocation. For SPL we only have CONFIG_SPL_SYS_MALLOC_F_LEN which indicates the size of the pool. In various places we use CONFIG_SPL_SYS_MALLOC_F_LEN == 0 to indicate that there is no pool.

[PATCH v4 09/44] serial: Drop mention of SPL/TPL_SYS_MALLOC_F

2023-09-26 Thread Simon Glass
These symbols do not (yet) exist, so drop the usage of them in the serial Kconfig file. It has no effect. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to drop mention of SPL/TPL_SYS_MALLOC_F drivers/serial/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH v4 08/44] spl: Drop the switch() statement for OS selection

2023-09-26 Thread Simon Glass
This code is pretty ugly, with many #ifdefs There are quite a lot of IH_OS_U_BOOT values so the compiler struggles to create a jump table here. Also, most of the options are normally disabled. Change it to an else...if construct instead. Add an accessor for the spl_image field behind an #ifdef

[PATCH v4 07/44] spl: Avoid #ifdef with CONFIG_SPL_PAYLOAD_ARGS_ADDR

2023-09-26 Thread Simon Glass
Move the condition to the header file to improve readability. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Change the approach to use the header file common/spl/spl.c | 10 -- include/system-constants.h | 7 +++ 2 files changed, 11

[PATCH v4 06/44] spl: Drop #ifdefs for BOARD_INIT and watchdog

2023-09-26 Thread Simon Glass
Avoid using the preprocessor for these checks. Signed-off-by: Simon Glass --- (no changes since v1) common/spl/spl.c | 10 -- include/spl.h| 8 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index

[PATCH v4 05/44] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-26 Thread Simon Glass
It doesn't make sense to have some boards do this differently. Drop the condition in the hope that the maintainers can figure out any run-time problems. This has been tested on qemu-ppce500 Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Mention testing on qemu-ppce500

[PATCH v4 04/44] spl: Avoid #ifdef with CONFIG_SPL_SYS_MALLOC

2023-09-26 Thread Simon Glass
Use IF_ENABLED_INT() to avoid needing to use the preprocessor. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Improve readability by moving the size part to the header file common/spl/spl.c | 8 include/system-constants.h | 7 ++- 2 files

[PATCH v4 03/44] spl: Rename SYS_SPL_ARGS_ADDR to SPL_PAYLOAD_ARGS_ADDR

2023-09-26 Thread Simon Glass
Rename this so that SPL is first, as per U-Boot convention. Also add PAYLOAD_ since this is where in memory the parameters for the payload have been stored. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Rename based on Tom's feedback

[PATCH v4 00/44] spl: Preparation for Universal Payload

2023-09-26 Thread Simon Glass
This series tidies up SPL a little and adds some core ofnode functions needed to support Universal Payload. It also includes a few minor fix-ups for sandbox. For SPL the changes include CONFIG naming, removing various #ifdefs and tidying up the FIT code. One notable piece of the ofnode

Re: [PATCH 00/15] blk: sandbox: Support binding a device with a given logical block size

2023-09-26 Thread Bin Meng
Hi Heinrich, On Tue, Sep 26, 2023 at 4:58 PM Heinrich Schuchardt wrote: > > On 9/26/23 10:43, Bin Meng wrote: > > At present on Sandbox when binding to a host backing file, the host > > block device is created with a hard-coded 512 bytes block size. > > > > Such assumption works for most cases,

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

2023-09-26 Thread Tom Rini
On Tue, Sep 26, 2023 at 01:21:50PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit 15155ab0a3d1f839509bcac620bfb38f950bead6: > > Merge tag 'u-boot-imx-20230923' of > https://source.denx.de/u-boot/custodians/u-boot-imx (2023-09-24 17:15:31 > -0400) > > are available

Re: [PATCH v3 38/38] pci: serial: Support reading PCI-register size with base

2023-09-26 Thread Tom Rini
On Tue, Sep 26, 2023 at 05:37:32AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 25 Sept 2023 at 14:17, Tom Rini wrote: > > > > On Sun, Sep 24, 2023 at 01:25:23PM -0600, Simon Glass wrote: > > > > > The PCI helpers read only the base address for a PCI region. In some cases > > > the size is

Re: [PATCH] mailbox: k3-sec-proxy: fix error handling for missing scfg in FDT

2023-09-26 Thread Nishanth Menon
On 14:42-20230926, Matthias Schiffer wrote: > The wrong field was checked. > > Fixes: f9aa41023bd9 ("mailbox: Introduce K3 Secure Proxy Driver") > Signed-off-by: Matthias Schiffer > --- > drivers/mailbox/k3-sec-proxy.c | 2 +- > 1 file changed, 1 insertion(+)

Re: [PATCH v1 3/3] arm: npcm8xx: support dcache off

2023-09-26 Thread Tom Rini
On Tue, Sep 26, 2023 at 04:56:50PM +0800, Jim Liu wrote: > do not enable dcache by setting CONFIG_SYS_NPCM_DCACHE_OFF=y > > Signed-off-by: Jim Liu > --- > arch/arm/mach-npcm/npcm8xx/Kconfig | 4 > arch/arm/mach-npcm/npcm8xx/cpu.c | 12 +++- > 2 files changed, 15 insertions(+),

Re: [PATCHv10 01/15] submodule: add lwIP as git submodule

2023-09-26 Thread Tom Rini
On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote: > Hi Maxim, > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov wrote: > > > > add external lwIP library as a git submodule. > > Use STABLE-2_2_0_RELEASE tag. > > > > Signed-off-by: Maxim Uvarov > > --- > > .gitmodules| 3 +++

Re: [PATCH 05/32] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-26 Thread Christophe Leroy
Le 26/09/2023 à 13:37, Simon Glass a écrit : > Hi, > > On Wed, 20 Sept 2023 at 19:03, Simon Glass wrote: >> >> Hi Tom, >> >> On Thu, 31 Aug 2023 at 11:51, Tom Rini wrote: >>> >>> On Wed, Aug 30, 2023 at 12:04:36PM -0600, Simon Glass wrote: >>> It doesn't make sense to have some boards do

Re: [PATCH v3 6/6] arm: dts: k3-j721e: Sync with v6.6-rc1

2023-09-26 Thread Neha Malcom Francis
Hi Nishanth On 25-Sep-23 7:32 PM, Nishanth Menon wrote: On 16:09-20230922, Neha Malcom Francis wrote: Sync k3-j721e DTS with kernel.org v6.6-rc1. Give a summary of changes here - for example hbmc was disabled. Signed-off-by: Neha Malcom Francis ---

Re: [PATCH v2 30/32] fdt: Allow the devicetree to come from a bloblist

2023-09-26 Thread Ilias Apalodimas
Hi Simon, [...] > > > > > > > > So, instead of adding OF_BLOBLIST, just move this code under OF_BOARD, > > > > inside an IS_ENABLED(BLOBLIST) check. If a bloblist is required and > > > > the previous stage loader is supposed to provide a DT we can just > > > > throw an error and stop booting > >

[PATCH] test/py: sleep: Add a test for the time command

2023-09-26 Thread Love Kumar
Execute "time ", and validate that it gives the approximately the correct amount of command execution time. Signed-off-by: Love Kumar --- test/py/tests/test_sleep.py | 20 1 file changed, 20 insertions(+) diff --git a/test/py/tests/test_sleep.py

[PATCH] arm: dts: imx8mm_evk: Fix PMIC definition

2023-09-26 Thread Alexander Koch
Newer revisions of the i.MX8MM EVK are equipped with a different PMIC than the initial ones (PCA9540 instead of BD71847), which has already been reflected in 4c07a21e5. These changes have been reverted implicitly as part of the device tree re-sync with the Linux kernel done in 24a7a3c1c. This

Re: [PATCH 2/2] board: Add support for Conclusive KSTR-SAMA5D27

2023-09-26 Thread Artur Rojek
Hey Eugen, thanks for the review. >Hello, > >Thank you for your patch, > >On 9/21/23 18:37, Artur Rojek wrote: >> Introduce support for Conclusive KSTR-SAMA5D27 Single Board Computer. >> >> Co-developed-by: Jakub Klama >> Signed-off-by: Jakub Klama >> Co-developed-by: Marcin Jabrzyk >>

Re: [PATCH 1/2] common: add prototype for populate_serial_number()

2023-09-26 Thread Artur Rojek
Hi Simon, thanks for the review. >Hi Artur, > >On Thu, 21 Sept 2023 at 09:44, Artur Rojek wrote: >> >> Provide function prototype for populate_serial_number(). >> This is useful for boards that wish to read their serial number from >> EEPROM at init. >> >> Signed-off-by: Artur Rojek >> --- >>

[PATCH] mailbox: k3-sec-proxy: fix error handling for missing scfg in FDT

2023-09-26 Thread Matthias Schiffer
The wrong field was checked. Fixes: f9aa41023bd9 ("mailbox: Introduce K3 Secure Proxy Driver") Signed-off-by: Matthias Schiffer --- drivers/mailbox/k3-sec-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c

Re: [PATCH v2 30/32] fdt: Allow the devicetree to come from a bloblist

2023-09-26 Thread Simon Glass
Hi Ilias, On Tue, 26 Sept 2023 at 06:32, Ilias Apalodimas wrote: > > Hi Simon > > On Tue, 26 Sept 2023 at 14:37, Simon Glass wrote: > > > > Hi Ilias, > > > > On Mon, 25 Sept 2023 at 13:48, Ilias Apalodimas > > wrote: > > > > > > Hi Simon, > > > > > > I commented on the v1 thread, but let's

Re: [PATCH v2 30/32] fdt: Allow the devicetree to come from a bloblist

2023-09-26 Thread Ilias Apalodimas
Hi Simon On Tue, 26 Sept 2023 at 14:37, Simon Glass wrote: > > Hi Ilias, > > On Mon, 25 Sept 2023 at 13:48, Ilias Apalodimas > wrote: > > > > Hi Simon, > > > > I commented on the v1 thread, but let's continue the discussion here > > > > On Thu, 21 Sept 2023 at 04:58, Simon Glass wrote: > > > >

Re: [PATCH v2] arm64: versal: Add SelectMAP boot mode identification

2023-09-26 Thread Michal Simek
On 9/22/23 15:51, Polak, Leszek wrote: The SelectMAP configuration interface provides an 8-bit, 16-bit or 32-bit bidirectional data bus interface to the Versal FPGA configuration logic that can be used for both configuration and readback. A connected microcontoller to the SelectMAP interface

Re: [PATCH] net: zynq_gem: Update the MDC clock divisor in the probe function

2023-09-26 Thread Michal Simek
On 9/22/23 06:50, Venkatesh Yadav Abbarapu wrote: MDC clock change needs to be done when the driver probe function is called as mdio is enabled at probe and not when the ethernet starts. Setup the MDC clock at the probe itself. Signed-off-by: Venkatesh Yadav Abbarapu ---

Re: [RFC PATCH 3/5] ARM: dts: stm32: make the DSI clock usable by the clock driver

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:57, Dario Binacchi wrote: > As described in [1], the "clocks" property contains "a phandle to the > clock device node, an index selecting between gated clocks (0) and other > clocks (1), and an index specifying the clock to use." The current version > of the clock driver, unlike

Re: [RFC PATCH 2/5] ARM: dts: stm32: make the LTDC clock usable by the clock driver

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:57, Dario Binacchi wrote: > As described in [1], the "clocks" property contains "a phandle to the > clock device node, an index selecting between gated clocks (0) and other > clocks (1), and an index specifying the clock to use." The current version > of the clock driver, unlike

Re: [PATCH v2 30/32] fdt: Allow the devicetree to come from a bloblist

2023-09-26 Thread Simon Glass
Hi Ilias, On Mon, 25 Sept 2023 at 13:48, Ilias Apalodimas wrote: > > Hi Simon, > > I commented on the v1 thread, but let's continue the discussion here > > On Thu, 21 Sept 2023 at 04:58, Simon Glass wrote: > > > > Standard passage provides for a bloblist to be passed from one firmware > > phase

Re: [PATCH v3 38/38] pci: serial: Support reading PCI-register size with base

2023-09-26 Thread Simon Glass
Hi Tom, On Mon, 25 Sept 2023 at 14:17, Tom Rini wrote: > > On Sun, Sep 24, 2023 at 01:25:23PM -0600, Simon Glass wrote: > > > The PCI helpers read only the base address for a PCI region. In some cases > > the size is needed as well, e.g. to pass along to a driver which needs to > > know the size

Re: bootstd: Scanning for USB bootflow will remove existing SCSI bootflow

2023-09-26 Thread Simon Glass
Hi Tony, On Mon, 25 Sept 2023 at 14:02, Tony Dinh wrote: > > Hi Simon, > > Here is an observation during testing the bootflow command. > > If there is a SCSI bootflow, scanning for USB bootflow will remove that > existing > SCSI bootflow. To bring it back, I scanned for SCSI bootflow again, and

Re: [PATCHv10 01/15] submodule: add lwIP as git submodule

2023-09-26 Thread Simon Glass
Hi Maxim, On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov wrote: > > add external lwIP library as a git submodule. > Use STABLE-2_2_0_RELEASE tag. > > Signed-off-by: Maxim Uvarov > --- > .gitmodules| 3 +++ > net/lwip/lwip-external | 1 + > 2 files changed, 4 insertions(+) > create

Re: [PATCH 05/32] spl: mx6: powerpc: Drop the condition on timer_init()

2023-09-26 Thread Simon Glass
Hi, On Wed, 20 Sept 2023 at 19:03, Simon Glass wrote: > > Hi Tom, > > On Thu, 31 Aug 2023 at 11:51, Tom Rini wrote: > > > > On Wed, Aug 30, 2023 at 12:04:36PM -0600, Simon Glass wrote: > > > > > It doesn't make sense to have some boards do this differently. Drop the > > > condition in the hope

[PATCH v2 2/2] test: lmb: Add test for coalescing and overlap range

2023-09-26 Thread Udit Kumar
Add test case for an address range which is coalescing with one of range and overlapping with next range Cc: Simon Glass Signed-off-by: Udit Kumar --- test/lib/lmb.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/lib/lmb.c b/test/lib/lmb.c index

[PATCH v2 1/2] lmb: remove overlapping region with next range

2023-09-26 Thread Udit Kumar
In case of new memory range to be added is coalesced with any already added non last lmb region. And there is possibility that, then region in which new memory range added is not adjacent to next region. But have some sections are overlapping. So along with adjacency check with next lmb region,

[PATCH v2 0/2] lmb: remove overlapping region with next range

2023-09-26 Thread Udit Kumar
In case, newly address range to be added is coalescing with some region but also overlapping with next region. In such, case overlapped region was getting created. This patch series, detect such overlap and coalescing such region as one Change logs: test logs

[PATCH 15/15] disk: part: Handle blkmap device in print_part_header()

2023-09-26 Thread Bin Meng
Print out the blkmap device type when showing partition header for a blkmap device. Signed-off-by: Bin Meng --- disk/part.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disk/part.c b/disk/part.c index 493e04943b..6997a89775 100644 --- a/disk/part.c +++ b/disk/part.c @@ -309,6 +309,9

[PATCH 14/15] disk: part: Print out the unknown device uclass id

2023-09-26 Thread Bin Meng
It's helpful to output the device uclass id for unknown devices during the debugging process. Signed-off-by: Bin Meng --- disk/part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/part.c b/disk/part.c index eec02f5898..493e04943b 100644 --- a/disk/part.c +++

[PATCH 13/15] dm: blk: Drop blk_{read,write}_devnum()

2023-09-26 Thread Bin Meng
blk_{read,write}_devnum() are no longer used by anywhere in the source tree. Drop them. Signed-off-by: Bin Meng --- drivers/block/blk-uclass.c | 29 - include/blk.h | 26 -- 2 files changed, 55 deletions(-) diff --git

[PATCH 12/15] cmd: blk_common: Stop using hard-coded block size for Sandbox operations

2023-09-26 Thread Bin Meng
commit 3d2fc7971454 ("cmd: blk: Allow generic read/write operations to work in sandbox") used the hard-coded block size (512) for accessing the sandbox host device. Now that we have added support for non-512 block size for both Sandbox host device and blkmap driver, let's stop using the

Re: Question about boot failure of AM64-SK

2023-09-26 Thread Masahiro Yamada
On Mon, Sep 25, 2023 at 1:24 PM Vignesh Raghavendra wrote: > > Hi Masahiro, > > On 21/09/23 20:33, Masahiro Yamada wrote: > > Hi. > [...] > > > spl: mmc boot mode: fs > > Found FIT > > Error reading cluster > > fit read sector 0, sectors=985528, dst=, count=18446744073709551615, > > size=0xf09b8

[PATCHv10 15/15] net/lwip: split net.h to net.h, arp.h and eth.h

2023-09-26 Thread Maxim Uvarov
current net.h has ethernet and protocol definitions. Protocol definitions overlap with lwIP protocol definitions and net.h can not be included from lwIP code. Splitting on logical blocks makes that work. Signed-off-by: Maxim Uvarov --- include/net.h | 189

[PATCHv10 14/15] net/lwip: replace original net commands with lwip

2023-09-26 Thread Maxim Uvarov
Replace original commands: ping, tftp, dhcp and wget. Signed-off-by: Maxim Uvarov --- boot/bootmeth_efi.c | 18 +++--- boot/bootmeth_pxe.c | 21 ++- cmd/net.c | 86 + cmd/pxe.c | 19 +- include/net.h | 8

[PATCHv10 13/15] net/lwip: connection between cmd and lwip apps

2023-09-26 Thread Maxim Uvarov
Signed-off-by: Maxim Uvarov --- cmd/Makefile | 1 + cmd/net-lwip.c | 286 + 2 files changed, 287 insertions(+) create mode 100644 cmd/net-lwip.c diff --git a/cmd/Makefile b/cmd/Makefile index 9bebf321c3..6ab6b16aab 100644 --- a/cmd/Makefile

[PATCHv10 12/15] net/lwip: update .gitignore with lwIP

2023-09-26 Thread Maxim Uvarov
ignore lwIP library code and reused files from the lwIP. Signed-off-by: Maxim Uvarov --- net/lwip/.gitignore | 8 1 file changed, 8 insertions(+) create mode 100644 net/lwip/.gitignore diff --git a/net/lwip/.gitignore b/net/lwip/.gitignore new file mode 100644 index

[PATCHv10 11/15] net/lwip: implement lwIP port to U-Boot

2023-09-26 Thread Maxim Uvarov
Implement port of lwIP stack to the U-Boot. lwIP is well known full IP stack which provides wide functionality, various examples, API closer to linux userland. Rich debug printing and possibility to run lwIP apps under linux make it easier to develop and debug apps. U-Boot implementation keeps

[PATCHv10 10/15] net/lwip: add lwIP configuration

2023-09-26 Thread Maxim Uvarov
lwip configuration can be tuned with header file. Signed-off-by: Maxim Uvarov --- net/lwip/lwipopts.h | 178 1 file changed, 178 insertions(+) create mode 100644 net/lwip/lwipopts.h diff --git a/net/lwip/lwipopts.h b/net/lwip/lwipopts.h new file

[PATCHv10 09/15] net/lwip: implement ping cmd

2023-09-26 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace ping command with the LWIP variant while keeping the output and error messages identical. ping uses lwIP contrib/apps/ping/ping.c code. Custom timeout is used to get an error message on not modified example. There is

[PATCHv10 08/15] net/lwip: implement wget cmd

2023-09-26 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace wget command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 14 + net/lwip/Makefile | 1 +

[PATCHv10 07/15] net/lwip: implement tftp cmd

2023-09-26 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace tftp command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 13 net/lwip/Makefile | 1 +

[PATCHv10 06/15] net/lwip: implement dhcp cmd

2023-09-26 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace dhcp command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 12 + net/lwip/Makefile | 1 +

[PATCHv10 05/15] net/lwip: implement dns cmd

2023-09-26 Thread Maxim Uvarov
U-Boot recently got support for an alternative network stack using LWIP. Replace dns command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 19 +++ net/lwip/Makefile| 2 ++

[PATCHv10 04/15] net/lwip: integrate lwIP library

2023-09-26 Thread Maxim Uvarov
Define Makefile and Kconfig to build lwIP inside the U-Boot. We compile lwIP the same as the main code, plus we can do optimization for size at compile time with disabling not needed debug asserts, or not used protocols. So we can tune lwIP configuration specially for U-Boot environments.

[PATCHv10 03/15] net/lwip: add doc/develop/net_lwip.rst

2023-09-26 Thread Maxim Uvarov
Add initial documentation of lwIP network IP stack integration to the U-Boot (net_lwip.rst). Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- doc/develop/index.rst| 1 + doc/develop/net_lwip.rst | 75 2 files

[PATCHv10 02/15] Makefile: init submodules

2023-09-26 Thread Maxim Uvarov
Make the make command automatically clone git submodules. Signed-off-by: Maxim Uvarov --- Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9be24c4ec6..3a3cda2365 100644 --- a/Makefile +++ b/Makefile @@ -1871,6 +1871,9 @@ endef

[PATCHv10 01/15] submodule: add lwIP as git submodule

2023-09-26 Thread Maxim Uvarov
add external lwIP library as a git submodule. Use STABLE-2_2_0_RELEASE tag. Signed-off-by: Maxim Uvarov --- .gitmodules| 3 +++ net/lwip/lwip-external | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 16 net/lwip/lwip-external diff --git

[PATCHv10 00/15] net/lwip: add lwip library for the network stack

2023-09-26 Thread Maxim Uvarov
changelog: v10: - fix ping with following tftp command issue with incorrect ping timeout clear. - Makefile on make will init submodules and if needed will do git clone. - wget - some minor code style changes. v9: - added

Re: [PATCH v1] wdt: nuvoton: fix reset/expire function error and add dts

2023-09-26 Thread Stefan Roese
Hi Jim, On 9/26/23 11:04, Jim Liu wrote: Signed-off-by: Jim Liu Please provide a short commit summary, explaining what this patch does. Starting with a reasoning for this change and a short dscription of what was changed. More comments below... ---

Re: [PATCH 3/3] ARM: dts: stm32f429: put can2 in secondary mode

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:33, Dario Binacchi wrote: > commit 6b443faa313c519db755ff90be32758fd9c66453 Linux upstream. > > This is a preparation patch for the upcoming support to manage CAN > peripherals in single configuration. > > The addition ensures backwards compatibility. > > Signed-off-by: Dario

Re: [PATCH 2/3] ARM: dts: stm32: add pin map for CAN controller on stm32f4

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:33, Dario Binacchi wrote: > commit 559a6e75b4bcf0fc9e41d34865e72cf742f67d8e Linux upstream. > > Add pin configurations for using CAN controller on stm32f469-disco > board. They are located on the Arduino compatible connector CN5 (CAN1) > and on the extension connector CN12 (CAN2).

Re: [PATCH 1/3] ARM: dts: stm32: add CAN support on stm32f429

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:33, Dario Binacchi wrote: > commit 7355ad1950f41e755e6dc451834be3b94f82acd4 Linux upstream. > > Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The > chip contains two CAN peripherals, CAN1 the primary and CAN2 the secondary, > that share some of the required

Re: [PATCH 06/10] ARM: dts: stm32: add touchscreen on stm32f746-disco board

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit f0215440069c4fb12958d2d321e05faa2708a11d Linux upstream. > > The patch adds support for touchscreen on the stm32f746-disco board. > > Signed-off-by: Dario Binacchi > Signed-off-by: Alexandre Torgue > --- > > arch/arm/dts/stm32f746-disco.dts

Re: [PATCH 2/3] board: stm32f746-disco: refactor the display of the ST logo

2023-09-26 Thread Patrice CHOTARD
On 8/20/23 18:24, Dario Binacchi wrote: > The patch removes the legacy mode of displaying the ST logo and adopts > the approach introduced by the commit 284b08fb51b6 ("board: stm32mp1: add > splash screen with stmicroelectronics logo"). It was necessary to use a > specific logo for the

[PATCH v2] bmips: Add Inteno XG6846 board

2023-09-26 Thread Linus Walleij
This adds support for the Inteno XG6846 board based on the Broadcom MIPS 6328 SoC. The default boot will read a uImage from flash and boot it. Reviewed-by: Daniel Schwierzeck Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rebase on top of Tom's patches making Makefile optional for

Re: [PATCH 07/10] ARM: dts: stm32: add ltdc support on stm32f746 MCU

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > The patch applies the changes from Linux commit 008ef8b3a1a00 ("Add LTDC > (Lcd-tft Display Controller) support") and removes the same settings > from stm32f746-disco-u-boot.dtsi. > > Signed-off-by: Dario Binacchi > --- > >

Re: [PATCH 08/10] ARM: dts: stm32: add pin map for LTDC on stm32f7

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit ba287d1a0137702a224b1f48673d529257b3c4bf Linux upstream. > > Add pin configurations for using LTDC (LCD-tft Display Controller) on > stm32f746-disco board. > > Signed-off-by: Dario Binacchi > Reviewed-by: Raphaël Gallais-Pou > Signed-off-by:

Re: [PATCH 09/10] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f746-disco

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit e4e724099f04072053cf411456e3e9aae48c4af1 Linux upstream. > > In the schematics of document UM1907, the power supply for the micro SD > card is the same 3v3 voltage that is used to power other devices on the > board. By generalizing the name of

Re: [PATCH 10/10] ARM: dts: stm32: support display on stm32f746-disco board

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > The patch applies the changes from Linux commit 10a970bc3ebfa ("ARM: dts: > stm32: support display on stm32f746-disco board") and removes the same > settings from stm32f746-disco-u-boot.dtsi. > > Signed-off-by: Dario Binacchi > > --- > >

Re: [PATCH 1/3] configs: stm32f746-disco: limit resolution to 480x272

2023-09-26 Thread Patrice CHOTARD
On 8/20/23 18:24, Dario Binacchi wrote: > The patch fixes the y-resolution, which was causing the creation of a > framebuffer larger than actually needed, resulting in memory waste. > > Fixes: cc1b0e7b8e55b ("board: Add display to STM32F746 SoC discovery board") > Signed-off-by: Dario Binacchi

Re: [PATCH 05/10] ARM: dts: stm32: add pin map for i2c3 controller on stm32f7

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 0637e66f8250c61f75042131fcb7f88ead2ad436 Linux upstream. > > Add pin configurations for using i2c3 controller on stm32f7. > > Signed-off-by: Dario Binacchi > Signed-off-by: Alexandre Torgue > --- > > arch/arm/dts/stm32f7-pinctrl.dtsi | 10

Re: [PATCH 04/10] ARM: dts: stm32: use RCC macro for CRC node on stm32f746

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 7a5f349e592c254f3c1ac34665b6c3905576efc2 Linux upstream. > > The patch replaces the number 12 with the appropriate numerical constant > already defined in the file stm32f7-rcc.h. > > Signed-off-by: Dario Binacchi > Signed-off-by: Alexandre

Re: [PATCH 03/10] ARM: dts: stm32: add CAN support on stm32f746

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 0920ccdf41e3078a4dd2567eb905ea154bc826e6 Linux upstream. > > Add support for bxcan (Basic eXtended CAN controller) to STM32F746. The > chip contains three CAN peripherals, CAN1 and CAN2 in dual peripheral > configuration and CAN3 in single

Re: [PATCH 01/10] dt-bindings: mfd: stm32f7: Add binding definition for CAN3

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 8f3ef556f8e1a670895f59ef3f01e4e26edd63e3 Linux upstream. > > Add binding definition for CAN3 peripheral. > > Signed-off-by: Dario Binacchi > Link: > https://lore.kernel.org/r/20230423172528.1398158-2-dario.binac...@amarulasolutions.com >

Re: [PATCH 02/10] ARM: dts: stm32: add pin map for CAN controller on stm32f7

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 011644249686f2675e142519cd59e81e04cfc231 Linux upstream. > > Add pin configurations for using CAN controller on stm32f7. > > Signed-off-by: Dario Binacchi > Link: >

Re: [RFC PATCH 1/5] ARM: dts: stm32f469-disco: sync with Linux 6.5

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:56, Dario Binacchi wrote: > Sync the devicetree with linux 6.5 for stm32f746-disco board. > > Signed-off-by: Dario Binacchi > --- > > arch/arm/dts/stm32f469-disco.dts | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/dts/stm32f469-disco.dts

[PATCH v1] spi: spi-nor-ids: add flash model w25q01/02 support

2023-09-26 Thread Jim Liu
add flash w25q01jv, w25q01jvfim and w25q02jv support Signed-off-by: Jim Liu --- drivers/mtd/spi/spi-nor-ids.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 4587215984..fd74efe609 100644 ---

[PATCH v1] i2c: nuvoton: add support fast mode

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- drivers/i2c/npcm_i2c.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/i2c/npcm_i2c.c b/drivers/i2c/npcm_i2c.c index ea4ef53256..b867b6c8e9 100644 --- a/drivers/i2c/npcm_i2c.c +++ b/drivers/i2c/npcm_i2c.c @@ -517,11 +517,6 @@ static int

Re: [PATCH 3/3] ARM: dts: stm32f429: put can2 in secondary mode

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:33, Dario Binacchi wrote: > commit 6b443faa313c519db755ff90be32758fd9c66453 Linux upstream. > > This is a preparation patch for the upcoming support to manage CAN > peripherals in single configuration. > > The addition ensures backwards compatibility. > > Signed-off-by: Dario

Re: [PATCH 2/3] ARM: dts: stm32: add pin map for CAN controller on stm32f4

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:33, Dario Binacchi wrote: > commit 559a6e75b4bcf0fc9e41d34865e72cf742f67d8e Linux upstream. > > Add pin configurations for using CAN controller on stm32f469-disco > board. They are located on the Arduino compatible connector CN5 (CAN1) > and on the extension connector CN12 (CAN2).

Re: [PATCH 1/3] ARM: dts: stm32: add CAN support on stm32f429

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:33, Dario Binacchi wrote: > commit 7355ad1950f41e755e6dc451834be3b94f82acd4 Linux upstream. > > Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The > chip contains two CAN peripherals, CAN1 the primary and CAN2 the secondary, > that share some of the required

[PATCH v1] wdt: nuvoton: fix reset/expire function error and add dts

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 24 drivers/watchdog/npcm_wdt.c | 12 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/nuvoton-common-npcm8xx.dtsi

Re: [PATCH 00/15] blk: sandbox: Support binding a device with a given logical block size

2023-09-26 Thread Heinrich Schuchardt
On 9/26/23 10:43, Bin Meng wrote: At present on Sandbox when binding to a host backing file, the host block device is created with a hard-coded 512 bytes block size. Such assumption works for most cases, but for situation that with a raw image file dump from a pre-formatted GPT partitioned disk

[PATCH v1 3/3] arm: npcm8xx: support dcache off

2023-09-26 Thread Jim Liu
do not enable dcache by setting CONFIG_SYS_NPCM_DCACHE_OFF=y Signed-off-by: Jim Liu --- arch/arm/mach-npcm/npcm8xx/Kconfig | 4 arch/arm/mach-npcm/npcm8xx/cpu.c | 12 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-npcm/npcm8xx/Kconfig

[PATCH v1 2/3] arm: NPCM: modify baud rate table and dram setting

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb/arbel_evb.c | 16 configs/arbel_evb_defconfig | 1 + include/configs/arbel.h | 4 +++- include/configs/poleg.h | 1 + 4 files changed, 13 insertions(+), 9 deletions(-) diff --git

[PATCH v1 1/3] pinctrl: npcm8xx: add name for gpio function

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c index 7976e3b3ed..ff49819b58 100644 --- a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c +++

[PATCH v1 0/3] arm: NPCM: fix npcm bmc error

2023-09-26 Thread Jim Liu
1. fix incorrect ram size with ecc enabld 2. add name for gpio function 3. add baud rate table Jim Liu (3): pinctrl: npcm8xx: add name for gpio function arm: NPCM: modify baud rate table and dram setting arm: npcm8xx: support dcache off arch/arm/mach-npcm/npcm8xx/Kconfig| 4

[PATCH 11/15] dm: blk: Rename get_desc() and make it externally visible

2023-09-26 Thread Bin Meng
get_desc() can be useful outside blk-uclass.c. Let's change it to an API and make it externally visible. Signed-off-by: Bin Meng --- drivers/block/blk-uclass.c | 26 -- include/blk.h | 12 2 files changed, 20 insertions(+), 18 deletions(-)

Re: [PATCH 10/10] ARM: dts: stm32: support display on stm32f746-disco board

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > The patch applies the changes from Linux commit 10a970bc3ebfa ("ARM: dts: > stm32: support display on stm32f746-disco board") and removes the same > settings from stm32f746-disco-u-boot.dtsi. > > Signed-off-by: Dario Binacchi > > --- > >

Re: [PATCH 09/10] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f746-disco

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit e4e724099f04072053cf411456e3e9aae48c4af1 Linux upstream. > > In the schematics of document UM1907, the power supply for the micro SD > card is the same 3v3 voltage that is used to power other devices on the > board. By generalizing the name of

Re: [PATCH 08/10] ARM: dts: stm32: add pin map for LTDC on stm32f7

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit ba287d1a0137702a224b1f48673d529257b3c4bf Linux upstream. > > Add pin configurations for using LTDC (LCD-tft Display Controller) on > stm32f746-disco board. > > Signed-off-by: Dario Binacchi > Reviewed-by: Raphaël Gallais-Pou > Signed-off-by:

Re: [PATCH 07/10] ARM: dts: stm32: add ltdc support on stm32f746 MCU

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > The patch applies the changes from Linux commit 008ef8b3a1a00 ("Add LTDC > (Lcd-tft Display Controller) support") and removes the same settings > from stm32f746-disco-u-boot.dtsi. > > Signed-off-by: Dario Binacchi > --- > >

[PATCH 10/15] cmd: blk_common: Use macros for the return values

2023-09-26 Thread Bin Meng
Avoid using magic number 0/1 for the command result. Signed-off-by: Bin Meng --- cmd/blk_common.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/blk_common.c b/cmd/blk_common.c index 9f9d4327a9..ad9b16dc09 100644 --- a/cmd/blk_common.c +++

Re: [PATCH 06/10] ARM: dts: stm32: add touchscreen on stm32f746-disco board

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit f0215440069c4fb12958d2d321e05faa2708a11d Linux upstream. > > The patch adds support for touchscreen on the stm32f746-disco board. > > Signed-off-by: Dario Binacchi > Signed-off-by: Alexandre Torgue > --- > > arch/arm/dts/stm32f746-disco.dts

Re: [PATCH 05/10] ARM: dts: stm32: add pin map for i2c3 controller on stm32f7

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 0637e66f8250c61f75042131fcb7f88ead2ad436 Linux upstream. > > Add pin configurations for using i2c3 controller on stm32f7. > > Signed-off-by: Dario Binacchi > Signed-off-by: Alexandre Torgue > --- > > arch/arm/dts/stm32f7-pinctrl.dtsi | 10

Re: [PATCH 04/10] ARM: dts: stm32: use RCC macro for CRC node on stm32f746

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 7a5f349e592c254f3c1ac34665b6c3905576efc2 Linux upstream. > > The patch replaces the number 12 with the appropriate numerical constant > already defined in the file stm32f7-rcc.h. > > Signed-off-by: Dario Binacchi > Signed-off-by: Alexandre

[PATCH 09/15] blk: blkmap: Support mapping to device of any block size

2023-09-26 Thread Bin Meng
At present if a device to map has a block size other than 512, the blkmap map process just fails. There is no reason why we can't just use the block size of the mapped device. Signed-off-by: Bin Meng --- drivers/block/blkmap.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

Re: [PATCH 03/10] ARM: dts: stm32: add CAN support on stm32f746

2023-09-26 Thread Patrice CHOTARD
On 9/3/23 22:48, Dario Binacchi wrote: > commit 0920ccdf41e3078a4dd2567eb905ea154bc826e6 Linux upstream. > > Add support for bxcan (Basic eXtended CAN controller) to STM32F746. The > chip contains three CAN peripherals, CAN1 and CAN2 in dual peripheral > configuration and CAN3 in single

[PATCH 06/15] cmd: host: Print out the block size of the host device

2023-09-26 Thread Bin Meng
It's useful if we can print out the block size of the host device in the "host info" command. Signed-off-by: Bin Meng --- cmd/host.c | 7 --- test/dm/host.c | 20 ++-- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/cmd/host.c b/cmd/host.c index

[PATCH 08/15] cmd: blkmap: Make map_handlers[] and its .fn static

2023-09-26 Thread Bin Meng
These are only used in cmd/blkmap.c. Signed-off-by: Bin Meng --- cmd/blkmap.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/blkmap.c b/cmd/blkmap.c index b34c013072..ef74ebc003 100644 --- a/cmd/blkmap.c +++ b/cmd/blkmap.c @@ -25,7 +25,8 @@ struct map_handler {

<    1   2   3   >