[PATCH v2 14/14] colibri-imx7: fix splash logo drawing

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk 1. Configure white on black for video console. 2. Enable printing bmp logo during late board init stage. 3. Use iomux configuration from device tree. Signed-off-by: Igor Opaniuk --- (no changes since v1) board/toradex/colibri_imx7/colibri_imx7.c | 44

[PATCH v2 11/14] ARM: dts: imx7-colibri: multiple node updates

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk 1. Move u-boot specific nodes to u-boot dts include: legacy lcdif node and aliases. 2. Add iomux configuration for LCD. 3. Drop un-needed u-boot,dm-pre-reloc for alias node. 4. Fix display-timings, use the one from Toradex downstream kernel [1] [1]: https://git.toradex.com

[PATCH v2 13/14] colibri-imx6ull: fix splash screen logo drawing

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk Configure white on black for video console. Signed-off-by: Igor Opaniuk --- (no changes since v1) configs/colibri-imx6ull_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/colibri-imx6ull_defconfig b/configs/colibri-imx6ull_defconfig index ce145cd24f

[PATCH v2 09/14] ARM: dts: imx6ull-colibri: move u-boot specific node

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk 1. Move aliases and legacy lcdif node to the u-boot specific dts include. 2. Provide proper display timings, as in the downstream Toradex kernel [1]. [1]: https://git.toradex.com/cgit/linux-toradex.git/tree/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi?h=toradex_4.9-2.3.x

[PATCH v2 12/14] colibri-imx6ull: show boot logo

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk 1. Show boot logo embed in U-Boot blob. 2. Drop iomux configration for LCD, and use the one provided in device tree. Signed-off-by: Igor Opaniuk --- (no changes since v1) .../toradex/colibri-imx6ull/colibri-imx6ull.c | 40 --- 1 file changed, 7 insertions

[PATCH v2 07/14] ARM: dts: imx8mm-verdin: eeprom nodes adjustments

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk Rename EEPROM nodes. Create aliases for EEPROM to unify their order: eeprom0 - on-module EEPROM eeprom1 - carrier-board EEPROM eeprom2 - MIPI-DSI to HDMI adapter EEPROM Signed-off-by: Igor Opaniuk --- (no changes since v1) arch/arm/dts/imx8mm-verdin.dts | 22

[PATCH v2 10/14] toradex: common: show boot logo

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk Add function for showing boot logo, embed into u-boot blob. Signed-off-by: Igor Opaniuk --- (no changes since v1) board/toradex/common/tdx-common.c | 26 ++ board/toradex/common/tdx-common.h | 4 2 files changed, 30 insertions(+) diff --git

[PATCH v2 04/14] toradex: tdx-cfg-block: add support for EEPROM

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk This introduces support for EEPROM as a storage for the main Toradex config block and additional config blocks on extra EEPROM chips (on carrier board or video adapters). To enable EEPROM as a storage for the main config block: TDX_HAVE_EEPROM=y. For additional EEPROMs

[PATCH v2 08/14] verdin-imx8mm: add EEPROM support for carrier board

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk Enable these Kconfig symbols: TDX_CFG_BLOCK_EXTRA=y TDX_HAVE_EEPROM_EXTRA=y Signed-off-by: Igor Opaniuk --- (no changes since v1) board/toradex/verdin-imx8mm/Kconfig | 6 ++ configs/verdin-imx8mm_defconfig | 1 + 2 files changed, 7 insertions(+) diff --git a

[PATCH v2 05/14] toradex: tdx-cfg-clock: add migration routine from PID8

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk Add migration routine from PID8 pre-stored values on EEPROM (including sane value checks). Signed-off-by: Igor Opaniuk --- (no changes since v1) board/toradex/common/tdx-cfg-block.c | 78 board/toradex/common/tdx-cfg-block.h | 2 + 2 files

[PATCH v2 06/14] toradex: tdx-cfg-block: add carrier board info printing

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk Add carrier board info printing during boot time: U-Boot 2020.07-rc4-02435-g1756e05 (Jun 22 2020 - 22:43:59 +0300) CPU: Freescale i.MX8MMQ rev1.0 at 1200 MHz Carrier: Toradex Verdin Development Board V1.0A, Serial# 10622780 Verdin iMX8MM # Signed-off-by: Igor Opaniuk

[PATCH v2 00/14] toradex: imx: fixes and updates for v2020.10

2020-07-15 Thread Igor Opaniuk
=185024 [2]: https://patchwork.ozlabs.org/project/uboot/list/?series=185100 [3]: https://patchwork.ozlabs.org/project/uboot/list/?series=185354 Igor Opaniuk (14): imx: mx7: fix DDRC size in A7-M4 mapping table toradex: tdx-cfg-block: add EEPROM read/store wrappers toradex: tdx-cfg-block: add

