Re: [PATCH v8 00/24] Fixes for Rockchip NFC driver part 1

2023-04-22 Thread Kever Yang
Hi Johan, On 2023/4/21 23:34, Johan Jonker wrote: On 4/21/23 05:15, Kever Yang wrote: Hi Johan,     I got below error report from CI test, I think it should be relate to this patch set. === FAILURES === 1107

Pull request: u-boot-rockchip-20230421

2023-04-22 Thread Kever Yang
Hi Tom, This is the first PR for rockchip platform, and still many patches are in the list for some reason, suppose to have one more PR in next week. Please pull the updates for rockchip platform: - Add rk3588 evb support; - Update pinctrl for rk3568 and rk3588; - Update rk3288 dts; - Update mmc

[PATCH 4/4] mtd: spi: renesas: Add 4 bytes address mode support

2023-04-22 Thread Marek Vasut
From: Cong Dang This patch adds 4-byte address mode support. Because traditional access based on FIFO/shift register, it's complex to specify information like opcode, address length, dummy bytes etc to flash. Replace the traditional access by spi-mem layer which is essential to make 4-byte

[PATCH 3/4] mtd: spi: renesas: Add R-Car Gen4 support

2023-04-22 Thread Marek Vasut
From: Hai Pham Support RPC SPI on R-Car Gen4 R8A779F0 S4 and R8A779G0 V4H SoCs. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Squash S4 and V4H patches, fix brackets around STRTIM2] --- Cc: Jagan Teki Cc: Vignesh R --- drivers/spi/renesas_rpc_spi.c |

[PATCH 2/4] mtd: spi: renesas: Enable SPI_FLASH_SFDP_SUPPORT

2023-04-22 Thread Marek Vasut
From: Hai Pham Enable support for parsing and auto discovery of parameters for SPI NOR flashes using Serial Flash Discoverable Parameters (SFDP) tables as per JESD216 standard. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Cong Dang Signed-off-by: Marek Vasut # Make SFDP

[PATCH 1/4] mtd: spi: renesas: Extract strobe delay setting code into separate function

2023-04-22 Thread Marek Vasut
From: Hai Pham Move strobe delay setting code into extra function and reflect the latest setting in datasheet (R-Car Gen3 v2.20, R-Car V3U v0.50). i.e. STRTIM[2:0] should be set to 110 (RCar M3-W) or 111 (Other products) This is also a preparation for new R-Car Gen4 SoC which has 4-bits STRTIM

[PATCH] mtd: spi-nor-core: Add fixups for s25fs512s

2023-04-22 Thread Marek Vasut
From: Takahiro Kuwano This patch adds fixups for s25fs512s to address the following issues from reading SFDP: - Non-uniform sectors by factory default. The setting needs to be checked and assign erase hook as needed. - Page size is wrongly advertised in SFDP. - READ_1_1_2 (3Bh/3Ch),

Re: [GIT PULL] Please pull uu-boot-amlogic-20230417

2023-04-22 Thread Tom Rini
On Mon, Apr 17, 2023 at 05:24:59PM +0200, Neil Armstrong wrote: > Hi Tom, > > A big set of changes for the next release, it adds 7 new boards: > - BPI-CM4IO > - BananaPi M2-Pro > - BananaPi M2S > - Radxa Zero2 > - WeTek Hub > - WeTek Play2 > - Beelink GT1 Ultimate > with a welcome doc cleanup! >

Pull request for u-boot-nand-20230422

2023-04-22 Thread Dario Binacchi
-boot-nand-flash.git tags/u-boot-nand-20230422 for you to fetch changes up to 770e77051ec50b46c2aed4c4a355bd79054cf274: mtd: rawnand: nand_base: Handle algorithm selection (2023-04-22 23:07:57 +0200) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-nand-flash

Re: [PATCH v8 00/24] Fixes for Rockchip NFC driver part 1

2023-04-22 Thread Johan Jonker
On 4/21/23 17:34, Johan Jonker wrote: > > > On 4/21/23 05:15, Kever Yang wrote: >> Hi Johan, >> >>     I got below error report from CI test, I think it should be relate to >> this patch set. >> >> === FAILURES >> === >> 1107

Re: [PATCH v2] nand: brcmnand: add iproc support

