Re: [PATCH v2 08/16] arm: stm32mp: add support of STM32MP13x

2022-05-23 Thread Patrice CHOTARD
Hi Patrick On 5/20/22 18:24, Patrick Delaunay wrote: > Introduce the code in mach-stm32mp and the configuration file > stm32mp13_defconfig for the new STM32MP family. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - fix several typo issue in comments reported by Patrice and Mare

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

2022-05-23 Thread Peng Fan (OSS)
> 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 update to use blob-ext@[1,2,3,4]. > > > > Tes

RE: [PATCH V4 3/8] imx: imx8mm-icore: migrate to use BINMAN

2022-05-23 Thread Peng Fan (OSS)
> Subject: Re: [PATCH V4 3/8] imx: imx8mm-icore: migrate to use BINMAN > > On 20/05/2022 17:10, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Use BINMAN instead of imx specific packing method. > > > > Signed-off-by: Peng Fan > > --- > > arch/arm/mach-imx/imx8m/Kconfig | 1 +

Re: [PATCH v2 07/16] arm: stm32mp: add CONFIG_STM32MP15_PWR

2022-05-23 Thread Patrice CHOTARD
Hi Patrick On 5/20/22 18:24, Patrick Delaunay wrote: > Add config CONFIG_STM32MP15_PWR to handle the > access to regulators managed by the PWR driver defined in > pwr_regulator.c > > This driver is only used in U-Boot by STM32MP15x family. > > Signed-off-by: Patrick Delaunay > --- > > Changes

RE: [PATCH V4 5/8] tools: binman: section: replace @ with -

2022-05-23 Thread Peng Fan (OSS)
> Subject: Re: [PATCH V4 5/8] tools: binman: section: replace @ with - > > On 20/05/2022 17:10, Peng Fan (OSS) wrote: > > 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

RE: [PATCH V4 6/8] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-05-23 Thread Peng Fan (OSS)
> Subject: Re: [PATCH V4 6/8] ddr: imx8m: helper: load ddr firmware according > to binman symbols > > On 20/05/2022 17:10, 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 to drop 0x8000/0x4000

RE: [PATCH V4 8/8] binman_sym: guard with CONFIG_SPL_BINMAN_SYMBOLS

2022-05-23 Thread Peng Fan (OSS)
> Subject: Re: [PATCH V4 8/8] binman_sym: guard with > CONFIG_SPL_BINMAN_SYMBOLS > > On 20/05/2022 17:10, Peng Fan (OSS) wrote: > > 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.

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

2022-05-23 Thread Neil Armstrong
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, On 14/10/2021 10:40, Peter Hoyes wrote: From: Peter Hoyes If using OF_CONTROL, fdtcontroladdr is

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

