imx8mp spi fail

2023-02-12 Thread Elmar Psilog
Hello, kindly ask for help about SPI at an IMX8MP. I tried latest 2023.01. If you can please have a look and check it works on your side? sspi command returns: Invalid bus 0 Turning on the log-level: drivers/core/lists.c:201- lists_bind_fdt() bind node spi@3082

Re: [PATCH] arm64: imx: Add support for imx8mp-beacon-kit

2023-02-12 Thread Tom Rini
On Sun, Feb 12, 2023 at 12:02:26PM -0600, Adam Ford wrote: > On Sun, Feb 12, 2023 at 11:47 AM Tom Rini wrote: > > > > On Sun, Feb 12, 2023 at 11:36:38AM -0600, Adam Ford wrote: > > > > > Beacon Embedded has an i.MX8M Plus development kit which consists > > > of a SOM + baseboard. The SOM

[GIT PULL] Please pull u-boot-mpc8xx

2023-02-12 Thread Christophe Leroy
Hi Tom, This pull requests brings: - A fix for a long standing bug that has been exposed by commit 50128aeb0f8 ("cyclic: get rid of cyclic_init()") preventing 8xx boards from booting since u-boot 2023.01 - A GPIO driver for powerpc 8xx chip - Fixup for powerpc 8xx SPI driver - A new powerpc 8xx

Re: [RFC PATCH] doc: arch: Add document for RISC-V architecture

2023-02-12 Thread Simon Glass
On Sun, 12 Feb 2023 at 00:01, Yu Chien Peter Lin wrote: > > This patch adds a brief introduction to the RISC-V architecture and > the typical boot process used on a variety of RISC-V platforms. > > Signed-off-by: Yu Chien Peter Lin > --- > Hi RISC-V community, > > Please leave a comment if there

Re: [PATCH 3/4] mtd/fpga: add fpga directory to mtd (with Cyclone 10)

