Re: [PATCH 5/5] pci: Fix showing registers

2021-10-07 Thread Stefan Roese
On 07.10.21 14:51, Pali Rohár wrote: Header type is 7-bit number so use all 7 bits when detecting header type and not only 2 bits. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- cmd/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 4/5] pci: Fix showing bars

2021-10-07 Thread Stefan Roese
On 07.10.21 14:51, Pali Rohár wrote: Header type is 7-bit number so properly clear upper 8th bit which indicates multifunction device. And do not try to show bars for unsupported header types. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- cmd/pci.c | 5 +

Re: [PATCH 3/5] pci: Fix configuring BARs

2021-10-07 Thread Stefan Roese
On 07.10.21 14:50, Pali Rohár wrote: Number of BARs is defined by header type, not by class code. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/pci/pci_auto.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff

Re: [PATCH 2/5] pci: Skip configuring invalid P2P bridge devices

2021-10-07 Thread Stefan Roese
On 07.10.21 14:50, Pali Rohár wrote: Function dm_pci_hose_probe_bus() expects that bus is valid PCI device with Bridge header type (0x01). So add check before touching PCI config space to prevent misconfiguring some non-standard device. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese

Re: [PATCH 1/5] pci: Skip configuring PCI Rom Address for unsupported header types

2021-10-07 Thread Stefan Roese
On 07.10.21 14:50, Pali Rohár wrote: PCI Rom Address is currently supported only for Normal (0x00) and Bridge (0x01) header types. Fix code accordingly. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/pci/pci_auto.c | 3 ++- 1 file changed, 2

Re: [PATCH] ARM: mvebu: x530: Remove custom kwbimage.cfg

2021-10-07 Thread Stefan Roese
On 07.10.21 10:39, Chris Packham wrote: Commit ca1a4c863232 ("mvebu: select boot device at SoC level") made it unnecessary for the A385 boards to have their own kwbimage.cfg but as the x530 was in flight at the time it was added with it's own kwbimage.cfg. Remove the custom kwbimage.cfg as the

Re: [resent RFC 06/22] sata: call device_probe() after scanning

2021-10-07 Thread Ilias Apalodimas
[...] > > > + ret = device_probe(bdev); > > > + if (ret < 0) { > > > + debug("Can't probe\n"); > > > + /* TODO: undo create */ > > > + > > > + device_unbind(bdev); > > > + > > > + return ret; > > > + } > > > + > > > > Patches 2-6 seem to do the same

[PATCH v2 08/12] i2c: Add a DM_I2C driver for the sun8i RSB controller

2021-10-07 Thread Samuel Holland
This bus controller is used to communicate with an X-Powers AXP PMIC. Currently, various drivers access PMIC registers through a platform- specific non-DM "pmic_bus" interface, which depends on the legacy I2C framework. In order to convert those drivers to use DM_PMIC, this bus needs a DM_I2C

[PATCH v2 06/12] sunxi: pmic_bus: Fix Kconfig dependencies

2021-10-07 Thread Samuel Holland
AXP_PMIC_BUS enables communication with a specific AXP PMIC at a PMIC-dependent I2C/P2WI/RSB bus address. It is automatically selected as a dependency of the PMIC driver. It should not be selectable by the user when no PMIC is chosen. AXP_GPIO uses the pmic_bus functions, and also depends on a

[PATCH v2 09/12] sunxi: pmic_bus: Clean up preprocessor conditions

2021-10-07 Thread Samuel Holland
Instead of using the SoC symbols to decide the bus type, use whichever bus driver is actually enabled. This allows collapsing all of the AXP2xx and AXP8xx variants into one "else" case. It also has the advantage of falling back to I2C when the other bus drivers are disabled; this works because all

[PATCH v2 11/12] sunxi: video: Convert panel I2C to use DM_I2C

2021-10-07 Thread Samuel Holland
Two displays supported by the sunxi display driver (each one used by a single board) require initialization over I2C. Both previously used i2c_soft; replace this with the i2c-gpio instance that already exists in those boards' device trees (sun5i-a13-utoo-p66 and sun6i-a31-colombus). Since the

[PATCH v2 10/12] sunxi: pmic_bus: Use the DM PMIC interface when possible

2021-10-07 Thread Samuel Holland
The pmic_bus functions are used in both SPL (for regulator setup) and U-Boot proper (for regulator setup, SID access, GPIO, and poweroff). Currently, pmic_bus conflicts with DM_I2C because it uses the legacy I2C interface. This commit makes pmic_bus dual-compatible with either the legacy I2C

[PATCH v2 07/12] i2c: Add a DM_I2C driver for the sun6i P2WI controller

2021-10-07 Thread Samuel Holland
This bus controller is used to communicate with an X-Powers AXP PMIC. Currently, various drivers access PMIC registers through a platform- specific non-DM "pmic_bus" interface, which depends on the legacy I2C framework. In order to convert those drivers to use DM_PMIC, this bus needs a DM_I2C

[PATCH v2 12/12] sunxi: Enable DM_I2C for all sunxi boards

