Re: [PATCH V2 3/4] arm: mach-imx: cmd_nandbcb fix bad block handling

2022-05-10 Thread Michael Nazzareno Trimarchi
Hi Tim Do you have an alternative board to test? Michael On Fri, May 6, 2022 at 4:41 PM Han Xu wrote: > > On 22/04/27 07:50AM, Michael Trimarchi wrote: > > The badblock should be skipped properly in reading and writing. > > Fix the logic. The bcb struct is written, skipping the bad block, > > s

Re: [PATCH] kontron-sl-mx8mm: Select the CONFIG_CMD_UNZIP option

2022-05-10 Thread Frieder Schrempf
Am 11.05.22 um 01:06 schrieb Fabio Estevam: > From: Fabio Estevam > > Select the CMD_UNZIP option so that the 'gzwrite' command > can be used to flash wic.gz image into the eMMC. > > Signed-off-by: Fabio Estevam Reviewed-by: Frieder Schrempf > --- > configs/kontron-sl-mx8mm_defconfig | 2 +-

[PATCH v2 1/2] common: spl: spl_spi: add support for dynamic override of sf bus

2022-05-10 Thread Vaishnav Achath
Currently the SPI flash to load from is defined through the compile time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this prevents the loading of binaries from different SPI flash using the same build.E.g. supporting QSPI flash boot and OSPI flash boot on J721E platform is not possible d

[PATCH v2 2/2] arm: k3: j721e: add dynamic sf bus override support for j721e

2022-05-10 Thread Vaishnav Achath
implement overrides for spl_spi_boot_bus() and spl_spi_boot_cs() lookup functions according to bootmode selection, so as to support both QSPI and OSPI boot using the same build. Signed-off-by: Vaishnav Achath --- arch/arm/mach-k3/j721e_init.c | 17 + arch/arm/mach-k3/sysfw-load

[PATCH v2 0/2] Add support for dynamic overriding of default SF bus

2022-05-10 Thread Vaishnav Achath
Currently the SPI flash to load from is defined through the compile time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this prevents the loading of binaries from different SPI flash using the same build. This series adds support for choosing the flash device based on the selected boot dev

Re: [EXTERNAL] Re: [PATCH 1/2] common: spl: spl_spi: add support for dynamic detection of sf bus

2022-05-10 Thread Vaishnav Achath
Hi Heiko, On 09/05/22 12:49, Heiko Schocher wrote: Hello Achat, On 09.05.22 08:43, Vaishnav Achath wrote: Currently the SPI flash to load from is defined through the compile time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this prevents the loading of binaries from different SPI fla

Re: [PATCH] net: fix phy_string_for_interface

2022-05-10 Thread Stefan Roese
On 11.05.22 00:49, 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_MODE_NA") Signed-off-by: Tim Harvey

Re: [PATCH 1/1] btrfs: simplify lookup_data_extent()

2022-05-10 Thread Anand Jain
On 5/11/22 01:13, Heinrich Schuchardt wrote: After returning if ret <= 0 we know that ret > 0. No need to check it. Signed-off-by: Heinrich Schuchardt Reviewed-by: Anand Jain --- fs/btrfs/inode.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/fs/btr

runtime configuration of env_addr

2022-05-10 Thread Hiren Mehta
Hi All, I was wondering if there is a way to override the gd->env_addr that is initialized in env_flash_init() for flash based environment. As I see, env_addr depends on the env_ptr which is set to compile time value of CONFIG_ENV_ADDR. I was thinking of doing it in board_early_init_f(). But, as

Re: [PULL] u-boot-stm32/master v2022.07 = u-boot-stm32-20220510

2022-05-10 Thread Tom Rini
On Tue, May 10, 2022 at 04:47:25PM +0200, Patrice CHOTARD wrote: > Hi Tom > > Please pull the STM32 related patches for u-boot/master, v2022.07: > u-boot-stm32-20220510 > > CI status: > https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/11978 > >

[PATCH] gpio: sunxi: Fix build with CONFIG_SPL_SERIAL=n

2022-05-10 Thread Samuel Holland
This driver uses simple_strtol(), so it needs SPL_STRTO. Before commit 88ca8e26958b6 ("disk: Add an option for partitions in SPL"), SPL_STRTO was always selected indirectly. Now it is not, so select it here. Signed-off-by: Samuel Holland --- drivers/gpio/Kconfig | 1 + 1 file changed, 1 inserti

Re: [PATCH 0/7] clk: sunxi: Out-of-bounds access fix and driver cleanup

2022-05-10 Thread Andre Przywara
On Mon, 9 May 2022 00:29:30 -0500 Samuel Holland wrote: Hi Samuel, > This series fixes an issue with out-of-bounds access to the gate array > (patches 1-2), uses the rearranged array size information to remove a > bunch of duplicate code (patches 3-4), and then simplifies how the reset > driver

[PATCH] kontron-sl-mx8mm: Select the CONFIG_CMD_UNZIP option

2022-05-10 Thread Fabio Estevam
From: Fabio Estevam Select the CMD_UNZIP option so that the 'gzwrite' command can be used to flash wic.gz image into the eMMC. Signed-off-by: Fabio Estevam --- configs/kontron-sl-mx8mm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/kontron-sl-mx8mm_defcon

[PATCH] net: fix phy_string_for_interface

