RE: [EXT] [PATCH v11 01/14] crypto/fsl: Add support for CAAM Job ring driver model

2022-04-12 Thread Gaurav Jain
Hi Priyanka Stefano has applied the patches for imx. Please help to apply the layerscape patches. Regards Gaurav Jain > -Original Message- > From: sba...@denx.de > Sent: Tuesday, April 12, 2022 7:05 PM > To: Gaurav Jain ; u-boot@lists.denx.de > Subject: [EXT] [PATCH v11 01/14]

RE: [PATCH V3 0/6] Convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY

2022-04-12 Thread Peng Fan
> Subject: [PATCH V3 0/6] Convert COUNTER_FREQUENCY to > CONFIG_COUNTER_FREQUENCY Seems I need post a V4, some arm64 boards are not handled by my script. Sorry for re-spin so fast. Thanks, Peng. > > From: Peng Fan > > > V3: > Add more help info for CONFIG_COUNTER_FREQUENCY Drop uneeded >

Re: [PATCH v2 17/17] configs: net: dm9000: Move new Kconfig option to board configs

2022-04-12 Thread Ramon Fried
On Wed, Apr 13, 2022 at 5:16 AM Marek Vasut wrote: > > Drop legacy #define CONFIG_DRIVER_DM9000 from board include/configs/ > and enable the same in Kconfig configs/ . > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > V2: New patch > --- >

Re: [PATCH V2] imx: mx7dsabresd: enable DM_SERIAL