2023-02-12 Thread Marek Vasut
On 2/11/23 11:07, u-b...@emagii.com wrote: [...] +static int cyc10_write(struct mtd_info *mtd, loff_t to, size_t len, +size_t *retlen, const u_char *buf) +{ + struct udevice *dev = mtd->dev; + struct spi_slave *slave = dev_get_parent_priv(dev); +

Re: [PATCH 1/2] riscv: Rename Andes cpu and board names

2023-02-12 Thread Yu-Chien Peter Lin
On Thu, Feb 09, 2023 at 04:34:13PM +0800, Leo Yu-Chi Liang wrote: > The current ae350-related defconfigs could also > support newer Andes CPU IP, so modify the names of CPU > from ax25 to andesv5, and board name from ax25-ae350 to ae350. > > Signed-off-by: Leo Yu-Chi Liang Reviewed-by: Yu Chien

[PATCH 5/5] arm: ls2080: remove ls2080aqds

2023-02-12 Thread Peng Fan (OSS)
From: Peng Fan This is NXP internal validation board, no longer support it. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 20 - board/freescale/ls2080aqds/Kconfig| 32 - board/freescale/ls2080aqds/MAINTAINERS| 14 -

[PATCH 4/5] arm: ls1046: remove ls1046aqds

2023-02-12 Thread Peng Fan (OSS)
From: Peng Fan This is NXP internal validation board, no longer support it. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 22 - board/freescale/ls1046aqds/Kconfig| 31 -- board/freescale/ls1046aqds/MAINTAINERS| 15 -

[PATCH 0/5] arm: fsl-layerscape: remove some boards

2023-02-12 Thread Peng Fan (OSS)
From: Peng Fan These boards are for internal validation, drop them. Peng Fan (5): arm: ls1012: remove ls1012aqds arm: ls1021: remove ls1021aqds arm: ls1043: remove ls1043aqds arm: ls1046: remove ls1046aqds arm: ls2080: remove ls2080aqds arch/arm/Kconfig

[PATCH 1/5] arm: ls1012: remove ls1012aqds

2023-02-12 Thread Peng Fan (OSS)
From: Peng Fan This is NXP internal validation board, no longer support it. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 14 - arch/arm/cpu/armv8/Kconfig| 2 +- .../cpu/armv8/fsl-layerscape/doc/README.qspi | 1 -

[PATCH 2/5] arm: ls1021: remove ls1021aqds

2023-02-12 Thread Peng Fan (OSS)
From: Peng Fan This is NXP internal validation board, no longer support it. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 20 - board/freescale/ls1021aqds/Kconfig| 15 - board/freescale/ls1021aqds/MAINTAINERS| 14 -

Re: [PATCH V5 08/12] iot2050: Add script for signing artifacts

2023-02-12 Thread Simon Glass
Hi Jan, On Tue, 7 Feb 2023 at 11:39, Simon Glass wrote: > > Hi Jan, > > On Tue, 7 Feb 2023 at 09:45, Jan Kiszka wrote: > > > > On 07.02.23 16:28, Simon Glass wrote: > > > Hi Jan, > > > > > > On Mon, 6 Feb 2023 at 04:57, Jan Kiszka wrote: > > >> > > >> On 06.02.23 11:47, Jan Kiszka wrote: > >

Re: [PATCH v4 10/11] dm: Add support for handling old u-boot, dm- tags

2023-02-12 Thread Simon Glass
Hi Tom, On Sun, 12 Feb 2023 at 18:10, Tom Rini wrote: > > On Sun, Feb 12, 2023 at 04:15:08PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 12 Feb 2023 at 10:44, Tom Rini wrote: > > > > > > On Fri, Feb 10, 2023 at 08:28:56AM -0700, Simon Glass wrote: > > > > > > > Add a CONFIG option to

Re: [PATCH] rockchip: dts: rk3328: fix sdram params

2023-02-12 Thread Simon Glass
On Fri, 10 Feb 2023 at 11:30, Jonas Karlman wrote: > > The rk3328 sdram driver read sdram parameters from the devicetree into a > struct rk3328_sdram_params using dev_read_u32_array. > > After commit 5ab30c3176bf ("ram: rockchip: Update ddr pctl regs for px30") > changed the size of struct

[PATCH v2 RESEND 11/14] clocks: qcs404: Add support for I2C clocks

2023-02-12 Thread Sumit Garg
Co-developed-by: Mike Worsfold Signed-off-by: Mike Worsfold Signed-off-by: Sumit Garg --- Hi Tom, This patch is missing from your latest pull of this series [1]. Can you please help to pull it as well? [1] QCS404: Add ethernet and I2C drivers -Sumit arch/arm/mach-snapdragon/clock-qcs404.c

Re: [PATCH 1/5] menu: remove CTRL+C to quit

2023-02-12 Thread Masahisa Kojima
On Fri, 10 Feb 2023 at 20:49, Heinrich Schuchardt wrote: > > On 2/2/23 10:24, Masahisa Kojima wrote: > > On the sandbox called without "--terminal raw" CTRL+C leaves U-Boot, > > "ESC/CTRL+C to quit" is misleading. > > > > Let's remove CTRL+C to quit key handling from bootmenu and eficonfig menu.

Re: [PATCH 1/2] dt-bindings: i2c: i2c-cdns.txt: Add description for an optional parameter, fifo-depth

2023-02-12 Thread Heiko Schocher
Hello Pei Yue Ho On 04.01.23 08:20, Pei Yue Ho wrote: > Add description for fifo-depth parameter that can be used > in the device tree. > > Signed-off-by: Pei Yue Ho > Reviewed-by: Wei Liang Lim > Reviewed-by: Eng Lee Teh > --- > doc/device-tree-bindings/i2c/i2c-cdns.txt | 4 > 1 file

Re: [PATCH 2/2] i2c: i2c-cdns.c: Update driver to read fifo-depth from device tree

2023-02-12 Thread Heiko Schocher
Hello Pei Yue Ho, On 04.01.23 08:20, Pei Yue Ho wrote: > Enable driver to fetch the optional parameter (fifo-depth) > from device tree. If the parameter is not found in the device > tree, it will use the default value declared in the driver. > > Signed-off-by: Pei Yue Ho > Reviewed-by: Wei

Re: [PATCH v3 1/2] i2c:aspeed:support ast2600 i2c new register mode driver

2023-02-12 Thread Heiko Schocher
Hello Ryan, On 30.01.23 07:19, Ryan Chen wrote: > Add i2c new register mode driver to support AST2600 i2c > new register mode. AST2600 i2c controller have legacy and > new register mode. The new register mode have global register > support 4 base clock for scl clock selection, and new clock >

Re: [PATCH 4/5] eficonfig: include EFI_STATUS string in error message

2023-02-12 Thread Masahisa Kojima
On Fri, 10 Feb 2023 at 20:57, Heinrich Schuchardt wrote: > > On 2/2/23 10:24, Masahisa Kojima wrote: > > Current eficonfig_print_msg() does not show the return > > value of EFI Boot/Runtime Services when the service call fails. > > With this commit, user can know EFI_STATUS in the error message.

Re: [PATCH v3 2/2] arm: aspeed: dtsi: add reg for i2c

2023-02-12 Thread Heiko Schocher
Hello Ryan, On 30.01.23 07:19, Ryan Chen wrote: > The i2c driver have global register that i2c bus use > ofnode_get_parent to get parent register address. > > Signed-off-by: Ryan Chen > --- > arch/arm/dts/ast2600.dtsi | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Heiko Schocher bye,

Re: [PATCH V5 08/12] iot2050: Add script for signing artifacts

2023-02-12 Thread Jan Kiszka
On 13.02.23 05:26, Simon Glass wrote: > Hi Jan, > > On Tue, 7 Feb 2023 at 11:39, Simon Glass wrote: >> >> Hi Jan, >> >> On Tue, 7 Feb 2023 at 09:45, Jan Kiszka wrote: >>> >>> On 07.02.23 16:28, Simon Glass wrote: Hi Jan, On Mon, 6 Feb 2023 at 04:57, Jan Kiszka wrote: > >

Re: [PATCH 2/2] i2c: i2c-cdns.c: Update driver to read fifo-depth from device tree

2023-02-12 Thread Heiko Schocher
Hello Pei Yue Ho, On 13.02.23 06:47, Heiko Schocher wrote: > Hello Pei Yue Ho, > > On 04.01.23 08:20, Pei Yue Ho wrote: >> Enable driver to fetch the optional parameter (fifo-depth) >> from device tree. If the parameter is not found in the device >> tree, it will use the default value declared

Re: [PATCH] rockchip: dts: rk3328: fix sdram params

2023-02-12 Thread Kever Yang
On 2023/2/11 02:30, Jonas Karlman wrote: The rk3328 sdram driver read sdram parameters from the devicetree into a struct rk3328_sdram_params using dev_read_u32_array. After commit 5ab30c3176bf ("ram: rockchip: Update ddr pctl regs for px30") changed the size of struct ddr_pctl_regs, a member

[PATCH 0/9] mtd: spi-nor: Add support for Infineon S28HS02GT

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano Infineon S28HS02GT is 1.8V, 2Gb (256MB) NOR Flash memory with Octal interface. It is a dual-die package parts and has same features with existing S28 series. The goal of this series of patches is to add S28HS02GT support. Before adding device ID to the table, some reworks

[PATCH 1/9] mtd: spi-nor-core: Clean up macros for Infineon(Cypress) S25 and S28

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano Some macro definitions used in Infineon(Cypress) S25 and S28 series are redundant and some have inconsistent prefix. This patch removes redundant ones and renames some to have same prefix as others. Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi/spi-nor-core.c | 22

[PATCH 2/9] mtd: spi-nor-core: Consolidate non-uniform erase helpers for S25 and S28

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano s25_erase_non_uniform() and s28hx_t_erase_uniform() support hybrid sector layout (32 x 4KB sectors overlaid at bottom address) and doing same thing. Consolidate them into single helper named s25_s28_erase_non_uniform(). Signed-off-by: Takahiro Kuwano ---

[PATCH 3/9] mtd: spi-nor-core: Rework spansion_read_any_reg() to support Octal DTR mode

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano In Infineon multi-die package parts, we need to use Read Any Register op to read status register in 2nd or further die. Infineon S28HS02GT is dual-die package and supports Octal DTR interface. To support this, spansion_read_any_reg() needs to be reworked. Implementation is

[PATCH 4/9] mtd: spi-nor-core: Use CLPEF(0x82) as alternative to CLSR(0x30) for S25 and S28

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano Infineon(Cypress) S28Hx-T family does not support legacy CLSR(0x30) opcode. Instead, it supports CLPEF(0x82) which has the same functionality as CLSR. spansion_sr_ready() is for multi-die package parts including S28HS02GT, so we need to use CLPEF instead of CLSR. This

[PATCH 5/9] mtd: spi-nor-core: Rework s25_mdp_ready() to support Octal DTR mode

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano s25_mdp_ready() handles status polling for multi-die package parts that requires to read and check status register for each die. To support S28HS02GT(dual-die package with Octal DTR support), rename function and use nor->rdsr_dummy in octal DTR mode. Signed-off-by:

[PATCH 6/9] mtd: spi-nor-core: Consolidate setup() hook for Infineon(Cypress) S25 and S28

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano s28hx_t_setup() only checks sector layout setting. To support multi-die package parts like S28HS02GT, it needs to check device size and assign ready() hook for multi-die package parts. These are covered in s25_setup() so we can consolidate s28hx_t_setup() and s25_setup()

[PATCH 7/9] mtd: spi-nor-core: Consolidate post_bfpt_fixup() for Infineon(Cypress) S25 and S28

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano s28hx_t_post_bfpt_fixup() fixes erase opcode, erase size, and page size. s25_post_bfpt_fixup() is doing same thing including multi-die support. We can consolidate s28hx_t_post_bfpt_fixup() and s25_post_bfpt_fixup() into one named s25_s28_post_bfpt_fixup(). In

[PATCH 9/9] mtd: spi-nor-ids: Add Infineon(Cypress) s28hs02gt ID

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano Infineon(Cypress) S28HS02GT is 1.8V, 2Gb (256MB) NOR Flash memory with Octal interface. It is a dual-die package parts and has same features with existing S28 series. Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 8/9] mtd: spi-nor-core: Rework spi_nor_cypress_octal_dtr_enable()