2021-10-07 Thread Samuel Holland
Now that the last users of legacy I2C (outside of SPL) have been resolved, we can enable DM_I2C at the sunxi architecture level. Reviewed-by: Heiko Schocher Signed-off-by: Samuel Holland --- Changes in v2: - No changes arch/arm/Kconfig| 1 + arch/arm/mach-sunxi/Kconfig | 3 --- 2

[PATCH v2 03/12] power: pmic: Add a driver for X-Powers AXP PMICs

2021-10-07 Thread Samuel Holland
These PMICs provide some combination of battery charger, fuel gauge, GPIOs, regulators, and VBUS routing. These functions are represented as child nodes in the device tree. Add the minimal driver needed to probe these child devices and provide the DM_PMIC ops. Enable the driver by default for

[PATCH v2 05/12] sunxi: Select SUN8I_RSB more carefully

2021-10-07 Thread Samuel Holland
SUN8I_RSB should not be selected by MACH_SUN8I, because the hardware is not present in half of those SoCs (H3/H5, R40, and V3s). Move the selection to the SoCs where the hardware actually exists. Reviewed-by: Andre Przywara Signed-off-by: Samuel Holland --- Changes in v2: - No changes

[PATCH v2 04/12] sunxi: Only initialize legacy I2C when enabled

2021-10-07 Thread Samuel Holland
CONFIG_SPL_I2C is the wrong symbol to use here. It is the top-level Kconfig symbol (not specific to either legacy or DM I2C), whereas the i2c_init() function is specific to legacy I2C. This change fixes a build failure when enabling SPL_I2C but not SPL_SYS_I2C_LEGACY. Signed-off-by: Samuel

[PATCH v2 02/12] power: pmic: Consistently depend on SPL_DM_PMIC

2021-10-07 Thread Samuel Holland
Now that there is a separate symbol to enable DM_PMIC in SPL, update the the SPL-specific driver symbols to depend on this new option. Signed-off-by: Samuel Holland --- Changes in v2: - Rebase to pick up 7abf178b ("power: Tidy up #undef of CONFIG_DM_PMIC") drivers/power/pmic/Kconfig | 11

[PATCH v2 00/12] sunxi: Migrate to DM_I2C

2021-10-07 Thread Samuel Holland
This series does the initial work to migrate sunxi boards to DM_I2C. Version 1 of this series bitrotted quite a bit, so there is some reorganization in version 2. First it takes care of the PMIC: - Patches 1-2 clean up the PMIC Kconfig, though they are not strictly necessary after 7abf178b,

[PATCH v2 01/12] power: pmic: Consistently depend on DM_PMIC

2021-10-07 Thread Samuel Holland
Kconfig symbols for two PMIC drivers (PMIC_AS3722 and DM_PMIC_MC34708) were missing a dependency on DM_PMIC. To fix this inconsistency, and to keep it from happening again, wrap the driver section with "if DM_PMIC" instead of using a "depends on DM_PMIC" clause for each driver. Reviewed-by: Igor

[PATCH V2 7/7] doc: imx8mq_evk: update doc after using binman

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan Update doc after using binman to pack images Signed-off-by: Peng Fan --- doc/board/nxp/imx8mq_evk.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/board/nxp/imx8mq_evk.rst b/doc/board/nxp/imx8mq_evk.rst index c269fdebe3..92eeda79aa 100644 ---

[PATCH V2 6/7] imx: imx8mq use common imximage.cfg

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan After all these board switch to binman, we could use common imximage.cfg Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/imximage.cfg | 12 +++- board/freescale/imx8mq_evk/imximage.cfg | 11 --- board/google/imx8mq_phanbell/imximage.cfg | 11

[PATCH V2 5/7] imx: makefile: drop the use of imx8mimage.sh

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan After switch to use binman, no need to use the bash script to check file exsiting or not. And there is bug that the script will be executed everytime Makefile is used which is confusing people. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 13 +++-- 1 file

[PATCH V2 3/7] imx: imx8mq_phanbell: switch to binman

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan Switch to binman to pack images Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-phanbell-u-boot.dtsi | 2 ++ arch/arm/mach-imx/imx8m/Kconfig | 7 --- board/google/imx8mq_phanbell/imximage.cfg | 11 +++ configs/imx8mq_phanbell_defconfig | 3 ++-

[PATCH V2 4/7] imx: pico-imx8mq: switch to use binman

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan Switch to use binman to pack images Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-pico-pi.dts | 1 + arch/arm/mach-imx/imx8m/Kconfig | 1 + board/technexion/pico-imx8mq/imximage.cfg | 11 +++ configs/pico-imx8mq_defconfig | 3 ++- 4

[PATCH V2 1/7] tools: imx8mimage: not abort when mmap fail

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan When creating flash.bin, the hdmi firmware might not be copied to U-Boot source tree. Then mkimage will fail. However we are switching to binman, binman will show the message if the file not there, and create empty file per i.MX8MQ binman node. So we not fail mkimage here

