[PATCH] board: stemmy: Detect board variants and patch DTB

2022-02-19 Thread Linus Walleij
This patch scans the cmdline from the Samsung SBL (second stage bootloader) and stores the parameters board_id=N and lcdtype=N in order to augment the DTB for different board and LCD types. We then add a custom command "stemmy_patch" that will inspect the DTB and patch it using the stored LCD

Re: [PATCH v11 2/9] tools: mkeficapsule: add firmware image signing

2022-02-19 Thread Simon Glass
Hi, On Sun, 13 Feb 2022 at 17:54, AKASHI Takahiro wrote: > > Heinrich, > > On Fri, Feb 11, 2022 at 08:16:34PM +0100, Heinrich Schuchardt wrote: > > On 2/9/22 11:10, AKASHI Takahiro wrote: > > > With this enhancement, mkeficapsule will be able to sign a capsule > > > file when it is created. A

[PATCH 7/7] configs: omap various: Remove OMAP_EHCI_PHY from defconfigs

2022-02-19 Thread Adam Ford
With the Kconfig options being deleted, the references to OMAP_EHCI_PHY are useless. Remove them from the various defconfigs. Signed-off-by: Adam Ford --- configs/am3517_evm_defconfig | 2 -- configs/omap35_logic_somlv_defconfig | 2 -- configs/omap3_beagle_defconfig | 2 --

[PATCH 6/7] usb: ehci-omap: Remove OMAP_EHCI_PHYx_RESET_GPIO from Kconfig

2022-02-19 Thread Adam Ford
With the omap-ehci driver now using the phy subsystem to enable and disable reset, the driver no longer needs to know which GPIO's are used, and they can be removed from Kconfig. Signed-off-by: Adam Ford --- drivers/usb/host/Kconfig | 34 -- 1 file changed, 34

[PATCH 5/7] usb: ehci-omap: Use PHY system to manage phy resets

2022-02-19 Thread Adam Ford
There are a few boards that use hard-coded GPIO definitions in their respective defconfig files. If the GPIO's are listed in their device trees, the nop-phy can toggle the GPIO's, so the EHCI driver does not need to know anything about the GPIO's. Add functions for getting the phys and remove the

[PATCH 4/7] usb: ehci-omap: Make Kconfig select PHY if USB_EHCI_OMAP

2022-02-19 Thread Adam Ford
The USB_EHCI_OMAP driver currently has a series of Kconfig options which let users specify a GPIO for the reset pin. Some devices may have only one reset, while others might have more. Since there is a nop phy driver, let's selct enable the PHY system, and imply the nop phy driver. The nop phy

[PATCH 3/7] phy: nop-phy: Fix enabling reset

2022-02-19 Thread Adam Ford
The reset function should place the phy into reset, while the init function should take the phy out of reset. Currently the reset function takes it out of reset, and the init calls the reset. Signed-off-by: Adam Ford --- drivers/phy/nop-phy.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH 1/7] usb: ehci-omap: Drop dead code

2022-02-19 Thread Adam Ford
omap_ehci_hcd_stop appears to be dead code, and omap_ehci_hcd_init is only called by the probe function, so it can be static to that function. Remove both from the header along with some additional checking for DM_USB. Signed-off-by: Adam Ford --- arch/arm/include/asm/ehci-omap.h | 13

[PATCH 2/7] usb: ehci-omap: Move omap_ehci_hcd_init to omap_ehci_probe

2022-02-19 Thread Adam Ford
The OMAP3 hierarchy has the ehci node as a sub-node of the usbhshost. The usbhshost node contains an ohci and an ehci subnode. The configuration of the ehci belongs in the EHCI node and not its parent. Move it to the proper probe. usb start starting USB... Bus ehci@48064800: USB EHCI 1.00

[PATCH 0/7] Migrate omap_ehci to use phy driver