2023-02-12 Thread tkuw584924
From: Takahiro Kuwano Enabling Octal DTR mode in multi-die package parts requires reister setup for each die. That can be done by simple for-loop. write_enable() takes effect to all die at once so we can call it before the loop. Besides we can replace spi_mem_exec_op() calls with

Re: [PATCH v2 01/10] mtd: rawnand: brcmnand: Refactored code to introduce helper functions

2023-02-12 Thread Michael Nazzareno Trimarchi
Hi On Sat, Feb 11, 2023 at 4:29 PM Linus Walleij wrote: > > From: Kamal Dasu > > Refactored NAND ECC and CMD address configuration code to use helper > functions. > > Signed-off-by: Kamal Dasu > Signed-off-by: Miquel Raynal > [Ported to U-Boot from the Linux kernel] > Signed-off-by: Linus

Re: [PATCH v2 06/10] mtd: rawnand: brcmnand: rename v4 registers

2023-02-12 Thread Michael Nazzareno Trimarchi
Hi On Sat, Feb 11, 2023 at 4:29 PM Linus Walleij wrote: > > From: Álvaro Fernández Rojas > > These registers are also used on v3.3. > > Signed-off-by: Álvaro Fernández Rojas > Reviewed-by: Miquel Raynal > Acked-by: Florian Fainelli > Signed-off-by: Miquel Raynal > Link: >