[PATCH V2 2/7] imx: imx8mq_evk: switch to binman

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan Switch to use binman to pack images Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-evk-u-boot.dtsi | 2 + arch/arm/dts/imx8mq-u-boot.dtsi | 122 arch/arm/mach-imx/imx8m/Kconfig | 1 + board/freescale/imx8mq_evk/imximage.cfg |

[PATCH V2 0/7] imx8mq: switch to binman

2021-10-07 Thread Peng Fan (OSS)
From: Peng Fan V2: Add cover-letter Rebased to latest master to avoid apply failure. Peng Fan (7): tools: imx8mimage: not abort when mmap fail imx: imx8mq_evk: switch to binman imx: imx8mq_phanbell: switch to binman imx: pico-imx8mq: switch to use binman imx: makefile: drop the use

[PATCH v1 3/3] rockchip: rk3568: add arch_cpu_init()

2021-10-07 Thread Nico Cheng
We configured the drive strength and security of EMMC in arch_cpu_init(). Signed-off-by: Nico Cheng --- arch/arm/mach-rockchip/rk3568/rk3568.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3568/rk3568.c

[PATCH v1 2/3] arm: dts: rockchip: rk3568: Enable sdhci and sdmmc0 node

2021-10-07 Thread Nico Cheng
Enable sdhci and sdmmc0 node in rk3568-u-boot.dtsi Signed-off-by: Nico Cheng --- arch/arm/dts/rk3568-u-boot.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/rk3568-u-boot.dtsi b/arch/arm/dts/rk3568-u-boot.dtsi index 1570f13fc7..5a80dda275 100644 ---

[PATCH v1 1/3] rockchip: Kconfig: Enable SPL support for rk3568

2021-10-07 Thread Nico Cheng
Enable SPL support in Kconfig and add some related option in rk3568_common.h Signed-off-by: Nico Cheng Signed-off-by: Jason Zhu --- arch/arm/mach-rockchip/Kconfig | 2 ++ configs/evb-rk3568_defconfig| 25 - include/configs/rk3568_common.h | 4 3 files

[PATCH v1 0/3] Add SPL build support for RK3568

2021-10-07 Thread Nico Cheng
This series adds support for the rk3568 SOC, SPL load next-stage image from eMMC will be supported after this series of patches. Nico Cheng (3): rockchip: Kconfig: Enable SPL support for rk3568 arm: dts: rockchip: rk3568: Enable sdhci and sdmmc0 node rockchip: rk3568: add arch_cpu_init()

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-07 Thread AKASHI Takahiro
On Mon, Oct 04, 2021 at 12:27:59PM +0900, AKASHI Takahiro wrote: > On Fri, Oct 01, 2021 at 11:30:37AM +0200, Heinrich Schuchardt wrote: > > > > > > On 10/1/21 07:01, AKASHI Takahiro wrote: > > > UCLASS_PARTITION device will be created as a child node of > > > UCLASS_BLK device. > > > > > >

[PATCH v5 08/10] include/configs: apalis-imx8/verdin-imx8mm: rename kernel image variable

2021-10-07 Thread Marcel Ziswiler
From: Oleksandr Suvorov Variable "kernel_image" is used in boot.scr script only, that sets its own default value to the constant string @@KERNEL_IMAGETYPE@@ in case "kernel_image" is not set. The default name of the kernel image shipped with BSP 5.x is "Image.gz". Setting kernel_image="Image" as

[PATCH v5 00/10] board: toradex: verdin-imx8mm: target refresh

2021-10-07 Thread Marcel Ziswiler
From: Marcel Ziswiler An assortment of fixes and improvements like an Ethernet PHY configuration fix, DEK blob encapsulation preparation, migration to using binman to pack images, SLEEP_MOCI# enablement, dropping of V1.0 hardware support [1], renaming kernel image variable, using preboot for

[PATCH v5 10/10] verdin-imx8mm: fix watchdog pinctrl issue

2021-10-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Finally, found the root cause of the issue already once mentioned back here [2] which caused the following error message during boot: imx_wdt watchdog@3028: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19 Turns out while the watchdog node itself

[PATCH v5 04/10] verdin-imx8mm: switch to use binman to pack images

2021-10-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Use binman to pack images. Signed-off-by: Marcel Ziswiler Reviewed-by: Heiko Thiery Reviewed-by: Fabio Estevam Reviewed-by: Heiko Schocher --- (no changes since v4) Changes in v4: - Add Heiko Schocher's reviewed-by tag. - Fix copyright periods. Changes in v3: -

[PATCH v5 09/10] verdin-imx8mm: use preboot for fdtfile evaluation

2021-10-07 Thread Marcel Ziswiler
From: Igor Opaniuk Enable and set preboot var with fdtfile evaluation. It will be checked and run immediately before starting the CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp. entering interactive mode. This provides possibility to use different boot cmds in interactive

[PATCH v5 05/10] verdin-imx8mm: enable sleep_moci output