2023-04-22 Thread Tom Rini
On Thu, Apr 20, 2023 at 10:51:20PM +0200, Linus Walleij wrote: > On Wed, Apr 19, 2023 at 6:13 PM Dario Binacchi > wrote: > > On Wed, Apr 19, 2023 at 4:00 PM Linus Walleij > > wrote: > > > > > > On Wed, Apr 19, 2023 at 3:19 PM Dario Binacchi > > > wrote: > > > > On Wed, Apr 19, 2023 at 3:04 PM

[PATCH 8/8] rockchip: rk356x: Update PCIe config, IO and memory regions

2023-04-22 Thread Jonas Karlman
Update config, IO and memory regions used based on [1] with pcie3x2 config reg size corrected from 16 to 1 MiB. [1] https://lore.kernel.org/lkml/20221112114125.1637543-2-ahol...@omnom.net/ Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568.dtsi | 14 -- arch/arm/dts/rk356x.dtsi |

[PATCH 7/8] rockchip: rk3568-rock-3a: Enable PCIe and NVMe support

2023-04-22 Thread Jonas Karlman
Add missing pinctrl and defconfig options to enable PCIe and NVMe support on Radxa ROCK 3 Model A. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 14 ++ configs/rock-3a-rk3568_defconfig| 4 2 files changed, 18 insertions(+) diff --git

[PATCH 6/8] rockchip: clk: clk_rk3568: Add CLK_PCIEPHY2_REF support

2023-04-22 Thread Jonas Karlman
Add dummy support for the CLK_PCIEPHY2_REF clock. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3568.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c index cefc263971a6..c8e688789e4c 100644 ---

[PATCH 4/8] pci: pcie_dw_rockchip: Hide BARs of the root complex

2023-04-22 Thread Jonas Karlman
PCI Autoconfig read the Root Complex BARs and try to claim the entire 1 GiB memory region on RK3568, leaving no space for any attached device. Return an invalid value during config read of Root Complex BARs during autoconfig to work around such issue. Signed-off-by: Jonas Karlman ---

[PATCH 5/8] regulator: fixed: Add support for gpios prop

2023-04-22 Thread Jonas Karlman
The commit 12df2c182ccb ("regulator: dt-bindings: fixed-regulator: allow gpios property") in linux v6.3-rc1 added support for use of either a gpios or gpio prop with a fixed-regulator. This adds support for the new gpios prop to the fixed-regulator driver. Signed-off-by: Jonas Karlman ---

[PATCH 3/8] pci: pcie_dw_rockchip: Speed up link probe

2023-04-22 Thread Jonas Karlman
Use a similar pattern and delay values as the linux mainline driver to speed up failing when nothing is connected. Reduce fail speed from around 5+ seconds down to around one second on a Radxa ROCK 3 Model A, where pcie2x1 is probed before pcie3x2 M2 slot. Signed-off-by: Jonas Karlman ---

[PATCH 2/8] pci: pcie_dw_rockchip: Use regulator_set_enable_if_allowed

2023-04-22 Thread Jonas Karlman
The vpcie3v3 regulator is typically a fixed regulator controlled using gpio. Change to use enable and disable calls on the regulator instead of trying to set a voltage value. Signed-off-by: Jonas Karlman --- drivers/pci/pcie_dw_rockchip.c | 17 +++-- 1 file changed, 7 insertions(+),

[PATCH 0/8] rockchip: Fix PCIe and NVMe support on RK3568

2023-04-22 Thread Jonas Karlman
This series fixes and enables PCIe and NVMe support on RK3568. It depends on prior series by Eugen Hristev, [1] and [2] that adds PCIe support on RK3588 and also [3] that add basic reference counting to gpio regulators. Patch 1-2 fixes main issue in the driver to be usable on RK3568. Patch 3

[PATCH 1/8] pci: pcie_dw_rockchip: Get config region from reg prop

2023-04-22 Thread Jonas Karlman
Get the config region to use from the reg prop. Also check the return value from dev_read_addr_index correctly. And update the referenced region index used in comment. Signed-off-by: Jonas Karlman --- drivers/pci/pcie_dw_common.c | 10 ++ drivers/pci/pcie_dw_rockchip.c | 15

Re: [PATCH 1/1] sandbox: mark sandbox_exit() as no return.

2023-04-22 Thread Simon Glass
On Sat, 1 Apr 2023 at 20:54, Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: > > Fix a -Wimplicit-fallthrough warning in sandbox_sysreset_request(). > > Signed-off-by: Heinrich Schuchardt > --- > arch/sandbox/cpu/cpu.c| 2 +- >