[PATCH v2 03/14] toradex: tdx-cfg-block: add carrier boards and display adapters

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk Add defines for supported carrier boards and display adapters. Signed-off-by: Igor Opaniuk --- (no changes since v1) board/toradex/common/tdx-cfg-block.c | 12 board/toradex/common/tdx-cfg-block.h | 11 +++ 2 files changed, 23 insertions(+) diff

[PATCH v2 01/14] imx: mx7: fix DDRC size in A7-M4 mapping table

2020-07-15 Thread Igor Opaniuk
From: Igor Opaniuk According to i.MX 7Solo Applications Processor Reference Manual, 2.1.3 Cortex-M4 Memory Map, M4 can address only 1536MB of DDRC (Start Address: 0x8000_; End Address: 0xDFFF_). Correct DDRC size to 0x6000. Fixes: c0f037f6("mach-imx: bootaux: elf firmware su

Re: Seemless Boot Splash on iMX-based boards

2020-07-12 Thread Igor Opaniuk
Hi Stefano, On Mon, Jul 6, 2020 at 12:10 PM Stefano Babic wrote: > > Hi Igor, > > my two cents from previous experience: > > On 06.07.20 10:34, Igor Opaniuk wrote: > > Hi, > > > > Does anyone have experience in setting up seamless > > boot splash on

Seemless Boot Splash on iMX-based boards

2020-07-06 Thread Igor Opaniuk
uld be avoiding showing boot logo at all and do that only from the Linux ( Plymouth-based etc.) Any comments are welcome. Thanks! [1] https://patchwork.kernel.org/patch/10432641/ -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.o

Re: [PATCH 1/3] video: add support for drawing 8bpp bitmap on 32bpp framebuffer

2020-07-03 Thread Igor Opaniuk
Hi Anatolij, On Mon, Jun 29, 2020, 10:52 Anatolij Gustschin wrote: > Hi Igor, > > On Tue, 23 Jun 2020 14:40:45 +0300 > Igor Opaniuk igor.opan...@gmail.com wrote: > ... > > Any chance to get this merged? > > I've merged another reworked patch to fix the logo d

[PATCH v1 6/6] colibri-imx7: fix splash logo drawing

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk 1. Configure white on black for video console. 2. Enable printing bmp logo during late board init stage. 3. Use iomux configuration from device tree. Signed-off-by: Igor Opaniuk --- board/toradex/colibri_imx7/colibri_imx7.c | 44 +-- configs

[PATCH v1 4/6] colibri-imx6ull: show boot logo

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk 1. Show boot logo embed in U-Boot blob. 2. Drop iomux configration for LCD, and use the one provided in device tree. Signed-off-by: Igor Opaniuk --- board/toradex/colibri-imx6ull/colibri-imx6ull.c | 40 + 1 file changed, 7 insertions(+), 33

[PATCH v1 5/6] colibri-imx6ull: fix splash screen logo drawing

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk Configure white on black for video console. Signed-off-by: Igor Opaniuk --- configs/colibri-imx6ull_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/colibri-imx6ull_defconfig b/configs/colibri-imx6ull_defconfig index 74a67a0..34ab8d6 100644 --- a

[PATCH v1 3/6] ARM: dts: imx7-colibri: multiple node updates

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk 1. Move u-boot specific nodes to u-boot dts include: legacy lcdif node and aliases. 2. Add iomux configuration for LCD. Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx7-colibri-emmc.dts | 9 + arch/arm/dts/imx7-colibri-rawnand.dts | 5 +-- arch/arm/dts/imx7

[PATCH v1 2/6] toradex: common: show boot logo

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk Add function for showing boot logo, embed into u-boot blob. Signed-off-by: Igor Opaniuk --- board/toradex/common/tdx-common.c | 26 ++ board/toradex/common/tdx-common.h | 4 2 files changed, 30 insertions(+) diff --git a/board/toradex/common

[PATCH v1 1/6] ARM: dts: imx6ull-colibri: move u-boot specific node

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk Move aliases and legacy lcdif node to the u-boot specific dts include. Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx6ull-colibri-u-boot.dtsi | 45 arch/arm/dts/imx6ull-colibri.dtsi| 43 -- 2 files

Re: [PATCH 1/3] video: add support for drawing 8bpp bitmap on 32bpp framebuffer

2020-06-23 Thread Igor Opaniuk
gt; cmap16_base[*bmap++]; > fb += sizeof(uint16_t) / sizeof(*fb); > + } else if (bpix == 32) { > + *(uint32_t *)fb = > cmap32_base[*bmap++]; > +

[PATCH v1 7/7] verdin-imx8mm: add EEPROM support for carrier board

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk Enable these Kconfig symbols: TDX_CFG_BLOCK_EXTRA=y TDX_HAVE_EEPROM_EXTRA=y Signed-off-by: Igor Opaniuk --- board/toradex/verdin-imx8mm/Kconfig | 6 ++ configs/verdin-imx8mm_defconfig | 1 + 2 files changed, 7 insertions(+) diff --git a/board/toradex/verdin-imx8mm

[PATCH v1 6/7] ARM: dts: imx8mm-verdin: eeprom nodes adjustments

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk Rename EEPROM nodes. Create aliases for EEPROM to unify their order: eeprom0 - on-module EEPROM eeprom1 - carrier-board EEPROM eeprom2 - MIPI-DSI to HDMI adapter EEPROM Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx8mm-verdin.dts | 22

[PATCH v1 0/7] Toradex: EEPROM storage support for Config Block

2020-06-22 Thread Igor Opaniuk
Igor Opaniuk (7): toradex: tdx-cfg-block: add EEPROM read/store wrappers toradex: tdx-cfg-block: add carrier boards and display adapters toradex: tdx-cfg-block: add support for EEPROM toradex: tdx-cfg-clock: add migration routine from PID8 toradex: tdx-cfg-block: add carrier board info

[PATCH v1 3/7] toradex: tdx-cfg-block: add support for EEPROM

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk This introduces support for EEPROM as a storage for the main Toradex config block and additional config blocks on extra EEPROM chips (on carrier board or video adapters). To enable EEPROM as a storage for the main config block: TDX_HAVE_EEPROM=y. For additional EEPROMs

[PATCH v1 5/7] toradex: tdx-cfg-block: add carrier board info printing

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk Add carrier board info printing during boot time: U-Boot 2020.07-rc4-02435-g1756e05 (Jun 22 2020 - 22:43:59 +0300) CPU: Freescale i.MX8MMQ rev1.0 at 1200 MHz Carrier: Toradex Verdin Development Board V1.0A, Serial# 10622780 Verdin iMX8MM # Signed-off-by: Igor Opaniuk

[PATCH v1 1/7] toradex: tdx-cfg-block: add EEPROM read/store wrappers

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk These functions wrap functionality for storing config blocks in EEPROM. Signed-off-by: Igor Opaniuk --- board/toradex/common/Makefile | 1 + board/toradex/common/tdx-eeprom.c | 90 +++ board/toradex/common/tdx-eeprom.h | 14

[PATCH v1 2/7] toradex: tdx-cfg-block: add carrier boards and display adapters

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk Add defines for supported carrier boards and display adapters. Signed-off-by: Igor Opaniuk --- board/toradex/common/tdx-cfg-block.c | 12 board/toradex/common/tdx-cfg-block.h | 11 +++ 2 files changed, 23 insertions(+) diff --git a/board/toradex

[PATCH v1 4/7] toradex: tdx-cfg-clock: add migration routine from PID8

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk Add migration routine from PID8 pre-stored values on EEPROM (including sane value checks). Signed-off-by: Igor Opaniuk --- board/toradex/common/tdx-cfg-block.c | 78 board/toradex/common/tdx-cfg-block.h | 2 + 2 files changed, 80

[PATCH v1] imx: mx7: fix DDRC size in A7-M4 mapping table

2020-06-22 Thread Igor Opaniuk
From: Igor Opaniuk According to i.MX 7Solo Applications Processor Reference Manual, 2.1.3 Cortex-M4 Memory Map, M4 can address only 1536MB of DDRC (Start Address: 0x8000_; End Address: 0xDFFF_). Correct DDRC size to 0x6000. Fixes: c0f037f6("mach-imx: bootaux: elf firmware su

Re: [PATCHv2 22/31] arm: toradex: Convert CONFIG_CONSOLE_MUX to Kconfig

2020-06-17 Thread Igor Opaniuk
Hi Tom, On Wed, Jun 17, 2020, 02:12 Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_CONSOLE_MUX > > Cc: Igor Opaniuk > Signed-off-by: Tom Rini > --- > configs/apalis_imx6_defconfig | 2 -- > configs/colibri_imx6_defconfig | 2 -- > include

[PATCH v1 12/13] colibri_imx7: boot env configuration updates

2020-06-16 Thread Igor Opaniuk
From: Igor Opaniuk 1. Drop legacy emmcboot wrapper from env. 2. Change the "boot try" order. Default one is: SD -> eMMC -> USB -> DHCP 3. Drop DFU defines Signed-off-by: Igor Opaniuk --- include/configs/colibri_imx7.h | 24 +--- 1 file changed,

[PATCH v1 11/13] apalis_imx6: boot env configuration updates

2020-06-16 Thread Igor Opaniuk
From: Igor Opaniuk 1. Drop legacy emmcboot wrapper from env. 2. Change the "boot try" order. Default one is: SD -> eMMC -> USB -> DHCP 3. Drop DFU defines Signed-off-by: Igor Opaniuk --- include/configs/apalis_imx6.h | 29 + 1 file changed,

[PATCH v1 13/13] colibri_imx6: boot env configuration updates

2020-06-16 Thread Igor Opaniuk
From: Igor Opaniuk 1. Drop legacy emmcboot wrapper from env. 2. Change the "boot try" order. Default one is: SD -> eMMC -> USB -> DHCP 3. Drop DFU defines Signed-off-by: Igor Opaniuk --- include/configs/colibri_imx6.h | 29 + 1 file changed,

[PATCH v1 07/13] configs/colibri_vf.h: drop sdboot in favour of distro_bootcmd

2020-06-16 Thread Igor Opaniuk
From: Max Krummenacher The distro bootscript uses kernel_image to get the file name of the kernel, so change that variable name. UBI boot has precedence in the default boot command. If one wants to boot from SD with a working NAND installation stop in U-Boot and enter: setenv fdtfile ${soc}-coli

[PATCH v1 09/13] apalis-tk1: fix setting fdtfile value

2020-06-16 Thread Igor Opaniuk
From: Igor Opaniuk s/fdt-module/fdt_module/g, as we don't use dash in fdt_file anymore. Fixes: 4c63a601("apalis-tk1: support v1.2 hardware revision") Signed-off-by: Igor Opaniuk --- configs/apalis-tk1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v1 08/13] apalis-tk1: enable distroboot

2020-06-16 Thread Igor Opaniuk
From: Igor Opaniuk 1. Use distro_bootcmd as default boot command instead of legacy emmcboot wrapper. 2. Drop emmcboot and sdboot wrappers. 3. Provide proper boot order for Distro Boot. Signed-off-by: Igor Opaniuk --- configs/apalis-tk1_defconfig | 2 +- include/configs/apalis-tk1.h | 51

[PATCH v1 10/13] toradex: imx: enable BOOTCOUNT feature

2020-06-16 Thread Igor Opaniuk
From: Igor Opaniuk This introduces automatic boot counter that increases after every reset.After a power-on reset, it will be initialized with 1, and each reboot will increment the value by 1. By default it's disabled if bootlimit isn't set. To enable this feature you have set bootc

[PATCH v1 06/13] colibri_vf_defconfig: enable part cmd

2020-06-16 Thread Igor Opaniuk
From: Max Krummenacher This allows to boot from SD/USB with passing the rootfs partition via UUID. Signed-off-by: Max Krummenacher --- configs/colibri_vf_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/colibri_vf_defconfig b/configs/colibri_vf_defconfig

[PATCH v1 03/13] colibri-imx8x: declare consoleargs

2020-06-16 Thread Igor Opaniuk
From: Oleksandr Suvorov Store all console-related kernel parameters in dedicated variable. Signed-off-by: Oleksandr Suvorov --- include/configs/colibri-imx8x.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/configs/colibri-imx8x.h b/include/configs/colibri

[PATCH v1 02/13] apalis/colibri-imx8: re-enable CONFIG_IMX_SCU_THERMAL

2020-06-16 Thread Igor Opaniuk
From: Max Krummenacher This got dropped by a global 'make savedefconfig' resync as required patches are still in flight. Signed-off-by: Max Krummenacher --- configs/apalis-imx8qm_defconfig | 1 + configs/colibri-imx8qxp_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs

[PATCH v1 04/13] colibri_imx7: add addresses required for distro boot

2020-06-16 Thread Igor Opaniuk
From: Stefan Agner Define addresses required for full distro boot support. Signed-off-by: Stefan Agner --- include/configs/colibri_imx7.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index 09722f4..b550bc

[PATCH v1 01/13] apalis-imx8: enable of_system_setup

2020-06-16 Thread Igor Opaniuk
From: Marcel Ziswiler Enable CONFIG_OF_SYSTEM_DEFAULT for Apalis iMX8. Signed-off-by: Marcel Ziswiler --- configs/apalis-imx8qm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/apalis-imx8qm_defconfig b/configs/apalis-imx8qm_defconfig index 4c27c33..fdc1e4e 100644 --- a/c

[PATCH v1 05/13] colibri-imx6ull/imx7: define bootubipart for distro boot

2020-06-16 Thread Igor Opaniuk
From: Stefan Agner When using distro boot to boot from UBI volumes the boot partition has been hardcoded to "UBI" (capital letters). However, our default MTD layout uses "ubi" (lower case letter). Define "ubi" as the default UBI partition for distro boot for Toradex. This allows to use distro boo

[PATCH v1 00/13] This patch-series includes updates for Toradex modules:

2020-06-16 Thread Igor Opaniuk
1. Environment clean-up (dropping legacy emmcboot, sdboot wrappers) 2. Boot count support for multiple modules 3. Distro Boot fixes Igor Opaniuk (6): apalis-tk1: enable distroboot apalis-tk1: fix setting fdtfile value toradex: imx: enable BOOTCOUNT feature apalis_imx6: boot env

Re: [PATCH 22/30] arm: toradex: Convert CONFIG_CONSOLE_MUX to Kconfig

2020-06-11 Thread Igor Opaniuk
Hi Tom, On Wed, Jun 10, 2020 at 11:21 PM Tom Rini wrote: > > This converts the following to Kconfig: >CONFIG_CONSOLE_MUX > > Cc: Igor Opaniuk > Signed-off-by: Tom Rini > --- > configs/apalis_imx6_defconfig | 2 -- > configs/colibri_imx6_defconfig | 2 -- >

Re: [PATCH v2] apalis_imx6: fix video stdout in default environment

2020-05-28 Thread Igor Opaniuk
Hi Anatolij, On Tue, May 26, 2020 at 11:52 PM Anatolij Gustschin wrote: > > After migration to DM 'vga' name is not longer supported, > change it to 'vidconsole' in the default environment. > > Signed-off-by: Anatolij Gustschin > Cc: Igor Opaniuk >

Re: [PATCH v2] colibri_imx6: fix video stdout in default environment

2020-05-28 Thread Igor Opaniuk
Hi Anatolij, On Tue, May 26, 2020 at 11:54 PM Anatolij Gustschin wrote: > > After migration to DM 'vga' name is not longer supported, > change it to 'vidconsole' in the default environment. > > Signed-off-by: Anatolij Gustschin > Cc: Igor Opaniuk >

Re: [PATCH v2] cmd: avb: free partition buffer upon verify completion

2020-05-12 Thread Igor Opaniuk
@@ int do_avb_verify_part(cmd_tbl_t *cmdtp, int flag, > printf("Unknown error occurred\n"); > } > > + if (out_data) > + avb_slot_verify_data_free(out_data); > + > return res; > } > > -- > 2.26.2 > Reviewed-by: Igor O

Re: [PATCH 5/5] verdin-imx8mm: Select the watchdog driver

2020-05-11 Thread Igor Opaniuk
onfig > +++ b/configs/verdin-imx8mm_defconfig > @@ -99,5 +99,4 @@ CONFIG_SPL_SYSRESET=y > CONFIG_SYSRESET_PSCI=y > CONFIG_SYSRESET_WATCHDOG=y > CONFIG_DM_THERMAL=y > -# CONFIG_WATCHDOG is not set > CONFIG_IMX_WATCHDOG=y > -- > 2.17.1 > Acked-by: Igor Opaniuk Thanks! >

Re: [PATCH] cmd: avb: free partition buffer upon verify completion

2020-05-10 Thread Igor Opaniuk
for the whole out_data instead for proper cleanup. Check how it's done in unittests for libavb [2]. > + } > + > return res; > } > > -- > 2.26.2 > [1] lib/libavb/avb_slot_verify.c [2] https://android.googlesource.com/platform/external/avb/+/refs/tags/a

Re: [PATCH 7/8] ARM: imx8m: Fix reset in SPL on Toradex iMX8MM Verdin

2020-04-29 Thread Igor Opaniuk
Fabio Estevam > Cc: Flavio Suligoi > Cc: Harald Seiler > Cc: Igor Opaniuk > Cc: Marcel Ziswiler > Cc: Oleksandr Suvorov > Cc: Peng Fan > Cc: Stefano Babic > --- > arch/arm/dts/imx8mm-verdin-u-boot.dtsi | 12 > board/toradex/verdin-imx8mm/spl.c

Re: [PATCH 7/8] ARM: imx8m: Fix reset in SPL on Toradex iMX8MM Verdin

2020-04-29 Thread Igor Opaniuk
OG_SUPPORT=y > CONFIG_SYS_PROMPT="Verdin iMX8MM # " > # CONFIG_BOOTM_NETBSD is not set > CONFIG_CMD_ASKENV=y > @@ -94,5 +95,9 @@ CONFIG_DM_REGULATOR_FIXED=y > CONFIG_DM_REGULATOR_GPIO=y > CONFIG_MXC_UART=y > CONFIG_SYSRESET=y > +CONFIG_SPL_SYSRESET=y > CONF

Re: [PATCH] imx8: Run SPL with caches enabled

2020-04-29 Thread Igor Opaniuk
CONFIG_ARCH_IMX8=y > CONFIG_SYS_TEXT_BASE=0x8002 > CONFIG_SPL_GPIO_SUPPORT=y > diff --git a/configs/verdin-imx8mm_defconfig b/configs/verdin-imx8mm_defconfig > index a964e3ccfd..1dcd6180b9 100644 > --- a/configs/verdin-imx8mm_defconfig > +++ b/configs/verdin-imx8mm_defconfig > @@ -1,

Re: [PATCH v1] colibri_t20: change maintainer

2020-04-13 Thread Igor Opaniuk
Hi Lucas, On Mon, Apr 13, 2020 at 6:11 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Take over maintainership for Colibri T20 module. > > Signed-off-by: Igor Opaniuk > --- > > board/toradex/colibri_t20/MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+),

