Re: [PATCH] xilinx: zynqmp: Wire tee for Multi DTB use cases

2022-05-23 Thread Michal Simek
st 18. 5. 2022 v 13:41 odesílatel Michal Simek napsal: > > Fix TEE wiring when MULTI_DTB is selected. > > Signed-off-by: Michal Simek > --- > > arch/arm/mach-zynqmp/mkimage_fit_atf.sh | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/mach-zynqmp/mkimage_fit_atf.sh >

[v4 06/12] arm: dts: aspeed: Update SPI flash node settings

2022-05-23 Thread Chin-Ting Kuo
For both AST2500 and AST2600, there are three SPI controllers, FMC(Firmware Memory Controller), SPI1 and SPI2. The clock source is HCLK. Following is the basic information for ASPEED SPI controller. AST2500: - FMC: CS number: 3 controller reg: 0x1e62 - 0x1e62 decoded ad

[v4 09/12] spi: aspeed: SPI dirmap read support

2022-05-23 Thread Chin-Ting Kuo
>From the HW point of view, the performance of command read mode is greater than user mode slightly. Thus, dirmap read framework is introduced to achieve this goal. In dirmap_create, a specific decoded address area with flash size is assigned to each CS. CPU can thus access the SPI flash as normal

[v4 07/12] spi-mem: Add dirmap API from Linux

2022-05-23 Thread Chin-Ting Kuo
This adds the dirmap API originally introduced in Linux commit aa167f3 ("spi: spi-mem: Add a new API to support direct mapping"). This also includes several follow-up patches and fixes. Changes from Linux include: * Added Kconfig option * Changed struct device to struct udevice * Changed struct sp

[v4 08/12] mtd: spi-nor: Use spi-mem dirmap API

2022-05-23 Thread Chin-Ting Kuo
This adds support for the dirmap API to the spi-nor subsystem, as introduced in Linux commit df5c210 ("mtd: spi-nor: use spi-mem dirmap API"). This patch is synchronize from the following patch https://patchwork.ozlabs.org/project/uboot/patch/20210205043924.149504-4-sean...@gmail.com/ Signed-off-

[v4 11/12] mtd: spi-nor-ids: Add Winbond W25Q512JV ID

2022-05-23 Thread Chin-Ting Kuo
Add ID for Winbond W25Q512JV device which is supported on AST2600 EVB by default. Signed-off-by: Chin-Ting Kuo --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 7050ddc397..444affb5af 100

[v4 12/12] spi: aspeed: Fix bug when SPI_NOR_4B_OPCODES flag is set

2022-05-23 Thread Chin-Ting Kuo
When SPI_NOR_4B_OPCODES flag is set for a specific flash in spi_nor_ids[] table, EN4B command will not be issued and 4-byte dedicated commands will be used to access SPI flash. Thus, instead of EN4B command, address length is more suitable for deciding whether the controller should be set to 4-byte

[v4 10/12] configs: aspeed: Enable CONFIG_SPI_DIRMAP

2022-05-23 Thread Chin-Ting Kuo
Enable CONFIG_SPI_DIRMAP on ASPEED platforms. Signed-off-by: Chin-Ting Kuo --- configs/evb-ast2500_defconfig | 1 + configs/evb-ast2600_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/evb-ast2500_defconfig b/configs/evb-ast2500_defconfig index fd04fe5a60..097b991a1b 10064

[v4 02/12] pinctrl: aspeed: FWSPICS1 and SPI1CS1 pin support

2022-05-23 Thread Chin-Ting Kuo
Add FWSPICS1 and SPI1CS1 in AST2500 pinctrl group. On AST2500 EVB, FWSPICS1 can be supported by default. An extra jumper, J45, should be configured before enabling SPI1CS1. Signed-off-by: Chin-Ting Kuo Reviewed-by: Cédric Le Goater --- drivers/pinctrl/aspeed/pinctrl_ast2500.c | 2 ++ 1 file cha

[v4 05/12] MAINTAINERS: Add ASPEED SPI driver file

2022-05-23 Thread Chin-Ting Kuo
Add spi-aspeed.c file for ARM ASPEED. Signed-off-by: Chin-Ting Kuo --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 56be0bfad0..f2cd707eda 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -688,6 +688,13 @@ S: Maintained F: drivers/pci/p

[v4 03/12] spi: aspeed: Add ASPEED SPI controller driver