Re: [PATCH 2/2] samsung: common: only load CROS_EC if enabled in config

2023-02-12 Thread Henrik Grimler
Hi Simon, On Wed, 2023-02-08 at 18:08 -0700, Simon Glass wrote: > On Wed, 8 Feb 2023 at 12:04, Henrik Grimler > wrote: > > > > Otherwise non-ChromeOS samsung devices, like the odroid boards, are > > stuck in a bootloop if CONFIG_CROS_EC is not enabled: > > > >     <...> > >     MMC: SAMSUNG

Re: [PATCH v2 07/10] mtd: rawnand: brcmnand: fix CS0 layout

2023-02-12 Thread Michael Nazzareno Trimarchi
On Sat, Feb 11, 2023 at 4:29 PM Linus Walleij wrote: > > From: Álvaro Fernández Rojas > > Only v3.3-v5.0 have a different CS0 layout. > Controllers before v3.3 use the same layout for every CS. > > Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB > NAND controller") >

Re: [PATCH 1/2] Revert "mmc: s5p_sdhci: unset the SDHCI_QUIRK_BROKEN_R1B"

2023-02-12 Thread Henrik Grimler
Hi Jaehoon, On Fri, 2023-02-10 at 09:00 +0900, Jaehoon Chung wrote: > Hi, > > > -Original Message- > > From: U-Boot On Behalf Of Henrik > > Grimler > > Sent: Thursday, February 9, 2023 4:04 AM > > To: jo...@diskos.nl; jh80.ch...@gmail.com; andy...@sony.com; > > s...@chromium.org; > >

Re: [RFC PATCH] doc: arch: Add document for RISC-V architecture

2023-02-12 Thread Heinrich Schuchardt
On 2/12/23 08:00, Yu Chien Peter Lin wrote: This patch adds a brief introduction to the RISC-V architecture and the typical boot process used on a variety of RISC-V platforms. Signed-off-by: Yu Chien Peter Lin --- Hi RISC-V community, Please leave a comment if there is anything I've missed

Re: [PATCH] doc: devicetree: dt_qemu.rst: Fix the typo and space

2023-02-12 Thread Heinrich Schuchardt
On 2/12/23 08:09, Yu Chien Peter Lin wrote: Fix typo and whitespace in the document. Signed-off-by: Yu Chien Peter Lin Reviewed-by: Heinrich Schuchardt --- doc/develop/devicetree/dt_qemu.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 4/5] eficonfig: include EFI_STATUS string in error message

2023-02-12 Thread Heinrich Schuchardt
On 2/13/23 06:50, Masahisa Kojima wrote: On Fri, 10 Feb 2023 at 20:57, Heinrich Schuchardt wrote: On 2/2/23 10:24, Masahisa Kojima wrote: Current eficonfig_print_msg() does not show the return value of EFI Boot/Runtime Services when the service call fails. With this commit, user can know

Re: [PATCH] doc: board: bcm7xxx: Convert to reStructuredText format

2023-02-12 Thread Heinrich Schuchardt
On 2/11/23 01:24, Thomas Fitzsimmons wrote: Convert the documentation for the Broadcom BCM7445 and BCM7260 boards to reStructuredText format and add the new filename to doc/board/broadcom/index.rst. --- doc/README.bcm7xxx | 156 ---

Re: [PATCH v4 10/11] dm: Add support for handling old u-boot, dm- tags

2023-02-12 Thread Michal Simek
On 2/12/23 18:44, Tom Rini wrote: On Fri, Feb 10, 2023 at 08:28:56AM -0700, Simon Glass wrote: Add a CONFIG option to deal with this automatically, printing a warning when U-Boot starts up. This can be useful if the device tree comes from another project. We will maintain this through the

RE: [PATCH 1/2] dt-bindings: i2c: i2c-cdns.txt: Add description for an optional parameter, fifo-depth

2023-02-12 Thread PeiYue Ho
> -Original Message- > From: Heiko Schocher > Sent: Monday, February 13, 2023 1:44 PM > To: PeiYue Ho ; u-boot@lists.denx.de > Cc: EngLee Teh ; WeiLiang Lim > > Subject: Re: [PATCH 1/2] dt-bindings: i2c: i2c-cdns.txt: Add description for > an > optional parameter, fifo-depth > >

[PATCH v2 0/1] Fix boot regressions on at least TI am62x