[PATCH v1] colibri_t20: change maintainer

2020-04-13 Thread Igor Opaniuk
From: Igor Opaniuk Take over maintainership for Colibri T20 module. Signed-off-by: Igor Opaniuk --- board/toradex/colibri_t20/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/toradex/colibri_t20/MAINTAINERS b/board/toradex/colibri_t20/MAINTAINERS index

Re: iMX8MM USB support?

2020-04-01 Thread Igor Opaniuk
+ Sherry, as he was working on iMX8* USB support On Wed, Apr 1, 2020, 20:55 Tim Harvey wrote: > Peng, > > It looks like IMX8MM USB support hasn't made it upstream yet. Is this > something your working on? > > I'm interested in booting an IMX8MM via SDP. > > Best Regards, > > Tim >

[PATCH v2 13/13] colibri_imx6: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off

[PATCH v2 11/13] apalis_imx6: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off

[PATCH v2 04/13] ARM: dts: imx8qxp-colibri: dm-pre-proper for pd_dma nodes

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass (drivers/power/domain

[PATCH v2 12/13] colibri-imx6ull: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off

[PATCH v2 09/13] colibri_vf: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off

[PATCH v2 10/13] colibri_imx7: enable relocation of fdt and initrd

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) from default environment which prevents relocation of FDT and initrd. Rely on 'bootm_size' value instead to safely relocate kernel, device tree and initrd. Signed-off