2022-02-19 Thread Adam Ford
With the NOP PHY driver available, it can support toggling the GPIOS to handle coming out of reset. This series cleans up the OMAP EHCI host driver, enables PHY support, and removes the code to toggle the reset GPIO's. This series was tested on an OMAP3530, DM3730, and an AM3517. Users of the

Re: [PATCH v2] imx8m: clock_imx8mq: Add the ecspi clocks

2022-02-19 Thread Stefano Babic
On 15.02.22 21:26, Marek Vasut wrote: On 2/15/22 18:58, Angus Ainslie wrote: On 2022-02-15 08:45, Marek Vasut wrote: On 2/15/22 15:55, Angus Ainslie wrote: On 2022-02-15 00:01, Marek Vasut wrote: On 2/15/22 01:51, Angus Ainslie wrote: On 2022-02-14 16:25, Marek Vasut wrote: On 2/14/22

Re: [PATCH] drivers: serial: Make sure we really return a serial device

2022-02-19 Thread Simon Glass
Hi Mark, On Sat, 19 Feb 2022 at 13:37, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 18 Feb 2022 17:21:13 -0700 > > Hi Simon, > > > Hi Mark, > > > > On Mon, 7 Feb 2022 at 14:20, Mark Kettenis wrote: > > > > > > > From: Simon Glass > > > > Date: Mon, 7 Feb 2022 13:22:22 -0700 > >

Re: [PATCH] phy: phy-uclass: check the parents for phys

2022-02-19 Thread Simon Glass
On Thu, 3 Feb 2022 at 11:08, Angus Ainslie wrote: > > The port/hub leaf nodes don't contain the phy definitions in some dts > files so check the parents. > > Signed-off-by: Angus Ainslie > --- > drivers/phy/phy-uclass.c | 20 ++-- > 1 file changed, 14 insertions(+), 6

Re: [PATCH] core: devres: don't use devres code when CONFIG_DEVRES is not defined

2022-02-19 Thread Simon Glass
On Wed, 2 Feb 2022 at 16:16, Angus Ainslie wrote: > > Put guards around the devres code so that it isn't compiled during the SPL. > > Signed-off-by: Angus Ainslie > --- > drivers/core/devres.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) I think the correct fix here is to change

Re: [u-boot PATCH v2] binman: Add support for TEE BL32

2022-02-19 Thread Simon Glass
On Sat, 19 Feb 2022 at 11:50, Roger Quadros wrote: > > Add an entry for OP-TEE Trusted OS 'BL32' payload. > This is required by platforms using Cortex-A cores with TrustZone > technology. > > Signed-off-by: Roger Quadros > --- > Changelog: > v2: > - use 'tee-os' for entry name instead of 'bl32'

Re: [PATCH] drivers: serial: Make sure we really return a serial device

2022-02-19 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 18 Feb 2022 17:21:13 -0700 Hi Simon, > Hi Mark, > > On Mon, 7 Feb 2022 at 14:20, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Mon, 7 Feb 2022 13:22:22 -0700 > > > > > > Hi Mark, > > > > > > On Sat, 5 Feb 2022 at 16:10, Mark Kettenis wrote: >

Re: [PATCH 01/14] sandbox: net: Remove fake-host-hwaddr

2022-02-19 Thread Ramon Fried
On Sat, Feb 19, 2022 at 2:21 AM Simon Glass wrote: > > On Mon, 7 Feb 2022 at 16:42, Sean Anderson wrote: > > > > 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

[u-boot PATCH v2] binman: Add support for TEE BL32

2022-02-19 Thread Roger Quadros
Add an entry for OP-TEE Trusted OS 'BL32' payload. This is required by platforms using Cortex-A cores with TrustZone technology. Signed-off-by: Roger Quadros --- Changelog: v2: - use 'tee-os' for entry name instead of 'bl32' - use ${TEE} instead of ${BL32} for environment variable - Use next

Re: [u-boot][PATCH] binman: Add support for TEE BL32

