[PATCH 1/1] efi_selftest: merge FDT and RISC-V tests

2022-02-05 Thread Heinrich Schuchardt
The test for the RISCV_EFI_BOOT_PROTOCOL retrieves the boot hart id via the protocol and compares it to the value of the boot hart id in the device tree. The boot hart id is already retrieved from the device tree in the FDT test. Merge the two tests to avoid code duplication. Signed-off-by: Heinr

Re: [PATCH v2 1/3] efi: Add debugging to efi_set_bootdev()

2022-02-05 Thread Heinrich Schuchardt
On 1/29/22 22:58, Simon Glass wrote: The operation of this function can be confusing. Add some debugging so we can see what it is doing and when it is called. Also drop the preprocessor usage. Signed-off-by: Simon Glass Reviewed-by: heinrich Schuchardt

Re: [PATCH v2 2/3] efi: Use device_get_uclass_id() where appropriate

2022-02-05 Thread Heinrich Schuchardt
On 1/29/22 22:58, Simon Glass wrote: Use this function rather than following the pointers, since it is there for this purpose. Add the uclass name to the debug call at the end of dp_fill() since it is quite useful. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt

Re: [PATCH v2 3/3] efi: Drop unnecessary calls to blk_find_device()

2022-02-05 Thread Heinrich Schuchardt
On 1/29/22 22:58, Simon Glass wrote: When we have the block descriptor we can simply access the device. Drop the unnecessary function call. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt

Re: [PATCH 08/19] dm: add event notification

2022-02-05 Thread Heinrich Schuchardt
On 2/2/22 02:08, AKASHI Takahiro wrote: From: Simon Glass This is a draft implementation of event notification mechanism from Simon. Under this scheme, any U-Boot subsystem can register some kind of callback function to a particular event (more event types will be added later) and that function

Re: [PATCH 17/19] efi_loader: disk: use udevice instead of blk_desc

2022-02-05 Thread Heinrich Schuchardt
On 2/2/22 02:08, AKASHI Takahiro wrote: In most of all cases, we can avoid using blk_desc which is expected to be private to udevice(UCLASS_BLK), that is, the data should not be manupulated outside the device driver unless really needed. Now efi_disk's internally use dev_read/write() interfaces.

Re: [PATCH v10 4/9] doc: update UEFI document for usage of mkeficapsule

2022-02-05 Thread Heinrich Schuchardt
On 2/1/22 02:27, AKASHI Takahiro wrote: Now we can use mkeficapsule command instead of EDK-II's script to create a signed capsule file. So update the instruction for capsule authentication. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Acked-by: Ilias Apalodimas This patch breaks

Re: [PATCH 09/19] dm: add tag support

2022-02-05 Thread Heinrich Schuchardt
On 2/2/22 02:08, AKASHI Takahiro wrote: With dm-tag feature, any U-Boot subsystem is allowed to associate arbitrary number of data with a particular udevice. This can been see as expanding "struct udevice" without modifying the definition. As a first user, UEFI subsystem makes use of tags to ass

Re: [PATCH 00/19] efi_loader: more tightly integrate UEFI disks to driver model