[PATCH v2 08/13] verdin-imx8mm: add nfsboot wrapper to env

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add nfsboot wrapper to env to boot Linux kernel from TFTP/NFS. Signed-off-by: Igor Opaniuk --- include/configs/verdin-imx8mm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/verdin-imx8mm.h b/include/configs/verdin-imx8mm.h index dc0a2efec6

[PATCH v2 06/13] verdin-imx8mm: adjust dram size in case bl32 is used

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), so during MMU initialization U-Boot won't touch this mem area. BL32 is loaded to the end of DRAM, bl32 payload size is read from rom_pointer[1]. This relates to the issue described in 59efa6b52b(&

[PATCH v2 07/13] imx8mm_evk: adjust dram size in case bl32 is used

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), so during MMU initialization U-Boot won't touch this mem area. BL32 is loaded to the end of DRAM, bl32 payload size is read from rom_pointer[1]. This relates to the issue described in 59efa6b52b(&

[PATCH v2 01/13] ARM: dts: imx8qm-apalis: replace dm-spl with dm-pre-proper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node

[PATCH v2 05/13] colibri_imx6: set gpr1 ENET_CLK_SEL

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk This fixes the issue when PHY auto negotiation never completes. Fixes: 431cd76dd8("colibri_imx6: migrate to DM_ETH") Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- board/toradex/colibri_imx6/colibri_imx6.c | 3 +++ 1 file changed, 3 insertion