2022-05-10 Thread Tim Harvey
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_MODE_NA") Signed-off-by: Tim Harvey Cc: Marek Behún Cc: Stefan Roese Cc:

Re: [PATCH 1/1] btrfs: simplify lookup_data_extent()

2022-05-10 Thread Qu Wenruo
On 2022/5/11 03:43, Heinrich Schuchardt wrote: After returning if ret <= 0 we know that ret > 0. No need to check it. Signed-off-by: Heinrich Schuchardt Reviewed-by: Qu Wenruo Thanks, Qu --- fs/btrfs/inode.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff

Re: [PATCH] ls1028a: hdp: Add config support for HDP firmware loading

2022-05-10 Thread Michael Walle
Am 2022-05-10 19:47, schrieb Vladimir Oltean: On Tue, May 10, 2022 at 04:18:32PM +0200, Michael Walle wrote: > From: Alison Wang > > This patch adds config support for HDP firmware loading on LS1028A. FWIW, I really don't like this as this is just for a downstream kernel. This => what? I on

Re: [PATCH RFC v2 00/11] Integration of sysfw, tispl and tiboot3

2022-05-10 Thread Tom Rini
On Fri, May 06, 2022 at 10:07:48AM +0530, Neha Malcom Francis wrote: > Devices that belong to the K3 architecture require SYSFW which is a FIT > image consisting of a signed system firmware image and board config > binaries. > > Board config binaries are needed to bring up SYSFW during U-Boot SPL

[PATCH 1/1] fs/squashfs: fix sqfs_read_sblk()

2022-05-10 Thread Heinrich Schuchardt
Setting sblk = NULL has no effect on the caller. We want to set *sblk = NULL if an error occurrs to avoid usage after free. Signed-off-by: Heinrich Schuchardt --- fs/squashfs/sqfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index

[PATCH 1/1] btrfs: simplify lookup_data_extent()

2022-05-10 Thread Heinrich Schuchardt
After returning if ret <= 0 we know that ret > 0. No need to check it. Signed-off-by: Heinrich Schuchardt --- fs/btrfs/inode.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d00b515333..0173d30cd8 100644 --- a/fs/btrf

[PATCH] zlib: Port fix for CVE-2018-25032 to U-Boot

2022-05-10 Thread Tom Rini
While our copy of zlib is missing upstream commit 263b1a05b04e ("Allow deflatePrime() to insert bits in the middle of a stream.") we do have Z_FIXED support, and so the majority of the code changes in 5c44459c3b28 ("Fix a bug that can crash deflate on some input when using Z_FIXED.") apply here dir

Re: [PATCH] ls1028a: hdp: Add config support for HDP firmware loading

2022-05-10 Thread Vladimir Oltean
On Tue, May 10, 2022 at 04:18:32PM +0200, Michael Walle wrote: > > From: Alison Wang > > > > This patch adds config support for HDP firmware loading on LS1028A. > > FWIW, I really don't like this as this is just for a downstream kernel. This => what? I only see a config option. I searched the l

Re: [PATCH] dm: core: Provide fallbacks for ofnode_conf_read_...

2022-05-10 Thread Sean Anderson
On 3/28/22 6:14 PM, Sean Anderson wrote: > Because fdt_get_config_str et al. were moved/renamed to > ofnode_conf_read_str, they now depend on CONFIG_DM as well as > CONFIG_OF_CONTROL. Add some fallback implementations, preventing a > linker error when CONFIG_SPL_OF_CONTROL and CONFIG_SPL_ENV_IS_IN_

Re: [v2] misc: Correct Kconfig dependencies for a number of options

2022-05-10 Thread Sean Anderson
On 5/10/22 12:51 PM, Tom Rini wrote: > We have many cases of SPL (or TPL or VPL) drivers that don't depend on > SPL_MISC (and so on) but rather just MISC. > > Cc: Sean Anderson > Signed-off-by: Tom Rini > --- > Changes in v2: > - [STV]PL_CROS_EC should depend on the correct _MISC only, per Se

[v2] misc: Correct Kconfig dependencies for a number of options

2022-05-10 Thread Tom Rini
We have many cases of SPL (or TPL or VPL) drivers that don't depend on SPL_MISC (and so on) but rather just MISC. Cc: Sean Anderson Signed-off-by: Tom Rini --- Changes in v2: - [STV]PL_CROS_EC should depend on the correct _MISC only, per Sean --- drivers/misc/Kconfig | 23 --

Re: [PATCH] misc: Correct Kconfig dependencies for a number of options

2022-05-10 Thread Tom Rini
On Tue, May 10, 2022 at 12:43:40PM -0400, Sean Anderson wrote: > Hi Tom, > > On 5/10/22 11:08 AM, Tom Rini wrote: > > We have many cases of SPL (or TPL or VPL) drivers that don't depend on > > SPL_MISC (and so on) but rather just MISC. > > > > Signed-off-by: Tom Rini > > --- > > drivers/misc/Kc

Re: [PATCH] misc: Correct Kconfig dependencies for a number of options

2022-05-10 Thread Sean Anderson
Hi Tom, On 5/10/22 11:08 AM, Tom Rini wrote: > We have many cases of SPL (or TPL or VPL) drivers that don't depend on > SPL_MISC (and so on) but rather just MISC. > > Signed-off-by: Tom Rini > --- > drivers/misc/Kconfig | 34 +++--- > 1 file changed, 23 insertions(+)