Re: [PATCH 1/1] sandbox: spi: sandbox_sf_process_cmd() missing fallthrough

2023-04-22 Thread Simon Glass
On Sat, 1 Apr 2023 at 20:38, Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: > > Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/mtd/spi/sandbox.c | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH 1/1] sandbox: fix fall through in sandbox_flash_bulk()

2023-04-22 Thread Simon Glass
On Sat, 1 Apr 2023 at 19:25, Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: > > Handling of SANDBOX_FLASH_EP_OUT should never fall through to > SANDBOX_FLASH_EP_IN. > > This addresses a warning shown when compiling with > -Wimplicit-fallthrough. > > Signed-off-by: Heinrich

Re: [PATCH 1/1] sandbox: fix sandbox_hub_submit_control_msg()

2023-04-22 Thread Simon Glass
On Sat, 1 Apr 2023 at 19:57, Heinrich Schuchardt < heinrich.schucha...@canonical.com> wrote: > > Avoid incorrect fall through: > A USB_RT_HUB request should not be treated as USB_RT_PORT. > > Simplify the coding: > Avoid duplicate debug() statements. > > This fixes all -Wimplicit-fallthrough

Re: [PATCH] boot: vbe_simple: Fix vbe_simple_read_bootflow() dependency

2023-04-22 Thread Simon Glass
Hi Heinrich, On Tue, 4 Apr 2023 at 16:50, Heinrich Schuchardt wrote: > > On 4/3/23 05:40, Bin Meng wrote: > > vbe_simple_read_bootflow() calls vbe_simple_read_bootflow_fw() > > which is only available when BOOTMETH_VBE_SIMPLE_FW is on. > > > > Signed-off-by: Bin Meng > > --- > > > >

Re: [PATCH 1/1] common: static fdt_simplefb_enable_existing_node()

2023-04-22 Thread Simon Glass
On Tue, 4 Apr 2023 at 06:47, Heinrich Schuchardt wrote: > > Function fdt_simplefb_enable_existing_node() should be static as it is not > used outside common/fdt_simplefb.c. > > Signed-off-by: Heinrich Schuchardt > --- > common/fdt_simplefb.c | 8 +++- > include/fdt_simplefb.h | 1 - > 2

Re: [PATCH] binman: Use unsigned long over typedef ulong

2023-04-22 Thread Simon Glass
On Wed, 5 Apr 2023 at 06:45, Andrew Davis wrote: > > The header binman_sym.h depends on ulong typedef but does not include > types.h. This means the header must be included after including types.h > or a header that includes it. > > We could include types.h but instead let's just switch from

Re: [PATCH 1/1] MAINTAINERS: assign include/os.h

2023-04-22 Thread Simon Glass
On Wed, 5 Apr 2023 at 21:27, Heinrich Schuchardt wrote: > > os.h is only used by the sandbox. > > Signed-off-by: Heinrich Schuchardt > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass Applied to u-boot-dm, thanks!

Re: [PATCH v2 1/1] sandbox: fix return type of os_filesize()

2023-04-22 Thread Simon Glass
On Wed, 5 Apr 2023 at 21:34, Heinrich Schuchardt wrote: > > Given a file ../img of size 4294967296 with GPT partition table and > partitions: > > => host bind 0 ../img > => part list host 0 > Disk host-0.blk not ready > > The cause is os_filesize() returning int. File sizes must use off_t. > >

Re: [PATCH] dm: core: Make aliases_lookup static

2023-04-22 Thread Simon Glass
On Thu, 6 Apr 2023 at 02:38, Bin Meng wrote: > > aliases_lookup is only referenced in of_access.c > > Signed-off-by: Bin Meng > --- > > drivers/core/of_access.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass Applied to u-boot-dm, thanks!

Re: [PATCH] bootflow: Rework do_bootflow_menu() slightly

2023-04-22 Thread Simon Glass
On Fri, 7 Apr 2023 at 02:03, Tom Rini wrote: > > When building this with clang, we get a warning such as: > cmd/bootflow.c:412:27: warning: variable 'bflow' is uninitialized when used > here [-Wuninitialized] > printf("Selected: %s\n", bflow->os_name ? bflow->os_name : > bflow->name); >

Re: [PATCH 1/1] sandbox: correct posix_types.h define