2023-02-12 Thread Sjoerd Simons
When booting a recent u-boot master on TI am62x with the distro boot sequence it fails loading the FDT: Booting using the fdt blob at 0x8800 Working FDT set to 8800 Loading Ramdisk to 8d711000, end 8d95 ... OK ERROR: reserving fdt memory region failed (addr=9e78 size=8

[PATCH v2 1/1] lmb: Treat a region which is a subset as equal

2023-02-12 Thread Sjoerd Simons
In various cases logical memory blocks are coalesced; As a result doing a strict check whether memory blocks are the same doesn't necessarily work as a previous addition of a given block might have been merged into a bigger block. Fix this by considering a block is already registered if it's a

[PATCH 3/5] arm: ls1043: remove ls1043aqds

2023-02-12 Thread Peng Fan (OSS)
From: Peng Fan This is NXP internal validation board, no longer support it. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 19 - board/freescale/ls1043aqds/Kconfig| 31 - board/freescale/ls1043aqds/MAINTAINERS| 15 -

[PATCH 1/1 v2] arm64: dts: rockchip: rk3568: Add Radxa ROCK 3 Model A board support

2023-02-12 Thread Akash Gajjar
Add Radxa ROCK 3 Model A support. sync rk3568-rock-3a.dts from Linux 6.2.0-rc7 Board Specifications - Rockchip RK3568 - 2/4/8GB LPDDR4 3200MT/s - eMMC socket, SD card slot - GbE LAN - PCIe 3.0/2.0 - M.2 Connector - 3.5mm Audio jack with mic - HDMI 2.0, MIPI DSI/CSI - USB 3.0 Host/OTG, USB 2.0

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
On Dez 30 2022, Qu Wenruo wrote: > [BUG] > Since btrfs supports single device RAID0 at mkfs time after btrfs-progs > v5.14, if we create a single device raid0 btrfs, and created a file > crossing stripe boundary: > > # mkfs.btrfs -m dup -d raid0 test.img > # mount test.img mnt > # xfs_io -f

[PATCH 0/1 v2] Add Radxa ROCK 3 Model A support in U-boot.

2023-02-12 Thread Akash Gajjar
ROCK 3 Model A is rk3568 based soc board from Radxa, Add board support in u-boot. Booting logs is accessible at https://paste.ubuntu.com/p/v9BNrB7MdM/ Akash Gajjar (1): arm64: dts: rockchip: rk3568: Add Radxa ROCK 3 Model A board support arch/arm/dts/Makefile | 3 +-

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
The length returned by btrfs_map_block is clearly bogus: read_extent_data: cur=615817216, orig_len=16384, cur_len=16384 read_extent_data: btrfs_map_block: cur_len=479944704; ret=0 read_extent_data: ret=0 read_extent_data: cur=615833600, orig_len=4096, cur_len=4096 read_extent_data:

Re: [PATCH v2 1/2] clk: Allow clk_get_by_name() with NULL name

2023-02-12 Thread Sean Anderson
On 1/21/23 19:02, Samuel Holland wrote: This allows devm_clock_get(dev, NULL) to work and get the first clock, which is common in code ported from Linux. Signed-off-by: Samuel Holland --- Changes in v2: - Move index error check inside if statement - Update function comment - Add unit

Re: [PATCH v2 1/6] clk: sunxi: Add NAND clocks and resets

2023-02-12 Thread Sean Anderson
On 1/22/23 17:06, Samuel Holland wrote: Currently NAND clock setup is done in board code, both in SPL and in U-Boot proper. Add the NAND clocks/resets here so they can be used by the "full" NAND driver once it is converted to the driver model. The bit locations are copied from the Linux CCU

Re: [PATCH v3 07/10] clk: uniphier: Add missing USB SS-PHY clocks

2023-02-12 Thread Sean Anderson
On 2/8/23 04:15, Kunihiko Hayashi wrote: The USB SS-PHY needs its own clock, however, some clocks don't have clock gates. Define missing clock entries for the PHY as reference clock. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 5 + 1 file changed, 5

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
When I print ce->size in __btrfs_map_block, it is almost always 1073741824, which looks bogus. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH 00/24] trace: Update the trace feature to work with trace-cmd

2023-02-12 Thread Tom Rini
On Sun, 15 Jan 2023 14:15:37 -0700, Simon Glass wrote: > Since U-Boot's tracing feature was originally written, quite a few changes > have taken place in this domain. The original text format used by tracing > is still emitted by Linux, but a new trace-cmd tool has invented a binary > format

Re: [PATCH] Dockerfile: Update QEMU git location

2023-02-12 Thread Tom Rini
On Tue, 07 Feb 2023 12:50:13 -0500, Tom Rini wrote: > Per https://www.qemu.org/contribute/ the official location of the QEMU > sources are https://gitlab.com/qemu-project/qemu.git > > Applied to u-boot/master, thanks! -- Tom

Re: [RFC PATCH] doc: arch: Add document for RISC-V architecture

2023-02-12 Thread Samuel Holland
On 2/12/23 01:00, Yu Chien Peter Lin wrote: > This patch adds a brief introduction to the RISC-V architecture and > the typical boot process used on a variety of RISC-V platforms. > > Signed-off-by: Yu Chien Peter Lin > --- > Hi RISC-V community, > > Please leave a comment if there is anything

[PATCH] arm64: imx: Add support for imx8mp-beacon-kit

2023-02-12 Thread Adam Ford
Beacon Embedded has an i.MX8M Plus development kit which consists of a SOM + baseboard. The SOM includes Bluetooth, WiFi, QSPI, eMMC, and one Ethernet PHY. The baseboard includes audio, HDMI, USB-C Dual Role port, USB Hub with five ports, a PCIe slot, and a second Ethernet PHY. The device trees

Re: [PATCH v4 10/11] dm: Add support for handling old u-boot, dm- tags

2023-02-12 Thread Tom Rini
On Fri, Feb 10, 2023 at 08:28:56AM -0700, Simon Glass wrote: > Add a CONFIG option to deal with this automatically, printing a warning > when U-Boot starts up. This can be useful if the device tree comes from > another project. > > We will maintain this through the 2023.07 release, providing 6