Re: [PATCH v2] misc: Fix always compiling MISC even for SPL/TPL

2022-05-10 Thread Tom Rini
On Fri, Apr 22, 2022 at 04:11:37PM -0400, Sean Anderson wrote: > We should only build support for misc if the appropriate SPL/TPL symbol > is defined. To ease the transition, make SPL/TPL_MISC default to MISC. > This is necessary because many drivers don't specify their dependencies > properly. Th

[PATCH] misc: Correct Kconfig dependencies for a number of options

2022-05-10 Thread Tom Rini
We have many cases of SPL (or TPL or VPL) drivers that don't depend on SPL_MISC (and so on) but rather just MISC. Signed-off-by: Tom Rini --- drivers/misc/Kconfig | 34 +++--- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/drivers/misc/Kconfig b/drive

Re: How not to have uboot env partition on SPI flash?

2022-05-10 Thread Gangadhar N
Thanks Sean. This works. Regards, Gangadhar On Tue, May 10, 2022 at 6:57 PM Sean Anderson wrote: > On 5/10/22 9:20 AM, Gangadhar N wrote: > > Hi All, > > Is there a way to remove the uboot env partition on SPI flash? > > I always want uboot to use the “default env” that is part of uboot.bin. >

[PULL] u-boot-stm32/master v2022.07 = u-boot-stm32-20220510

2022-05-10 Thread Patrice CHOTARD
Hi Tom Please pull the STM32 related patches for u-boot/master, v2022.07: u-boot-stm32-20220510 CI status: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/11978 Thanks Patrice The following changes since commit f08ed34371c54244421eac8ffb4c77559c5ea013: Prepare v2022.07-rc2

Re: [PATCH] squashfs: Fix compilation on big endian systems

2022-05-10 Thread Pali Rohár
On Wednesday 06 April 2022 23:31:53 Pali Rohár wrote: > Signed-off-by: Pali Rohár > --- > fs/squashfs/sqfs.c | 3 +-- > fs/squashfs/sqfs_dir.c | 3 +-- > 2 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c > index 5d9c52af80ba..41cb811c1b

[PATCH] arm64: zynqmp: Set qspi tx-buswidth to 4

2022-05-10 Thread Michal Simek
From: Amit Kumar Mahapatra In all the ZynqMP boards dts files tx-buswidth is by default set to 1. Due to this the framework only issues 1-1-1 write commands to the GQSPI driver. But the GQSPI controller is capable of handling 1-4-4 write commands, so updated the tx-buswidth to 4 in ZynqMP boards

Re: [PATCH] soc: xilinx: zynqmp: fix out of bounds array access

2022-05-10 Thread Michal Simek
st 20. 4. 2022 v 9:39 odesílatel Michal Simek napsal: > > The call to xilinx_pm_request requires an array of a larger size. > > Signed-off-by: Michal Simek > --- > > The same change was done for versal by > https://lore.kernel.org/r/20220416181530.2311155-1-jo...@foundries.io > --- > drivers/soc

[PATCH] xilinx: zynqmp: Do not guard SPL_FS_LOAD_PAYLOAD_NAME by SDHCI driver

2022-05-10 Thread Michal Simek
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME is used by set_dfu_alt_info() for string generation. It doesn't depend on SDHCI because the same file can be stored to other non volatile memories like qspi. Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp.h | 2 -- 1 file changed, 2 deletions(-) d

[PATCH] arm64: zynqmp: zynqmp-zcu106-rev1.0: Fix DP PLL configuration

2022-05-10 Thread Michal Simek
From: Neal Frager This patch fixes the DP audio and video PLL configurations for the zynqmp-zcu106-rev1.0 evaluation board. The Linux DP driver expects the DP to be using the following PLL config: - DP video PLL should use the VPLL (0x0) - DP audio PLL should use the RPLL (0x3) Register 0x

Re: [PATCH] ls1028a: hdp: Add config support for HDP firmware loading

2022-05-10 Thread Michael Walle
> From: Alison Wang > > This patch adds config support for HDP firmware loading on LS1028A. FWIW, I really don't like this as this is just for a downstream kernel. For the upstream kernel the firmware should be loaded by the kernel itself. But unfortunately, there is no development there. (I hav

Re: How not to have uboot env partition on SPI flash?

2022-05-10 Thread Sean Anderson
On 5/10/22 9:20 AM, Gangadhar N wrote: Hi All, Is there a way to remove the uboot env partition on SPI flash? I always want uboot to use the “default env” that is part of uboot.bin. I want only uboot.bin on SPI flash and no separate uboot env partition on flash. Thanks & Regards, Gangadhar CO

Re: [PATCH v4 06/25] mips: mtmips: add two reference boards for mt7621

2022-05-10 Thread Stefan Roese
On 10.05.22 14:18, Weijie Gao wrote: The mt7621_rfb board supports integrated giga PHYs plus one external giga PHYs. It also has up to 512MiB DDR3, 16MB SPI-NOR, 3 mini PCI-e x1 slots, SDXC and USB. The mt7621_nand_rfb board is almost the same as mt7621_rfb board, but it uses NAND flash and SDXC

How not to have uboot env partition on SPI flash?