2021-10-07 Thread Marcel Ziswiler
From: Max Krummenacher This powers some peripherals on the carrier board e.g. the USB hub. Related-to: ELB-3206 Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- (no changes since v1) arch/arm/dts/imx8mm-verdin.dts | 18 ++

[PATCH v5 07/10] verdin-imx8mm: drop support for v1.0 hardware

2021-10-07 Thread Marcel Ziswiler
From: Max Krummenacher We drop support for Verdin iMX8M Mini V1.0B. Related-to: ELB-3551 Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- Changes in v5: - Re-based on top of u-boot-imx, master yet again. Changes in v4: - Re-based. Changes in

[PATCH v5 01/10] imx8m: clean-up kconfig indentation

2021-10-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Replace spurious spaces with proper tabs. Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- (no changes since v1) arch/arm/mach-imx/imx8m/Kconfig | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH v5 06/10] verdin-imx8mm: clean-up include order

2021-10-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Alphabetically order includes. While at it also update copyright year resp. period. Signed-off-by: Marcel Ziswiler --- (no changes since v3) Changes in v3: - New patch cleaning up include order. board/toradex/verdin-imx8mm/verdin-imx8mm.c | 4 ++-- 1 file changed, 2

[PATCH v5 03/10] ARM: dts: imx8mm-verdin: prepare for dek blob encapsulation

2021-10-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Prepare for DEK blob encapsulation support through "dek_blob" command. On ARMv8, u-boot runs in non-secure, thus cannot encapsulate a DEK blob for encrypted boot. The DEK blob is encapsulated by OP-TEE through a trusted application call. U-boot sends and receives the DEK

[PATCH v5 02/10] verdin-imx8mm: fix ethernet

2021-10-07 Thread Marcel Ziswiler
From: Marcel Ziswiler Turns out Microship (formerly Micrel) meanwhile integrated proper support for the DLL setup on their KSZ9131. Unfortunately, this conflicts with our previous board code doing that. Fix this by getting rid of our board code and just relying on the generic implementation

Re: [PATCH] ARM: dts: imx8mm-verdin: Set PHY mode to RGMII-ID

2021-10-07 Thread Marek Vasut
On 10/8/21 2:13 AM, Marcel Ziswiler wrote: On Thu, 2021-10-07 at 23:56 +, Marcel Ziswiler wrote: On Thu, 2021-10-07 at 16:12 +0200, sba...@denx.de wrote: Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay

Re: [PATCH] ARM: dts: imx8mm-verdin: Set PHY mode to RGMII-ID

2021-10-07 Thread Marcel Ziswiler
On Thu, 2021-10-07 at 23:56 +, Marcel Ziswiler wrote: > On Thu, 2021-10-07 at 16:12 +0200, sba...@denx.de wrote: > > > Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on > > > ksz9131") > > > the Micrel PHY driver correctly configures the delay register. The Verdin > > > PHY

Re: [PATCH] ARM: dts: imx8mm-verdin: Set PHY mode to RGMII-ID

2021-10-07 Thread Marcel Ziswiler
On Thu, 2021-10-07 at 16:12 +0200, sba...@denx.de wrote: > > Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") > > the Micrel PHY driver correctly configures the delay register. The Verdin > > PHY > > is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer

Re: [PATCH v4 04/10] verdin-imx8mm: switch to use binman to pack images

2021-10-07 Thread Marcel Ziswiler
Hi Simon On Wed, 2021-10-06 at 20:18 -0600, Simon Glass wrote: > ... > Nice clean-up! Thanks! > Reviewed-by: Simon Glass > > Option below. > > > > > diff --git a/arch/arm/dts/imx8mm-verdin-u-boot.dtsi > > b/arch/arm/dts/imx8mm-verdin-u-boot.dtsi > > index a97626fa0c1..0c65070cd5f 100644 >

Re: imx6 DM_VIDEObroken

2021-10-07 Thread Anatolij Gustschin
On Thu, 7 Oct 2021 12:50:04 -0700 Tim Harvey thar...@gateworks.com wrote: ... > > then vidconsole should be enabled. > > Anatolij, > > That is my configuration yet vidconsole does not enable until I > 'setenv stdout serial,vidconsole': > Ventana > print stdout > stdout=serial,vidconsole > ^^^

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Alex G.
On 10/7/21 4:04 PM, Tom Rini wrote: On Thu, Oct 07, 2021 at 03:33:32PM -0500, Alex G. wrote: On 10/7/21 2:39 PM, Tom Rini wrote: On Thu, Oct 07, 2021 at 02:32:42PM -0500, Alex G. wrote: On 10/7/21 1:50 PM, Simon Glass wrote: Hi Tom, On Thu, 7 Oct 2021 at 12:30, Tom Rini wrote: On

using device-tree fragments/overlays