Re: [PATCH] arm64: imx: Add support for imx8mp-beacon-kit

2023-02-12 Thread Tom Rini
On Sun, Feb 12, 2023 at 11:36:38AM -0600, Adam Ford wrote: > Beacon Embedded has an i.MX8M Plus development kit which consists > of a SOM + baseboard. The SOM includes Bluetooth, WiFi, QSPI, eMMC, > and one Ethernet PHY. The baseboard includes audio, HDMI, USB-C Dual > Role port, USB Hub with

Re: [PATCH v1 05/18] clk: rockchip: Add rk3588 clk support

2023-02-12 Thread Sean Anderson
On 1/30/23 10:18, Jagan Teki wrote: On Mon, 30 Jan 2023 at 20:28, Jagan Teki wrote: Add clock driver support for Rockchip RK3588 SoC. Signed-off-by: Elaine Zhang Signed-off-by: Jagan Teki --- + clk maintainers Is this patch or [1] the clock driver? Are you working together or are these

Re: [PATCH v2 06/10] net: dwc_eth_qos: Add DM CLK support for i.MX8M Plus

2023-02-12 Thread Sean Anderson
On 2/9/23 16:50, Marek Vasut wrote: The DWMAC clock in i.MX8M Plus were so far configured via ad-hoc architecture code. Replace that with DM clock instead. This way, the driver claims all its required clock, enables and disables them, and even gets the CSR clock rate and sets the TX clock rate,

Re: [PATCH v1 05/18] clk: rockchip: Add rk3588 clk support

2023-02-12 Thread Jagan Teki
On Sun, 12 Feb 2023 at 23:24, Sean Anderson wrote: > > On 1/30/23 10:18, Jagan Teki wrote: > > On Mon, 30 Jan 2023 at 20:28, Jagan Teki wrote: > >> > >> Add clock driver support for Rockchip RK3588 SoC. > >> > >> Signed-off-by: Elaine Zhang > >> Signed-off-by: Jagan Teki > >> --- > > > > + clk

Re: [PATCH] arm64: imx: Add support for imx8mp-beacon-kit

2023-02-12 Thread Adam Ford
On Sun, Feb 12, 2023 at 11:47 AM Tom Rini wrote: > > On Sun, Feb 12, 2023 at 11:36:38AM -0600, Adam Ford wrote: > > > Beacon Embedded has an i.MX8M Plus development kit which consists > > of a SOM + baseboard. The SOM includes Bluetooth, WiFi, QSPI, eMMC, > > and one Ethernet PHY. The baseboard

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Qu Wenruo
On 2023/2/13 00:20, Andreas Schwab wrote: When I print ce->size in __btrfs_map_block, it is almost always 1073741824, which looks bogus. Can you provide the image of that filesystem? Thanks, Qu

Re: [PATCH] binman: Show the image name for the top-level section

2023-02-12 Thread Simon Glass
At present we show 'main section' as the top-level section name. It may be more helpful to show the actual image name. This is tricky because Image is a parent class of Entry_section, so there is no distinction between an image and a section. Update it to show the image name. Signed-off-by:

Re: [PATCH v2 2/3] cmd: fdt: allow standalone "fdt move"

2023-02-12 Thread Simon Glass
Hi, On Fri, 10 Feb 2023 11:02:12 + Andre Przywara wrote: > At the moment every subcommand of "fdt", except "addr" itself, requires > the DT address to be set first. We explicitly check for that before even > comparing against the subcommands' string. > This early bailout also affects the

Re: [PATCH v2 1/3] cmd: fdt: move: Use map_sysmem to convert pointers

2023-02-12 Thread Simon Glass
The "fdt move" subcommand was using the provided DTB addresses directly, without trying to "map" them into U-Boot's address space. This happened to work since on the vast majority of "real" platforms there is a simple 1:1 mapping of VA to PAs, so either value works fine. However this is not true

[PATCH] fs: btrfs: limit the mapped length to the original length

2023-02-12 Thread Qu Wenruo
[BUG] There is a bug report that btrfs driver caused hang during file read: This breaks btrfs on the HiFive Unmatched. => pci enum PCIE-0: Link up (Gen1-x8, Bus0) => nvme scan => load nvme 0:2 0x8c00 /boot/dtb/sifive/hifive-unmatched-a00.dtb [hangs] [CAUSE] The reporter provided

Please pull u-boot-dm

2023-02-12 Thread Simon Glass
Hi Tom, https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/15164 The following changes since commit a5e490f14e904fd240ccec5d364509b36a3150f9: socfpga: fix the serial console on DE1-SoC (2023-02-12 15:47:19 -0500) are available in the Git repository at:

Re: i.MX8M binman

2023-02-12 Thread Simon Glass
Hi Peng, On Fri, 10 Feb 2023 at 07:06, Simon Glass wrote: > > Hi Peng, > > On Fri, 10 Feb 2023 at 04:55, Peng Fan wrote: > > > > +Marek, > > > > I heard that from Marek on IRC, but Marek ask me to reach you. > > > > Actually I am not sure what is the issue with i.MX8M binman > > node. > > Was

Re: [PATCH v4 10/11] dm: Add support for handling old u-boot, dm- tags