2022-05-23 Thread Jim Liu
Hi Heiko Thanks for your reply. I will follow your suggestion to modify it for version 2. and some explain and question as below: 1. while function will do the i2c recovery feature . the function will break when toggle 27 times or SDA is high. > + while (1) { > + /* toggle SCL

Re: [PATCH v5 2/3] arm: mvebu: add support for Methode eDPU

2022-05-23 Thread Pali Rohár
On Friday 20 May 2022 13:46:32 Robert Marko wrote: > Changes in v4: > * Remove CMD_PCI as PCI is disabled anyway > > Changes in v3: > * Use DTS-es pending merge upstream > * Re-enable SCSI as the Armada 37xx BOOT_TARGET_DEVICES defines SCSI device > as one of the bootable ones. > We dont have spac

Re: [PATCH] meson: axg: search dtb for meson-axg-usb-ctrl on board axg

2022-05-23 Thread Neil Armstrong
Hi Sergei, On 09/05/2022 13:36, Sergei Antonov wrote: USB controller for AXG is described as meson-axg-usb-ctrl, see arch/arm/dts/meson-axg.dtsi Look for that name instead of meson-gxl-usb-ctrl. Signed-off-by: Sergei Antonov --- arch/arm/mach-meson/board-axg.c | 4 ++-- 1 file changed, 2 in

Re: [PATCH] meson: axg: search dtb for meson-axg-usb-ctrl on board axg

2022-05-23 Thread Neil Armstrong
Hi, On Mon, 9 May 2022 14:36:18 +0300, Sergei Antonov wrote: > USB controller for AXG is described as meson-axg-usb-ctrl, > see arch/arm/dts/meson-axg.dtsi > Look for that name instead of meson-gxl-usb-ctrl. > > Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-amlogic (u-boot

[PATCH] net: Add missing PCI dependency for CONFIG_E1000

2022-05-23 Thread Pali Rohár
Signed-off-by: Pali Rohár --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 7fe0e00649cf..84d859c21eb8 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -231,6 +231,7 @@ config DWC_ETH_QOS_TEGRA186 config E10

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

2022-05-23 Thread Heiko Schocher
Hello Jim, On 23.05.22 10:16, Jim Liu wrote: > Hi Heiko > > Thanks for your reply. > I will follow your suggestion to modify it for version 2. > and some explain and question as below: > > 1. while function will do the i2c recovery feature . > the function will break when toggle 27 times or S

RE: [v3 03/11] spi: aspeed: Add ASPEED SPI controller driver

2022-05-23 Thread Chin-Ting Kuo
Hi, > -Original Message- > From: Chin-Ting Kuo > Sent: Monday, May 23, 2022 11:14 AM > Subject: [v3 03/11] spi: aspeed: Add ASPEED SPI controller driver > > Add ASPEED BMC FMC/SPI memory controller driver with spi-mem interface > for AST2500 and AST2600 platform. > > There are three SPI

[PATCH v2 0/3] usb: add isp1760 hcd support

2022-05-23 Thread Rui Miguel Silva
Add support for the usb isp1760 host controller family, which for example is present in MPS3 FPGA board from Arm (isp1763). First we move some helper functions and defines to a more common place to be shared by several urb users. (patch 1/3) Then add the driver itself, is a ported version of the

[PATCH v2 1/3] usb: common: move urb code to common

2022-05-23 Thread Rui Miguel Silva
Move urb code from musb only use to a more common scope, so other drivers in the future can use the handling of urb in usb. Signed-off-by: Rui Miguel Silva --- drivers/usb/common/Makefile | 2 + drivers/usb/common/usb_urb.c | 160 ++ drivers/u

[PATCH v2 3/3] corstone1000: enable isp1763 usb controller and mmc

2022-05-23 Thread Rui Miguel Silva
MPS3 board have a ISP1763 usb controller, enable it to be used for mass storage access for example. Enable the usb command also and for the FVP support for mass storage enable the mmc command. Signed-off-by: Rui Miguel Silva --- configs/corstone1000_defconfig | 3 +++ include/configs/corstone100

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

2022-05-23 Thread Jim Liu
Hi Jaehoon Thanks for your reply. I will follow your suggestion to modify it for version 2. and some explain and question as below: 1. what's mean for s/devic/device could you give more information? 2. vqmmc-supply is always on. On Wed, May 18, 2022 at 5:04 PM Jaehoon Chung wrote: > > Hi Jim

[PATCH 2/2] arm: mvebu: a3720: Add NVMe to BOOT_TARGET_DEVICES list

2022-05-23 Thread Pali Rohár
Enable NVMe booting on boards which have enabled NVMe drivers. Signed-off-by: Pali Rohár --- include/configs/mvebu_armada-37xx.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/mvebu_armada-37xx.h b/include/configs/mvebu_armada-37xx.h index 2ed6125f5c43..d656bbc463b2

[PATCH 1/2] arm: mvebu: a3720: Set BOOT_TARGET_DEVICES list to enabled peripherals

2022-05-23 Thread Pali Rohár
This allows to compile U-Boot without some boot option for some A3720 board which does not have that peripheral. Signed-off-by: Pali Rohár --- include/configs/mvebu_armada-37xx.h | 42 - 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/include/configs/mv

dwc_eth_qos driver for tegra

2022-05-23 Thread Rasmus Villemoes
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 eqos_get_interface_tegra186() returns a hard-coded PH

Re: [PATCH] arm: mvebu: Espressobin: Add NVMe to boot targets

2022-05-23 Thread Pali Rohár
On Monday 16 May 2022 11:30:54 Stefan Roese wrote: > Hi Pali, > > On 03.05.22 11:01, Pali Rohár wrote: > > NVMe support is already enabled, so add it into boot targets. > > > > Signed-off-by: Pali Rohár > > --- > > include/configs/mvebu_armada-37xx.h | 1 + > > 1 file changed, 1 insertion(+)

Re: [PATCH v5 2/3] arm: mvebu: add support for Methode eDPU

2022-05-23 Thread Robert Marko
On Mon, May 23, 2022 at 10:20 AM Pali Rohár wrote: > > On Friday 20 May 2022 13:46:32 Robert Marko wrote: > > Changes in v4: > > * Remove CMD_PCI as PCI is disabled anyway > > > > Changes in v3: > > * Use DTS-es pending merge upstream > > * Re-enable SCSI as the Armada 37xx BOOT_TARGET_DEVICES def

Re: [PATCH v5 2/3] arm: mvebu: add support for Methode eDPU

2022-05-23 Thread Pali Rohár
On Monday 23 May 2022 11:18:23 Robert Marko wrote: > On Mon, May 23, 2022 at 10:20 AM Pali Rohár wrote: > > > > On Friday 20 May 2022 13:46:32 Robert Marko wrote: > > > Changes in v4: > > > * Remove CMD_PCI as PCI is disabled anyway > > > > > > Changes in v3: > > > * Use DTS-es pending merge upstr

Re: [PATCH] ubifs: Fix lockup/crash when reading files

2022-05-23 Thread Pali Rohár
On Thursday 19 May 2022 10:04:31 Pali Rohár wrote: > On Thursday 19 May 2022 07:01:19 Stefan Roese wrote: > > On 17.05.22 22:45, Pali Rohár wrote: > > > Commit b1a14f8a1c2e ("UBIFS: Change ubifsload to not read beyond the > > > requested size") added optimization to do not read more bytes than it i

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

2022-05-23 Thread Pali Rohár
On Tuesday 10 May 2022 08:41:53 Tom Rini wrote: > 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 out

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

2022-05-23 Thread Pali Rohár
On Tuesday 10 May 2022 16:33:56 Pali Rohár wrote: > 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/squ

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

2022-05-23 Thread Jim Liu
Hi Jaehoon about the s/devic/device topic I think I know what the problem with kconfig. I will update it in the next version. On Mon, May 23, 2022 at 5:08 PM Jim Liu wrote: > > Hi Jaehoon > > Thanks for your reply. > I will follow your suggestion to modify it for version 2. > and some explain

[PATCH resend 1/2] imx: imx8mq: default select CLK_IMX8MQ

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan Since the power domain driver default select CONFIG_CLK, so we will meet lots failures without CLK_IMX8MQ, so default select it. Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 fi

[PATCH resend 2/2] imx: imx8mq: select CONFIG_CMD_CLK

2022-05-23 Thread Peng Fan (OSS)
From: Peng Fan select CONFIG_CMD_CLK to enable dump clk in uboot shell Signed-off-by: Peng Fan --- configs/imx8mq_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig index 780f93103c..9f54a280d9 100644 --- a/configs/imx8

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

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

[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

[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

[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 -- ===

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

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

[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.

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

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

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

[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

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

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

[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

[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] 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

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, > > > >

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 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 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: 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 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: [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 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 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 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] 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] 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 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] 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 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

[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

[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 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 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 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 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 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 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 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 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 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 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

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

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

[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

[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 +

  1   2   >