2022-02-05 Thread Heinrich Schuchardt
On 2/2/22 02:08, AKASHI Takahiro wrote: Background: === The purpose of this patch is to reignite the discussion about how UEFI subystem would best be integrated into U-Boot driver model. In the past, I poposed a couple of patch series, the latest one[1], while Heinrich revealed his idea[2

Re: [PATCH v2 3/4] arm: xea: config: Provide special defconfig for a single binary u-boot

2022-02-05 Thread Stefano Babic
Hi Lukasz, I added myself the file to xea/MAINTAINERS. Regards, Stefano On 27.12.21 11:46, Lukasz Majewski wrote: The new configs/imx28_xea_sb_defconfig is introduced to facilitate building the single binary u-boot.sb fox XEA board. The biggest distinction from "normal" XEA imx28_xea_sb_defco

[PATCH v2] mkimage: Improve documentation of algo-name parameter

2022-02-05 Thread Jan Kiszka
From: Jan Kiszka Addresses the feedback provided on 5902a397d029 which raced with the merge. Signed-off-by: Jan Kiszka Reviewed-by: Simon Glass --- Change in v2: - rewrap also_name comment doc/mkimage.1 | 2 +- tools/imagetool.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-

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

2022-02-05 Thread Roger Quadros
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 Cortex-A cores with TrustZone >> technology. >> >> Signed-off-by: Roger Quadros >>

Re: [PATCH v2 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-02-05 Thread Tom Rini
On Thu, Feb 03, 2022 at 06:32:50PM +0100, Heinrich Schuchardt wrote: > On 2/2/22 05:15, AKASHI Takahiro wrote: > > On Wed, Feb 02, 2022 at 10:53:05AM +0900, Masami Hiramatsu wrote: > > > Hi Takahiro, > > > > > > 2022年2月1日(火) 20:38 AKASHI Takahiro : > > > > > > > > > > > On Tue, Feb 01, 2022 at 0

[PATCH v2] adc: rockchip-saradc: add support for getting reference voltage value

2022-02-05 Thread Peter Cai
Mirroring commit 97ab802aa36f ("adc: meson-saradc: add support for getting reference voltage value") for meson-saradc, this adds support for getting the "vref-supply" regulator and register it as the ADC's reference voltage regulator, so clients can translate sampled ADC values to voltage. Signed-

[PATCH] Replace echo -n's used in environment processing with touch

2022-02-05 Thread qthedev
echo -n does not give the intended effect when invoked in macOS through /bin/sh, which is the shell make uses by default, see "https://stackoverflow.com/questions/11675070/makefile-echo-n-not-working"; for a detailed explanation. In this case, it resulted in "-n" being written to env.txt and en

Pull request for efi-2022-04-rc2

2022-02-05 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 3aaabfe9ff4bbcd11096513b1b28d1fb0a40800f: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-02-03 23:24:31 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git

Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-02-05 Thread Stefano Babic
Hi Gaurav, rather I still have issues to run CI with this applied. The reason is that this adds an overhead to SPL and it breaks the board imx6dl_mamoj because SPL exceeds the maximum size for a DL SOC. See https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/387370 I do not know if it

Re: [PATCH] tools/mrvl_uart.sh: Remove script

2022-02-05 Thread Pali Rohár
On Saturday 05 February 2022 03:07:00 Marcel Ziswiler wrote: > On Sat, 2022-02-05 at 01:54 +0100, Pali Rohár wrote: > > On Saturday 05 February 2022 01:40:23 Marcel Ziswiler wrote: > > > On Sat, 2022-02-05 at 01:25 +0100, Pali Rohár wrote: > > > > $ kwboot -b /dev/ttyUSB0 > > > > > > Hm, at least

[PATCH 1/7] arch: mach-imx: imx8m: Add FlexSPI addresses for SPL booting

2022-02-05 Thread Adam Ford
In order to boot from FlexSPI, we need to calculate SYS_UBOOT_BASE, and the math depends on these registers. Signed-off-by: Adam Ford diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index b800da13a1..209114c810 100644 --- a/arch/arm/include/a

[PATCH 2/7] imx8m: Add FlexSPI Configuration Block

2022-02-05 Thread Adam Ford
The FlexSPI Configuration Block is a binary blob which contains parameters for specific flash devices. This is the blob from the stock NXP Yocto Distribution, but individual users could place their own blob in their respective board directories and point their binman device tree paths at it instea

[PATCH 3/7] imx8m: add image cfg for i.MX8MM FlexSPI booting

2022-02-05 Thread Adam Ford
The imx8m mini can boot from FlexSPI, but it changes the BOOT_FROM and LOADER addresses, so a different cfg file is needed to generate images to boot from FlexSPI. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-imx/imx8m/imximage-8mm-flexspi-lpddr4.cfg b/arch/arm/mach-imx/imx8m/imximage-8m

[PATCH 4/7] arm: dts: imx8mm: Create generic DTSI for booting from FlexSPI

2022-02-05 Thread Adam Ford
There is a common imx8mm-u-boot.dtsi that generates images for booting from MMC, but when booting FlexSPI, the image needs to be created differently. To facilitate this, the new dtsi file includes the old one, deletes the node that packages the SPL + U-Boot.itb, and replaces it with a node that p

[PATCH 5/7] arm: dts: imx8mm-beacon: Enhange FlexSPI/flash nodes

2022-02-05 Thread Adam Ford
In preparation for FlexSPI booting, clean-up the common nodes showing the FlexSPI and flash nodes to SPL so they can be enumerated in SPL. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi index 73ddfdade6..d576b522b8 1

[PATCH 6/7] arm: dts: Add imx8mm-beacon-kit-flexspi

2022-02-05 Thread Adam Ford
Add a new device tree which changes the binman configuration for U-Boot to generate a flash.bin file with the added FlexSPI Configuration Block and moves SPL and U-Boot.itb Signed-off-by: Adam Ford diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 75ea7e8e37..df897d175a 100644 ---

[PATCH 7/7] imx8m: Add imx8mm_beacon_fspi

2022-02-05 Thread Adam Ford
A special configuration is needed to build U-Boot, SPL and the FlexSPI Configuration block. Add a defconfig with this added and enable SPI booting from the board file. Signed-off-by: Adam Ford diff --git a/board/beacon/imx8mm/MAINTAINERS b/board/beacon/imx8mm/MAINTAINERS index e887db20a2..d28eb

[PATCH v2] tools/mxsimage: Remove fclose on empty FILE pointer

2022-02-05 Thread sbabic
> If `sb_load_cmdfile()` fails to open the configuration file it will jump > to error handling where the code will try to `fclose()` the FILE pointer > which is NULL causing `mkimage` to segfault. > This patch removes the label for error handling and instead returns > immediately which skips the `f

[PATCH 2/2] imx: imx8mn_beacon: Remove redundant code

2022-02-05 Thread sbabic
> The function to return the default MMC device for the environment > already has a __weak instance doing exactly the same thing. Remove > the superfluous one. > Signed-off-by: Adam Ford > diff --git a/board/beacon/imx8mn/imx8mn_beacon.c > b/board/beacon/imx8mn/imx8mn_beacon.c > index 7fe252b262

[PATCH 08/20] imx8ulp: Set DCNANO read QoS on NIC_LPAV to highest

2022-02-05 Thread sbabic
> From: Ye Li > To avoid DCNANO underrun issue on high loading test, set its > read Qos on NIC_LPAV to highest > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH V3] cmd_nandbcb: Support secondary boot address of imx8mn

2022-02-05 Thread sbabic
> Add support of secondary boot address for imx8mn. The secondary > boot address is hardcoded in the fuse. The value is calculated > from there according to the following description: > The fuse IMG_CNTN_SET1_OFFSET (0x490[22:19]) is defined as follows: > - Secondary boot is disabled if fuse value

[PATCH V2 2/2] imx: imx8mm_beacon: Enable USB

2022-02-05 Thread sbabic
> With the updated device tree's having USB support, enable in > U-Boot. This also requires the addition of the imx8m power > domain, since the USB is gated by the power domain controller. > Signed-off-by: Adam Ford > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regar

[PATCH v6 1/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2022-02-05 Thread sbabic
> Add support for iMX8MN VAR-SOM-MX8M-NANO board. Enables support for: > - 1GiB DDR4 RAM > - 16 GiB eMMC > - SD card > - Gigabit ethernet > - USBOTG1 peripheral - fastboot > Signed-off-by: Ariel D'Alessandro > Reviewed-by: Tom Rini > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, than

[PATCH v1 2/2] imx: imx8qm_rm7720: adjust fdt_addr

2022-02-05 Thread sbabic
> The Linux Kernel Image size for arm64 is still growing. > A Kernel with 54 MB at load address 0x8028 overlaps > with fdt_addr at 0x8300. So let's increase it to 0x8400 > Signed-off-by: Oliver Graute Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

[PATCH] arm: imx: imx8mq: add support to get values for more clocks

2022-02-05 Thread sbabic
> Return the root clock values for MXC_CSPI_CLK, MXC_I2C_CLK, > MXC_UART_CLK and MXC_QSPI_CLK. > At least for the I2C clock the missing support leads to a wrong > configured I2C frequency. The expected value is 100kHz but the resulting > value is about 1MHz. > Signed-off-by: Heiko Thiery > Reviewe

[PATCH v2 2/4] arm64: dts: imx8mq-u-boot.dtsi: explicitly add spl filename

2022-02-05 Thread sbabic
> Explicitly add SPL aka u-boot-spl.bin filename. > Signed-off-by: Patrick Wildt > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managi

[PATCH] ARM: imx8m: support env in fat and ext4

2022-02-05 Thread sbabic
> Change boot device logic to also allow environment stored in fat and in > ext4 when booting from SD or from eMMC. > As the boot device check for SD and for eMMC was depending on > ENV_IS_IN_MMC being defined, change the ifdef blocks at env_get_location > to use IS_ENABLED instead for all modes, r

[PATCH 1/3] dt-bindings: phy: phy-imx8-pcie: Add binding for the pad modes of imx8 pcie phy

2022-02-05 Thread sbabic
> From: Richard Zhu > Add binding for reference clock PAD modes of the i.MX8 PCIe PHY. > Signed-off-by: Richard Zhu > Tested-by: Marcel Ziswiler > Reviewed-by: Tim Harvey > Tested-by: Tim Harvey > Reviewed-by: Rob Herring > Link: > https://lore.kernel.org/r/1638432158-4119-2-git-send-email-h

[PATCH 02/20] arm: imx8ulp: Allocate LPAV resources to AP domain

2022-02-05 Thread sbabic
> From: Ye Li > When single boot, assign AP domain as the master domain of the LPAV. > Allocates LPAV master and slave resources like GPU, DCNano, MIPI-DSI > eDMA channel and eDMA request to APD > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regard

[PATCH] imx: imx8mn_beacon: Fix USB booting

2022-02-05 Thread sbabic
> The i.MX8M Nano can boot over USB using the boot ROM instead of > adding extra code to SPL to support USB drivers, etc. However, > when booting from USB, the environment doesnt' know where to load > and causes a hang. Fix this hang by supporting CONFIG_ENV_IS_NOWHERE=y. > It only falls back to

[PATCH v2 3/3] mx7ulp_com: add support for SPL

2022-02-05 Thread sbabic
> From: Ricardo Salveti > Add EA iMX7ULP COM board support for building SPL. > Signed-off-by: Ricardo Salveti > Signed-off-by: Oleksandr Suvorov Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX So

[PATCH 04/20] imx8ulp: clock: Support LPAV clocks in cgc and pcc

2022-02-05 Thread sbabic
> From: Ye Li > Add the PCC5 clocks support and more LPAV clocks and PLL4 PFD in CGC. > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Eng

[PATCH V2 1/2] arm: dts: imx8mm-beacon: Resync dtsi with Kernel 5.17-rc1

2022-02-05 Thread sbabic
> Resync the SOM and baseboar files with the device trees that will > be included in 5.17-RC1 when it's cut. This will improve pinmuxing > for USDHC1 and add USB functionality. > Signed-off-by: Adam Ford > Reviewed-by: Fabio Estevam > diff --git a/arch/arm/dts/imx8mm-beacon-baseboard.dtsi > b/a

[PATCH 14/20] imx8ulp: Update ethernet mac to get from fuse

2022-02-05 Thread sbabic
> From: Ye Li > Get the MAC address from fuse bank5 word 3 and 4. It has > MSB first at lowest address, so have a reverse order with other > iMX used in mac.c > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano

[PATCH v2 1/4] arm64: dts: imx8mq-u-boot.dtsi: alphabetically re-order properties

2022-02-05 Thread sbabic
> Alphabetically re-order properties. > Signed-off-by: Patrick Wildt > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director:

[PATCH] spl: Provide more space to be used for storing SPL on imx28 OCRAM

2022-02-05 Thread sbabic
> With the current configuration provided in mxsimage{-spl}.mx28.cfg the > size of SPL binary has been constrained to 32 KiB, due to "LOAD IVT" > command with 0x8000 offset. > The problem was that, the imx28 ROM takes the u-boot.sb and then > extracts from it the IVT header and places it on the 0x8

[PATCH v2] ARM: dts: imx6ull: Use the correct name for ESAI_TX0

2022-02-05 Thread sbabic
> According to the i.MX6ULL Reference Manual, pad CSI_DATA07 may > have the ESAI_TX0 functionality, not ESAI_T0. > Also, NXP's i.MX Config Tools 10.0 generates dtsi with the > MX6ULL_PAD_CSI_DATA07__ESAI_TX0 naming, so fix it accordingly. > There are no devicetree users in mainline that use the old

[PATCH 20/20] imx8ulp: ddr: Fix DDR frequency request issue

2022-02-05 Thread sbabic
> From: Ye Li > After acking the requested frequency, should wait the ack bit clear > by DDR controller and check the DFS interrupt for next request polling. > Otherwise, the next polling of request bit will get previous value > that DDR controller have not cleared it, so a wrong request frequency

[PATCH v2 1/3] mx7ulp: select soc features

2022-02-05 Thread sbabic
> Force selecting features present in SoC i.MX7ULP. > Signed-off-by: Oleksandr Suvorov > Reviewed-by: Igor Opaniuk Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, M

[PATCH v2 4/4] arm: dts: Enable support for USB on XEA (imx28) board

2022-02-05 Thread sbabic
> This change enables the support for USB with DM on the XEA (imx28) > board. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managi

[PATCH] cmd: bcb: fix bcb struct alignment issue

2022-02-05 Thread sbabic
> Without this patch the bcb struct could be located at an odd address > which resulted in data not being copied to the buffer. > Here was the repro steps (from Mattijs): > => mmc dev 1 > => bcb load 1 misc > => bcb dump command > : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0010

[PATCH 2/3] arm64: dts: imx8mm: Add the pcie phy support

2022-02-05 Thread sbabic
> From: Richard Zhu > Add the PCIe PHY support on iMX8MM platforms. > Signed-off-by: Richard Zhu > Tested-by: Marcel Ziswiler > Reviewed-by: Tim Harvey > Tested-by: Tim Harvey > Signed-off-by: Shawn Guo > Signed-off-by: Marek Vasut # Pick from Linux b9ec888f636f > ("arm64: dts: imx8mm: Add

[PATCH 19/20] imx8ulp:ddr: saving the dram config timing data into sram

2022-02-05 Thread sbabic
> From: Jacky Bai > On i.MX8ULP, The dram config timing need to be saved into sram for > ddr retention when APD enter PD mode, so add this support on i.MX8ULP. > Reviewed-by: Ye Li > Signed-off-by: Jacky Bai > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefan

[PATCH 2/2] arm: imx8m: imx8mm-cl-iot-gate: detect extension board

2022-02-05 Thread sbabic
> From: "Ying-Chun Liu (PaulLiu)" > Extension boards can be added to Compulab's iot-gate-imx8mm. > We implement extension board manager for detecting the extension > boards. > Signed-off-by: Uri Mashiach > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: uboot-imx Applied to u-boot-imx, master, tha

[PATCH] imx8mm-venice-gw7902: fix M2_RST# gpio pinmux

2022-02-05 Thread sbabic
> Fix the invalid gw7902 M2_RST# gpio pinmux. > Signed-off-by: Tim Harvey > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Dire

[PATCH 2/2] ARM: dts: imx: Synchronize iMX6QDL DHCOM PDK2 DTs with Linux 5.15.12

2022-02-05 Thread sbabic
> Synchronize DH DHCOM DTs with Linux commit 25960cafa06e ("Linux 5.15.12"). > There is no functional change to the resulting DTs. The > imx6qdl-dhcom-pdk2.dtsi > had to be adjusted with additional headers, gpio.h, pwm.h, input.h, else > the DT cannot be compiled, the same change is likely necessa

[PATCH 11/20] imx8ulp: Workaround LPOSC_TRIM fuse load issue

2022-02-05 Thread sbabic
> From: Ye Li > 8ULP ROM should read the LPOSC trim BIAS fuse to fill the CGC0 > LPOSCCTRL[7:0], but it writes a fixed value on A0.1 revision. > A0.2 will fix the issue in ROM. But A0.1 we have to workaround > it in SPL by setting LPOSCCTRL BIASCURRENT again. > Reviewed-by: Peng Fan > Signed-off-

[PATCH 1/2] ARM: imx: imx8m: Align PLL 1.2 GHz option with Linux

2022-02-05 Thread sbabic
> Linux uses slightly different divider settings for the 1.2 GHz PLL > configuration, adjust the coefficients to match Linux. > Signed-off-by: Marek Vasut > Cc: Peng Fan > Cc: Stefano Babic Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] imx: nandbcb: Fix printf format in write_fcb

2022-02-05 Thread sbabic
> Correct printf format for unsigned long long is %llx and not %llxx. > Signed-off-by: Pali Rohár > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[PATCH 1/2] imx: imx8mm_beacon: Remove redundant code

2022-02-05 Thread sbabic
> The function to return the default MMC device for the environment > already has a __weak instance doing exactly the same thing. Remove > the superfluous one. > Signed-off-by: Adam Ford > diff --git a/board/beacon/imx8mm/imx8mm_beacon.c > b/board/beacon/imx8mm/imx8mm_beacon.c > index 87ffebb571

[PATCH] imx8m: lock id_swap_bypass bit in tzc380 enable

2022-02-05 Thread sbabic
> According to TRM for i.MX8M Nano and Plus, GPR10 register contains lock > bit for TZASC_ID_SWAP_BYPASS bit. This bit is required to be set in > order to avoid AXI bus errors when GPU is enabled on the platform. > TZASC_ID_SWAP_BYPASS bit is alread set for all imx8m applicable > derivatives, but i

[PATCH 1/2] imx: imx8mm: imx8mm-kontron-n801x-s: convert options to Kconfig

2022-02-05 Thread sbabic
> CONFIG_SPL_MMC and CONFIG_SPL_SERIAL > Signed-off-by: Heiko Thiery > Reviewed-by: Frieder Schrempf Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Direct

[PATCH v3] arm: xea: Modify board code to generate single binary u-boot

2022-02-05 Thread sbabic
> This change provides the possibility to build XEA (imx287 based) board > U-Boot as a single binary (without support for CONFIG_SPL_FRAMEWORK). > The generated u-boot.sb can be used in the factory environment to for > example perform initial setup or HW testing. > It can be used with 'uuu' utility

[PATCH] imx: ventana: correct splashimage load address

2022-02-05 Thread sbabic
> Commit 72d81360aabd ("global: Convert CONFIG_LOADADDR to > CONFIG_SYS_LOADADDR") dropped the usage of LOADADDR and replaced it with > SYS_LOADADDR. > Use the correct macro in environment by replacing CONFIG_LOADADDR with > CONFIG_SYS_LOADADDR. > Fixes: d75ebf3482c3 ("imx: ventana: fix splash logo

[RESEND PATCH 2/2] mx6: crm_regs: drop BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ

2022-02-05 Thread sbabic
> Commit 97c16dc8bf098 ("imx: mx6ull: update the REFTOP_VBGADJ setting") > made this macro unused. Then remove it. > Signed-off-by: Dario Binacchi > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

[PATCH 12/20] imx8ulp: clock: Reset DDR controller before clock enable

2022-02-05 Thread sbabic
> From: Ye Li > The LPAV is not allocated to APD when dual boot, so LPAV won't > reset when APD is reset. We have to explicitly reset the DDR, > otherwise its initialization will fail. > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks

[PATCH v2 3/4] arm64: dts: imx8mm-u-boot.dtsi: use dash for node names

2022-02-05 Thread sbabic
> Some of the nodes were named using a underscore, so rectify this and > consistenly use dashes. > Signed-off-by: Patrick Wildt > Reviewed-by: Fabio Estevam > Reviewed-by: Marcel Ziswiler Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ==

[PATCH 10/20] imx8ulp: Remove freescale name from CPU revision

2022-02-05 Thread sbabic
> From: Ye Li > Remove the freescale vendor name from CPU revision print to align > with other i.MX platforms > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ==

[PATCH v9] board: kontron: pitx-imx8m: Add Kontron pitx-imx8m board support

2022-02-05 Thread sbabic
> The Kontron pitx-imx8m is an NXP i.MX8MQ based board in the pITX form factor. > Signed-off-by: Heiko Thiery Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managin

[PATCH v2] imx8mq_evk: configs: add/cleanup variables for distro boot

2022-02-05 Thread sbabic
> Add fdt_addr_r fdtfile which used by distro boot, and cleanup legacy > environment variables. > Signed-off-by: Andrey Zhizhikin Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineerin

[RESEND PATCH 1/2] imx: mx6ull: fix REFTOP_VBGADJ setting

2022-02-05 Thread sbabic
> The previous code wrote the contents of the fuse as is in the > REFTOP_VBGADJ[2:0], but this was wrong if you consider the contents of > the table in the code comment. This table is also different from the > table in the commit description. But then, which of the two is correct? > If it is assume

[PATCH 1/2] clk: imx: select [SPL_]CLK_COMPOSITE_CCF for imxrt10{20|50}

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

[PATCH 3/3] arm64: dts: imx8mm: Add the pcie support

2022-02-05 Thread sbabic
> From: Richard Zhu > Add the PCIe support on i.MX8MM platforms. > Signed-off-by: Richard Zhu > Tested-by: Marcel Ziswiler > Reviewed-by: Tim Harvey > Tested-by: Tim Harvey > Signed-off-by: Shawn Guo > Signed-off-by: Marek Vasut # Pick from Linux 854a4766ac12 > ("arm64: dts: imx8mm: Add the

[PATCH 13/20] imx8ulp: clock: Support to reset DCNano and MIPI DSI

2022-02-05 Thread sbabic
> From: Ye Li > When LPAV is allocated to RTD, the LPAV won't be reset. So we have to > reset DCNano and MIPI DSI in u-boot before enabling the drivers > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic

[PATCH 3/3] doc: verdin-imx8mm: Remove ATF_LOAD_ADDR export

2022-02-05 Thread sbabic
> imx8mm-u-boot.dtsi passes the ATF load address via the > 'entry' and 'load' properties. > Remove the step that performs the ATF_LOAD_ADDR export, which is > now unneeded. > Signed-off-by: Fabio Estevam > Reviewed-by: Patrick Wildt Applied to u-boot-imx, master, thanks ! Best regards, Stefano B

[PATCH 1/3] doc: imx8mm_evk: Remove ATF_LOAD_ADDR export

2022-02-05 Thread sbabic
> imx8mm-u-boot.dtsi passes the ATF load address via the > 'entry' and 'load' properties. > Remove the step that performs the ATF_LOAD_ADDR export, which is > now unneeded. > Signed-off-by: Fabio Estevam > Reviewed-by: Patrick Wildt Applied to u-boot-imx, master, thanks ! Best regards, Stefano B

[PATCH 1/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-02-05 Thread sbabic
> From: "Ying-Chun Liu (PaulLiu)" > We changed to single flash.bin now. So dfu_alt_info should be modified > to reflect this change. > Signed-off-by: Ying-Chun Liu (PaulLiu) > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

[PATCH 01/20] imx8ulp: soc: Check the DBD_EN fuse before setting RDC

2022-02-05 Thread sbabic
> From: Ye Li > S400 enables RDC only when the DBD_EN is fused. Otherwise, the RDC > is allowed by all masters. > Current S400 has issue if the XRDC has released to A35, then A35 reset > will fail in ROM due to S400 fails to get XRDC. > So temp work around is checking the DBD_EN, if it is not fuse

[PATCH] mx6: Use imx6_src_get_boot_mode() to check boot device

2022-02-05 Thread sbabic
> Use imx6_src_get_boot_mode() instead of manually reading SBMR1. The > existing function has proper handling for software overrides of the > bootdevice which can happen, for example, when booting from an alternate > source using `bmode`. > Signed-off-by: Harald Seiler > Reviewed-by: Fabio Esteva

[PATCH 18/20] imx8ulp: implement to obtain the SoC current temperature

2022-02-05 Thread sbabic
> From: Alice Guo > Obatin the SoC current temperature in print_cpuinfo(). > Reviewed-by: Ye Li > Signed-off-by: Alice Guo > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DE

[PATCH] regulator: bd718x7: Bypass bogus warnings

2022-02-05 Thread sbabic
> When regulator consumer attempts to set enabled DVS regulator voltage, > the driver aborts with "Only DVS bucks can be changed when enabled". > In case the regulator is already set to specified voltage, do nothing > instead of failing outright. > When regulator consumer attempts to set enables re

[PATCH v2] imx: Enable ACTLR.SMP in SPL for i.MX6/7

2022-02-05 Thread sbabic
> Similar to what has been done before with c5437e5b for u-boot proper, we > enable the SMP bit for SPL as well. This is necessary when SDP booting > straight into Linux, i.e. falcon boot. When SDP boot mode is active, the > ROM code does not set this bit which makes the caches not work once > acti

[PATCH] imx: imx8mn_beacon: Enable TrustZone

2022-02-05 Thread sbabic
> When the board was added, enabling tzc380 was left off by > mistake. > Signed-off-by: Adam Ford > diff --git a/board/beacon/imx8mn/spl.c b/board/beacon/imx8mn/spl.c > index b5263ccfd7..bb51be01c5 100644 > --- a/board/beacon/imx8mn/spl.c > +++ b/board/beacon/imx8mn/spl.c > @@ -122,6 +122,8 @@ voi

[PATCH v4 2/2] colibri-imx8x: add on-module gpio expander fxl6408

2022-02-05 Thread sbabic
> From: Oleksandr Suvorov > The FXL6408 GPIO expander manages critical devices, > including on-module USB hub. Configure the expander to > switch the USB hub into bypass mode, allowing to use > on-carrier-board USB hub. > Signed-off-by: Oleksandr Suvorov > Signed-off-by: Oleksandr Suvorov Applie

[PATCH] smegw01: Update DDR initialization

2022-02-05 Thread sbabic
> Sync with the latest DDR initialization from Phytec, which > uses version 1.2 of NXP's i.MX7D DRAM Register Programming Aid > spreadsheet. > This updated DDR initialization fixes occasional system freeze. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefa

[PATCH] mxs: power: Change sequence of enabling DCDC switches

2022-02-05 Thread sbabic
> The imx28 uses following voltage supplies hierarchy: > VDD_5V (VDD_BAT) -> VDDIO -> VDDA -> VDDMEM >\-> VDDD > One shall first enable DCDC on the parent source (VDDIO) and then > follow with its children. > Signed-off-by: Lukasz Majewski > Reviewed-by: Jaehoon Chu

[PATCH 2/2] imx: imx8mm: imx8mm-kontron-n801x-s: add common board u-boot.dtsi

2022-02-05 Thread sbabic
> When using a board variant that selects the lvds specific dtb the > *.u-boot.dtsi file will not be included. To have a lvds dtb specific > u-boot.dtsi file move this part to a common board u-boot.dtsi file and > include this in the board base u-boot.dtsi and create an additional one > for the lvd

[PATCH 1/2] arm: dts: imx8mm-cl-iot-gate: add Compulab's ied overlays

2022-02-05 Thread sbabic
> From: "Ying-Chun Liu (PaulLiu)" > add the following overlays: > - IED extension board > - CAN/TPM/ADC extension board on IED board. > Signed-off-by: Uri Mashiach > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: uboot-imx Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 09/20] imx8ulp: Fix DCNANO QoS setting

2022-02-05 Thread sbabic
> From: Ye Li > The setting does not have effect because we should set it after > power on the PS16 for NIC AV. > So move it after upower_init which has powered on all PS > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regar

[PATCH] spi: mxc_spi: remove redundant code in spi_xchg_single()

2022-02-05 Thread sbabic
> From: Haolin Li > The value of cnt is overwritten without being used. > Signed-off-by: Haolin Li > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineerin

[PATCH] Makefile: imx: Do not call arch/arm/mach-imx flash.bin generation if BINMAN enabled

2022-02-05 Thread sbabic
> Skip running arch/arm/mach-imx flash.bin generation in case BINMAN is > enabled, otherwise the target in arch/arm/mach-imx/Makefile regenerates > the flash.bin again and produces corrupted result. > Signed-off-by: Marek Vasut > Cc: Peng Fan > Cc: Simon Glass > Reviewed-by: Simon Glass Applied

[PATCH 1/2] ARM: dts: imx: Add labels to remaining anatop regulators

2022-02-05 Thread sbabic
> Add labels to remaining anatop regulators, so their supplies can be > assigned in board DTs. This is similar to Linux kernel commit > 93385546ba369 ("ARM: dts: imx6qdl-sabresd: Assign corresponding power supply > for LDOs") > except it does not contain the unrelated sabresd changes. > Signed-off

[PATCH 15/20] imx8ulp: clock: Support to enable/disable the ADC1 clock

2022-02-05 Thread sbabic
> From: Alice Guo > This patch implements enable_adc1_clk() to enable or disable the ADC1 > clock on i.MX8ULP. > Reviewed-by: Ye Li > Signed-off-by: Alice Guo > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 03/20] imx8ulp: assign PXP/HIFI4/EPDC to APD domain

2022-02-05 Thread sbabic
> From: Peng Fan > Assign the PXP/HIFI4/EPDC to APD domain, otherwise APD not > able to receive interrupts from the modules. > Reviewed-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ==

[PATCH 16/20] imx8ulp: clock: Handle the DDRLOCKED when setting DDR clock

2022-02-05 Thread sbabic
> From: Ye Li > The DDRLOCKED bit in CGC2 DDRCLK will auto lock up and down by HW > according to DDR DIV updating or DDR CLK halt status change. So DDR > PCC disable/enable will trigger the lock up/down flow. We > need wait until unlock to ensure clock is ready. > And before configuring the DDRCLK

[PATCH 1/1] imx8mm-cl-iot-gate-optee: add CONFIG_SPL_MMC and CONFIG_SPL_SERIAL

2022-02-05 Thread sbabic
> From: "Ying-Chun Liu (PaulLiu)" > Previously these two options are called CONFIG_SPL_MMC_SUPPORT > and CONFIG_SPL_SERIAL_SUPPORT. During the transition they are > removed by accident. Thus adding them back. > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: uboot-imx > Reviewed-by: Fabio Estevam

[PATCH] mach-imx: iomux-v3: add a define for the SION bit

2022-02-05 Thread sbabic
> SION (Software Input On Field) - force the select mode input path > Signed-off-by: Angus Ainslie Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director:

[PATCH] arm64: dts: imx8mm/q: Fix pad control of SD1_DATA0

2022-02-05 Thread sbabic
> From: Oliver Stäbler > Fix address of the pad control register > (IOMUXC_SW_PAD_CTL_PAD_SD1_DATA0) for SD1_DATA0_GPIO2_IO2. This seems > to be a typo but it leads to an exception when pinctrl is applied due to > wrong memory address access. > Signed-off-by: Oliver Stäbler > Reviewed-by: Fabio

[PATCH v1 2/2] colibri-imx7: improve env badblock management

2022-02-05 Thread sbabic
> Use the complete 512kb (4 blocks) nand partition reserved for u-boot > environment instead of just the first block, this allows the module > to have a working environment even if 3 blocks are bad. > Signed-off-by: Francesco Dolcini Applied to u-boot-imx, master, thanks ! Best regards, Stefano B

[PATCH 06/20] imx8ulp: rdc: allow A35 access flexspi0 mem

2022-02-05 Thread sbabic
> From: Ye Li > For singel boot, set flexspi0 mem to be accessed by A35 > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH] arm64: dts: imx8mm: Add missing MX8MM_IOMUXC_NAND_READY_B_SD3_RESET_B

2022-02-05 Thread sbabic
> The i.MX8M Mini Application Processor Reference Manual, Rev. 3, 11/2020 > documents AF MX8MM_IOMUXC_NAND_READY_B_SD3_RESET_B , add it into the > pinmux tables. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Stefano Babic > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, than

[PATCH v2 4/4] arm64: dts: imx8mq-u-boot.dtsi: improve odd blob-ext naming

2022-02-05 Thread sbabic
> Rather than using odd implicit blob-ext naming, explicitly specify the > type to be of blob-ext and therefore also simplify the node naming. > Signed-off-by: Patrick Wildt > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

  1   2   >