2021-10-07 Thread Tim Harvey
Greetings, I'm working on some features for the imx8mm-venice boards I support which depend on making small changes to the dt before booting Linux. The purpose is not to have any of this apply to the U-Boot controlling dt but instead to the Linux kernel dt applied within ft_board_setup. I could

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Tom Rini
On Thu, Oct 07, 2021 at 03:33:32PM -0500, Alex G. wrote: > > > On 10/7/21 2:39 PM, Tom Rini wrote: > > On Thu, Oct 07, 2021 at 02:32:42PM -0500, Alex G. wrote: > > > > > > > > > On 10/7/21 1:50 PM, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu, 7 Oct 2021 at 12:30, Tom Rini

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Alex G.
On 10/7/21 2:39 PM, Tom Rini wrote: On Thu, Oct 07, 2021 at 02:32:42PM -0500, Alex G. wrote: On 10/7/21 1:50 PM, Simon Glass wrote: Hi Tom, On Thu, 7 Oct 2021 at 12:30, Tom Rini wrote: On Thu, Oct 07, 2021 at 12:02:24PM -0600, Simon Glass wrote: Hi Tom, On Thu, 7 Oct 2021 at 07:42,

Re: imx6 DM_VIDEObroken

2021-10-07 Thread Tim Harvey
On Mon, Oct 4, 2021 at 6:48 AM Anatolij Gustschin wrote: > > On Wed, 29 Sep 2021 09:33:18 -0700 > Tim Harvey thar...@gateworks.com wrote: > ... > > One last question on this. I have never used U-Boot vidconsole before. > > It does work if I 'setenv stdout serial,videconsole' but if I saveenv > >

Re: Broken build with disabling OpenSSL crypto

2021-10-07 Thread Tom Rini
On Wed, Oct 06, 2021 at 11:27:43PM +0200, Jernej Škrabec wrote: > Hi everyone! > > Commit cb9faa6f98ae ("tools: Use a single target-independent config to enable > OpenSSL") recently introduced option to disable usage of OpenSSL via > CONFIG_TOOLS_LIBCRYPTO. However, just a bit later, another

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Tom Rini
On Thu, Oct 07, 2021 at 02:32:42PM -0500, Alex G. wrote: > > > On 10/7/21 1:50 PM, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 7 Oct 2021 at 12:30, Tom Rini wrote: > > > > > > On Thu, Oct 07, 2021 at 12:02:24PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu, 7 Oct 2021

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Alex G.
On 10/7/21 1:50 PM, Simon Glass wrote: Hi Tom, On Thu, 7 Oct 2021 at 12:30, Tom Rini wrote: On Thu, Oct 07, 2021 at 12:02:24PM -0600, Simon Glass wrote: Hi Tom, On Thu, 7 Oct 2021 at 07:42, Tom Rini wrote: On Thu, Oct 07, 2021 at 07:32:04AM -0600, Simon Glass wrote: Hi Tom, On Wed,

Re: [Uboot-stm32] [PATCH v2 03/11] stm32mp1: Add support for falcon mode boot from SD card

2021-10-07 Thread Alex G.
On 10/4/21 9:57 AM, Patrick DELAUNAY wrote: Hi, => if OPTEE is loaded after SPL the U-Boot configuration change (running in secure world or not) I am starting to work on these issues in the branch https://github.com/u-boot/u-boot/compare/master...patrickdelaunay:spl_optee_W2140

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Simon Glass
Hi Tom, On Thu, 7 Oct 2021 at 12:30, Tom Rini wrote: > > On Thu, Oct 07, 2021 at 12:02:24PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 7 Oct 2021 at 07:42, Tom Rini wrote: > > > > > > On Thu, Oct 07, 2021 at 07:32:04AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed,

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-07 Thread Tim Harvey
On Thu, Oct 7, 2021 at 11:37 AM Stefano Babic wrote: > > Hi Tim, > > On 07.10.21 20:08, Tim Harvey wrote: > > On Thu, Oct 7, 2021 at 10:35 AM Marcel Ziswiler wrote: > >> > >> On Thu, 2021-10-07 at 10:26 -0700, Tim Harvey wrote: > >>> ... > >>> Marvell, > >> > >> (;-p) > >> > >>> Indeed that

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-07 Thread Stefano Babic
Hi Tim, On 07.10.21 20:08, Tim Harvey wrote: On Thu, Oct 7, 2021 at 10:35 AM Marcel Ziswiler wrote: On Thu, 2021-10-07 at 10:26 -0700, Tim Harvey wrote: ... Marvell, (;-p) Indeed that patch resolves the issue - thanks for reminding me that hasn't made it in yet! You are very welcome.

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Tom Rini
On Thu, Oct 07, 2021 at 12:02:24PM -0600, Simon Glass wrote: > Hi Tom, > > On Thu, 7 Oct 2021 at 07:42, Tom Rini wrote: > > > > On Thu, Oct 07, 2021 at 07:32:04AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 6 Oct 2021 at 20:52, Tom Rini wrote: > > > > > > > > On Wed, Oct 06,

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-07 Thread Tim Harvey
On Thu, Oct 7, 2021 at 10:35 AM Marcel Ziswiler wrote: > > On Thu, 2021-10-07 at 10:26 -0700, Tim Harvey wrote: > > ... > > Marvell, > > (;-p) > > > Indeed that patch resolves the issue - thanks for reminding me that > > hasn't made it in yet! > > You are very welcome. Yeah, I hope somebody

Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED()