2022-05-10 Thread Gangadhar N
Hi All, Is there a way to remove the uboot env partition on SPI flash? I always want uboot to use the “default env” that is part of uboot.bin. I want only uboot.bin on SPI flash and no separate uboot env partition on flash. Thanks & Regards, Gangadhar

[PATCH] phy: zynqmp: Increase timeout value to 10ms

2022-05-10 Thread Ashok Reddy Soma
Observing psgtr pll timeouts with some usb hubs and devices behind it. Increase timeout to 10ms to take care of it. Signed-off-by: Ashok Reddy Soma --- drivers/phy/phy-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-zynqmp.c b/drivers/phy/phy-zynqmp.

[PATCH V3 7/7] binman_sym: guard with CONFIG_SPL_BINMAN_SYMBOLS

2022-05-10 Thread Peng Fan (OSS)
From: Peng Fan There is case that CONFIG_BINMAN is defined, but CONFIG_SPL_BINMAN_SYMBOLS is not defined. In that case, there will be build failure. So use CONFIG_SPL_BINMAN_SYMBOLS to guard the macros, and define CONFIG_SPL_BINMAN_SYMBOLS in binman syms test. Tested-by: Tim Harvey #imx8m[m,n,p

[PATCH V3 6/7] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-05-10 Thread Peng Fan (OSS)
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]-venice Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-

[PATCH V3 5/7] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-05-10 Thread Peng Fan (OSS)
From: Peng Fan By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after we update the binman dtsi to drop 0x8000/0x4000 length for the firmware. And that could save binary size for many KBs. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan --- drivers/ddr/im

[PATCH V3 4/7] tools: binman: section: replace @ with -

2022-05-10 Thread Peng Fan (OSS)
From: Peng Fan In arch/arm/dts/imx8mp-u-boot.dtsi, there are blob-ext@1, blob-ext@2 and etc which is for packing ddr phy firmware. However we could not declare symbol name such as 'binman_sym_declare(ulong, blob_ext@1, image_pos)', because '@' is not allowed, so we choose to declare the symbol 'b

[PATCH V3 3/7] armv8: u-boot-spl.lds: mark __image_copy_start as symbol

2022-05-10 Thread Peng Fan (OSS)
From: Peng Fan In arch/arm/lib/sections.c there is below code: char __image_copy_start[0] __section(".__image_copy_start"); But actually 'objdump -t spl/u-boot-spl' not able to find out symbol '__image_copy_start' for binman update image-pos/size. So update link file Tested-by: Tim Harvey #imx

[PATCH V3 2/7] arm: dts: imx8m: update binman ddr firmware node name

2022-05-10 Thread Peng Fan (OSS)
From: Peng Fan We are migrating to use BINMAN SYMBOLS, the current name is not a valid binman type, so update to use blob-ext@[1,2,3,4]. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-u-boot.dtsi | 8 arch/arm/dts/imx8mn-b

[PATCH V3 1/7] spl: guard u_boot_any with X86

2022-05-10 Thread Peng Fan (OSS)
From: Peng Fan set the symbol as weak not work if LTO is enabled. Since u_boot_any is only used on X86 for now, so guard it with X86, otherwise build break if we use BINMAN_SYMBOLS on i.MX. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan --- common/spl/spl.c | 8 ++-

[PATCH V3 0/7] arm64: binman: use binman symbols for imx

2022-05-10 Thread Peng Fan (OSS)
From: Peng Fan V3: Add R-b/T-b Fix build warning V2: resolve some CI failure include patch 7 binman symbol is a good feature, but only used on X86 for now. This patchset is to use it for i.MX8M platform. The current imx8m ddr phy firmware consumes lots of space, because we pad them to the

Re: [PATCH] usb: xhci-dwc3: Support role switch default role

2022-05-10 Thread Mark Kettenis
> From: Mark Kettenis > Date: Tue, 19 Apr 2022 21:06:33 +0200 > > When the device tree indicates support for role switching through > the "usb-role-switch" property, take the "role-switch-default-mode" > property into account when deciding which role to put the > controller into. > > This makes

Re: [ANN] U-Boot v2022.07-rc2 released

2022-05-10 Thread Tom Rini
On Tue, May 10, 2022 at 01:37:53PM +0200, Pali Rohár wrote: > On Monday 09 May 2022 12:50:42 Tom Rini wrote: > > Hey all, > > > > It's release day and so here's v2022.07-rc2. I believe things are > > largely caught up in terms of big outstanding changes but if you know of > > something you were e

Re: [PATCH] SPL: Do not allow enabling SPL symbols for non-SPL builds

2022-05-10 Thread Tom Rini
On Tue, May 10, 2022 at 01:29:30PM +0200, Pali Rohár wrote: > On Monday 09 May 2022 16:22:50 Tom Rini wrote: > > On Mon, May 09, 2022 at 08:53:50PM +0200, Pali Rohár wrote: > > > > > It does not make sense to enable SPL options when not building SPL binary. > > > > > > So disallow selecting SPL o

Re: [Uboot-stm32] [PATCH 2/4] clk: stm32mp13: add a STM32MP13 RCC clock driver

