[PATCH V2 00/14] imx8m: convert to DM_SERIAL

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan V2: Drop patch patch 11 in V1, because it was included in https://patchwork.ozlabs.org/project/uboot/patch/20220503041429.30969-1-peng@oss.nxp.com/ phandle->phanbell Add R-b/T-b/A-b tags for the patchset This patchset is to convert some i.MX8M boards to DM SERIAL Note: t

[PATCH V2 01/14] imx: imx8mp_rsb3720a1: convert to DM_SERIAL

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c | 8 configs/imx8mp_rsb3720a1_4G_defconfig | 1 + configs/imx8m

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

2022-05-05 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 --- board/gateworks/venice/spl.c

[PATCH V2 03/14] imx: imx8mm_mx8menlo: Enable DM_SERIAL

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- board/menlo/mx8menlo/mx8menlo.c | 9 - configs/imx8mm-mx8menlo_defconfig | 1 + include/configs/imx8mm-mx8menlo.h | 3 --- 3 fil

[PATCH V2 04/14] imx: imx8m[m/n]_beacon: Enable SPL_DM_SERIAL

2022-05-05 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 V2 05/14] imx: imx8mm-cl-iot-gate: Enable DM_SERIAL

2022-05-05 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 V2 06/14] imx: imx8mm_icore: Enable SPL_DM_SERIAL

2022-05-05 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 V2 07/14] imx: imx8m[m/p]_phycore: Enable DM_SERIAL

2022-05-05 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 V2 08/14] imx: imx8mn_var_som: enable DM_SERIAL

2022-05-05 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 V2 09/14] imx: imx8mm_edm_sbc: Enable SPL_DM_SERIAL

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_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 Reviewed-by: Fabio Estevam --- board/data_modul/imx8mm_edm_sbc/spl.c | 12 ++---

[PATCH V2 11/14] imx: dts: move common changes to imx8mq-u-boot.dtsi

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan Move some common changes to imx8mq-u-boot.dtsi, so others could reuse it Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- arch/arm/dts/imx8mq-evk-u-boot.dtsi | 24 arch/arm/dts/imx8mq-u-boot.dtsi | 24 2 files changed,

[PATCH V2 10/14] imx: kontron-sl-mx8mm: enable DM_SERIAL

2022-05-05 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 V2 12/14] imx: imx8mq-cm: enable CONFIG_DM_SERIAL

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan Marked related nodes as u-boot,dm-spl for serial driver model Enable CONFIG_DM_SERIAL Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- arch/arm/dts/imx8mq-cm-u-boot.dtsi | 8 configs/imx8mq_cm_defconfig| 1 + 2 files changed, 9 insertions(+) diff --git a

[PATCH V2 13/14] imx: imx8mq-pico: enable CONFIG_DM_SERIAL

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan Marked related nodes as u-boot,dm-spl for serial driver model Enable CONFIG_DM_SERIAL Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- arch/arm/dts/imx8mq-pico-pi-u-boot.dtsi | 9 + configs/pico-imx8mq_defconfig | 1 + 2 files changed, 10 insertions(+)

[PATCH V2 14/14] imx: imx8mq-phanbell: enable CONFIG_DM_SERIAL

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan Marked related nodes as u-boot,dm-spl for serial driver model Enable CONFIG_DM_SERIAL Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- arch/arm/dts/imx8mq-phanbell-u-boot.dtsi | 8 configs/imx8mq_phanbell_defconfig| 1 + 2 files changed, 9 insertions(+)

[PATCH V2 0/4] imx: imx8m: simplify code with a common header file

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan V2: write a cover-letter Typo fix Add T-b tags Peng Fan (4): configs: imx8m: use common imx8m.h for i.MX8MM configs: imx8m: use common imx8m.h for i.MX8MN configs: imx8m: use common imx8m.h for i.MX8MP configs: imx8m: use common imx8m.h for i.MX8MQ include/configs/imx

[PATCH V2 1/4] configs: imx8m: use common imx8m.h for i.MX8MM

2022-05-05 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 V2 2/4] configs: imx8m: use common imx8m.h for i.MX8MN