2021-10-07 Thread Simon Glass
Hi Tom, On Thu, 7 Oct 2021 at 07:42, Tom Rini wrote: > > On Thu, Oct 07, 2021 at 07:32:04AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 6 Oct 2021 at 20:52, Tom Rini wrote: > > > > > > On Wed, Oct 06, 2021 at 08:49:13PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed,

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-07 Thread Marcel Ziswiler
On Thu, 2021-10-07 at 10:26 -0700, Tim Harvey wrote: > ... > Marvell, (;-p) > Indeed that patch resolves the issue - thanks for reminding me that > hasn't made it in yet! You are very welcome. Yeah, I hope somebody starts pulling that stuff (and everything else still in-flight) soon. As it

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-07 Thread Tim Harvey
On Thu, Oct 7, 2021 at 10:12 AM Marcel Ziswiler wrote: > > Hi Tim > > On Thu, 2021-10-07 at 08:52 -0700, Tim Harvey wrote: > > )On Wed, Oct 6, 2021 at 2:44 PM Marcel Ziswiler wrote: > > > > > > On Wed, 2021-10-06 at 13:17 -0700, Tim Harvey wrote: > > > > Use binman to pack images. > > > > > > >

Re: [PATCH 0/3] stm32mp: Attempt to resolve unintended breakage with v2021.10-rc2

2021-10-07 Thread Alex G.
Hi Patrick, On 9/14/21 7:26 AM, Patrick DELAUNAY wrote: Hi Alexandru, I think you need to update  arch/arm/mach-stm32mp/Kconfig something like:  config STM32MP15x bool "Support STMicroelectronics STM32MP15x Soc" -    select ARCH_SUPPORT_PSCI if !TFABOOT -    select ARM_SMCCC if

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-07 Thread Marcel Ziswiler
Hi Tim On Thu, 2021-10-07 at 08:52 -0700, Tim Harvey wrote: > )On Wed, Oct 6, 2021 at 2:44 PM Marcel Ziswiler wrote: > > > > On Wed, 2021-10-06 at 13:17 -0700, Tim Harvey wrote: > > > Use binman to pack images. > > > > > > Note that imx8mm_venice supports several boards via multiple DTB's thus

Re: [PATCH 06/11] sunxi: Select SUN8I_RSB more carefully

2021-10-07 Thread Andre Przywara
On Sat, 21 Aug 2021 18:05:14 -0500 Samuel Holland wrote: > SUN8I_RSB should not be selected by MACH_SUN8I, because the hardware > is not present in half of those SoCs (H3/H5, R40, and V3s). Move the > selection to the SoCs where the hardware actually exists. Indeed, only those SoCs below have

Re: [PATCH v3 3/3] pwm: Add driver for cadence TTC

2021-10-07 Thread Sean Anderson
On 10/6/21 10:19 AM, Michal Simek wrote: TTC has three modes of operations. Timer, PWM and input counters. There is already driver for timer under CADENCE_TTC_TIMER which is used for ZynqMP R5 configuration. This driver is targeting PWM which is for example configuration which can be used

Re: [PATCH v3 2/3] timer: cadence: Add bind function to driver

2021-10-07 Thread Sean Anderson
On 10/6/21 10:19 AM, Michal Simek wrote: When DT node has pwm-cells property it shouldn't be bind as timer driver but as PWM driver. That's why make sure that this property is checked. Signed-off-by: Michal Simek --- Changes in v3: - New patch in series drivers/timer/cadence-ttc.c | 12

Re: [PATCH v2] imx8mm_venice: switch to use binman to pack images

2021-10-07 Thread Tim Harvey
)On Wed, Oct 6, 2021 at 2:44 PM Marcel Ziswiler wrote: > > On Wed, 2021-10-06 at 13:17 -0700, Tim Harvey wrote: > > Use binman to pack images. > > > > Note that imx8mm_venice supports several boards via multiple DTB's thus > > in the fit node we must use: > > - fit,fdt-list = "of-list" > > -

Re: [PULL u-boot] Please pull u-boot-amlogic-20211007