[PATCH v2 02/13] ARM: dts: imx8qxp-colibri: replace dm-spl with dm-pre-proper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node

[PATCH v2 03/13] ARM: dts: imx8qm-apalis: dm-pre-proper for pd_dma nodes

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass (drivers/power/domain

[PATCH v2 00/13] bugfix/improvements for IMX-based modules

2020-03-27 Thread Igor Opaniuk
nodes should be accessible before U-Boot relocation. v2: - Applied R-b tags - Put all pending patches into one patch-series to easier track stuff Igor Opaniuk (13): ARM: dts: imx8qm-apalis: replace dm-spl with dm-pre-proper ARM: dts: imx8qxp-colibri: replace dm-spl with dm-pre-proper ARM: dts

[PATCH v3 4/4] colibri_t30: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Create an proper tegra image: $ cbootimage -s tegra30 colibri_t30.img.cfg colibri_t30.img Flash in U-boot shell: > tftpboot ${loadaddr} ${board_name}/${board_name}.img &g

[PATCH v3 3/4] colibri_t20: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage(NAND). Create an proper tegra image: $ cbootimage -s tegra20 colibri_t20-512-v12-nand.img.cfg colibri_t20.img Flash in U-boot shell: > tftpboot ${loadaddr} ${board_name}/${board_n

[PATCH v3 2/4] apalis_t30: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Create an proper tegra image: $ cbootimage -s tegra30 apalis_t30.img.cfg apalis_t30.img Flash in U-boot shell: > tftpboot ${loadaddr} ${board_name}/${board_name}.img > run update

[PATCH v3 1/4] apalis-tk1: add update_uboot wrapper

2020-03-27 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Create an proper tegra image: $ cbootimage -s tegra124 apalis-tk1.img.cfg apalis-tk1.img Flash in U-boot shell: > tftpboot ${loadaddr} ${board_name}/${board_name}.img > run update

[PATCH v3 0/4] This patch series introduces universtal update_uboot

2020-03-27 Thread Igor Opaniuk
wrapper that helps to update U-Boot image on internal storage (eMMC/NAND). Example of usage: > tftpboot ${loadaddr} ${board_name}/${board_name}.img > run update_uboot v3: - No changes v2: - No changes Igor Opaniuk (4): apalis-tk1: add update_uboot wrapper apalis_t30: add update

[PATCH v1] colibri_imx6: set gpr1 ENET_CLK_SEL

2020-03-12 Thread Igor Opaniuk
From: Igor Opaniuk This fixes the issue when PHY auto negotiation never completes. Fixes: 431cd76dd8("colibri_imx6: migrate to DM_ETH") Signed-off-by: Igor Opaniuk --- board/toradex/colibri_imx6/colibri_imx6.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/toradex/co

Re: [PATCH v3 0/7] x86: Improve support for chain-loading U-Boot

2020-03-11 Thread Igor Opaniuk
state of tooling in U-Boot is not too good to be able to read thoughts of people and guess their wishes. But if you know how to improve that, patches are always welcome! [1] https://patchwork.ozlabs.org/cover/1225901/ > > -- > With Best Regards, > Andy Shevchenko > > -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin.com/in/iopaniuk

Re: [PATCH v1 4/4] ARM: dts: imx8qxp-colibri: dm-pre-proper for pd_dma nodes

2020-03-11 Thread Igor Opaniuk
Hi Stefano, On Wed, Feb 19, 2020 at 3:38 PM Oleksandr Suvorov wrote: > > On Wed, Feb 19, 2020 at 3:05 PM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > pd_dma_* nodes should be accessible during pre-relocation stage of > > U-Boot proper for properly

Re: [PATCH v1 4/6] verdin-imx8mm: Change board phy skew values for our ksz9031

2020-03-10 Thread Igor Opaniuk
MII_KSZ9031_EXT_RGMII_CLOCK_SKEW, > + MII_KSZ9031_MOD_DATA_NO_POST_INC, 0x03f4); > > if (phydev->drv->config) > phydev->drv->config(phydev); > -- > 2.25.1 > Tested-by: Igor Opaniuk Acked-by: Igor Opaniuk -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin.com/in/iopaniuk

Re: [PATCH v1 5/6] board: verdin-imx8mm: Add KSZ9131 phy skew settings

2020-03-10 Thread Igor Opaniuk
MII_KSZ9031_MOD_DATA_NO_POST_INC); > + /* disable txdll bypass (enable 2ns skew delay on TXC) */ > + tmp &= ~MII_KSZ9131_RXTXDLL_BYPASS; > + /* rxc data pad skew 2ns - devaddr = 0x02, register = 0x4d */ > + tmp = ksz9031_phy_extended_write(phydev, 0x02, &

Re: [External] Re: How to set boot count in U-boot for NXP iMX.6 Dual and Dual lite?

2020-03-10 Thread Igor Opaniuk
tenv/setenv) tools). Hope it helps > > Thank you, > Pratik Rajyaguru > > -Original Message- > From: Igor Opaniuk > Sent: 10 March 2020 17:32 > To: Pratik Rajyaguru > Cc: u-boot@lists.denx.de > Subject: [External] Re: How to set boot count in U-boot for NX