2023-02-12 Thread Tom Rini
On Sun, Feb 12, 2023 at 04:15:08PM -0700, Simon Glass wrote: > Hi Tom, > > On Sun, 12 Feb 2023 at 10:44, Tom Rini wrote: > > > > On Fri, Feb 10, 2023 at 08:28:56AM -0700, Simon Glass wrote: > > > > > Add a CONFIG option to deal with this automatically, printing a warning > > > when U-Boot starts

Re: [PATCH 2/4] usb: xhci-mtk: modify the SOF/ITP interval for mt8195

2023-02-12 Thread 云春峰
On Fri, 2023-02-10 at 11:32 +0100, Marek Vasut wrote: > On 2/10/23 09:33, Chunfeng Yun wrote: > [...] > > @@ -50,6 +50,27 @@ > > #define IPPC_U3_CTRL(p) (IPPC_U3_CTRL_0P + ((p) * 0x08)) > > #define IPPC_U2_CTRL(p) (IPPC_U2_CTRL_0P + ((p) * 0x08)) > > > > +/* xHCI CSR */ > > +#define

[GIT PULL] Clock changes for 2023.04-rc1

2023-02-12 Thread Sean Anderson
The following changes since commit 78d1c3949a6f85f64b31ee8ab8240392a67ca30e: Merge branch '2023-02-10-update-trace-feature-to-work-with-trace-cmd' (2023-02-12 10:56:54 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-clk.git

Re: [PATCH v3 02/14] net: Pull board_interface_eth_init() into common code

2023-02-12 Thread Simon Glass
Hi, On Sat, 11 Feb 2023 at 14:48, Marek Vasut wrote: > > Move the board_interface_eth_init() into common ethernet uclass code, > since this function could be shared by multiple drivers. > > Signed-off-by: Marek Vasut > --- > Cc: "Ariel D'Alessandro" > Cc: "NXP i.MX U-Boot Team" > Cc: Andrey

Re: [PATCH v2 124/169] Correct SPL use of PHY_CADENCE_TORRENT

2023-02-12 Thread Simon Glass
Hi Tom, On Wed, 8 Feb 2023 at 17:39, Tom Rini wrote: > > On Sun, Feb 05, 2023 at 03:40:33PM -0700, Simon Glass wrote: > > > This converts 1 usage of this option to the non-SPL form, since there is > > no SPL_PHY_CADENCE_TORRENT defined in Kconfig > > > > Signed-off-by: Simon Glass > > --- > > >

Re: [PATCH v2 109/169] Correct SPL uses of MULTIPLEXER

2023-02-12 Thread Simon Glass
Hi Tom, On Thu, 9 Feb 2023 at 08:57, Tom Rini wrote: > > On Sun, Feb 05, 2023 at 03:40:18PM -0700, Simon Glass wrote: > > > This converts 3 usages of this option to the non-SPL form, since there is > > no SPL_MULTIPLEXER defined in Kconfig > > > > Signed-off-by: Simon Glass > > --- > > > > (no

Re: [PATCH v2 137/169] Correct SPL uses of SEC_FIRMWARE_ARMV8_PSCI

2023-02-12 Thread Simon Glass
Hi Tom, On Wed, 8 Feb 2023 at 18:19, Tom Rini wrote: > > On Sun, Feb 05, 2023 at 05:55:04PM -0700, Simon Glass wrote: > > > This converts 2 usages of this option to the non-SPL form, since there is > > no SPL_SEC_FIRMWARE_ARMV8_PSCI defined in Kconfig > > > > Signed-off-by: Simon Glass > > This

Re: [PATCH v2 119/169] Correct SPL use of PCI_PNP

2023-02-12 Thread Simon Glass
Hi Tom, On Thu, 9 Feb 2023 at 16:34, Tom Rini wrote: > > On Sun, Feb 05, 2023 at 03:40:28PM -0700, Simon Glass wrote: > > > This converts 1 usage of this option to the non-SPL form, since there is > > no SPL_PCI_PNP defined in Kconfig > > > > Signed-off-by: Simon Glass > > On x86, this is used

Re: [PATCH v2 112/169] Correct SPL uses of NXP_FSPI

2023-02-12 Thread Simon Glass
Hi Tom, On Wed, 8 Feb 2023 at 19:04, Tom Rini wrote: > > On Sun, Feb 05, 2023 at 03:40:21PM -0700, Simon Glass wrote: > > > This converts 2 usages of this option to the non-SPL form, since there is > > no SPL_NXP_FSPI defined in Kconfig > > > > Signed-off-by: Simon Glass > > This is used to

[PATCH v3 00/95] RFC: Migrate to split config

2023-02-12 Thread Simon Glass
U-Boot uses an SPL prefix on CONFIG options to indicate when an option relates to SPL. For example, while CONFIG_TEXT_BASE is the text base for U-Boot proper, CONFIG_SPL_TEXT_BASE is the text base for SPL. Within the code it is possible do things like CONFIG_VAL(TEXT_BASE) to get that value. It

[PATCH v3 03/95] sh4: Drop unused twl6030 driver

2023-02-12 Thread Simon Glass
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass --- (no changes since v1) drivers/input/Makefile | 1 - drivers/input/twl6030.c | 47 - 2 files changed, 48 deletions(-) delete mode 100644 drivers/input/twl6030.c diff

[PATCH v3 06/95] Correct SPL uses of ARCH_MVEBU

2023-02-12 Thread Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_ARCH_MVEBU defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) drivers/mmc/mv_sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mv_sdhci.c

[PATCH v3 07/95] Correct SPL uses of DISPLAY_AER_FULL

2023-02-12 Thread Simon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_DISPLAY_AER_FULL defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) drivers/sysreset/sysreset_mpc83xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v3 05/95] bootstd: Disable QFW bootmeth in SPL