2021-10-07 Thread Tom Rini
llowing changes since commit ea67f467a43e4c8852bd1ce1bb75f5dc6c3788d1: > > Merge branch '2021-10-06-assorted-improvements' (2021-10-06 13:46:31 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodi

Re: [PULL] u-boot-riscv/master

2021-10-07 Thread Tom Rini
On Thu, Oct 07, 2021 at 07:51:00PM +0800, Leo Liang wrote: > Hi Tom, > > The following changes since commit ea67f467a43e4c8852bd1ce1bb75f5dc6c3788d1: > > Merge branch '2021-10-06-assorted-improvements' (2021-10-06 13:46:31 -0400) > > are available in the Git repository at: > >

RE: [PATCH v2] drivers: net: fsl-mc: add a command which dumps the MC log

2021-10-07 Thread Aluchenesei Cosmin-florin
This mail was sent by mistake. Please ignore. -Original Message- From: Aluchenesei Cosmin-florin Sent: Thursday, October 7, 2021 1:08 PM To: joe.hershber...@ni.com; rfried@gmail.com; Priyanka Jain Cc: Ioana Ciornei ; u-boot@lists.denx.de; Aluchenesei Cosmin-florin Subject: [PATCH

[PATCH v2] drivers: net: fsl-mc: add a command which dumps the MC log

2021-10-07 Thread Cosmin-Florin Aluchenesei
Extended fsl_mc command adding an extra option dump_log Signed-off-by: Cosmin-Florin Aluchenesei Changes in v2: - Add MC_STRUCT_BUFFER_OFFSET once to the base address of MC. --- drivers/net/fsl-mc/mc.c | 89 - include/fsl-mc/fsl_mc.h | 9 + 2 files

[PATCH] drivers: net: fsl-mc: add a command which dumps the MC log

2021-10-07 Thread Cosmin-Florin Aluchenesei
Extended fsl_mc command adding an extra option dump_log Signed-off-by: Cosmin-Florin Aluchenesei --- drivers/net/fsl-mc/mc.c | 89 - include/fsl-mc/fsl_mc.h | 9 + 2 files changed, 97 insertions(+), 1 deletion(-) diff --git a/drivers/net/fsl-mc/mc.c

[PATCH v4 2/2] board: kontron: pitx-imx8m: Add Kontron pitx-imx8m board support

2021-10-07 Thread Heiko Thiery
The Kontron pitx-imx8m is an NXP i.MX8MQ based board in the pITX form factor. Signed-off-by: Heiko Thiery --- v4: update board integration - migrate to IMX_CONFIG - convert config options to Kconfig - CONFIG_POWER_I2C - CONFIG_SPL_POWER_I2C - CONFIG_POWER_LEGACY - CONFIG_SYS_LOAD_ADDR

[PATCH 7/7] imx: ventana: fix USB hub reset

2021-10-07 Thread sbabic
> Remove board_ehci_hcd_init function that is not used with DM_USB > and replace its functionality with device-tree configuraton that treats > USB HUB RST# as a gpio enable for the usbh1 vbus regulator. > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards, Stefano

[PATCH v2] imx: spl: fix imx8m secure boot

2021-10-07 Thread sbabic
> cherry-picked from NXP code: > 719d665a87c6: ("MLK-20467 imx8m: Fix issue for booting signed image through > uuu") > which fixes secure boot on imx8m based boards. Problem was > that FIT header and so IVT header too, was loaded to > memallocated address. So the ivt header address coded > in IVT

[PATCH 1/7] imx: ventana: add part command

2021-10-07 Thread sbabic
> Add part command for obtaining info about disk partitions. > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang

[PATCH] mtd: nand: mxs_nand_spl: Add nand_spl_adjust_offset

2021-10-07 Thread sbabic
> Since the mxs_nand_spl has implemented adjust read offset in > nand_spl_load_image, so we don't need to check the bad block in > nand_spl_adjust_offset. Directly return the offset to continue > read by nand_spl_load_image. > Signed-off-by: Ye Li Applied to u-boot-imx, master, thanks ! Best

[PATCH] misc: ocotp: Allow disabling ocotp driver in SPL

2021-10-07 Thread sbabic
> From: Michael Scott > This allows removal of the OCOTP driver when SPL is enabled. > Disabling OCOTP reduces SPL size efficiently. > Signed-off-by: Michael Scott > Co-developed-by: Oleksandr Suvorov > Signed-off-by: Oleksandr Suvorov > Reviewed-by: Peng Fan Applied to u-boot-imx, master,

[PATCH v3] imx8mm-cl-iot-gate: Split the defconfigs

2021-10-07 Thread sbabic
> Currently imx8mm-cl-iot-gate_defconfig fails to produce a working boot > binary due to the lack of fip.bin: > " BINMAN all > Image 'main-section' is missing external blobs and is non-functional: blob-ext > Some images are invalid" > To make the build process more consistent with the other

[PATCH] imx: mx7: spl: fix CONFIG_SPL_MAX_SIZE definition

2021-10-07 Thread sbabic
> The CONFIG_SPL_MAX_SIZE definition did not account for all areas that > are used by the boot ROM according to the manual, causing boot failures > due to truncated SPL images when actually hitting this limit. > Signed-off-by: Matthias Schiffer Applied to u-boot-imx, master, thanks ! Best

[PATCH v2 4/5] board: gateworks: venice: update thermal temp thresholds per cpu grade

2021-10-07 Thread sbabic
> Update the passive/critical thermal zone dt config per CPU temperature > grade. > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH][RFC] tree: imx: remove old fit generator script

2021-10-07 Thread sbabic
> Since derivatives are moving to binman from usage of the FIT generator > script, and considering the warning introduced in f4a43d2925 > ("Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR"), usage of FIT > generator is discouraged. > Current FIT generator also generates broken output, since

[PATCH v6 1/2] imx: imx6ul: Add support for Kontron Electronics SL/BL i.MX6UL/ULL boards (N63xx/N64xx)

2021-10-07 Thread sbabic
> From: Frieder Schrempf > This adds support for i.MX6UL/ULL-based evaluation kits with SoMs by > Kontron Electronics GmbH. > Currently there are the following SoM flavors (SoM-Line): > * N6310: SOM with i.MX6UL-2, 256MB RAM, 256MB SPI NAND > * N6311: SOM with i.MX6UL-2, 512MB RAM, 512MB SPI

[PATCH] arm: imx8m: Fix pad DSE issue for i.MX8MM/MN/MP

2021-10-07 Thread sbabic
> According to 8MM/MN/MP reference manual, their pad registers only have > 4 valid DSE values. And DSE2 and DSE4 are different with current > definitions in iomux-v3.h. Fix the issue to align with manual. > Signed-off-by: Ye Li > Acked-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best

[PATCH 6/7] imx: ventana: update LVDS support

2021-10-07 Thread sbabic
> Enable LVDS display detection and panel-specific configuration > Make I2C based LVDS detection and configuration model specific: > - not all boards support LVDS connectors; fail detection that do not > support LVDS to avoid misdetecting an I2C device as a display > - GPIO configuration is

[PATCH v2 1/1] arm: imx8m: imx8mm-cl-iot-gate: Add support for detect memory size

2021-10-07 Thread sbabic
> From: "Ying-Chun Liu (PaulLiu)" > When purchasing imx8mm-cl-iot-gate it is able to customize the > memory size. It could be 1GB, 2GB and 4GB. We implement > board_phys_sdram_size() to detect the memory size for usage. > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: Fabio Estevam > Cc: Frieder

[PATCH 2/3] imx8mq_evk: Increase CONFIG_SYS_BOOTM_LEN to 64MB

2021-10-07 Thread sbabic
> The BSP platform LmP supports the board NXP iMX8M Plus EVK. The > kernel size in LmP exceeds 32Mb. Increase the maximum size > of an uncompressed kernel to fix the following error: > Uncompressing Kernel Image > Error: inflate() returned -5 > Image too large: increase

[PATCH v1 1/2] spl_fit. add hook to make fixes after fit header is loaded

2021-10-07 Thread sbabic
> add hook function spl_load_simple_fit_fix_load() > which is called after fit image header is loaded. > Signed-off-by: Heiko Schocher > Reviewed-by: Simon Glass Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 1/1] mx7ulp: Update wdog disable sequence