Re: [PATCH v1 3/6] ARM: dts: verdin-imx8mm: Remove unsupported rxc/txc MAC dly properties

2020-03-10 Thread Igor Opaniuk
> - fsl,rgmii_txc_dly; > phy-handle = <ðphy0>; > phy-mode = "rgmii"; > phy-supply = <®_ethphy>; > -- > 2.25.1 > This one duplicates another sent already patch to ML [1]. [1] https://patchwork.ozlabs.org/patch/1238

Re: How to set boot count in U-boot for NXP iMX.6 Dual and Dual lite?

2020-03-10 Thread Igor Opaniuk
igure / build > u-boot with boot count? > Any insight / alternative approach suggestion will be highly useful. > > > Thanks in advance, > Pratik Rajyaguru > -- Best regards - Freundliche Grüsse - Meilleures salutations Igor Opaniuk mailto: igor.opan...@gmail.com skype: igor.opanyuk +380 (93) 836 40 67 http://ua.linkedin.com/in/iopaniuk

Re: [PATCH v1] doc: board: verdin-imx8mm: use mainline TF-A

2020-03-05 Thread Igor Opaniuk
Hi Bin, On Thu, Mar 5, 2020 at 10:56 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > 1. Update build steps where mainline Trusted Firmware A is used. > 2. Fix BL31_BASE to the proper one according to the SoC reference > manual. > > Signed-off-by: Igor Opaniuk >