2023-02-12 Thread Simon Glass
Move this Makefile line into the non-SPL area so we don't have to reply on the SPL_TPL_ macro. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to disable QFW bootmeth in SPL boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/Makefile

[PATCH v3 87/95] kconfig: Drop CONFIG_IF_ENABLED_INT()

2023-02-12 Thread Simon Glass
We can use IF_ENABLED_INT() instead, so drop the other macro. Also clean up a few things left behind and fix the comment. Signed-off-by: Simon Glass --- (no changes since v1) include/linux/kconfig.h | 32 ++-- test/lib/kconfig.c| 15

[PATCH v3 81/95] Allow distroboot environment to be the same in SPL

2023-02-12 Thread Simon Glass
With the split config, we find that CONFIG_CMD_DHCP is not enabled in SPL. While this is normally correct, it causes a build error with BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE This is because some boards include PXE and DHXP in their BOOT_TARGET_DEVICES #define. Before

[PATCH v3 50/95] sandbox: Tidy up RTC options

2023-02-12 Thread Simon Glass
At present we enable the sandbox RTC driver for all builds. Add a separate Kconfig option to control this, so that it can be disabled in TPL, where it is not needed. Signed-off-by: Simon Glass --- Changes in v3: - Fix a transitory build error with sandbox_spl arch/sandbox/dts/sandbox.dts |

[PATCH v3 84/95] Makefile: Use empty SPL_ and SPL_TPL_ vars

2023-02-12 Thread Simon Glass
Now that we include an auto.conf file specific to the phase being built we can make these variables empty. With this done, we can also remove them from U-Boot entirely, dropping them from all Makefiles. That is left for a future clean-up since we cannot apply this series until CONFIG migration is

[PATCH v3 78/95] x86: coral: Avoid build errors with missing SPL symbols

2023-02-12 Thread Simon Glass
With split config this does not build due to the missing symbols. Add them and fix the PCI condition. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/Makefile | 2 +- configs/chromebook_coral_defconfig | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)

[PATCH v3 75/95] pci: Use the correct symbol to enable struct members

2023-02-12 Thread Simon Glass
This ends up being quite complicated since we have various pieces of code assuming that it can access the members and the conditions may not line up with SPL_PCI and serial SPL_ configs. Fix it by using a PPL condition, so that the condition does not change when split config is enabled.

[PATCH v3 69/95] rockchip: Avoid checking environment without ENV_SUPPORT

2023-02-12 Thread Simon Glass
With split config, this causes a build error in SPL where the environment may not be enabled. It affects two rk3399 boards. Add a condition. Signed-off-by: Simon Glass --- (no changes since v1) board/theobroma-systems/puma_rk3399/puma-rk3399.c | 2 +-

[PATCH v3 51/95] sandbox: Use the generic VPL option to enable VPL

2023-02-12 Thread Simon Glass
Avoid using CONFIG_SANDBOX_VPL since we have a generic option which works just as well. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/sandbox.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/dts/sandbox.dts

[PATCH v3 86/95] kconfig: Adjust the meaning of CONFIG_IS_ENABLED()

2023-02-12 Thread Simon Glass
Adjust this to require the CONFIG option be provided, so that instead of: CONFIG_IS_ENABLED(FOO) you must write: CONFIG_IS_ENABLED(CONFIG_FOO) This is in preparation for dropping this and just using it is as the new implementation of IS_ENABLED(). For now, update IS_ENABLED() to use

[PATCH v3 08/95] Correct SPL uses of FSL_ISBC_KEY_EXT

2023-02-12 Thread Simon Glass
This converts 9 usages of this option to the non-SPL form, since there is no SPL_FSL_ISBC_KEY_EXT defined in Kconfig Signed-off-by: Simon Glass --- (no changes since v1) board/freescale/common/fsl_validate.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH v3 34/95] lib: Add a Kconfig for SPL_GENERATE_ACPI_TABLE

2023-02-12 Thread Simon Glass
This is implicitly used in the source and seems useful, so add it. Signed-off-by: Simon Glass --- Changes in v3: - Move SPL_GENERATE_ACPI_TABLE patch to this series lib/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 1267fa63f14..0a02f3e89ae

[PATCH v3 73/95] freescale: Fix odd use of ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE

2023-02-12 Thread Simon Glass
This is not a CONFIG option so we should not be using IS_ENABLED() on it, particularly not when it is not defined to anything, so shows up as calling IS_ENABLED() with no arguments. Just check it normally. This fixes a build error with split config on T2080QDS. Signed-off-by: Simon Glass ---

[PATCH v3 25/95] lib: Add a Kconfig for SPL_ERRNO_STR

2023-02-12 Thread Simon Glass
This is implicitly used in the source and seems useful, so add it. Signed-off-by: Simon Glass --- (no changes since v1) lib/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 83e5edd73b0..1da5593f0a9 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@

  1   2   3   >