2022-05-23 Thread Chin-Ting Kuo
Add ASPEED BMC FMC/SPI memory controller driver with spi-mem interface for AST2500 and AST2600 platform. There are three SPI memory controllers embedded in an ASPEED SoC. - FMC: Named as Firmware Memory Controller. After AC on, MCU ROM fetches initial device boot image from FMC chip select(

[v4 04/12] configs: aspeed: Enable SPI flash features

2022-05-23 Thread Chin-Ting Kuo
- Enable ASPEED SPI controller driver. - Enable SPI flash memory configurations. - Enable configurations for SPI flash manufacturers supported on both ASPEED AST2500 and AST2600 AVL. Signed-off-by: Chin-Ting Kuo --- configs/evb-ast2500_defconfig | 13 + configs/evb-ast2600_defconfi

[v4 00/12] Add ASPEED SPI controller driver

2022-05-23 Thread Chin-Ting Kuo
This patch series aims to porting ASPEED FMC/SPI memory controller driver with spi-mem interface. spi-mem dirmap framework is also synchronized from Linux. These patches have been verified on both AST2600 and AST2500 EVBs. Changes in v2: - Separate defconfig files from the SPI driver patch. -

[v4 01/12] clk: aspeed: Get HCLK frequency support

2022-05-23 Thread Chin-Ting Kuo
User can get correct HCLK frequency during driver probe stage by adding the following configuration in the device tree. "clocks = <&scu ASPEED_CLK_AHB>". Signed-off-by: Chin-Ting Kuo Reviewed-by: Cédric Le Goater --- v3: Get AHB bus clock frequency from the function parameter. drivers/clk/aspe

Re: [PATCH V4 7/8] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-05-23 Thread Michael Nazzareno Trimarchi
Hi Il lun 23 mag 2022, 23:13 Alper Nebi Yasak ha scritto: > On 20/05/2022 17:10, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > After we switch to use BINMAN_SYMBOLS, there is no need to pad > > the file size to 0x8000 and 0x4000. After we use BINMAN_SYMBOLS, > > the u-boot-spl-ddr.bin shrink

[PATCH 3/3] riscv: qemu: Set kernel_comp_addr_r for compressed kernel

2022-05-23 Thread Bin Meng
Set kernel_comp_addr_r and kernel_comp_size for compressed kernel. Adjust existing addresses for ramdisk, so that kernel_comp_addr_r comes before the ramdisk image, since the decompressed kernel size is known to us. This way we can allow big ramdisk image to be loaded. Signed-off-by: Bin Meng ---

[PATCH 2/3] riscv: sifive: unleashed: Set kernel_comp_addr_r for compressed kernel

2022-05-23 Thread Bin Meng
Set kernel_comp_addr_r and kernel_comp_size for compressed kernel. Adjust existing addresses for ramdisk, so that kernel_comp_addr_r comes before the ramdisk image, since the decompressed kernel size is known to us. This way we can allow big ramdisk image to be loaded. Update unleashed.rst to remo

[PATCH 1/3] riscv: sifive: unmatched: Adjust for big ramdisk image

2022-05-23 Thread Bin Meng
Move kernel_comp_addr_r to an address that comes before the ramdisk image, since the decompressed kernel size is known to us. This way we can allow big ramdisk image to be loaded. Signed-off-by: Bin Meng --- include/configs/sifive-unmatched.h | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH] bootmenu: fix bootmenu title handling

2022-05-23 Thread Masahisa Kojima
The commit a3d0aa87acbe ("bootmenu: update bootmenu_entry structure") changes the bootmenu title type from char to u16(UTF16 string) to support EFI based system. If EFI_LOADER is not enabled, printf("%ls") is not supported, so bootmenu does not appear correctly. This commit switches the menu title

Re: [PATCH v1] i2c: nuvoton: Add NPCM7xx i2c driver

2022-05-23 Thread Jim Liu
Hi Heiko Thanks for your reply. and i have some explanation about command check. in the npcm_i2c_xfer, it can support 1 or 2 nmsgs so need for function . the test as below: --- U-Boot>i2c probe 0x50 Valid chip addresses:nmsgs= 1 50 U-Boot>i2c md 50 11.2 4 nmsgs= 2 0011: 1

Re: U-Boot v2022.07-rc2 regression: Bootmenu is completely broken

2022-05-23 Thread Masahisa Kojima
On Tue, 24 May 2022 at 04:41, Pali Rohár wrote: > > On Monday 23 May 2022 15:29:04 Tom Rini wrote: > > On Mon, May 23, 2022 at 09:27:37PM +0200, Pali Rohár wrote: > > > Hello! > > > > > > U-Boot Bootmenu in git master branch is completely broken and does not > > > work. You can test it e.g. in qem

[PULL] u-boot-socfpga/master