[PATCH v1] doc: board: verdin-imx8mm: use mainline TF-A

2020-03-05 Thread Igor Opaniuk
From: Igor Opaniuk 1. Update build steps where mainline Trusted Firmware A is used. 2. Fix BL31_BASE to the proper one according to the SoC reference manual. Signed-off-by: Igor Opaniuk --- doc/board/toradex/verdin-imx8mm.rst | 26 ++ 1 file changed, 6 insertions

[PATCH v1 2/3] imx8mm_evk: adjust dram size in case bl32 is used

2020-03-05 Thread Igor Opaniuk
From: Igor Opaniuk Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), so during MMU initialization U-Boot won't touch this mem area. BL32 is loaded to the end of DRAM, bl32 payload size is read from rom_pointer[1]. This relates to the issue described in 59efa6b52b(&

[PATCH v1 1/3] verdin-imx8mm: adjust dram size in case bl32 is used

2020-03-05 Thread Igor Opaniuk
From: Igor Opaniuk Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), so during MMU initialization U-Boot won't touch this mem area. BL32 is loaded to the end of DRAM, bl32 payload size is read from rom_pointer[1]. This relates to the issue described in 59efa6b52b(&

[PATCH v1 3/3] verdin-imx8mm: add nfsboot wrapper to env

2020-03-05 Thread Igor Opaniuk
From: Igor Opaniuk Add nfsboot wrapper to env to boot Linux kernel from TFTP/NFS. Signed-off-by: Igor Opaniuk --- include/configs/verdin-imx8mm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/verdin-imx8mm.h b/include/configs/verdin-imx8mm.h index dc0a2efec6