2022-02-19 Thread Roger Quadros
Hi Simon, On 19/02/2022 17:24, Simon Glass wrote: > Hi Roger, > > On Sat, 5 Feb 2022 at 05:29, Roger Quadros wrote: >> >> Hi Simon, >> >> On 04/02/2022 19:17, Simon Glass wrote: >>> Hi Roger, >>> >>> On Fri, 4 Feb 2022 at 06:00, Roger Quadros wrote: Add an entry for OP-TEE Trusted OS

Re: [PATCH 2/2] ARM: imx: imx8mn-ddr4-evk: Add ethernet support

2022-02-19 Thread Marek Vasut
On 2/19/22 14:06, Stefano Babic wrote: Hi, [...] I have not pushed this patch because I am puzzled. There is nothing wrong in the patch, and I can apply it, but CI fails randomly. There is a warning during compilation of this board, see:

[PATCH v2] ARM: imx: imx8mn-ddr4-evk: Add ethernet support

2022-02-19 Thread Marek Vasut
Add support for ethernet on the imx8mn-ddr4-evk. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Get rid of the IS_ENABLED macros, the ethernet on this board is always present --- arch/arm/dts/imx8mn-evk.dtsi| 1 +

Re: [PATCH v2 4/5] binman: Convert FIT entry type to a subclass of Section entry type

2022-02-19 Thread Simon Glass
Hi Alper, On Fri, 18 Feb 2022 at 10:34, Alper Nebi Yasak wrote: > > On 18/02/2022 19:50, Jan Kiszka wrote: > > On 15.02.22 18:06, Jan Kiszka wrote: > >> On 15.02.22 17:50, Jan Kiszka wrote: > >>> On 15.02.22 13:27, Alper Nebi Yasak wrote: > The AddMissingProperties() and

Re: [u-boot][PATCH] binman: Add support for TEE BL32

2022-02-19 Thread Simon Glass
Hi Roger, On Sat, 5 Feb 2022 at 05:29, Roger Quadros wrote: > > Hi Simon, > > On 04/02/2022 19:17, Simon Glass wrote: > > Hi Roger, > > > > On Fri, 4 Feb 2022 at 06:00, Roger Quadros wrote: > >> > >> Add an entry for OP-TEE Trusted OS 'BL32' payload. > >> This is required by platforms using

Re: [PATCH 1/2] mmc: fsl_esdhc_imx: Fix fsl_esdhc_wait_dat0

2022-02-19 Thread Stefano Babic
Hi Fabio, On 19.02.22 14:27, Fabio Estevam wrote: Hi Stefano, On Sat, Feb 19, 2022 at 10:08 AM wrote: According to Haibo Chen [1] - the current implementation mmc_wait_dat0, the second mmc_wait_dat0() in mmc_switch_voltage() always return timeout. This causes UHS cards to not properly

Re: [RFC PATCH] efi_loader: fix uefi secure boot with intermediate certs

2022-02-19 Thread Ilias Apalodimas
On Sat, Feb 19, 2022 at 10:47:16AM +0100, Heinrich Schuchardt wrote: > On 2/14/22 10:14, Ilias Apalodimas wrote: > > The general rule of accepting or rejecting an image is > > 1. Is the sha256 of the image in dbx > > 2. Is the image signed with a certificate that's found in db and > > not

Re: [PATCH 1/2] mmc: fsl_esdhc_imx: Fix fsl_esdhc_wait_dat0

2022-02-19 Thread Fabio Estevam
Hi Stefano, On Sat, Feb 19, 2022 at 10:08 AM wrote: > > > According to Haibo Chen [1] - the current implementation mmc_wait_dat0, > > the second mmc_wait_dat0() in mmc_switch_voltage() always return timeout. > > This causes UHS cards to not properly initialize to their highest rate, > > and

[PATCH V2] imx8mm_beacon/imx8mn_beacon: Update build instructions