2022-05-10 Thread Grzegorz Szymaszek
Hi, On Tue, May 10, 2022 at 09:51:11AM +0200, Patrick Delaunay wrote: > Introduce a minimal STM32MP13 RCC driver only to allow bind of RCC MISC > driver. Consider s/only/just/ and s/bind of/binding of the/. > diff --git a/drivers/clk/stm32/Makefile b/drivers/clk/stm32/Makefile > -%<- > obj-$(CO

Re: [Uboot-stm32] [PATCH] phy: stm32-usbphyc: stm32-usbphyc: Add DT phy tuning support

2022-05-10 Thread Patrice CHOTARD
My Bad, this patch is not concerned, i keep it merged in STM32 custodian master. On 5/10/22 13:50, Patrice CHOTARD wrote: > After discussion with Patrick, the whole series will not be merged in stm32 > git custodian master branch > > Patrice > > On 5/10/22 10:10, Patrice CHOTARD wrote: >> >> >>

Re: [Uboot-stm32] [PATCH 1/3] phy: stm32-usbphyc: add counter of PLL consumer

2022-05-10 Thread Patrice CHOTARD
On 5/10/22 09:45, Patrice CHOTARD wrote: > > > On 5/6/22 16:18, Patrice CHOTARD wrote: >> Hi Patrick >> >> On 4/26/22 14:37, Patrick Delaunay wrote: >>> Add the counter of the PLL user n_pll_cons managed by the 2 functions >>> stm32_usbphyc_pll_enable / stm32_usbphyc_pll_disable. >>> >>> This

Re: [PATCH] phy: stm32-usbphyc: stm32-usbphyc: Add DT phy tuning support

2022-05-10 Thread Patrice CHOTARD
After discussion with Patrick, the whole series will not be merged in stm32 git custodian master branch Patrice On 5/10/22 10:10, Patrice CHOTARD wrote: > > > On 5/6/22 10:50, Patrick DELAUNAY wrote: >> Hi >> >> On 4/22/22 09:39, Patrice Chotard wrote: >>> Add support of phy-tuning properties

Re: [ANN] U-Boot v2022.07-rc2 released

2022-05-10 Thread Pali Rohár
On Monday 09 May 2022 12:50:42 Tom Rini wrote: > Hey all, > > It's release day and so here's v2022.07-rc2. I believe things are > largely caught up in terms of big outstanding changes but if you know of > something you were expecting to be in by now, and is not, please speak > up. There are stil

RE: [PATCH 0/3] xilinx: Swith platforms to DM_ETH_PHY

2022-05-10 Thread Ashok Reddy Soma
Acked-for-series: Ashok Reddy Soma Thanks, Ashok > -Original Message- > From: U-Boot On Behalf Of Michal Simek > Sent: Tuesday, May 10, 2022 4:56 PM > To: u-boot@lists.denx.de; git > Cc: Joe Hershberger ; Ramon Fried > > Subject: [PATCH 0/3] xilinx: Swith platforms to DM_ETH_PHY > >

Re: [PATCH 1/3] phy: stm32-usbphyc: add counter of PLL consumer

2022-05-10 Thread Amelie Delaunay
Hi Patrick, Hi Sean, On 5/9/22 16:37, Patrick DELAUNAY wrote: Hi Sean, On 5/8/22 20:21, Sean Anderson wrote: On 4/26/22 8:37 AM, Patrick Delaunay wrote: Add the counter of the PLL user n_pll_cons managed by the 2 functions stm32_usbphyc_pll_enable / stm32_usbphyc_pll_disable. This counter al

[PATCH] arm:socfpga:soc64: To notify SDM when U-Boot pass control to Linux

2022-05-10 Thread dinesh . maniyam
From: Dinesh Maniyam Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition. Signed-off-by: Chin Liang See Signed-off-by: Dinesh Maniyam --- arch/arm/mach-socfpga/misc_soc64.c | 5 + 1 file chang

[PATCH] ddr:altera:soc64: Integer fix overflow that caused DDR size mismatched

2022-05-10 Thread dinesh . maniyam
From: Dinesh Maniyam Convert the constant integer to 'phys_size_t' to avoid overflow when calculating the SDRAM size. Signed-off-by: Chee Hong Ang Signed-off-by: Dinesh Maniyam --- drivers/ddr/altera/sdram_soc64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/d

Re: [PATCH] SPL: Do not allow enabling SPL symbols for non-SPL builds

2022-05-10 Thread Pali Rohár
On Monday 09 May 2022 16:22:50 Tom Rini wrote: > On Mon, May 09, 2022 at 08:53:50PM +0200, Pali Rohár wrote: > > > It does not make sense to enable SPL options when not building SPL binary. > > > > So disallow selecting SPL options for non-SPL builds. > > > > Signed-off-by: Pali Rohár > > Some

Re: [PATCH 0/2] powerpc: mpc85xx: Fix NOR booting

2022-05-10 Thread Pali Rohár
On Monday 02 May 2022 18:36:37 Pali Rohár wrote: > NOR version of U-Boot for mpc85xx is currently broken. > > NOR booting with CONFIG_OF_SEPARATE is broken since my commit > e8c0e0064c8a ("powerpc: mpc85xx: Fix CONFIG_OF_SEPARATE support") which > was merged into master few days ago and was fixing

[PATCH 2/3] net: xilinx: axi_emaclite: Use shared MDIO bus support for axi emaclite driver

2022-05-10 Thread Michal Simek
From: T Karthik Reddy CONFIG_DM_ETH_PHY enables support to utilize generic ethernet phy framework. Though if ethernet PHY node is in other ethernet node, it will use shared MDIO to access the PHY of other ethernet. Move ethernet print info statement from plat function to probe function, as phyadd

[PATCH 3/3] xilinx: Add CONFIG_DM_ETH_PHY config

2022-05-10 Thread Michal Simek
From: T Karthik Reddy Enable CONFIG_DM_ETH_PHY to utilize shared MDIO bus support on all xilinx platforms. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- configs/microblaze-generic_defconfig | 1 + configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynq_virt_defconfig

[PATCH 1/3] net: xilinx: axi_emac: Use shared MDIO bus support for axi emac driver

2022-05-10 Thread Michal Simek
From: T Karthik Reddy CONFIG_DM_ETH_PHY enables support to utilize generic ethernet phy framework. Though if ethernet PHY node is in other ethernet node, it will use shared MDIO to access the PHY of other ethernet. Move ethernet print info statement from plat function to probe function, as phyadd

[PATCH 0/3] xilinx: Swith platforms to DM_ETH_PHY

2022-05-10 Thread Michal Simek
This patch series adds support for shared MDIO by using generic phy framework. Also enable DM_ETH_PHY config for all xilinx platforms. Thanks, Michal T Karthik Reddy (3): net: xilinx: axi_emac: Use shared MDIO bus support for axi emac driver net: xilinx: axi_emaclite: Use shared MDIO bus s

[PATCH] ls1028a: hdp: Add config support for HDP firmware loading

2022-05-10 Thread Yangbo Lu
From: Alison Wang This patch adds config support for HDP firmware loading on LS1028A. Signed-off-by: Oliver Brown Signed-off-by: Alison Wang Signed-off-by: Ye Li Signed-off-by: Yangbo Lu --- board/freescale/ls1028a/ls1028a.c| 7 ++- configs/ls1028aqds_tfa_SECURE_BOOT_defconf

Re: [PATCH] efi_loader: fix a problem in loading an image from a short-path

2022-05-10 Thread AKASHI Takahiro
On Fri, Apr 29, 2022 at 12:57:15PM +0200, Heinrich Schuchardt wrote: > On 4/28/22 06:50, AKASHI Takahiro wrote: > > Booting from a short-form device path which starts with the first element > > being a File Path Media Device Path failed because it doesn't contain > > any valid device with simple fi

RE: [PATCH V2 5/7] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-05-10 Thread Peng Fan (OSS)
Tim, > Subject: Re: [PATCH V2 5/7] ddr: imx8m: helper: load ddr firmware according to > binman symbols > > On Sat, May 7, 2022 at 3:22 AM Peng Fan (OSS) wrote: > > > > From: Peng Fan > > > > By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN > > after we update the binman dtsi t

Re: [PATCH] i2c: ihs: intel: Fix typo in comments (actual)

2022-05-10 Thread Heiko Schocher
Hello Michal, On 19.04.22 15:01, Michal Simek wrote: > s/actucal/actual/g > > Signed-off-by: Michal Simek > --- > > drivers/i2c/ihs_i2c.c | 2 +- > drivers/i2c/intel_i2c.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-i2c master Thanks! bye, Heiko -- DENX

Re: [PATCH] doc: Add device-tree-bindings for atsha204 and atsha204a

2022-05-10 Thread Heiko Schocher
Hello Pali, On 10.05.22 06:42, Heiko Schocher wrote: > Hello Pali, > > On 28.04.22 20:58, Pali Rohár wrote: >> Document trivial bindings for atsha204 and atsha204a. >> >> Signed-off-by: Pali Rohár >> --- >> doc/device-tree-bindings/misc/atsha204.txt | 4 >> 1 file changed, 4 insertions(+)

Re: [PATCH] misc: atsha204a: Add support for atsha204 chip

2022-05-10 Thread Heiko Schocher
Hello Pali. On 10.05.22 06:45, Heiko Schocher wrote: > Hello Pali, > > On 22.04.22 05:59, Heiko Schocher wrote: >> Hello Pali, >> >> On 21.04.22 11:40, Pali Rohár wrote: >>> On Thursday 21 April 2022 06:11:11 Heiko Schocher wrote: Hello Pali, On 05.04.22 16:10, Pali Rohár wrote: >>

Re: [PATCH v2 12/12] doc: Add documentation for STM32 MCUs

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:54, Patrice Chotard wrote: > Add documentation for STM32 MCUs (F4, F7 and H7 series). > > Signed-off-by: Patrice Chotard > > --- > > Changes in v2: >- fix documentation file stm32_MCU.rst > > board/st/stm32f429-discovery/MAINTAINERS | 1 + > board/st/stm32f429-evaluati

Re: [PATCH v2 11/12] configs: stm32746g-eval: Add stm32746g-eval_spl_defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:54, Patrice Chotard wrote: > Add stm32746g-eval_spl_defconfig for stm32746g evaluation board to > build SPL. > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > board/st/stm32f746-disco/MAINTAINERS | 1 + > configs/stm32746g

Re: [PATCH v2 10/12] configs: stm32746g-eval: Add stm32746g-eval_defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > Add stm32746g-eval_defconfig for stm32746g evaluation board to > build U-Boot proper. > > Full board description can be found here : > https://www.st.com/en/evaluation-tools/stm32746g-eval.html > > Signed-off-by: Patrice Chotard > Reviewed-by: Patric

Re: [PATCH v2 09/12] configs: stm32f746-disco: use CONFIG_DEFAULT_DEVICE_TREE as fdtfile

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > As stm32f46-disco, stm32f769-disco and stm32746g-eval are very similar > except their respective device tree file. These 3 boards uses the same > TARGET_STM32F746_DISCO flag (so same include/configs/stm32f746-disco.h > and same board file board/st/stm32

Re: [PATCH v2 08/12] board: stm32f746-disco: Fix dram_init() in none SPL config

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > Replace CONFIG_SUPPORT_SPL by CONFIG_SPL_BUILD to allow > dram_init() execution when using none SPL defconfig > (stm32f746-disco_defconfig). > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > boa

Re: [PATCH v2 06/12] configs: stm32f769-disco: Migrate SPL flags to defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > Migrate SPL flags to stm32f769-disco_spl_defconfig > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > configs/stm32f769-disco_spl_defconfig | 25 + > 1 file changed, 21 in

Re: [PATCH v2 07/12] configs: stm32f746-disco: Migrate SPL flags to defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > Migrate SPL flags to stm32f746-disco_spl_defconfig > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > arch/arm/mach-stm32/Kconfig | 20 > configs/stm32f746-disco_sp

Re: [PATCH v2 05/12] configs: stm32f769-disco: Add stm32f769-disco_defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > Add stm32f769-disco_defconfig for stm32f769 discovery board to > build U-Boot proper. > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > configs/stm32f769-disco_defconfig | 65 +++

Re: [PATCH 1/2] misc: i2c_eeprom: add support for microchip 24aa025e48

2022-05-10 Thread Heiko Schocher
Hello Eugen, On 10.05.22 09:44, eugen.hris...@microchip.com wrote: > On 5/2/22 12:24 PM, Michael Walle wrote: >>> 24aa025e48 is a variant of 24aa02e48 that has a page size of 16 bytes. >>> >>> Signed-off-by: Eugen Hristev >>> --- >>> drivers/misc/i2c_eeprom.c | 8 >>> 1 file changed,

Re: [PATCH v2 04/12] configs: stm32f769-disco: Rename stm32f769-disco_defconfig to stm32f769-disco_spl_defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > The current stm32f769-disco_defconfig file supports SPL, rename it to > stm32f769-disco_spl_defconfig to reflect the supported configuration. > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > bo

Re: [PATCH v2 03/12] configs: stm32f746-disco: Add stm32f746-disco_defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > Add stm32f746-disco_defconfig for stm32f746 discovery board to > build U-Boot proper. > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > configs/stm32f746-disco_defconfig | 64 +++

Re: [PATCH v2 02/12] configs: stm32f746-disco: Rename stm32f746-disco_defconfig to stm32f746-disco_spl_defconfig

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > The current stm32f746-disco_defconfig file supports SPL, rename it to > stm32f746-disco_spl_defconfig to reflect the supported configuration. > > Signed-off-by: Patrice Chotard > Reviewed-by: Patrick Delaunay > --- > > (no changes since v1) > > bo

Re: [PATCH v2 01/12] configs: stm32f746-disco: Concatenate spl and u-boot binaries

2022-05-10 Thread Patrice CHOTARD
On 4/27/22 13:53, Patrice Chotard wrote: > This allows to concatenate spl and u-boot binaries together. > Previously, both binaries has to be flashed separately at the correct > offset (spl at offset 0 and u-boot at offset 0x8000). > With this patch, only one binary is generated (u-boot-with-spl

Re: [PATCH] board: st: stm32mp1: Consider USB cable connected when boot device is USB

2022-05-10 Thread Patrice CHOTARD
On 5/6/22 10:51, Patrick DELAUNAY wrote: > Hi, > > On 4/22/22 09:39, Patrice Chotard wrote: >> Always consider USB cable is connected when USB boot device is detected. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   board/st/stm32mp1/stm32mp1.c | 7 +++ >>   1 file changed, 7 insertions

Re: [PATCH] phy: stm32-usbphyc: stm32-usbphyc: Add DT phy tuning support

2022-05-10 Thread Patrice CHOTARD
On 5/6/22 10:50, Patrick DELAUNAY wrote: > Hi > > On 4/22/22 09:39, Patrice Chotard wrote: >> Add support of phy-tuning properties for sm32-usbphyc's phy tuning >> aligned with v5.15 kernel bindings. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   drivers/phy/phy-stm32-usbphyc.c | 167

Re: [PATCH 3/3] gpio: stm32_gpio: Rework GPIO hole management

2022-05-10 Thread Patrice CHOTARD
On 5/6/22 10:39, Patrick DELAUNAY wrote: > Hi, > > On 4/22/22 09:38, Patrice Chotard wrote: >> On some STM32 SoC's package, GPIO bank may have hole in their GPIO bank >> Example: >>    If GPIO bank have 16 GPIO pins [0-15]. >>    In particular SoC's package case, some GPIO bank can have less GP

Re: [PATCH 2/3] pinctrl: pinctrl_stm32: Use GPIOF_UNKNOWN to indicate not mapped pins

2022-05-10 Thread Patrice CHOTARD
On 5/6/22 10:37, Patrick DELAUNAY wrote: > Hi, > > On 4/22/22 09:38, Patrice Chotard wrote: >> GPIOF_UNKNOWN becomes a valid pin muxing information to indicate >> that a pin is not mapped. >> >> Signed-off-by: Patrice Chotard >> --- >> >>   drivers/pinctrl/pinctrl_stm32.c | 2 -- >>   1 file ch

Re: [PATCH 1/3] pinctrl: pinctrl_stm32: Update pinmux_mode definition

2022-05-10 Thread Patrice CHOTARD
On 5/6/22 10:37, Patrick DELAUNAY wrote: > Hi, > > On 4/22/22 09:38, Patrice Chotard wrote: >> pinmux_mode[] is linked to gpio_function[] defined in gpio-uclass.c >> So reuse the same gpio_func_t enum value >> >> Signed-off-by: Patrice Chotard >> --- >> >>   drivers/pinctrl/pinctrl_stm32.c | 1

RE: [PATCH] armv8: Fix TCR 64-bit writes

2022-05-10 Thread Peng Fan
> Subject: [PATCH] armv8: Fix TCR 64-bit writes > > The AArch64 TCR_ELx register is a 64-bit register, and many newer architecture > features use bits in the upper half. So far U-Boot was igorant of those bits, > trying to leave them alone. > However, in an effort to set bit 31 to 1, it failed doi

Re: [PATCH] ARM: stm32: Use CONFIG_TFTP_TSIZE on STMicroelectronics boards

2022-05-10 Thread Patrice CHOTARD
On 5/5/22 14:21, Patrick Delaunay wrote: > Long TFTP transfers lead to a wall of # characters on UART, which in > the end may slow down the transfer itself. Use CONFIG_TFTP_TSIZE to > print progress in fewer # characters. > > Signed-off-by: Patrick Delaunay > --- > > configs/stm32mp15_basic_

Re: [PATCH] ARM: dts: stm32: Move DHCOR BUCK3 VDD 2V9 adjustment to 1V8 DTSI

2022-05-10 Thread Patrice CHOTARD
On 5/6/22 10:42, Patrick DELAUNAY wrote: > Hi, > > On 5/4/22 14:50, Marek Vasut wrote: >> The Buck3 on DHCOR is used to supply IO voltage. It can output either 3V3 >> in the default DHCOR configuration, or 2V9 in case of AV96 DHCOR variant >> which has extra Empirion DCDC converter in front of

Re: [PATCH 2/2] ARM: stm32: Use CONFIG_TFTP_TSIZE on DHSOM

2022-05-10 Thread Patrice CHOTARD
On 5/1/22 18:43, Marek Vasut wrote: > Long TFTP transfers lead to a wall of # characters on UART, which in > the end may slow down the transfer itself. Use CONFIG_TFTP_TSIZE to > print progress in fewer # characters. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice Chotard

Re: [PATCH 1/2] ARM: stm32: Use default CONFIG_TFTP_BLOCKSIZE on DHSOM

2022-05-10 Thread Patrice CHOTARD
On 5/2/22 10:25, Patrick DELAUNAY wrote: > Hi Marek, > > On 5/1/22 18:43, Marek Vasut wrote: >> The DHCOM does ship with KS8851 with 1.5 kiB packet buffer. The DHSOM >> may be extended with other MAC options connected to FMC2 bus, like the >> DM9000, wih similar limitations. Use default CONFIG_

[PATCH 4/4] ARM: dts: stm32: add rcc node for STM32MP13

2022-05-10 Thread Patrick Delaunay
Add the RCC node, not yet in Linux kernel device tree to handle the U-Boot RCC drivers. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp13-u-boot.dtsi | 4 arch/arm/dts/stm32mp131.dtsi | 7 +++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/dts/stm32mp13-u-boot.

[PATCH 1/4] clk: Add directory for STM32 clock drivers

2022-05-10 Thread Patrick Delaunay
Add a directory in drivers/clk to regroup the clock drivers for all STM32 Soc with CONFIG_ARCH_STM32 (MCUs with cortex M) or CONFIG_ARCH_STM32MP (MPUs with cortex A). Signed-off-by: Patrick Delaunay --- MAINTAINERS| 2 +- drivers/clk/Kconfig| 17

[PATCH 3/4] misc: stm32mp13: introduce STM32MP13 RCC driver

2022-05-10 Thread Patrick Delaunay
Add the MISC RCC driver for STM32MP13, and bind it to the RCC reset driver, required for initial support. Signed-off-by: Patrick Delaunay --- drivers/misc/stm32_rcc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index f14d6e26d9..

[PATCH 0/4] stm32mp: add minimal RCC support for STM32MP13

2022-05-10 Thread Patrick Delaunay
Add a minimal support for STM32MP13 RCC, the reset and clock controller - update of the RCC MISC driver to bind the correct clock and reset driver - reset driver, same than STM32MP15x = drivers/reset/stm32-reset.c - clock driver, add a empty driver for STM32MP13x = drivers/clk/stm32/clk-stm32mp

[PATCH 2/4] clk: stm32mp13: add a STM32MP13 RCC clock driver

2022-05-10 Thread Patrick Delaunay
Introduce a minimal STM32MP13 RCC driver only to allow bind of RCC MISC driver. Signed-off-by: Patrick Delaunay --- drivers/clk/stm32/Kconfig | 8 drivers/clk/stm32/Makefile| 1 + drivers/clk/stm32/clk-stm32mp13.c | 21 + 3 files changed, 30 insert

  1   2   >