2021-10-07 Thread sbabic
> From: Ye Li > Update the mx7ulp wdog disable sequence to avoid potential reset > issue in unlock or refresh sequence. Both sequence need two words > write to wdog CNT register in 16 bus clocks window, if miss the > window, the write will cause violation in wdog and reset the chip. > Current

[PATCH] ARM: dts: imx6-apalis: enable watchdog

2021-10-07 Thread sbabic
> From: Ricardo Salveti > Add u-boot.dtsi specific to imx6-apalis with a watchdog enabled. > If OP-TEE is loaded by SPL, it may use a watchdog to handle fails of > u-boot running. Enable the watchdog in SPL to use it by OP-TEE. > Signed-off-by: Ricardo Salveti > Signed-off-by: Oleksandr Suvorov

[PATCH] mtd: nand: Fix typo in MXC Kconfig symbol description

2021-10-07 Thread sbabic
> From: Haolin Li > Trivial typo fix. > Signed-off-by: Haolin Li > Reviewed-by: Michal Simek Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director:

[PATCH 1/3] imx8mm_evk: Increase CONFIG_SYS_BOOTM_LEN to 64MB

2021-10-07 Thread sbabic
> The BSP platform LmP supports the board NXP iMX8M Mini EVK. The > kernel size in LmP exceeds 32Mb. Increase the maximum size > of an uncompressed kernel to fix the following error: > Uncompressing Kernel Image > Error: inflate() returned -5 > Image too large: increase

[PATCH v2] arm: dts: imx8mp: Generate single bootable binary

2021-10-07 Thread sbabic
> binman conversion made flashing flash.bin > and u-boot.itb necessary. Update binman config > to create a single flash.bin image again. > This updates imx8mp_evk and phyCORE-i.MX8MP as they share the > same binman config. > Updated also imx8mp_evk documentation. > Tested on phyCORE-i.MX8MP. >

[PATCH v2 5/5] arm: dts: imx8mm-venice*: remove thermal zone overrides

2021-10-07 Thread sbabic
> Remove the unnecessary thermal zone overrides. > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB

[PATCH v2 3/5] arm: dts: imx8mm-venice-gw700x: fix mp5416 pmic config

2021-10-07 Thread sbabic
> Fix various MP5416 PMIC configurations: > - Update regulator names per dt-bindings > - ensure values fit among valid register values > - add required regulator-max-microamp property > - add regulator-always-on prop > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best

  1   2   >