2022-05-23 Thread Marek Vasut
The following changes since commit c0a1409d21e7b342566dccb9cc1d38209aabc5ff: configs: Resync with savedefconfig (2022-05-23 13:56:21 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to 1b05136a6ca8387175ca7bf1aa66a9c40a1

[PATCH] ubifs: Fix reference count leak in ubifsumount

2022-05-23 Thread Pali Rohár
Original ubifs code was designed that after ubifs_umount() call it is required to also call ubi_close_volume() which closes underlying UBI volume. But U-Boot ubifs modification have not implemented it properly which caused that ubifsumount command contains resource leak. It can be observed by calli

Re: [PATCH V4 7/8] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-05-23 Thread Alper Nebi Yasak
On 20/05/2022 17:10, Peng Fan (OSS) wrote: > From: Peng Fan > > After we switch to use BINMAN_SYMBOLS, there is no need to pad > the file size to 0x8000 and 0x4000. After we use BINMAN_SYMBOLS, > the u-boot-spl-ddr.bin shrink about 36KB with i.MX8MP-EVK. > > Tested-by: Tim Harvey #imx8m[m,n,p]-

Re: [PATCH V4 2/8] arm: dts: imx8m: update binman ddr firmware node name

2022-05-23 Thread Alper Nebi Yasak
On 23/05/2022 10:01, Peng Fan (OSS) wrote: >> Subject: Re: [PATCH V4 2/8] arm: dts: imx8m: update binman ddr firmware >> node name >> >> On 20/05/2022 17:10, Peng Fan (OSS) wrote: >>> From: Peng Fan >>> >>> We are migrating to use BINMAN SYMBOLS, the current name is not a >>> valid binman type, so

Re: [PATCH V4 1/8] spl: guard u_boot_any with X86

2022-05-23 Thread Alper Nebi Yasak
On 23/05/2022 17:10, Tom Rini wrote: > On Mon, May 23, 2022 at 06:28:44AM +, Peng Fan (OSS) wrote: >>> Subject: Re: [PATCH V4 1/8] spl: guard u_boot_any with X86 >>> >>> Why are you mentioning LTO in the commit message? When I read the >>> commit message it sounds like you're saying the proble

Re: [PATCH V4 1/8] spl: guard u_boot_any with X86

2022-05-23 Thread Alper Nebi Yasak
On 22/05/2022 17:50, Tom Rini wrote: > On Sun, May 22, 2022 at 04:56:08PM +0300, Alper Nebi Yasak wrote: >> It looks like we should be able to change things in common/spl/spl.c to: >> >> #if CONFIG_IS_ENABLED(BINMAN_SYMBOLS) >> /* See spl.h for information about this */ >> binman_sym_de

[PATCH] ubifs: Add missing dependency on GZIP

2022-05-23 Thread Pali Rohár
GZIP option can be manually de-selected when UBIFS is enabled. This cause following compile error because ubifs calls gzip functions. /tmp/ccxVrh2c.ltrans1.ltrans.o: in function `gzip_decompress.lto_priv.566': :(.text+0x768): undefined reference to `zunzip' collect2: error: ld returned 1 exi

[ANN] U-Boot v2022.07-rc3 released

2022-05-23 Thread Tom Rini
Hey all, It's release day and so here's v2022.07-rc3. I've grabbed all of the outstanding regression fixes I know of. I'm expecting a patch shortly to fix the use case of FIT images and device trees as generated most commonly by OpenEmbedded. Further, I'll grab the series from Bin to fix pytest

Re: U-Boot v2022.07-rc2 regression: Bootmenu is completely broken

2022-05-23 Thread Pali Rohár
On Monday 23 May 2022 15:29:04 Tom Rini wrote: > On Mon, May 23, 2022 at 09:27:37PM +0200, Pali Rohár wrote: > > Hello! > > > > U-Boot Bootmenu in git master branch is completely broken and does not > > work. You can test it e.g. in qemu version of nokia n900 (see rx51.rst). > > > > Bootmenu just

[PATCH 2/2] rockchip: Add option to prevent booting on power plug-in

2022-05-23 Thread Chris Morgan
From: Chris Morgan For Rockchip boards with the all rk8xx series PMICs (excluding the rk808), it is sometimes desirable to not boot whenever the device is plugged in. An example would be for the Odroid Go Advance. This provides a configurable option to check the PMIC says it was powered because

[PATCH 1/2] power: pmic: rk8xx: Support sysreset shutdown method

2022-05-23 Thread Chris Morgan
From: Chris Morgan Add support for sysreset shutdown for this PMIC. The values were pulled from the various datasheets, but for now it has only been tested on the rk817 (for an Odroid Go Advance). Signed-off-by: Chris Morgan --- drivers/power/pmic/rk8xx.c | 50 +

[PATCH 0/2] Rockchip: Add option to prevent boot on plug-in

2022-05-23 Thread Chris Morgan
From: Chris Morgan Sometimes it is desirable to prevent a board from automatically booting as soon as the power cable is plugged in. For boards with an rk8xx PMIC, (excluding the rk808) we can actually query the power up source. Chris Morgan (2): power: pmic: rk8xx: Support sysreset shutdown m

Re: U-Boot v2022.07-rc2 regression: Bootmenu is completely broken

2022-05-23 Thread Tom Rini
On Mon, May 23, 2022 at 09:27:37PM +0200, Pali Rohár wrote: > Hello! > > U-Boot Bootmenu in git master branch is completely broken and does not > work. You can test it e.g. in qemu version of nokia n900 (see rx51.rst). > > Bootmenu just prints garbage on both serial console and VGA video > output

U-Boot v2022.07-rc2 regression: Bootmenu is completely broken

2022-05-23 Thread Pali Rohár
Hello! U-Boot Bootmenu in git master branch is completely broken and does not work. You can test it e.g. in qemu version of nokia n900 (see rx51.rst). Bootmenu just prints garbage on both serial console and VGA video output and no option works. *** U-Boot Boot Menu *** A I E

[PATCH 4/4] Convert CONFIG_SPL_COMMON_INIT_DDR to Kconfig

2022-05-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SPL_COMMON_INIT_DDR Signed-off-by: Tom Rini --- README | 4 board/freescale/p1010rdb/tlb.c | 3 +-- board/freescale/p1_p2_rdb_pc/tlb.c | 3 +-- configs/P1010RDB-PA_36BIT_NAND_d

[PATCH 3/4] ppc / layerscape: Clean up CONFIG_SYS_CCSR_DO_NOT_RELOCATE usage

2022-05-23 Thread Tom Rini
A number of PowerPC platforms define this, for SPL. To move this to Kconfig, it needs to be CONFIG_SPL_SYS_CCSR_DO_NOT_RELOCATE, so use CONFIG_IS_ENABLED() to check for usage. A number of layerscape platforms bring this logic from PowerPC, but only need a small part of it, for the fman driver. R

[PATCH 2/4] Convert CONFIG_SPL_SYS_MALLOC_SIMPLE to Kconfig

2022-05-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SPL_SYS_MALLOC_SIMPLE The problem here is that a few platforms have been doing: #ifdef CONFIG_SPL_BUILD #define CONFIG_SYS_MALLOC_SIMPLE #endif instead of defining CONFIG_SPL_SYS_MALLOC_SIMPLE directly. Correct this and update the documentation i

[PATCH v3 7/8] net: add MV88E61xx DSA driver

2022-05-23 Thread Tim Harvey
Add a DSA driver for the MV88E61xx compatible GbE Ethernet switches. Cc: Marek Behún Cc: Vladimir Oltean Signed-off-by: Tim Harvey Reviewed-by: Vladimir Oltean --- v3: - Added Vladimir's rb tag v2: - rebase on v2022.07-rc1 (use ofnode_get_phy_node) - remove unused commented out fields from

[PATCH v3 8/8] board: gw_ventana: enable MV88E61XX DSA support

2022-05-23 Thread Tim Harvey
Add MV88E61XX DSA support: - update dt: U-Boot dsa driver requires different device-tree syntax than the linux driver in order to link the dsa ports to the mdio bus. - update defconfig - replace mv88e61xx_hw_reset weak override with board_phy_config support for mv88e61xx configuration that

[PATCH v3 6/8] net: fec: add support for DM_MDIO

2022-05-23 Thread Tim Harvey
Add support for DM_MDIO by registering a UCLASS_MDIO driver and attempting to use it. This is necessary if wanting to use a DSA driver for example hanging off of the FEC MAC. Care is taken to fallback to non DM_MDIO mii bus as several boards define DM_MDIO without having the proper device-tree con

[PATCH v3 4/8] net: dsa: allow rcv() and xmit() to be optional

2022-05-23 Thread Tim Harvey
Allow rcv() and xmit() dsa driver ops to be optional in case a driver does not care to mangle a packet as in U-Boot only one network port is enabled at a time and thus no packet mangling is necessary. Suggested-by: Vladimir Oltean Signed-off-by: Tim Harvey Reviewed-by: Vladimir Oltean --- v3:

[PATCH v3 5/8] net: ksz9477: remove unnecessary xmit and recv functions

2022-05-23 Thread Tim Harvey
Remove the unnecessary xmit and recv functions. Signed-off-by: Tim Harvey Reviewed-by: Vladimir Oltean --- v3: - added Vladimir's rb tag v2: new patch --- drivers/net/ksz9477.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/net/ksz9477.c b/drivers/net/ksz94

[PATCH v3 3/8] net: dsa: ensure dsa driver has proper ops

2022-05-23 Thread Tim Harvey
Add a function to sanity check a dsa driver having proper ops. Suggested-by: Vladimir Oltean Signed-off-by: Tim Harvey Reviewed-by: Vladimir Oltean --- v3: - added Vladimir's rb tag v2: new patch --- net/dsa-uclass.c | 17 + 1 file changed, 17 insertions(+) diff --git a/net/d

[PATCH v3 1/8] net: mdio-uclass: scan for dm mdio children on post-bind

2022-05-23 Thread Tim Harvey
If a DM_MDIO driver is used we need to scan the subnodes as well. Signed-off-by: Tim Harvey Signed-off-by: Vladimir Oltean Reviewed-by: Ramon Fried --- v2: - added Ramon's rb tag --- net/mdio-uclass.c | 4 1 file changed, 4 insertions(+) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.

[PATCH v3 2/8] net: dsa: move cpu port probe to dsa_post_probe

2022-05-23 Thread Tim Harvey
In order to ensure that a DSA driver probe gets called before dsa_ops->port_probe move the port_probe of the cpu_port to a post-probe function. Signed-off-by: Tim Harvey Reviewed-by: Ramon Fried Reviewed-by: Vladimir Oltean --- v3: - added Vladimir's rb tag v2: - added Ramon's rb tag --- net

[PATCH v3 0/8] Add MV88E61xx DSA driver and use on gwventana

2022-05-23 Thread Tim Harvey
This series adds a DSA driver for the MV88E61xx based on drivers/net/phy/mv88e61xx and uses in on the gwventana_gw5904_defconfig. The hope is that the other three boards that use the MV88E61xx driver can move to this as well eventually so that we can remove the non-dm driver and the 4 Kconfig opti

Re: [PATCH 1/2] powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support for NOR booting

2022-05-23 Thread Pali Rohár
On Monday 23 May 2022 13:57:07 Tom Rini wrote: > On Mon, May 02, 2022 at 06:36:38PM +0200, Pali Rohár wrote: > > > Commit e8c0e0064c8a ("powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support") > > fixed SD card booting on mpc85xx boards but broke NOR booting on these > > boards. Reason is that U-Boot b

Re: [PATCH] net: fix phy_string_for_interface

2022-05-23 Thread Tom Rini
On Tue, May 10, 2022 at 03:49:10PM -0700, Tim Harvey wrote: > commit ffb0f6f488b9 ("treewide: Rename PHY_INTERFACE_MODE_NONE to > PHY_INTERFACE_MODE_NA") broke the phy_string_for_interface function. > Fix it. > > Fixes ffb0f6f488b9 ("treewide: Rename PHY_INTERFACE_MODE_NONE to > PHY_INTERFACE_MO

Re: [PATCH v2] fs/squashfs: use lldiv function for math

2022-05-23 Thread Tom Rini
On Thu, May 12, 2022 at 08:37:14PM +0200, Sean Nyekjaer wrote: > From: Sean Nyekjaer > > When compling for x86: > ld.bfd: fs/squashfs/sqfs.o: in function `sqfs_read': > u-boot/fs/squashfs/sqfs.c:1443: undefined reference to `__udivmoddi4' > ld.bfd: u-boot/fs/squashfs/sqfs.c:1521: undefined refer

Re: [PATCH] mmc: fsl_esdhc_spl: Fix checking for number of read sectors

2022-05-23 Thread Tom Rini
On Wed, May 11, 2022 at 08:28:28PM +0200, Pali Rohár wrote: > Commit 0980cbba7b3c ("mmc: fsl_esdhc_spl: pre-PBL: implement redundancy > support") changed number of sectors which are read but did not adjusted > error check. > > Fix it and check for if correct number of sectors were read. > > Fixe

Re: [PATCH] arm: gic_v2: Skip gic_init_secure when cpu is not in el3

2022-05-23 Thread Tom Rini
On Wed, May 11, 2022 at 10:39:07AM +0200, Michal Simek wrote: > From: Sai Pavan Boddu > > This would prevent configuring non-secure regs in case gic security > extensions are not emulated in Qemu. > > Signed-off-by: Sai Pavan Boddu > Signed-off-by: Michal Simek Applied to u-boot/master, than

Re: [PATCH v4 3/3] test: dm: spi: Replace _spi_get_bus_and_cs() by spi_get_bus_and_cs() in some case

2022-05-23 Thread Tom Rini
On Wed, Mar 30, 2022 at 09:33:15AM +0200, Patrice Chotard wrote: > In case _spi_get_bus_and_cs()'s parameters drv_name and dev_name are > respectively set to NULL and 0, use spi_get_bus_and_cs() instead. > > Signed-off-by: Patrice Chotard > > Cc: Marek Behun > Cc: Jagan Teki > Cc: Vignesh R

Re: [PATCH v4 2/3] spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode

2022-05-23 Thread Tom Rini
On Wed, Mar 30, 2022 at 09:33:14AM +0200, Patrice Chotard wrote: > Now, spi_flash_probe_bus_cs() relies on DT for spi speed and mode > and logically calls spi_get_bus_and_cs(). In case spi mode and speed are > not read from DT, make usage of spi_flash_probe() instead. > > To sum-up: > - Previous

Re: [PATCH v4 1/3] spi: spi-uclass: Add new spi_get_bus_and_cs() implementation

2022-05-23 Thread Tom Rini
On Wed, Mar 30, 2022 at 09:33:13AM +0200, Patrice Chotard wrote: > Move legacy spi_get_bus_and_cs() code to _spi_get_bus_and_cs(). > > Add new spi_get_bus_and_cs() implementation which rely on DT > for speed and mode and don't need any drv_name nor dev_name > parameters. This will prepare the gro

Re: [PATCH 2/2] powerpc: mpc85xx: Fix CONFIG_OF_EMBED support for NOR booting

2022-05-23 Thread Tom Rini
On Mon, May 02, 2022 at 06:36:39PM +0200, Pali Rohár wrote: > mpc85xx NOR binary contains also reset vector and therefore option > CONFIG_MPC85XX_HAVE_RESET_VECTOR must be defined. > > When build system uses binman, it takes care of constructing final image > which consist of u-boot-without-reset

Re: [PATCH 1/2] powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support for NOR booting

2022-05-23 Thread Tom Rini
On Mon, May 02, 2022 at 06:36:38PM +0200, Pali Rohár wrote: > Commit e8c0e0064c8a ("powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support") > fixed SD card booting on mpc85xx boards but broke NOR booting on these > boards. Reason is that U-Boot build system for NOR images uses binman and > this binman

Re: Pull request: u-boot-imx u-boot-imx-20220523

2022-05-23 Thread Tom Rini
5-18 > 08:41:13 -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20220523 > > for you to fetch changes up to 4d573d5c98234cad328de77c773c3c3d79258255: > > ARM: dts: imx: Add support fo

Re: [PATCH 02/22] imx: imx8m[m/n/p]_venice: Enable SPL_DM_SERIAL

2022-05-23 Thread Tim Harvey
On Mon, May 23, 2022 at 4:58 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already > marked with u-boot,dm-spl. > Move preloader_console_init after spl_early_init to make sure driver > model work. > > Signed-off-by: Peng Fan > Acked-by: Tim

Re: [PATCH V4 1/8] spl: guard u_boot_any with X86

2022-05-23 Thread Tom Rini
On Mon, May 23, 2022 at 06:28:44AM +, Peng Fan (OSS) wrote: > > Subject: Re: [PATCH V4 1/8] spl: guard u_boot_any with X86 > > > > On Sat, May 21, 2022 at 08:33:56AM +, Peng Fan wrote: > > > > Subject: Re: [PATCH V4 1/8] spl: guard u_boot_any with X86 > > > > > > > > On Fri, May 20, 2022 a

Re: [PATCH 2/2] tpm: add support for TPMv2.x I2C chips

2022-05-23 Thread Ilias Apalodimas
On Mon, May 23, 2022 at 08:19:51AM -0500, Eddie James wrote: > > On 5/23/22 01:12, Ilias Apalodimas wrote: > > Hi Eddie, > > > > Thanks for the patch. > > > > [...] > > > > > +static const struct tpm_tis_chip_data tpm_tis_std_chip_data = { > > > + .pcr_count = 24, > > > + .pcr_select_min = 3, >

Re: [PATCH] cmd: pxe_utils: Check fdtcontroladdr in label_boot

2022-05-23 Thread Tom Rini
On Mon, May 23, 2022 at 09:25:55AM +0200, Neil Armstrong wrote: > Hi, > > On 19/05/2022 14:58, Peter Hoyes wrote: > > On 18/05/2022 19:15, Neil Armstrong wrote: > > > On 18/05/2022 17:52, Tom Rini wrote: > > > > On Wed, May 18, 2022 at 10:40:12AM +0200, Neil Armstrong wrote: > > > > > Hi, > > > >

[PATCH] riscv: fix compitible with binutils 2.38

2022-05-23 Thread Coelacanthus
commit 6df2a016c0c8a3d0933ef33dd192ea6606b115e3 from linux kernel Since binutils 2.38, default ISA spec version switch to 20191213, in this version, original I extension be split into I, Zicsr and Zifencei. Zicsr is csr read/write (csrr*/csrw*) instructions, and Zifencei is fence.i instruction. Th

[PATCH v2 2/3] usb: add isp1760 family driver

2022-05-23 Thread Rui Miguel Silva
ISP1760/61/63 are a family of usb controllers, here the main goal is to support the ISP1763 hcd part found in the MPS3 FPGA board form Arm. This is based on the kernel driver and ported to u-boot. Signed-off-by: Rui Miguel Silva --- Makefile|1 + drivers/usb/Kconf

[PATCH v2] arm: socfpga: Add the terasic de10-standard board

2022-05-23 Thread Humberto Naves
Use the de10-nano files as templates for the de10-standard board. The files in qts directory are generated by quartus from the GHRD design. Signed-off-by: Humberto Naves Reviewed-by: Marek Vasut --- Changes for v2: - Also use generated sdram_config.h from bsp-create-settings - Update the c

Re: [PATCH] arm: socfpga: Add the terasic de10-standard board

2022-05-23 Thread Humberto Naves
Hi Marek, Thanks for the quick review! > Doesn't the PLL config also come from quartus ? It should all come from > it. See doc/README.socfpga My mistake, I will update the patch using all the files created by the bsp-create-settings. > I think a lot of those board/config-specific copyright mess

Raspberry Pi won’t boot from compressed subvolume (BTRFS)

2022-05-23 Thread Nathan Henrie
Hello u-boot team, I’ve been experimenting for about a year with a NixOS-based Raspberry Pi image, with the end goal of a zstd-compressed image that uses BTRFS subvolumes, having the root filesystem at @ and boot at @boot (with several other subvolumes). The NixOS Raspberry Pi images use u-boot by

[PATCH] cmd: cat: add new command

2022-05-23 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/cat.c| 54 3 files changed, 61 insertions(+) create mode 100644 cmd/cat.c diff --git a/cmd/Kconfig b

Re: [PATCH 2/2] tpm: add support for TPMv2.x I2C chips

2022-05-23 Thread Eddie James
On 5/23/22 01:12, Ilias Apalodimas wrote: Hi Eddie, Thanks for the patch. [...] +static const struct tpm_tis_chip_data tpm_tis_std_chip_data = { + .pcr_count = 24, + .pcr_select_min = 3, +}; + +static const struct udevice_id tpm_tis_i2c_ids[] = { + { + .compa

Re: dwc_eth_qos driver for tegra

2022-05-23 Thread Marek Vasut
On 5/23/22 13:46, Rasmus Villemoes wrote: On 23/05/2022 12.57, Marek Vasut wrote: On 5/23/22 11:17, Rasmus Villemoes wrote: Hi Hi, I'm looking at switching the dwc_eth_qos driver over to use dm_eth_phy_connect(). However, I'm a little puzzled by the code for the tegra variant. The comment a

[PATCH 16/22] imx: engicam-imx8mm: drop unused macro

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Drop unused WDOG macro Signed-off-by: Peng Fan Reviewed-by: Michael Trimarchi --- board/engicam/imx8mm/spl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/engicam/imx8mm/spl.c b/board/engicam/imx8mm/spl.c index f75f2dc634c..1846134a492 100644 --- a/board/engicam/im

[PATCH 22/22] imx: phycore_imx8mm/p: clean up board watchdog code

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan pinctrl_wdog already marked u-boot,dm-spl, so clean up board code. The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan Tested-by: Teresa Remmet --- board/ph

[PATCH 21/22] imx: imx8mn-kontron-n801x: enable pinctrl_wdog in SPL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-kontron-n801x-u-boot.d

[PATCH 20/22] imx: imx8mp_rsb7320a1: enable wdog driver model in SPL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Mark wdog1/pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mp-rsb3720-a1-u-boo

[PATCH 18/22] imx: imx8mn-beacon: enable pinctrl_wdog in SPL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi

[PATCH 19/22] imx: imx8mn_var_som: clean up board watchdog code

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan pinctrl_wdog already marked u-boot,dm-spl, so clean up board code. The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan Tested-by: Ariel D'Alessandro --- boa

[PATCH 15/22] imx: imx8mm-cl-iot-gate: enable pinctrl_wdog in SPL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dts

[PATCH 14/22] imx: imx8mm_beacon: enable pinctrl_wdog in SPL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi

[PATCH 12/22] configs: imx8m: use common imx8m.h for i.MX8MP

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Some SPL definitions could be generalized, so use imx8m.h for iMX8MP. Tested-by: Tim Harvey #imx8mp-venice-* Signed-off-by: Peng Fan --- include/configs/imx8m.h | 8 include/configs/imx8mp_evk.h | 17 + include/configs/imx8mp_rsb3720.h | 1

[PATCH 17/22] imx: imx8mm/n/p-venice: enable pinctrl_wdog in SPL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-venice-u-boot.dtsi |

[PATCH 13/22] configs: imx8m: use common imx8m.h for i.MX8MQ

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Some SPL definitions could be gerneralized, so use imx8m.h for iMX8MQ. Signed-off-by: Peng Fan --- include/configs/imx8m.h | 10 ++ include/configs/imx8mq_cm.h | 24 +--- include/configs/imx8mq_evk.h | 19 +---

[PATCH 11/22] configs: imx8m: use common imx8m.h for i.MX8MN

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Some SPL definitions could be generalized, so use imx8m.h for iMX8MN. Tested-by: Tim Harvey #imx8mn-venice-* Tested-by: Ariel D'Alessandro #i.MX8MN BSH SMM S2 PRO board Signed-off-by: Peng Fan --- include/configs/imx8m.h| 10 ++ include/configs/imx

[PATCH 10/22] configs: imx8m: use common imx8m.h for i.MX8MM

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Some SPL definitions could be generalized, so use imx8m.h for that. i.MX8MN/Q/P will follow up. Signed-off-by: Peng Fan Tested-by: Tim Harvey #imx8mm-venice-* --- include/configs/imx8m.h | 29 + include/configs/imx8mm-cl-iot-gate.h

[PATCH 09/22] configs: drop CONFIG_SPL_ABORT_ON_RAW_IMAGE

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan CONFIG_SPL_RAW_IMAGE_SUPPORT default y has been used to replace CONFIG_SPL_ABORT_ON_RAW_IMAGE for quite some time, so drop CONFIG_SPL_ABORT_ON_RAW_IMAGE. Signed-off-by: Peng Fan --- include/configs/capricorn-common.h | 1 - include/configs/cgtqmx8.h |

[PATCH 08/22] imx: kontron-sl-mx8mm: enable DM_SERIAL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_init to make sure driver model work. Signed-off-by: Peng Fan Acked-by: Frieder Schrempf Reviewed-by: Fabio Estevam --- board/kontron/sl-mx8mm/spl.c |

[PATCH 05/22] imx: imx8mm_icore: Enable SPL_DM_SERIAL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- board/engicam/imx8mm/spl.c| 14 ++

[PATCH 07/22] imx: imx8mn_var_som: enable DM_SERIAL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_init to make sure driver model work. Signed-off-by: Peng Fan Reviewed-by: Ariel D'Alessandro Reviewed-by: Fabio Estevam --- board/variscite/imx8mn_var_som/

[PATCH 06/22] imx: imx8m[m/p]_phycore: Enable DM_SERIAL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan Tested-by: Teresa Remmet Reviewed-by: Fabio Estevam --- board/phytec/phycore_imx8mm/spl.

[PATCH 04/22] imx: imx8mm-cl-iot-gate: Enable DM_SERIAL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart3 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- board/compulab/imx8mm-cl-iot-gate/spl.c| 12 ++---

[PATCH 02/22] imx: imx8m[m/n/p]_venice: Enable SPL_DM_SERIAL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan Acked-by: Tim Harvey Reviewed-by: Fabio Estevam --- include/configs/imx8mm_venice.h

[PATCH 03/22] imx: imx8m[m/n]_beacon: Enable SPL_DM_SERIAL

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_init to make sure driver model work. Signed-off-by: Peng Fan Tested-by: Adam Ford #imx8mm_beacon Reviewed-by: Fabio Estevam --- board/beacon/imx8mm/sp

[PATCH 01/22] imx: drop CONFIG_MXC_UART_BASE

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Since these boards has CONFIG_DM_SERIAL and/or CONFIG_SPL_DM_SERIAL, the legacy macro no need to be defined. Reviewed-by: Heiko Schocher Reviewed-by: Fabio Estevam Signed-off-by: Peng Fan Acked-by: Soeren Moch --- include/configs/aristainetos2.h| 2 -- include/con

[PATCH 00/22] imx: patches in queue

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Hi Stefano, This patchset is a rebase of your/master-next branch to make these patches in my patchwork queue could apply. I not send them as previous seperated patchset, hope this not matter. The two patches are not included, since they are just sent out. https://patchwork.

Re: dwc_eth_qos driver for tegra

2022-05-23 Thread Rasmus Villemoes
On 23/05/2022 12.57, Marek Vasut wrote: > On 5/23/22 11:17, Rasmus Villemoes wrote: >> Hi > > Hi, > >> I'm looking at switching the dwc_eth_qos driver over to use >> dm_eth_phy_connect(). However, I'm a little puzzled by the code for the >> tegra variant. The comment at the top of the file, as we

Re: [PATCH v1 0/8] Add support for the i.MXRT1170

2022-05-23 Thread Stefano Babic
Hi Jesse, patchset slipped away, sorry. I have tried to apply it in last MR, but the patchset is currently obsolete and patches should be rebased. I will drop this version of patchset, please rebase on top of current master and repost - thanks ! Best regards, Stefano On 17.03.22 19:32, Jes

[RESEND PATCH] gpio: rgpio2p: Enhance reading of GPIO pin value

2022-05-23 Thread sbabic
> Add support for reading GPIO pin value when function is output. > With this patch applied, gpio toggle command is working. > Signed-off-by: Christoph Fritz > Reviewed-by: Peng Fan > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

[PATCH v2] ARM: dts: imx: Add support for DH electronics i.MX8M Plus DHCOM and PDK2

2022-05-23 Thread sbabic
> Add support for DH electronics i.MX8M Plus DHCOM SoM on PDK2 carrier board. > Currently supported are serial console, EQoS and FEC ethernets, eMMC, SD, > SPI NOR and USB 3.0 host. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic Applied to u-boot-imx, master

[PATCH] ARM: imx: mx5: Convert MX53 Menlo board to DM I2C and DM RTC

2022-05-23 Thread sbabic
> Convert the board to DM I2C and DM RTC. This leads to removal of board > side iomuxc configuration, which is now done using pin control driver, > and conversion of board side legacy I2C accessors to DM ones. > Signed-off-by: Marek Vasut > Cc: Stefano Babic Applied to u-boot-imx, master, thanks

Pull request: u-boot-imx u-boot-imx-20220523

2022-05-23 Thread Stefano Babic
/custodians/u-boot-imx.git tags/u-boot-imx-20220523 for you to fetch changes up to 4d573d5c98234cad328de77c773c3c3d79258255: ARM: dts: imx: Add support for DH electronics i.MX8M Plus DHCOM and PDK2 (2022-05-23 11:37:58 +0200) u

Re: dwc_eth_qos driver for tegra

2022-05-23 Thread Marek Vasut
On 5/23/22 11:17, Rasmus Villemoes wrote: Hi Hi, I'm looking at switching the dwc_eth_qos driver over to use dm_eth_phy_connect(). However, I'm a little puzzled by the code for the tegra variant. The comment at the top of the file, as well as tegra186.dtsi, says phy-mode = "rgmii"; But e

  1   2   >