2022-02-19 Thread sbabic
> With binman generating flash.bin, it's not longer necessary to > specify either the location of ATF nor is it necessary to > specify building flash.bin, so let's update the build instructions > to remove those. While in here, update the revision of ATF and > DDR firmware so both Mini and Nano

[PATCH 3/3] mmc: fsl_esdhc_imx: correct the actual card clock

2022-02-19 Thread sbabic
> From: Haibo Chen > The original code logic can not show the correct card clock, and also > has one risk when the div is 0. Because there is div -=1 before. > So move the operation before div -=1, and also involve ddr_pre_div > to get the correct value. > Signed-off-by: Haibo Chen >

[PATCH] board: gateworks: venice: config file cleanups

2022-02-19 Thread sbabic
> Clean up config file: > - remove unnecessary IMX_FEC_BASE > - remove unnecessary comment > - remove ipaddr/serverip from env > Signed-off-by: Tim Harvey > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 2/2] cmd: fuse: Add a command to read fuses to memory

2022-02-19 Thread sbabic
> With the fuse values in memory we can use some of the other u-boot shell > conditonal operators to do tests. > Signed-off-by: Angus Ainslie Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX

[PATCH 1/2] clk: imx: select [SPL_]CLK_COMPOSITE_CCF for imx8mn

2022-02-19 Thread sbabic
> The clock composite is required when using the clock framework. So > select it automatically. > Signed-off-by: Heiko Thiery Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[PATCH v2] Enable Fastboot(UUU) for O4-iMX6ULL-NANO boards

2022-02-19 Thread sbabic
> Make O4-iMX6ULL-NANO-based board compatible with Yocto layer meta-out4 and > fix device flashing by UUU (aka MFG Tools). > Signed-off-by: Oleh Kravchenko Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v4] board: gateworks: venice: add imx8mn-gw7902 support

2022-02-19 Thread sbabic
> The GW7902 is based on the i.MX 8M Mini / Nano SoC featuring: > - LPDDR4 DRAM > - eMMC FLASH > - Gateworks System Controller > - LTE CAT M1 modem > - USB 2.0 HUB > - M.2 Socket with USB2.0, PCIe, and dual-SIM > - IMX8M FEC > - PCIe based GbE > - RS232/RS485/RS422 serial transceiver > -

[PATCH 1/2] ARM: imx: imx8mn-ddr4-evk: Fix boot from SD card