2022-05-05 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 V2 3/4] configs: imx8m: use common imx8m.h for i.MX8MP

2022-05-05 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 V2 4/4] configs: imx8m: use common imx8m.h for i.MX8MQ

2022-05-05 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] arm64: zynqmp: zynqmp-zcu102-revA: Fix DP PLL configuration

2022-05-05 Thread Michal Simek
From: Neal Frager This patch fixes the DP audio and video PLL configurations for the zynqmp-zcu102-revA 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 0xFD1

[PATCH] arm64: zynqmp: zynqmp-zcu106-revA: Fix DP PLL configuration

2022-05-05 Thread Michal Simek
From: Neal Frager This patch fixes the DP audio and video PLL configurations for the zynqmp-zcu106-revA 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 0xFD1

[PATCH] fs/squashfs: use do_div function for math

2022-05-05 Thread Sean Nyekjaer
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 reference to `__udivmoddi4' Signed-off-by: Sean Nyekjaer --- fs/squashfs/sqfs.

Re: [PATCH] watchdog: Add MAX6370 watchdog timer driver

2022-05-05 Thread Pali Rohár
On Tuesday 03 May 2022 07:16:34 Stefan Roese wrote: > On 02.05.22 18:41, Pali Rohár wrote: > > MAX6370 watchdog is available e.g. on Freescale P1/P2 RDB-PC boards. > > > > Signed-off-by: Pali Rohár > > --- > > drivers/watchdog/Kconfig | 7 ++ > > drivers/watchdog/Makefile | 1 +

Re: [PATCH 06/17] imx: imx8mm-data-modul-edm-sbc: enable pinctrl_wdog in SPL

2022-05-05 Thread Peng Fan (OSS)
On 2022/5/3 21:51, Marek Vasut wrote: On 5/3/22 14:24, Peng Fan (OSS) wrote: From: Peng Fan Add pinctrl_wdog. Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, set_wdog_reset function could be handled by imx_watchdog.c driver. There is already pinctrl_watchdog_gpio . Any changes

[PATCH V2 03/16] imx: imx8mp_evk: enable pinctrl_wdog in SPL

2022-05-05 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/imx8mp-evk-u-boot.dtsi |

[PATCH V2 00/16] imx: imx8m: clean up wdog code

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan V2: Drop patch 6 in V1 Update commit log Add R-b/T-b tag Enable pinctrl wdog to clean up board level code imx_watchdog.c already has function of set_wdog_reset, so after watchdog driver enabled, no need that. Note: I only have NXP EVK board, so please help test if possible. B

[PATCH V2 01/16] imx: imx8mn_evk: enable pinctrl_wdog in SPL

2022-05-05 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-ddr4-evk-u-boot.dtsi |

[PATCH V2 02/16] imx: imx8mm_evk: enable pinctrl_wdog in SPL

2022-05-05 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-evk-u-boot.dtsi | 4 +

[PATCH V2 04/16] imx: imx8mm_beacon: enable pinctrl_wdog in SPL

2022-05-05 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 V2 06/16] imx: engicam-imx8mm: drop unused macro

2022-05-05 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 V2 05/16] imx: imx8mm-cl-iot-gate: enable pinctrl_wdog in SPL

2022-05-05 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 V2 07/16] imx: imx8mm-mx8menlo: drop unneeded watchdog settings

2022-05-05 Thread Peng Fan (OSS)
From: Peng Fan pinctrl_wdog as u-boot,dm-spl already marked in imx8mm-verdin-u-boot.dtsi, 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 --- board/menlo/mx8menlo/mx8me

[PATCH V2 08/16] imx: imx8mm/n/p-venice: enable pinctrl_wdog in SPL

2022-05-05 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 V2 10/16] imx: imx8mn_smm_s2: clean up board watchdog code

2022-05-05 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 V2 09/16] imx: imx8mn-beacon: enable pinctrl_wdog in SPL

2022-05-05 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 V2 11/16] imx: imx8mn_var_som: clean up board watchdog code

2022-05-05 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 V2 12/16] imx: imx8mp_rsb7320a1: enable wdog driver model in SPL

2022-05-05 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 V2 13/16] imx: imx8mn-kontron-n801x: enable pinctrl_wdog in SPL

2022-05-05 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 V2 14/16] imx: phycore_imx8mm/p: clean up board watchdog code

2022-05-05 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 V2 15/16] imx: verdin-imx8mm/p: cleanup board watchdog code

2022-05-05 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 --- board/toradex/verdin-imx8mp/verdin

[PATCH V2 16/16] imx: toradex/verdin-imx8mm/p: cleanup board watchdog code

2022-05-05 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 --- board/toradex/verdin-imx8mm/spl.c

Re: [PATCH 5/7] sunxi: F1C100s: update DT files from Linux

2022-05-05 Thread Jesse Taube
On 5/3/22 17:20, Andre Przywara wrote: The initial U-Boot F1C100s port was based on the mainline kernel DT files, which were quite basic and were missing the essential MMC and SPI peripherals. While we could work around this in the SPL by hardcoding the required information, this left U-Boot p

Re: [PATCH] pci: Do not enable PCIe ASMedia ASM2824 workaround by default

2022-05-05 Thread Maciej W. Rozycki
On Sun, 1 May 2022, Pali Rohár wrote: > > By now I have become somewhat tired arguing and explaining matters over > > and over again as things have been moving as slow as molasses in this > > area, but one point I want to raise here is while it is indeed the ASM2824 > > device that seems probl

Re: [PATCH v5 06/17] efi_loader: bootmgr: add booting from removable media

2022-05-05 Thread Mark Kettenis
> Date: Fri, 29 Apr 2022 19:03:22 +0200 > From: Heinrich Schuchardt > > On 4/28/22 10:09, Masahisa Kojima wrote: > > From: AKASHI Takahiro > > > > Under the current implementation, booting from removable media using > > a architecture-specific default image name, say BOOTAA64.EFI, is > > support

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

2022-05-05 Thread Patrick Delaunay
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_defconfig | 1 + configs/stm32mp15_defconfig | 1 +

Re: [PATCH v5 06/17] efi_loader: bootmgr: add booting from removable media

2022-05-05 Thread Heinrich Schuchardt
On 5/5/22 14:05, Mark Kettenis wrote: Date: Fri, 29 Apr 2022 19:03:22 +0200 From: Heinrich Schuchardt On 4/28/22 10:09, Masahisa Kojima wrote: From: AKASHI Takahiro Under the current implementation, booting from removable media using a architecture-specific default image name, say BOOTAA64.E

Re: [PATCH V2 07/16] imx: imx8mm-mx8menlo: drop unneeded watchdog settings

2022-05-05 Thread Marek Vasut
On 5/5/22 13:06, Peng Fan (OSS) wrote: From: Peng Fan pinctrl_wdog as u-boot,dm-spl already marked in imx8mm-verdin-u-boot.dtsi, 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:

Re: [PATCH v5 06/17] efi_loader: bootmgr: add booting from removable media

2022-05-05 Thread Heinrich Schuchardt
On 5/5/22 14:20, Heinrich Schuchardt wrote: On 5/5/22 14:05, Mark Kettenis wrote: Date: Fri, 29 Apr 2022 19:03:22 +0200 From: Heinrich Schuchardt On 4/28/22 10:09, Masahisa Kojima wrote: From: AKASHI Takahiro Under the current implementation, booting from removable media using a architectur

Re: [PATCH v5 06/17] efi_loader: bootmgr: add booting from removable media

2022-05-05 Thread Mark Kettenis
> Date: Thu, 5 May 2022 14:05:04 +0200 (CEST) > From: Mark Kettenis > > > Date: Fri, 29 Apr 2022 19:03:22 +0200 > > From: Heinrich Schuchardt > > > > On 4/28/22 10:09, Masahisa Kojima wrote: > > > From: AKASHI Takahiro > > > > > > Under the current implementation, booting from removable media

Re: [PATCH 1/4] spl: Rename Kconfig SPL_LEGACY_IMAGE_SUPPORT to SPL_LEGACY_IMAGE_FORMAT

2022-05-05 Thread Tom Rini
On Wed, May 04, 2022 at 03:52:25PM -0500, Andrew Davis wrote: > This matches what this support is called in the non-SPL case. The postfix > _SUPPORT is redundant as enabling Kconfig options implies support. > With this we can use CONFIG_IS_ENABLED() as needed. > > Signed-off-by: Andrew Davis Re

Re: [PATCH 2/4] spl: Force disable non-FIT loading for TI secure devices

2022-05-05 Thread Tom Rini
On Wed, May 04, 2022 at 03:52:26PM -0500, Andrew Davis wrote: > Booting of non-FIT images bypass our chain-of-trust boot flow, > these options should not be allowed when high security is set. > > Signed-off-by: Andrew Davis Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signat

Re: [PATCH 3/4] boot: Kconfig: Disable non-FIT loading for TI secure devices

2022-05-05 Thread Tom Rini
On Wed, May 04, 2022 at 03:52:27PM -0500, Andrew Davis wrote: > Non-FIT image loading support should be disabled for TI secure > devices as the image handlers for those image types do not follow > our secure boot checks. > > Signed-off-by: Andrew Davis Reviewed-by: Tom Rini -- Tom signatur

Re: [PATCH 4/4] boot: Kconfig: Enable FIT processing by default on TI secure devices

2022-05-05 Thread Tom Rini
On Wed, May 04, 2022 at 03:52:28PM -0500, Andrew Davis wrote: > TI secure devices chain-of-trust depends on FIT image processing, > enable it by default on these devices. This also reduces the delta > between the secure and non-secure defconfig files. > > Signed-off-by: Andrew Davis Reviewed-by

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

2022-05-05 Thread Tom Rini
On Thu, May 05, 2022 at 11:26:37AM +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

[PATCH 1/2] usb: host: ehci-generic: Make usage of clock/reset bulk() API

2022-05-05 Thread Patrice Chotard
Make usage of clock and reset bulk API in order to simplify the code Signed-off-by: Patrice Chotard --- drivers/usb/host/ehci-generic.c | 97 ++--- 1 file changed, 29 insertions(+), 68 deletions(-) diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci

[PATCH 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag

2022-05-05 Thread Patrice Chotard
Currently, DM_REGULATOR flag is no more needed to protect no DM core, remove it. Signed-off-by: Patrice Chotard --- drivers/usb/host/ehci-generic.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 5856e898

Re: [PATCH v5 06/17] efi_loader: bootmgr: add booting from removable media

2022-05-05 Thread Mark Kettenis
> Date: Thu, 5 May 2022 14:35:36 +0200 > From: Heinrich Schuchardt > > On 5/5/22 14:20, Heinrich Schuchardt wrote: > > On 5/5/22 14:05, Mark Kettenis wrote: > >>> Date: Fri, 29 Apr 2022 19:03:22 +0200 > >>> From: Heinrich Schuchardt > >>> > >>> On 4/28/22 10:09, Masahisa Kojima wrote: > Fro

Re: [PATCH 1/2] usb: host: ehci-generic: Make usage of clock/reset bulk() API

2022-05-05 Thread Marek Vasut
On 5/5/22 15:17, Patrice Chotard wrote: [...] @@ -81,68 +79,31 @@ static int ehci_usb_probe(struct udevice *dev) struct generic_ehci *priv = dev_get_priv(dev); struct ehci_hccr *hccr; struct ehci_hcor *hcor; - int i, err, ret, clock_nb, reset_nb; + int err, r

Re: [PATCH 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag

2022-05-05 Thread Marek Vasut
On 5/5/22 15:17, Patrice Chotard wrote: Currently, DM_REGULATOR flag is no more needed to protect no DM core, remove it. DM_REGULATOR flag is actually Kconfig symbol. Why is it no longer needed ? (answer should be in the commit message)

[PATCH] Makefile: Avoid non-portable GNU sed extension

2022-05-05 Thread Mark Kettenis
Use [:space:] instead of \s and \S in regular expression that determines the sandbox target architecture. Fixes the build failure on OpenBSD introduced with commit 4e65ca00f3a3 ("efi_loader: bootmgr: add booting from removable media"). Fixes: f7691a6d73 ("sandbox: allow cross-compiling sandbox")

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

2022-05-05 Thread Patrice CHOTARD
Hi Marek 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 the 1V8 IO supply, or > outright 1V8 in case of

Re: [PATCH 1/2] usb: host: ehci-generic: Make usage of clock/reset bulk() API

2022-05-05 Thread Patrice CHOTARD
Hi Marek On 5/5/22 15:44, Marek Vasut wrote: > On 5/5/22 15:17, Patrice Chotard wrote: > > [...] > >> @@ -81,68 +79,31 @@ static int ehci_usb_probe(struct udevice *dev) >>   struct generic_ehci *priv = dev_get_priv(dev); >>   struct ehci_hccr *hccr; >>   struct ehci_hcor *hcor; >> - 

Re: [PATCH v2 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Sean Anderson
Hi Tom, On 5/4/22 8:06 PM, Tom Rini wrote: > On Fri, Apr 22, 2022 at 02:27:41PM -0400, Sean Anderson wrote: > >> This converts the fat loader to use spl_load. >> >> Signed-off-by: Sean Anderson >> Reviewed-by: Stefan Roese > > On am335x_evm_defconfig, and booting from a FAT SD card I see: > T

Re: [PATCH] Makefile: Avoid non-portable GNU sed extension

2022-05-05 Thread Heinrich Schuchardt
On 5/5/22 16:42, Mark Kettenis wrote: Use [:space:] instead of \s and \S in regular expression that determines the sandbox target architecture. Fixes the build failure on OpenBSD introduced with commit 4e65ca00f3a3 ("efi_loader: bootmgr: add booting from removable media"). Fixes: f7691a6d73 ("s

Re: [PATCH 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag

2022-05-05 Thread Patrice CHOTARD
HI Marek On 5/5/22 15:45, Marek Vasut wrote: > On 5/5/22 15:17, Patrice Chotard wrote: >> Currently, DM_REGULATOR flag is no more needed to protect no DM core, >> remove it. > > DM_REGULATOR flag is actually Kconfig symbol. > > Why is it no longer needed ? (answer should be in the commit message

Re: [PATCH v3 08/13] misc: Add support for nvmem cells

2022-05-05 Thread Sean Anderson
Hi Simon, On 5/3/22 4:50 AM, Simon Glass wrote: > Hi Sean, > > On Fri, 29 Apr 2022 at 13:40, Sean Anderson wrote: >> >> Hi Simon, >> >> On 4/25/22 11:24 AM, Sean Anderson wrote: >> > >> > >> > On 4/25/22 1:48 AM, Simon Glass wrote: >> >> Hi Sean, >> >> >> >> On Mon, 18 Apr 2022 at 13:37, Sean An

Re: [PATCH 1/5] phy: adin: remove broken support for adi,phy-mode-override

2022-05-05 Thread Josua Mayer
\o/ Am 04.05.22 um 15:46 schrieb Nate Drude: Hi Josua, On Wed, 2022-05-04 at 11:51 +0300, Josua Mayer wrote: Hi Nate, Am 02.05.22 um 16:25 schrieb Nate Drude: Hi Josua, On Sun, 2022-05-01 at 15:41 +0300, Josua Mayer wrote: The adin_get_phy_mode_override function does not compile, because i

[PATCH 0/3] Clarify standalone application support

2022-05-05 Thread Paul Barker
While looking into the support for u-boot standalone applications I noticed that there was some mis-alignment between the license exception and the files which needed to be included to get a functioning application. I also noticed that the set of SPI access functions defined in the jump table was m

[PATCH 2/3] examples: hello_world: Drop inclusion of common header

2022-05-05 Thread Paul Barker
The "common.h" header is not covered by the licensing exception for standalone applications. Let's drop inclusion of this header from the hello_world example to prove that a standalone app can be built without it. Signed-off-by: Paul Barker --- examples/standalone/hello_world.c | 1 - 1 file cha

[PATCH 1/3] Licenses: Clarify exceptions for standalone apps

2022-05-05 Thread Paul Barker
On 2010-01-27, an email [1] was sent to the mailing list by Wolfgang Denk which clarified the intended licensing exceptions for standalone applications. As the "export.h" header and the "stubs.c" source files are required to implement a standalone application, the intention was that these files be

[PATCH 3/3] exports: Fix export of SPI access functions

2022-05-05 Thread Paul Barker
* With CONFIG_DM_SPI defined, spi_get_bus_and_cs needs to be used instead of spi_setup_slave to configure a SPI bus. As spi_setup_slave is already present in the export list it is reasonable to also export spi_get_bus_and_cs. * For the functions listed in the jump table to be callable they must al

Re: [PATCH v2 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Tom Rini
On Thu, May 05, 2022 at 10:51:39AM -0400, Sean Anderson wrote: > Hi Tom, > > On 5/4/22 8:06 PM, Tom Rini wrote: > > On Fri, Apr 22, 2022 at 02:27:41PM -0400, Sean Anderson wrote: > > > >> This converts the fat loader to use spl_load. > >> > >> Signed-off-by: Sean Anderson > >> Reviewed-by: Stef

Re: [PATCH 4/7] sunxi: use boot source for determining environment location

2022-05-05 Thread Chris Morgan
Will do. Sorry, I stepped away from things for a while but I will test it now that I am back. On Wed, Apr 20, 2022 at 6:34 PM Andre Przywara wrote: > > On Fri, 15 Apr 2022 12:28:22 -0500 > Chris Morgan wrote: > > Hi Chris, > > > On Tue, Jan 11, 2022 at 12:46:04PM +, Andre Przywara wrote: > >

Re: [PATCH] Makefile: Avoid non-portable GNU sed extension

2022-05-05 Thread Mark Kettenis
> Date: Thu, 5 May 2022 16:55:24 +0200 > From: Heinrich Schuchardt > > On 5/5/22 16:42, Mark Kettenis wrote: > > Use [:space:] instead of \s and \S in regular expression that > > determines the sandbox target architecture. Fixes the build > > failure on OpenBSD introduced with commit 4e65ca00f3a

Re: [PATCH 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag

2022-05-05 Thread Marek Vasut
On 5/5/22 16:58, Patrice CHOTARD wrote: HI Marek On 5/5/22 15:45, Marek Vasut wrote: On 5/5/22 15:17, Patrice Chotard wrote: Currently, DM_REGULATOR flag is no more needed to protect no DM core, remove it. DM_REGULATOR flag is actually Kconfig symbol. Why is it no longer needed ? (answer sh

Re: [PATCH] Makefile: Avoid non-portable GNU sed extension

2022-05-05 Thread Heinrich Schuchardt
Am 5. Mai 2022 18:58:48 MESZ schrieb Mark Kettenis : >> Date: Thu, 5 May 2022 16:55:24 +0200 >> From: Heinrich Schuchardt >> >> On 5/5/22 16:42, Mark Kettenis wrote: >> > Use [:space:] instead of \s and \S in regular expression that >> > determines the sandbox target architecture. Fixes the b

[PATCH v4 00/16] Add support for NVMEM API

2022-05-05 Thread Sean Anderson
This adds support for the nvmem-cells properties cropping up in manyb device trees. This is an easy way to load configuration, version information, or calibration data from a non-volatile memory source. For more information, refer to patch 6 ("misc: Add support for nvmem cells"). For the moment I

[PATCH v4 01/16] sandbox: net: Add aliases for ethernet devices

2022-05-05 Thread Sean Anderson
Commit f3dd213e15 ("net: introduce helpers to get PHY ofnode from MAC") changed the ethernet sequence assignment from uclass 36: ethernet 0 * eth@10002000 @ 05813460, seq 0 1 * eth@10003000 @ 05813550, seq 5 2 * sbe5 @ 05813640, seq 3 3 * eth@10004000 @ 05813730, seq 6 4 * dsa-test-eth @

[PATCH v4 02/16] sandbox: net: Add mac address for eth8 to environment

2022-05-05 Thread Sean Anderson
The phy_eth0 interface introduced in commit f3dd213e15 ("net: introduce helpers to get PHY ofnode from MAC") uses a globally-administered address. Switch to using a locally-administered address, and add it to the sandbox environment, like the others. Signed-off-by: Sean Anderson --- Changes in v

[PATCH v4 03/16] test: eth: Add test for ethernet addresses

2022-05-05 Thread Sean Anderson
This adds a test to make sure that all the ethernet interfaces have their addresses read properly. At the moment everything is read from the environment, but the next few commits will add additional sources. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v3) Change

[PATCH v4 04/16] sandbox: net: Remove fake-host-hwaddr

2022-05-05 Thread Sean Anderson
Instead of reading a pseudo-rom mac address from the device tree, just use whatever we get from write_hwaddr. This has the effect of using the mac address from the environment (or from the device tree, if it is specified). Signed-off-by: Sean Anderson Reviewed-by: Simon Glass Acked-by: Ramon Fri

[PATCH v4 05/16] sandbox: Remove eth2addr from environment

2022-05-05 Thread Sean Anderson
DSA interfaces use the same mac address for each interface, unless instructed otherwise. Just set eth4addr and let eth2addr and eth7addr be set automatically. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.env | 1 - 1 file changed, 1 del

[PATCH v4 06/16] sandbox: Move some mac addresses to device tree

2022-05-05 Thread Sean Anderson
This prevents some conflicts when running sandbox with -D, since the "rom" mac address will be random and won't match the environment. We still need to keep addresses for eth1 and eth6 in the environment, because dm_test_eth_rotate expects to be able to disable them by removing their envaddr variab

[PATCH v4 07/16] net: dsa: Fix segmentation fault if master fails to probe

2022-05-05 Thread Sean Anderson
If the DSA master fails to probe for whatever reason, then DSA devices will continue on as if nothing is wrong. This can cause incorrect behavior. In particular, on sandbox, dsa_sandbox_probe attempts to access the master's private data. This is only safe to do if the master has been probed first.

[PATCH v4 08/16] misc: i2c_eeprom: Make i2c_eeprom_write use a const buf

2022-05-05 Thread Sean Anderson
i2c_eeprom_ops->write uses a const buf, so use one for the wrapper function as well. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/misc/i2c_eeprom.c | 3 ++- include/i2c_eeprom.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --g

[PATCH v4 09/16] misc: i2c_eeprom: Add fallbacks

2022-05-05 Thread Sean Anderson
Add some fallback functions for when i2c_eeprom is disabled. This allows code to reference i2c_eeprom_* functions without needing to check whether support has been compiled in. Signed-off-by: Sean Anderson --- Changes in v4: - New include/i2c_eeprom.h | 24 1 file chan

[PATCH v4 10/16] misc: Add support for nvmem cells

2022-05-05 Thread Sean Anderson
This adds support for "nvmem cells" as seen in Linux. The nvmem device class in Linux is used for various assorted ROMs and EEPROMs. In this sense, it is similar to UCLASS_MISC, but also includes UCLASS_I2C_EEPROM, UCLASS_RTC, and UCLASS_MTD. New drivers corresponding to a Linux-style nvmem device

[PATCH v4 11/16] sandbox: Enable NVMEM

2022-05-05 Thread Sean Anderson
This enables NVMEM for all sandbox defconfigs, enabling it to be used in unit tests in the next few commits. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- Changes in v4: - Enable CONFIG_NVMEM for sandbox_spl_defconfig configs/sandbox64_defconfig| 1 + configs/sandbox_defco

[PATCH v4 12/16] net: Add support for reading mac addresses from nvmem cells

2022-05-05 Thread Sean Anderson
This adds support for reading mac addresses from the "mac-address" nvmem cell. If there is no (local-)mac-address property, then we will try reading from an nvmem cell. For some existing examples of this property, refer to imx8mn.dtsi and imx8mp.dtsi. Unfortunately, fuse drivers have not yet been

[PATCH v4 13/16] test: Load mac address with i2c eeprom

2022-05-05 Thread Sean Anderson
This uses an i2c eeprom to load a mac address using the nvmem interface. Enable I2C_EEPROM for sandbox SPL since it is the only sandbox config which doesn't enable it eeprom. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- Changes in v4: - Enable CONFIG_I2C_EEPROM for sandbox_spl_defc

[PATCH v4 14/16] test: Load mac address using RTC

2022-05-05 Thread Sean Anderson
This uses the nvmem API to load a mac address from an RTC. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 9 - drivers/rtc/i2c_rtc_emul.c | 10 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH v4 15/16] test: Load mac address using misc device

2022-05-05 Thread Sean Anderson
This loads a mac address using a misc device using the nvmem interface. Signed-off-by: Sean Anderson --- (no changes since v1) arch/sandbox/dts/test.dts | 9 - drivers/misc/misc_sandbox.c | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/dts/test.dt

[PATCH v4 16/16] [RFC] misc: nvmem: Convert to using udevices

2022-05-05 Thread Sean Anderson
Instead of calling uclass methods directly, instead create some nvmem devices solely for the purpose of holding nvmem ops. This is primarily to illustrate the size difference between these approaches. This patch should not be applied. Signed-off-by: Sean Anderson Patch-prefix: RFC --- Changes i

Re: [PATCH] watchdog: Add MAX6370 watchdog timer driver

2022-05-05 Thread Pali Rohár
On Thursday 05 May 2022 11:36:09 Pali Rohár wrote: > On Tuesday 03 May 2022 07:16:34 Stefan Roese wrote: > > On 02.05.22 18:41, Pali Rohár wrote: > > > MAX6370 watchdog is available e.g. on Freescale P1/P2 RDB-PC boards. > > > > > > Signed-off-by: Pali Rohár > > > --- > > > drivers/watchdog/Kco

Re: i.MX8MP usb status

2022-05-05 Thread Marek Vasut
On 5/5/22 03:54, Peng Fan (OSS) wrote: On 2022/5/4 20:53, Marek Vasut wrote: On 5/4/22 14:26, Peng Fan wrote: Hi Marek, Hi, Since you did some work on i.MX8MP USB, may I know the status? Does host/device mode both supported in upstream? I only have HOST option available, so for me this

Re: i.MX8MP usb status

2022-05-05 Thread Tim Harvey
On Wed, May 4, 2022 at 6:54 PM Peng Fan (OSS) wrote: > > > > On 2022/5/4 20:53, Marek Vasut wrote: > > On 5/4/22 14:26, Peng Fan wrote: > >> Hi Marek, > > > > Hi, > > > >> Since you did some work on i.MX8MP USB, may I know the status? > >> Does host/device mode both supported in upstream? > > > >

[PATCH] ARM: imx: imx8m: Adjust thermal trip points for Industrial parts

2022-05-05 Thread Adam Ford
If the thermal sensor is enabled in U-Boot, adjust the cpu-thermal trip points for industrial rated parts. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 8e23e6da32..619e04a602 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/ma

Re: [PATCH v3 1/4] arm: nuvoton: Add support for Nuvoton NPCM750 BMC

2022-05-05 Thread Tom Rini
On Tue, Apr 19, 2022 at 01:32:19PM +0800, Jim Liu wrote: > Add basic support for the Nuvoton NPCM750 EVB (Poleg). > > Signed-off-by: Jim Liu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 2/4] clk: nuvoton: Add support for NPCM750

2022-05-05 Thread Tom Rini
On Tue, Apr 19, 2022 at 01:32:20PM +0800, Jim Liu wrote: > Add clock controller driver for NPCM750 > > Signed-off-by: Jim Liu > Signed-off-by: Stanley Chu > Reviewed-by: Sean Anderson Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

  1   2   >