Re: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for OPTEE memory

2020-03-05 Thread Igor Opaniuk
nclude > > #include > > #include > > #include > > @@ -13,7 +14,12 @@ DECLARE_GLOBAL_DATA_PTR; > > > > int dram_init(void) > > { > > - gd->ram_size = get_ram_size((void *)PHYS_SDRAM, > > PHYS_SDRAM_SIZE); > > +

Re: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for OPTEE memory

2020-03-05 Thread Igor Opaniuk
ting to System Control Register in > > arch/arm/cpu/armv8/cache_v8.c:419: > > > > /* enable the mmu */ > > set_sctlr(get_sctlr() | CR_M); > > > > In my setup mainline U-Boot/TF-A/OP-TEE are used: > > u-boot: 133276f14a ("Merge branch '2020-02-25-master-imports

Re: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for OPTEE memory

2020-03-04 Thread Igor Opaniuk
Added Clement Faure to the discussion On Wed, Mar 4, 2020 at 4:34 PM Igor Opaniuk wrote: > > Hi Peng, > > On Tue, Aug 27, 2019 at 9:38 AM Peng Fan wrote: > > > > When running with OPTEE, the MMU table in u-boot does not remove the OPTEE > > memory from its setting

Re: [U-Boot] [PATCH V3 15/27] imx8m: Fix MMU table issue for OPTEE memory

2020-03-04 Thread Igor Opaniuk
p-tee: a67dc424ff ("ta: pkcs11: API for slot/token information") OP-TEE is compiled with these flags: CFG_ARM64_core=y CFG_NXP_CAAM=n CFG_NXPCRYPT=n PLATFORM=imx-mx8mmevk CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=y CFG_TEE_CORE_DEBUG=y With DCACHE disabled obviously eve

[PATCH v1 1/4] ARM: dts: imx8qm-apalis: replace dm-spl with dm-pre-proper

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node

[PATCH v1 2/4] ARM: dts: imx8qxp-colibri: replace dm-spl with dm-pre-proper

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node

[PATCH v1 3/4] ARM: dts: imx8qm-apalis: dm-pre-proper for pd_dma nodes

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass (drivers/power/domain

[PATCH v1 4/4] ARM: dts: imx8qxp-colibri: dm-pre-proper for pd_dma nodes

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass (drivers/power/domain

<    1   2   3   4   5   6   7   8   9   10   >