2022-02-19 Thread sbabic
> Enable missing config options to make the board boot from SD card. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 2/2] configs/*imx8mn*: remove [SPL_]CLK_COMPOSITE_CCF

2022-02-19 Thread sbabic
> This option is selected implicitly when [SPL_]CLK_IMX8MN is selected. > Signed-off-by: Heiko Thiery Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing

[PATCH 1/2] cmd: fuse: add a fuse comparison function

2022-02-19 Thread sbabic
> Compare a hexval to the fuse value and return pass or fail. > Signed-off-by: Angus Ainslie Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director:

[PATCH] freescale: imx8mm_evk: Use IS_ENABLED instead of #ifdef

2022-02-19 Thread sbabic
> Use IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) to make the code > more readable and fix checkpatch.pl warning > Signed-off-by: Tommaso Merciai Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH] imx: spl: Fix typo BMODE_EMI -> BMODE_EIM

2022-02-19 Thread sbabic
> The interface for NOR/OneNAND is called "EIM" not "EMI". Fix this. > Signed-off-by: Harald Seiler > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software

[PATCH 1/2] mmc: fsl_esdhc_imx: Fix fsl_esdhc_wait_dat0

2022-02-19 Thread sbabic
> According to Haibo Chen [1] - the current implementation mmc_wait_dat0, > the second mmc_wait_dat0() in mmc_switch_voltage() always return timeout. > This causes UHS cards to not properly initialize to their highest rate, > and default back for high-speed mode. > When reviewing [1] and comparing

[PATCH 2/3] mmc: fsl_esdhc_imx: remove redundant ARCH_MXC

2022-02-19 Thread sbabic
> From: Haibo Chen > Now original fsl_esdhc.c are split as fsl_esdhc.c and fsl_esdhc_imx.c. > fsl_esdhc_imx.c only cover i.MX SoC. So ARCH_MXC is redundant. > Signed-off-by: Haibo Chen > Reviewed-by: Marek Vasut Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v2 2/4] xea: defconfig: Update defconfig to support mtd partitions r/w by name

2022-02-19 Thread sbabic
> After this change it would be possible to use 'mtd' command to get access > to XEA's SPI-NOR partitions by name (e.g. SPL), not by offsets. > To enable this feature the CONFIG_SPI_FLASH_MTD needs to be defined in the > Kconfig, not in xea.h. > => mtd list > => mtd read spl-boot-data1 ${loadaddr}

[PATCH 2/2] mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps

2022-02-19 Thread sbabic
> The Linux driver automatically can detect and enable UHS, HS200, HS400 > and HS400_ES automatically without extra flags being placed into the > device tree. > Right now, for U-Boot to use UHS, HS200 or HS400, the extra flags are > needed in the device tree. Instead, go through the

[RESEND PATCH v7 1/1] arm: imx8m: add support for Advantech RSB-3720

2022-02-19 Thread sbabic
> From: "Ying-Chun Liu (PaulLiu)" > Add initial support for Advantech RSB-3720 board. > The initial support includes: > - MMC > - eMMC > - I2C > - FEC > - Serial console > Signed-off-by: Darren Huang > Signed-off-by: Kevin12.Chen > Signed-off-by: Phill.Liu > Signed-off-by: Tim Liang >

[PATCH] imx8m: Drop unused function env_get_offset

2022-02-19 Thread sbabic
> This function is used in nxp u-boot tree. > Signed-off-by: Michael Trimarchi > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

Re: [PATCH 2/2] ARM: imx: imx8mn-ddr4-evk: Add ethernet support

2022-02-19 Thread Stefano Babic
Hi Marek, On 14.02.22 00:36, Marek Vasut wrote: Add support for ethernet on the imx8mn-ddr4-evk. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- I have not pushed this patch because I am puzzled. There is nothing wrong in the patch, and I can apply it,

[PATCH v3 1/1] arm: apple: Switch to fully dynamic mem layout

2022-02-19 Thread Janne Grunau
Support for Apple M1 Pro and Max will allow using a single binary for all M1 SoCs. The M1 Pro/Max have a different memory layout. The RAM start address is 0x100__ instead of 0x8__. Replace the hardcoded memory layout with dynamic initialized environment variables in

Re: [RFC PATCH] efi_loader: fix uefi secure boot with intermediate certs

2022-02-19 Thread Heinrich Schuchardt
On 2/14/22 10:14, Ilias Apalodimas wrote: The general rule of accepting or rejecting an image is 1. Is the sha256 of the image in dbx 2. Is the image signed with a certificate that's found in db and not in dbx 3. The image carries a cert which is signed by a cert in db (and not

Re: [PATCH] tools: mkeficapsule: remove duplicated code

2022-02-19 Thread Heinrich Schuchardt
On 2/16/22 02:49, AKASHI Takahiro wrote: That code is mistakenly duplicated due to copy-and-paste error. Just remove it. Fixes: CID 348360 Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- tools/mkeficapsule.c | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH] riscv: Fix build against binutils 2.38

2022-02-19 Thread Leo Liang
Hi Alex, On Thu, Feb 17, 2022 at 11:28:46AM +0100, Alexandre Ghiti wrote: > Hi Leo, > > On Thu, Feb 17, 2022 at 10:25 AM Leo Liang wrote: > > > > Hi Alexandre, > > On Fri, Jan 28, 2022 at 02:47:13PM +0100, Alexandre Ghiti wrote: > > > The following description is copied from the equivalent patch