2023-04-22 Thread Simon Glass
On Mon, 17 Apr 2023 at 01:09, Heinrich Schuchardt wrote: > > arch/arm/include/asm/posix_types.h and > arch/sandbox/include/asm/posix_types.h should use different defines. > > Add SPDX header. > > Signed-off-by: Heinrich Schuchardt > --- > arch/sandbox/include/asm/posix_types.h | 7 --- > 1

[PATCH] tools: Fall back to importlib_resources on Python 3.6

2023-04-22 Thread Jan Kiszka
From: Jan Kiszka importlib.resources became part of 3.7 only. Allow using distros with 3.6 and the importlib_resources backport. Signed-off-by: Jan Kiszka --- Tested on OpenSUSE 15.4 with importlib_resources 1.1.0. tools/binman/control.py | 6 +- tools/buildman/control.py | 6 +-

[RESEND PATCH 3/3] imx6: clock: print real pixel clock rate

2023-04-22 Thread Dario Binacchi
Add debug messages to print the real pixel clock rate, which may not be the requested one. Signed-off-by: Dario Binacchi --- arch/arm/mach-imx/mx6/clock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index

[RESEND PATCH 2/3] imx6: clock: add support to get LCD pixel clock rate

2023-04-22 Thread Dario Binacchi
Add the get_lcd_clk() function to get the LCD pixel clock rate. The patch has been tested on imx6ul platform. Signed-off-by: Dario Binacchi --- arch/arm/include/asm/arch-mx6/clock.h | 2 + arch/arm/mach-imx/mx6/clock.c | 58 +++ 2 files changed, 60

[RESEND PATCH 1/3] imx6: clock: improve calculations to get the PLL video rate

2023-04-22 Thread Dario Binacchi
During some tests to check the pixel clock rate in the transition from U-Boot to the Linux kernel, I noticed that with the same configuration of the registers the debug messages reported different rates. The same Linux kernel calculations are now used to get the PLL video rate. Signed-off-by:

[RESEND PATCH 0/3] imx6: clock: add support to get LCD pixel clock rate

2023-04-22 Thread Dario Binacchi
The series adds a function to get the LCD pixel clock rate. Also improves video PLLL rate calculation. Dario Binacchi (3): imx6: clock: improve calculations to get the PLL video rate imx6: clock: add support to get LCD pixel clock rate imx6: clock: print real pixel clock rate

[PATCH] ARM: dts: stm32f769-disco: remove the dsi_host node

2023-04-22 Thread Dario Binacchi
The node has become useless, as described in the commit 754815b854258 ("video: stm32: remove the compatible "synopsys, dw-mipi-dsi" support") Signed-off-by: Dario Binacchi --- arch/arm/dts/stm32f769-disco-u-boot.dtsi | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH] configs: stm32f746-disco: remove a useless comment

2023-04-22 Thread Dario Binacchi
Commit 8fc78fc73b7f9d ("configs: migrate CONFIG_BMP_16/24/32BPP to defconfigs") made the comment useless. Signed-off-by: Dario Binacchi --- include/configs/stm32f746-disco.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/stm32f746-disco.h

[PATCH 4/4] test: bdinfo: Add test for command bdinfo

2023-04-22 Thread Marek Vasut
Add test for command bdinfo . Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- include/test/suites.h | 1 + test/cmd/Makefile | 1 + test/cmd/bdinfo.c | 179 ++ test/cmd_ut.c | 6

[PATCH 3/4] cmd: bdinfo: Print ethaddr of current MAC

2023-04-22 Thread Marek Vasut
Instead of always printing ethaddr of MAC 0, print eth%daddr of the current MAC. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- cmd/bdinfo.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git

[PATCH 2/4] cmd: bdinfo: Wrap network information printing into print_eth()

2023-04-22 Thread Marek Vasut
Move all the network information printing into print_eth(), no functional change. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- cmd/bdinfo.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/bdinfo.c

[PATCH 1/4] cmd: bdinfo: Map fdt_blob and new_fdt to sysmem

2023-04-22 Thread Marek Vasut
Map fdt_blob and new_fdt to sysmem, otherwise $fdtcontroladdr and bdinfo output do not match and the bdinfo output address is not a valid address accessible via sandbox memory accessors. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass ---

[PATCH] test: fdt: Fix copyright message

2023-04-22 Thread Marek Vasut
Drop the map_to_sysmem() copy paste error. No functional change. Signed-off-by: Marek Vasut --- Cc: Jason Liu Cc: Michal Simek Cc: Ovidiu Panait Cc: Simon Glass --- test/cmd/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmd/fdt.c b/test/cmd/fdt.c index