2022-04-12 Thread Peng Fan (OSS)
On 2022/4/12 18:16, Fabio Estevam wrote: On Mon, Apr 11, 2022 at 10:32 PM Peng Fan (OSS) wrote: + { + u-boot,dm-pre-reloc; +}; + +&{/soc/bus@3080/spba-bus@3080} { would be easier to read. There is no alias to spba-bus@3080. +_lpsr { + u-boot,dm-pre-reloc;

Re: [PATCH v3 11/19] dm: disk: add UCLASS_PARTITION

2022-04-12 Thread AKASHI Takahiro
Heinrich, (and Simon) On Sat, Apr 09, 2022 at 09:05:07PM +0200, Heinrich Schuchardt wrote: > On 3/8/22 12:36, AKASHI Takahiro wrote: > > With this new function, UCLASS_PARTITION devices will be created as > > child nodes of UCLASS_BLK device. > > > > Signed-off-by: AKASHI Takahiro > > --- > >

Re: [PATCH V2 19/26] imx: imx8ulp_evk: Power down the domains may used in u-boot

2022-04-12 Thread Peng Fan (OSS)
Hi Stefano, On 2022/4/13 1:10, Stefano Babic wrote: Hi Peng,Ye, On 06.04.22 08:30, Peng Fan (OSS) wrote: From: Ye Li Since ATF power domain will hold the enable counter for each power domain, We need to power off them before entering kernel to avoid this power domain can't be really powered

[PATCH] ram: stm32mp1: Conditionally enable ASR

2022-04-12 Thread Marek Vasut
Enable DRAM ASR, auto self-refresh, conditionally, based on DT property "st,mem-enable-asr" . While ASR does save considerable amount of power at runtime automatically, it also causes LTDC underruns on large panels. Let user select whether or not ASR is required or not, generally ASR should be

[PATCH V3 4/6] configs: set CONFIG_COUNTER_FREQUENCY

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Set CONFIG_COUNTER_FREQUENCY according to COUNTER_FREQUENCY in config header file. Signed-off-by: Peng Fan --- configs/a3y17lte_defconfig| 1 + configs/a5y17lte_defconfig| 1 + configs/a7y17lte_defconfig| 1 +

Re: [PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected"

2022-04-12 Thread Felix . Vietmeyer
I am not exactly sure to be honest. We were running with this patched version for a while and it worked from what I remember. But we have since updated u-boot and the Kernel and the latest version does not depend on this patch. Nevertheless, I can try to recreate the problem and see if I can

[PATCH] cmd: adc: Add support for storing ADC result in env variable

2022-04-12 Thread Marek Vasut
Add the ability to start ADC conversion result in an environment variable. This is useful for further arbitrary processing by the U-Boot scripts. Signed-off-by: Marek Vasut Cc: Fabrice Gasnier Cc: Simon Glass --- cmd/adc.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-)

[PATCH v2 17/17] configs: net: dm9000: Move new Kconfig option to board configs

2022-04-12 Thread Marek Vasut
Drop legacy #define CONFIG_DRIVER_DM9000 from board include/configs/ and enable the same in Kconfig configs/ . Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: New patch --- configs/M5253DEMO_defconfig | 1 +

[PATCH v2 16/17] net: dm9000: Add Kconfig entry

2022-04-12 Thread Marek Vasut
Add Kconfig entry for the DM9000 MAC. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index

[PATCH v2 06/17] net: dm9000: Drop volatiles

2022-04-12 Thread Marek Vasut
Remove volatile keyword usage from arrays, they are not really volatile in any way, so this keyword is misused here. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 20

[PATCH v2 14/17] net: dm9000: Receive one packet per recv call

2022-04-12 Thread Marek Vasut
Instead of reading out the entire FIFO and possibly overwriting U-Boot memory, read out one packet per recv call, pass it to U-Boot network stack, and repeat. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon ---

[PATCH v2 15/17] net: dm9000: Add DM support

2022-04-12 Thread Marek Vasut
Add support for U-Boot DM and DT probing. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 118 ++ 1 file changed, 118 insertions(+) diff --git

[PATCH v2 07/17] net: dm9000: Checkpatch cleanup

2022-04-12 Thread Marek Vasut
Fix checkpatch errors and warnings. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 251 +- 1 file changed, 126 insertions(+), 125

[PATCH v2 13/17] net: dm9000: Split non-DM specific bits from common code

2022-04-12 Thread Marek Vasut
Split network handling functions into non-DM specific parts and common code in preparation for conversion to DM. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: - Add RB from Ramon - Ignore return value of dm9000_halt_common(), the function

[PATCH v2 12/17] net: dm9000: Pass private data around for IO

2022-04-12 Thread Marek Vasut
Pass private data into IO accessors and use the base addresses of IO and DATA window from the private data instead of using the hard coded macros DM9000_IO/DM9000_DATA. Currently both the DM9000_IO and DM9000_DATA are assigned to the respecive private data fields for the non-DM case backward

[PATCH v2 09/17] net: dm9000: Rename board_info to dm9000_priv

2022-04-12 Thread Marek Vasut
Rename board_info structure to dm9000_priv to make it clear what this structure really contains, the driver private data. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 10

[PATCH v2 10/17] net: dm9000: Drop static device private data

2022-04-12 Thread Marek Vasut
Allocate driver private data dynamically in its init function and drop the static driver private data variable. Pass the dynamic private data throughout the driver. This is done in preparation for DM conversion. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon

[PATCH v2 11/17] net: dm9000: Drop dm9000.h and staticize SROM access

2022-04-12 Thread Marek Vasut
Dispose of dm9000.h because none of the function prototypes declared in it are called anywhere in the codebase. Staticize dm9000_read_srom_word() because it is now called only from within the dm9000 driver. Drop dm9000_write_srom_word() because it is no longer used. Reviewed-by: Ramon Fried

[PATCH v2 08/17] net: dm9000: Reorder and staticize

2022-04-12 Thread Marek Vasut
Reorder the driver functions to get rid of forward declarations. Staticize whatever is possible. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 122

[PATCH v2 05/17] net: dm9000: Turn DM9000_DMP_PACKET() into a function

2022-04-12 Thread Marek Vasut
Rework DM9000_DMP_PACKET() into dm9000_dump_packet() function, this brings better type checking. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 42

[PATCH v2 04/17] net: dm9000: Drop unused dump_regs()

2022-04-12 Thread Marek Vasut
Drop unused function dump_regs() because it is unused. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 17 - 1 file changed, 17 deletions(-) diff --git

[PATCH v2 03/17] net: dm9000: Make RxLen and RxStatus lowercase

2022-04-12 Thread Marek Vasut
Rename variables to lowercase to be consistent with coding style. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 44 +-- 1 file

[PATCH v2 02/17] net: dm9000: Replace DM9000_DBG() with debug()

2022-04-12 Thread Marek Vasut
Use standard debug() macro to print debug messages instead of reinventing driver-specific macro again. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 48

[PATCH v2 01/17] net: dm9000: Make accessor names lowercase

2022-04-12 Thread Marek Vasut
Make accessor names lowercase to be consistent with coding style. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- V2: Add RB from Ramon --- drivers/net/dm9000x.c | 214 +- 1 file

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

2022-04-12 Thread Leo Liang
Hi Alex, On Tue, Apr 12, 2022 at 11:14:32AM +0200, Alexandre Ghiti wrote: > Hi Leo, > > A gentle ping. > > > > Any comments? > > Or should we spin a patch for updating the toolchain used for 32 bit build? > > Sorry for being very slow here, if the patch is too much of a burden, > maybe you should

[PATCH V3 4/4] imx: imx8mq-evk: enable CONFIG_DM_SERIAL

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Marked related nodes as u-boot,dm-spl for serial driver model Enable CONFIG_DM_SERIAL Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-evk-u-boot.dtsi | 32 + configs/imx8mq_evk_defconfig| 1 + 2 files changed, 33 insertions(+) diff --git

[PATCH V3 3/4] imx: imx8mn_evk: enable CONFIG_DM_SERIAL

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/spl.c | 12 ++-- configs/imx8mn_ddr4_evk_defconfig | 1 + configs/imx8mn_evk_defconfig | 1 + 3 files changed, 4

[PATCH V3 2/4] imx: imx8mm_evk: enable CONFIG_DM_SERIAL

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/spl.c | 12 ++-- configs/imx8mm_evk_defconfig | 1 + 2 files changed, 3 insertions(+), 10 deletions(-) diff --git

[PATCH V3 1/4] imx: imx8mp_evk: enable CONFIG_DM_SERIAL

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/imx8mp_evk.c | 8 configs/imx8mp_evk_defconfig| 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git

[PATCH V3 0/4] imx: imx8m: enable DM SERIAL

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan V3: Add missed Signed-off-by Rebased to only add CONFIG_DM_SERIAL, not touch other config change in defconfig V2: Include imx8mq-evk in this patchset. For i.MX8MN/M/P, drop board level uart pinmux settings, move preloader_console_init after driver probe. Tested on all

[PATCH V3 6/6] include/configs: drop COUNTER_FREQUENCY

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Since we have CONFIG_COUNTER_FREQUENCY enabled, no need COUNTER_FREQUENCY Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/fsl-layerscape/spintable.S | 2 +- include/configs/apalis-imx8.h | 3 --- include/configs/apalis-imx8x.h| 3 ---

[PATCH V3 5/6] armv8: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Since COUNTER_FREQUENCY is obselete, so set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/start.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S

[PATCH V3 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to versal. And update help message. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 12 arch/arm/mach-versal/Kconfig | 6 -- 2 files changed, 12 insertions(+), 6 deletions(-) diff

[PATCH V3 3/6] arch: arm: Kconfig: set default COUNTER_FREQUENCY for i.MX

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz, so set default value for them. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d77186b77b4..b633cc9c943 100644 ---

[PATCH V3 1/6] xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan Since versal has CONFIG_COUNTER_FREQUENCY, so use it. And COUNTER_FREQUENCY will be dropped. Signed-off-by: Peng Fan Reviewed-by: Michal Simek --- board/xilinx/versal/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/xilinx/versal/board.c

[PATCH V3 0/6] Convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY

2022-04-12 Thread Peng Fan (OSS)
From: Peng Fan V3: Add more help info for CONFIG_COUNTER_FREQUENCY Drop uneeded comments Pass git bisect build Rebased V2: Drop imx93 which is wrongly included This patchset is to convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY for arm64. arm32 is not included for now, this could

Re: [PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected"

2022-04-12 Thread Marek Vasut
On 4/13/22 02:49, felix.vietme...@jila.colorado.edu wrote: I am not exactly sure to be honest. We were running with this patched version for a while and it worked from what I remember. But we have since updated u-boot and the Kernel and the latest version does not depend on this patch.

Re: [PATCH v2 13/18] pci: Map bars with offset and length

2022-04-12 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:54:33PM +0100, Andrew Scull wrote: > On Tue, 12 Apr 2022 at 17:42, Tom Rini wrote: > > > > On Tue, Mar 29, 2022 at 04:58:55PM +, Andrew Scull wrote: > > > > > Evolve dm_pci_map_bar() to include an offset and length parameter. These > > > allow a portion of the

Re: [PATCH 00/11] virtio: Harden and test vring

2022-04-12 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:49:12PM +0100, Andrew Scull wrote: > On Tue, 12 Apr 2022 at 19:10, Tom Rini wrote: > > > > On Thu, Mar 31, 2022 at 10:09:38AM +, Andrew Scull wrote: > > > > > Continuing the theme of making the virtio code resilient against > > > corruption of the buffers shared

Re: [PATCH] configs: Enable EXT4 and ISO partitions for the DeveloperBox

2022-04-12 Thread Masami Hiramatsu
This looks good to me. Acked-by: Masami Hiramatsu Thank you! 2022年4月13日(水) 6:16 Ilias Apalodimas : > > Since this box is SystemReady compliant enable ISO_PARTITION which is > needed to start some installers (e.g Fedora). While at it enable EXT4 > as well which is a common filesystem for

Re: [PATCH 00/11] virtio: Harden and test vring

2022-04-12 Thread Andrew Scull
On Tue, 12 Apr 2022 at 19:10, Tom Rini wrote: > > On Thu, Mar 31, 2022 at 10:09:38AM +, Andrew Scull wrote: > > > Continuing the theme of making the virtio code resilient against > > corruption of the buffers shared with the device, this series focusses > > on the vring. This series is

[PATCH v4 10/10] arm: dts: imx8mp: Import GPCv2 subset, HSIOMIX and USB PD

2022-04-12 Thread Marek Vasut
Add DT bindings for a subset of GPCv2 which handles USB and PCIe PDs, HSIOMIX PD controller and missing USB PD properties. This is required to bring up the DWC3 USB controller up. This is based on linux next and patches which are still pending review, but which are likely going to be part of

[PATCH v4 09/10] usb: dwc3: Implement .glue_configure for i.MX8MP

2022-04-12 Thread Marek Vasut
The i.MX8MP glue needs to be configured based on a couple of DT properties, implement .glue_configure callback to parse those DT properties and configure the glue accordingly. Tested-By: Tim Harvey #imx8mp-venice-gw74xx Signed-off-by: Marek Vasut Cc: Angus Ainslie Cc: Bin Meng Cc: Fabio

[PATCH v4 08/10] usb: dwc3: Rename .select_dr_mode to .glue_configure

2022-04-12 Thread Marek Vasut
Rename the select_dr_mode callback to glue_configure, the callback is used for more than enforcing controller mode even on the TI chips, so change the name to a more generic one. No functional change. Tested-By: Tim Harvey #imx8mp-venice-gw74xx Signed-off-by: Marek Vasut Cc: Angus Ainslie Cc:

[PATCH v4 07/10] imx: power-domain: Add i.MX8MP HSIOMIX driver

2022-04-12 Thread Marek Vasut
Add trivial driver for i.MX8MP HSIOMIX handling. This is responsible for enabling the GPCv2 power domains and clock for USB 3.0 and PCIe in the correct order. Currently supported is the USB 3.0 part which can be tested, PCIe support should be easy to add. Tested-By: Tim Harvey

[PATCH v4 06/10] imx: power-domain: Add i.MX8MP support

2022-04-12 Thread Marek Vasut
Add i.MX8MP power domain handling into the driver. This is based on the Linux GPCv2 driver state which is soon to be in Linux next. Tested-By: Tim Harvey #imx8mp-venice-gw74xx Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Add TB by Tim V3: Skipped to

[PATCH v4 05/10] power_domain: Add power_domain_get_by_name()

2022-04-12 Thread Marek Vasut
Implement power_domain_get_by_name() convenience function which parses DT property 'power-domain-names' and looks up power domain by matching name. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Simon Glass --- V2: Skipped to align the Vx scheme V3: Skipped to align the Vx scheme V4:

[PATCH v4 04/10] imx: power-domain: Get rid of SMCCC dependency

2022-04-12 Thread Marek Vasut
This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework the driver based on Linux GPCv2 driver to directly control the GPCv2 block instead of using SMCCC calls. This way, U-Boot can operate the i.MX8M power domains without depending on anything else. This is losely based on Linux

[PATCH v4 03/10] imx: power-domain: Inline arch-imx8m/power-domain.h

2022-04-12 Thread Marek Vasut
The arch/arm/include/asm/arch-imx8m/power-domain.h is not included anywhere except in drivers/power/domain/imx8m-power-domain.c, just inline the content and drop the header. No functional change. Tested-By: Tim Harvey #imx8mp-venice-defconfig Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc:

[PATCH v4 02/10] imx: power-domain: Descend into pgc subnode if present

2022-04-12 Thread Marek Vasut
In case the power domain node structure is gpc@303a/pgc/power-domain@N, do not bind power domain driver to the 'pgc' node, but rather descend into it and only bind power domain drivers to power-domain@N subnodes. This way we do not waste one useless driver instance associated with 'pgc' node.

[PATCH v4 01/10] power-domain: Return 0 if ops unimplemented and remove empty functions

2022-04-12 Thread Marek Vasut
In case the ops is not implemented, return 0 in the core right away. This is better than having multiple copies of functions which just return 0 in each power domain driver. Drop all those empty functions. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Simon Glass --- V2: Skipped to align

[PATCH v2] ARM: imx: Enable instruction cache early on on i.MX8M

2022-04-12 Thread Marek Vasut
Enable instruction cache early on to speed up the boot process on i.MX8M. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Protect the icache_enable with !CONFIG_IS_ENABLED(SYS_ICACHE_OFF), the symbol might be undefined in case

[PATCH] clk: imx8mp: Fix 24M and 32k clock

2022-04-12 Thread Marek Vasut
Fix registration of 24M and 32k clock, those got applied or rebased incorrectly, so fill in the correct code. Fixes: 7a2c3be95a5 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX clock") Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye Li ---

[PATCH v3] ARM: imx: Get rid of only i.MX8M SMCCC arch call

2022-04-12 Thread Marek Vasut
This is the only place where i.MX8M code does SMCCC call, remove it. The output has little value as it prints some part of commit ID, and worse, if there is no SMC handler installed, the code outright hangs or crashes the system. By removing this one instance of SMCCC call, U-Boot no longer

[PATCH v3 2/2] pmic: pca9450: Add regulator driver

2022-04-12 Thread Marek Vasut
Add PCA9450 regulator driver. This is complementary driver for the BUCKn and LDOn regulators provided by the PCA9450 PMIC driver. Currently the driver permits reading the settngs and configuring the BUCKn and LDOn regulators. Reviewed-by: Fabio Estevam Signed-off-by: Marek Vasut Cc: Fabio

[PATCH v3 1/2] pmic: pca9450: Add upstream regulators subnode match

2022-04-12 Thread Marek Vasut
The upstream DT regulators node subnodes are named BUCKn and LDOn, the downstream DT regulators node subnodes are named buckn and ldon, add the upstream match. Reviewed-by: Fabio Estevam Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Add RB by Fabio V3:

[PATCH] ARM: dts: imx: Add flexspi node to i.MX8MP

2022-04-12 Thread sbabic
> Add flexspi DT node matching Linux kernel as of commit > d7cd74466651e ("arm64: dts: imx8mp: Reorder flexspi clock-names entry") > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards,

[PATCH] board: venice: add spl_board_loader_name

2022-04-12 Thread sbabic
> Implement spl_board_loader_name to provide more meaningful device names > vs MMC1 and MMC2. > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH 2/2] ARM: dts: imx8mm: Add i.MX8M Mini Toradex Verdin based Menlo board

2022-04-12 Thread sbabic
> Add new board based on the Toradex Verdin iMX8M Mini SoM, the MX8Menlo. > The board is a compatible replacement for i.MX53 M53Menlo and features > USB, multiple UARTs, ethernet, LEDs, SD and eMMC. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Marcel Ziswiler > Cc: Max Krummenacher >

[PATCH v2 3/4] ARM: dts: imxrt10..-evk: Linux moved pins-imxrt1020 to dts

2022-04-12 Thread sbabic
> The Linux kernel moved dt-bindings/pinctrl/pins-imxrt to the device tree > This patch move it in U-Boot as well. > Signed-off-by: Jesse Taube Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX

[PATCH] include: configs: *imx8*: remove IMX_FEC_BASE

2022-04-12 Thread sbabic
> The IMX_FEC_BASE value is not used when CONFIG_DM_ETH is configured. So this > value can be removed. > Signed-off-by: Heiko Thiery > Reviewed-By: Tim Harvey > Reviewed-by: Fabio Estevam > Tested-by: Marcel Ziswiler Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] ARM: imx: romapi: Repair FlexSPI NOR boot offset

2022-04-12 Thread sbabic
> The FlexSPI NOR boot offset does not require any special handling, > the image_offset is correct in either case (0x1000 for FlexSPI NOR > and 0x8000 for SD/eMMC) and the offset of u-boot.itb from the start > of flash.bin is always 0x58000 on MX8MN/MX8MP, which matches the >

[PATCH] spi: nxp_fspi: Add i.MX8MP compatible string

2022-04-12 Thread sbabic
> The i.MX8M Mini and i.MX8M Plus flexspi IPs are compatible with one > another, however the linux kernel DT uses separate compatible string > for each SoC. Add the missing i.MX8MP compatible into this driver. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic

[PATCH] mmc: fsl_esdhc_imx: Add i.MX8MP compatible string

2022-04-12 Thread sbabic
> Add compatible string for i.MX8MP, which permits i.MX8MP to use > HS400ES mode, just like all the other i.MX8M. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Haibo Chen > Cc: Peng Fan > Cc: Stefano Babic > Reviewed-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx,

[PATCH] board: gateworks venice: add support for GPY111 phy

2022-04-12 Thread sbabic
> The TI DP83867 phy has been replaced with the MaxLinear GPY111 phy due > to part availability. > Add support for it by adding LED config and dt-prop based internal delay > config tx-delay/rx-delay per PHY ID. > Signed-off-by: Tim Harvey > Acked-by: Peng Fan Applied to u-boot-imx, master,

[PATCH] imx8m{m,n}-venice-gw7902: add GSC ADC rail for VDD_5P0

2022-04-12 Thread sbabic
> The GW7902-C revision adds an ADC for the VDD_5P0 voltage rail. > Add register definitions for it. > Signed-off-by: Tim Harvey > Acked-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH] clk: imx8mp: Add ECSPI clocks

2022-04-12 Thread sbabic
> Add clock tables required for bing up ECSPI interfaces > Signed-off-by: Elmar Albert > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic > Cc: uboot-imx > Signed-off-by: Elmar Albert > Reviewed-by: Fabio Esteva, Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v2 4/4] board: freescale: imxrt10..-evk: Fix missing include of serial.h

2022-04-12 Thread sbabic
> If FALCON mode is enabled we have a missing include in spl_start_uboot. > Signed-off-by: Jesse Taube Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing

[PATCH v2 2/4] configs/*imxrt10*: SYS_MALLOC_LEN is too large

2022-04-12 Thread sbabic
> 1M of heap is more than internal ram making booting without SDRAM not > possible now it is 256k > Signed-off-by: Jesse Taube Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[PATCH] imx8m{m,n}_venice: update boot_net script to load fdt

2022-04-12 Thread sbabic
> Update the 'boot_net' script to load the fdt with the kernel. > Signed-off-by: Tim Harvey > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH] kontron-pitx-imx8m: change environment address variables

2022-04-12 Thread sbabic
> Currently the space between kernel_addr_r and the fdt_addr_r is only 32MB. > To have enought space to load kernel images bigger than 32MB change the > variables to a feasible value. > The new environment variables layout is based on the scheme from > "include/configs/ti_armv7_common.h". > The

[PATCH v2 1/4] clk: imxrt: Use dts for anatop base address

2022-04-12 Thread sbabic
> In Linux IMX and IMXRT use the device tree to hold the anatop address. > The anatop is used in clock drivers as it controls the internal PLLs > This will move the macro from asm/arch-imxrt to the device tree. > This presumably should also be done with the other IMX boards as well. >

[PATCH] configs: Enable EXT4 and ISO partitions for the DeveloperBox

2022-04-12 Thread Ilias Apalodimas
Since this box is SystemReady compliant enable ISO_PARTITION which is needed to start some installers (e.g Fedora). While at it enable EXT4 as well which is a common filesystem for targets Signed-off-by: Ilias Apalodimas --- configs/synquacer_developerbox_defconfig | 2 ++ 1 file changed, 2

Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-04-12 Thread Jim Posen
Another related issue that I was confused by is that I expected the FDT address to be in the variable fdt_addr_r but it is in fdt_addr. In the U-Boot documentation here https://u-boot.readthedocs.io/en/latest/usage/environment.html#image-locations, *_r variables indicate addresses in RAM whereas

[PATCH] net: marvell: mvgbe: Set PHY page 0 before phy_connect

2022-04-12 Thread Tony Dinh
For most Kirkwood boards, the PHY page is already set to page 0 (in register 22) before phy_connect is invoked. But some board like the Zyxel NSA310S (which uses the network chip MV88E1318S), the PHY page is not set to page 0. There seems to be some bad data remained in register 22 when the uclass

Re: [PATCH v2] image-fdt: save name of FIT configuration in '/chosen' node

2022-04-12 Thread Tom Rini
On Tue, Apr 12, 2022 at 09:00:43PM +0100, Daniel Golle wrote: > It can be useful for the OS (Linux) to know which configuration has > been chosen by U-Boot when launching a FIT image. > Store the name of the FIT configuration node used in a new string > property called 'u-boot,bootconf' in the

Re: [PATCH] ram: k3-ddrss: Allow use of dt provided initial frequency

2022-04-12 Thread Tom Rini
On Tue, Apr 12, 2022 at 02:32:16PM -0500, Dave Gerlach wrote: > Hi, > > On 4/11/22 07:32, Tom Rini wrote: > > On Fri, Apr 08, 2022 at 04:46:50PM -0500, Dave Gerlach wrote: > > > >> Allow device tree to provide ti,ddr-freq0 to be used as the initial DDR > >> frequency that is set for lpddr4

[PATCH v2] image-fdt: save name of FIT configuration in '/chosen' node

2022-04-12 Thread Daniel Golle
It can be useful for the OS (Linux) to know which configuration has been chosen by U-Boot when launching a FIT image. Store the name of the FIT configuration node used in a new string property called 'u-boot,bootconf' in the '/chosen' node in device tree. Signed-off-by: Daniel Golle --- v2:

Re: [PATCH u-boot-net 0/3] A tiny batch of keystone_net changes

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 10:21 PM Marek Behún wrote: > > From: Marek Behún > > Hello Ramon, > > here comes a tiny batch of changes for keystone_net. > Applicable on top of net/next. > > Marek > > Marek Behún (3): > driver: net: ti: keystone_net: Deduplicate code > driver: net: ti:

Re: [PATCH u-boot-net 3/3] driver: net: ti: keystone_net: Change priv member type

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 10:21 PM Marek Behún wrote: > > From: Marek Behún > > Change type of private struct member mdio_base from void * to > phys_addr_t. This allows us to drop 2 casts. > > Signed-off-by: Marek Behún > --- > drivers/net/ti/keystone_net.c | 6 +++--- > 1 file changed, 3

Re: [PATCH u-boot-net 2/3] driver: net: ti: keystone_net: Convert to ofnode functions

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 10:21 PM Marek Behún wrote: > > From: Marek Behún > > Convert fdt parsing functions to ofnode parsing functions. > > Signed-off-by: Marek Behún > --- > drivers/net/ti/keystone_net.c | 113 +++--- > 1 file changed, 48 insertions(+), 65

Re: [PATCH u-boot-net 1/3] driver: net: ti: keystone_net: Deduplicate code

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 10:21 PM Marek Behún wrote: > > From: Marek Behún > > Deduplicate common code in ks2_eth_bind_slaves(). > > Signed-off-by: Marek Behún > --- > drivers/net/ti/keystone_net.c | 75 --- > 1 file changed, 34 insertions(+), 41 deletions(-) > >

Re: [PATCH 16/16] net: dm9000: Add Kconfig entry

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Add Kconfig entry for the DM9000 MAC. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/Kconfig | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/net/Kconfig

Re: [PATCH 15/16] net: dm9000: Add DM support

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Add support for U-Boot DM and DT probing. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 118 ++ > 1 file changed, 118 insertions(+) > > diff

Re: [PATCH 14/16] net: dm9000: Receive one packet per recv call

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Instead of reading out the entire FIFO and possibly overwriting U-Boot > memory, read out one packet per recv call, pass it to U-Boot network > stack, and repeat. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > ---

Re: [PATCH 13/16] net: dm9000: Split non-DM specific bits from common code

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Split network handling functions into non-DM specific parts and > common code in preparation for conversion to DM. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 58

Re: [PATCH 12/16] net: dm9000: Pass private data around for IO

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Pass private data into IO accessors and use the base addresses of > IO and DATA window from the private data instead of using the hard > coded macros DM9000_IO/DM9000_DATA. Currently both the DM9000_IO > and DM9000_DATA are assigned to the

Re: [PATCH 11/16] net: dm9000: Drop dm9000.h and staticize SROM access

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Dispose of dm9000.h because none of the function prototypes declared in > it are called anywhere in the codebase. Staticize dm9000_read_srom_word() > because it is now called only from within the dm9000 driver. Drop > dm9000_write_srom_word()

Re: [PATCH 10/16] net: dm9000: Drop static device private data

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Allocate driver private data dynamically in its init function and drop > the static driver private data variable. Pass the dynamic private data > throughout the driver. This is done in preparation for DM conversion. > > Signed-off-by: Marek

Re: [PATCH 09/16] net: dm9000: Rename board_info to dm9000_priv

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Rename board_info structure to dm9000_priv to make it clear what this > structure really contains, the driver private data. No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- >

Re: [PATCH 08/16] net: dm9000: Reorder and staticize

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Reorder the driver functions to get rid of forward declarations. > Staticize whatever is possible. No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 122

Re: [PATCH 07/16] net: dm9000: Checkpatch cleanup

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Fix checkpatch errors and warnings. No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 251 +- > 1 file changed, 126

Re: [PATCH 06/16] net: dm9000: Drop volatiles

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Remove volatile keyword usage from arrays, they are not really volatile > in any way, so this keyword is misused here. No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- >

Re: [PATCH 05/16] net: dm9000: Turn DM9000_DMP_PACKET() into a function

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Rework DM9000_DMP_PACKET() into dm9000_dump_packet() function, > this brings better type checking. No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 42

Re: [PATCH 04/16] net: dm9000: Drop unused dump_regs()

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Drop unused function dump_regs() because it is unused. > No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 17 - > 1 file changed, 17 deletions(-)

Re: [PATCH 03/16] net: dm9000: Make RxLen and RxStatus lowercase

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Rename variables to lowercase to be consistent with coding style. > No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 44

Re: [PATCH 02/16] net: dm9000: Replace DM9000_DBG() with debug()

2022-04-12 Thread Ramon Fried
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut wrote: > > Use standard debug() macro to print debug messages instead of > reinventing driver-specific macro again. No functional change. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon Fried > --- > drivers/net/dm9000x.c | 48

  1   2   3   >