[PATCH v2 6/6] board: amlogic: jethub j100: enable saradc in config

2022-04-21 Thread Vyacheslav Bocharov
Enable ADC in board config file Signed-off-by: Vyacheslav Bocharov --- configs/jethub_j100_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/jethub_j100_defconfig b/configs/jethub_j100_defconfig index 1c6db9f6a0..a30940bf1c 100644 --- a/configs/jethub_j100_defconfig +++

[PATCH v2 5/6] board: amlogic: jethub j100: enable saradc in dts

2022-04-21 Thread Vyacheslav Bocharov
Prepare to use ADC channel 1 to check the hardware revision of the board. Signed-off-by: Vyacheslav Bocharov --- arch/arm/dts/meson-axg-jethome-jethub-j100.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/meson-axg-jethome-jethub-j100.dts

[PATCH v2 4/6] adc: meson-saradc: add AXG variant

2022-04-21 Thread Vyacheslav Bocharov
Add support for the SARADC variant found on the AXG SoCs family. Signed-off-by: Vyacheslav Bocharov --- drivers/adc/meson-saradc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 1a45a3a265..37023512f0 100644 ---

[PATCH v2 2/6] clk: meson: fix driver name for g12a-ao clocks

2022-04-21 Thread Vyacheslav Bocharov
Update the clk-g12a-ao driver from "axg" to "g12a" Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/g12a-ao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 0148529e04..17b11eb52a 100644 ---

[PATCH v2 3/6] clk: meson: update driver for g12a-ao clocks

2022-04-21 Thread Vyacheslav Bocharov
Move clk->id check to .request function Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/g12a-ao.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 17b11eb52a..22c85cff1d 100644 ---

[PATCH v2 1/6] clk: meson: add minimal driver for axg-ao clocks

2022-04-21 Thread Vyacheslav Bocharov
Add minimal driver AO clocks on meson AXG family. Only ADC related clocks are supported. Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/Makefile | 1 + drivers/clk/meson/axg-ao.c | 89 ++ 2 files changed, 90 insertions(+) create mode 100644

[PATCH v2 0/6] meson: add clk and adc support for JetHub D1 (j100)

2022-04-21 Thread Vyacheslav Bocharov
Prepare to use ADC channel 1 in JetHub D1 (j100) to check the hardware revision of the board. - add support for AXG in saradc driver - add simple clk-ao driver for AXG (base is taken from g12a) - enable saradc in dts and board config file - fix typo in the g12a-clk-ao driver name - move clk->id

Re: [PATCH] misc: atsha204a: Add support for atsha204 chip

2022-04-21 Thread Heiko Schocher
Hello Pali, On 21.04.22 11:40, Pali Rohár wrote: > On Thursday 21 April 2022 06:11:11 Heiko Schocher wrote: >> Hello Pali, >> >> On 05.04.22 16:10, Pali Rohár wrote: >>> On Tuesday 05 April 2022 15:52:17 Stefan Roese wrote: On 4/5/22 15:28, Pali Rohár wrote: > On Tuesday 05 April 2022

Re: [PATCH] rockchip: include: configs: remove unused configs for tag and size

2022-04-21 Thread Kever Yang
On 2022/4/20 20:54, Johan Jonker wrote: The configs ROCKCHIP_CHIP_TAG and ROCKCHIP_MAX_INIT_SIZE were originally added with rksd.c, rkspi.c and rkcommon.c in mind, but are no longer in use and replaced by struct spl_info, so remove unused configs for tag and size. Signed-off-by: Johan Jonker

[PATCH] cmd: part: add explicit dependency on PARTITIONS

2022-04-21 Thread AKASHI Takahiro
This is a follow-up patch for my "disk: don't compile in partition support for spl/tpl if not really necessary". "part" command is useful only if, at least, one of partition table types is selected. So it should have a dependency on PARTITIONS which is now automatically selected if one of

Re: [PATCH v3 2/4] clk: nuvoton: Add support for NPCM750

2022-04-21 Thread Sean Anderson
On 4/19/22 1:32 AM, Jim Liu wrote: Add clock controller driver for NPCM750 Signed-off-by: Jim Liu Signed-off-by: Stanley Chu --- Changes for v3: - no changes since v2 Changes for v2: - combine NPCM750 and NPCM845 clk driver. --- drivers/clk/Makefile | 1 +

Re: [PATCH v3] mips: dts: add initial support for ls1c300 SoC

2022-04-21 Thread Sean Anderson
On 4/18/22 4:45 PM, Du Huanpeng wrote: Loongson 1C is a cost-effective SOC chip for industrial control and the Internet of Things. The Loongson 1C includes a floating-point processing unit, supports multiple types of memory, and supports high-capacity MLC NAND Flash. Loongson 1C provides

Re: [PATCH 1/5] clk: meson: add minimal driver for axg-ao clocks

2022-04-21 Thread Sean Anderson
On 4/21/22 1:57 AM, Vyacheslav wrote: 20.04.2022 23:12, Sean Anderson пишет: On 4/20/22 1:54 PM, Vyacheslav Bocharov wrote: Add minimal driver AO clocks on meson AXG family. Only ADC related clocks are supported. Signed-off-by: Vyacheslav Bocharov ---   drivers/clk/meson/Makefile |  1 +  

Re: imx8mm eLCDIF clock

2022-04-21 Thread Sean Anderson
On 4/21/22 2:48 AM, Tommaso Merciai wrote: Hi, I'm working on drivers/clk/imx/clk-imx8mm.c to port and bring up eLCDIF clocks. After port all necessary clocks needed by eLCDIF I found that IMX8MM_VIDEO_PLL1 clock is not enabled and need the following code to enable it at the end of the

Re: [PATCH] led: Configure LED default-state on boot

2022-04-21 Thread Sean Anderson
On 4/21/22 11:26 AM, Patrice CHOTARD wrote: On 4/21/22 17:18, Marek Vasut wrote: On 4/21/22 17:09, Patrice CHOTARD wrote: Hi Marek Hi, I tested the current U-Boot master branch (22bfaa1f673ab5442dfb9778eea4c9a18dee42d0) This patch is breaking the boot sequence on stm32mp157c-dk2.

Re: [PATCH V4 5/6] include/configs: drop COUNTER_FREQUENCY

2022-04-21 Thread Tom Rini
On Wed, Apr 13, 2022 at 05:47:21PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Since we have CONFIG_COUNTER_FREQUENCY enabled, no need COUNTER_FREQUENCY > > Signed-off-by: Peng Fan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH V4 4/6] configs: set CONFIG_COUNTER_FREQUENCY

2022-04-21 Thread Tom Rini
On Wed, Apr 13, 2022 at 05:47:20PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Set CONFIG_COUNTER_FREQUENCY according to COUNTER_FREQUENCY in > config header file. > > Signed-off-by: Peng Fan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH V4 6/6] arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid

2022-04-21 Thread Tom Rini
On Wed, Apr 13, 2022 at 05:47:22PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Since COUNTER_FREQUENCY is obselete, so set cntfrq_el0 if > CONFIG_COUNTER_FREQUENCY is valid > > Signed-off-by: Peng Fan > Reviewed-by: Philipp Tomsich Applied to u-boot/master, thanks! -- Tom

Re: [PATCH V4 3/6] arch: arm: Kconfig: set default COUNTER_FREQUENCY

2022-04-21 Thread Tom Rini
On Wed, Apr 13, 2022 at 05:47:19PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Set default COUNTER_FREQUENCY according to config header file > under include/configs/ > i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz, > so set default value for them. >

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

2022-04-21 Thread Tom Rini
On Wed, Apr 13, 2022 at 05:47:18PM +0800, Peng Fan (OSS) wrote: > 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 Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

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

2022-04-21 Thread Tom Rini
On Wed, Apr 13, 2022 at 05:47:17PM +0800, Peng Fan (OSS) wrote: > 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 Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 5/5] misc: atsha204a: Remove duplicate CRC-16 implementation

2022-04-21 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:20:44AM +0200, Pali Rohár wrote: > ATSHA204A uses bit-reversed checksum of standard CRC-16 with polynomial > x^16 + x^15 + x^2 + 1. > > This ATSHA204A specific checksum can be calculated just by using common > U-Boot functions bitrev16() and crc16(). > > So replace

Re: [PATCH 4/5] fs: ext4: Use CRC-16 implementation from linux/crc16.h

2022-04-21 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:20:43AM +0200, Pali Rohár wrote: > Implementation in linux/crc16.h provides standard CRC-16 algorithm with > polynomial x^16 + x^15 + x^2 + 1. Use it and remove duplicate ext4 CRC-16 > specific code. > > Signed-off-by: Pali Rohár > Reviewed-by: Stefan Roese Applied

Re: [PATCH 3/5] crc16: Move standard CRC-16 implementation from ubifs to lib

2022-04-21 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:20:42AM +0200, Pali Rohár wrote: > This implementation provides standard CRC-16 algorithm with polynomial > x^16 + x^15 + x^2 + 1. > > Signed-off-by: Pali Rohár > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 2/5] crc16: Rename fs/ubifs/crc16.h to include/linux/crc16.h

2022-04-21 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:20:41AM +0200, Pali Rohár wrote: > File fs/ubifs/crc16.h is standard linux's crc16.h include file. So move it > from fs/ubifs to include/linux where are also other linux include files. > > Signed-off-by: Pali Rohár > Reviewed-by: Stefan Roese Applied to

Re: [PATCH 1/5] crc16-ccitt: Rename file with CRC-16-CCITT implementation to crc16-ccitt.c

2022-04-21 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:20:40AM +0200, Pali Rohár wrote: > U-Boot CRC-16 implementation uses polynomial x^16 + x^12 + x^5 + 1 which is > not standard CRC-16 algorithm, but it is known as CRC-16-CCITT. Rename file > crc16.c to crc16-ccitt.c to reduce confusion. > > Signed-off-by: Pali Rohár >

Re: [PATCH v2] SPL: Do not enable SPL_SYS_MALLOC_SIMPLE without SPL_FRAMEWORK by default

2022-04-21 Thread Tom Rini
On Fri, Apr 08, 2022 at 10:28:05AM +0200, Pali Rohár wrote: > On P2020 board is SPL malloc simple always failing with error and loops: > > SD boot... > alloc space exhausted > Bad trap at PC: f8f8b5f0, SR: 21200, vector=d00 > NIP: XER: LR: REGS: f8f8b5f0 TRAP:

Re: [PATCH] Add support for TP-Link UE200 dongle

2022-04-21 Thread Ramon Fried
On Wed, Apr 20, 2022 at 2:26 PM wrote: > > From: Oleksii Titov > > Signed-off-by: Oleksii Titov > --- > > drivers/usb/eth/r8152.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c > index d21fc682b0..1aaa5a79b3 100644 > ---

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

2022-04-21 Thread Tony Dinh
Hi Stefan, On Thu, Apr 21, 2022 at 7:26 AM Stefan Roese wrote: > > Hi Tony, > > On 4/21/22 03:45, Tony Dinh wrote: > > Hi Stefan, > > > > On Tue, Apr 19, 2022 at 1:47 PM Tony Dinh wrote: > >> > >> Hi Stefan, > >> > >> On Tue, Apr 19, 2022 at 3:29 AM Stefan Roese wrote: > >>> > >>> Hi Tony, >

Re: [PATCH] i.MX8 crypto/fsl: Enable fsl CAAM rng driver

2022-04-21 Thread Stefano Babic
Hi Gaurav, Il 19.04.22 16:04, Gaurav Jain ha scritto: rng driver enabled to read random number using caam. Signed-off-by: Gaurav Jain --- drivers/crypto/fsl/jr.c | 8 +++- drivers/crypto/fsl/rng.c | 8 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git

ipq40xx SPI and/or SPI flash driver not working.

2022-04-21 Thread Florence Riker
Hello everyone, recently I'm trying to port U-Boot 2022.01 to my ipq4019 development board, but I can't get the SPI flash working, when I send the command sf probe, it returns this: drivers/core/uclass.c:325-uclass_find_device_by_seq() 0 drivers/core/uclass.c:333-uclass_find_device_by_seq()- 0

Re: Please pull u-boot-marvell/master

2022-04-21 Thread Tom Rini
On Thu, Apr 21, 2022 at 04:18:55PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the first batch of Marvell related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] ARM: armv7: add non-SPL enable for Cortex SMPEN

2022-04-21 Thread Tom Rini
On Thu, Apr 21, 2022 at 02:23:04PM -0400, Ralph Siemsen wrote: > On Thu, Apr 21, 2022 at 2:01 PM Tom Rini wrote: > > > OK, but this doesn't do anything. Where are you select'ing the new > > symbol from? > > It is in code for a new platform which I am going to slowly beat into > shape and try

Re: [PATCH] ARM: armv7: add non-SPL enable for Cortex SMPEN

2022-04-21 Thread Ralph Siemsen
On Thu, Apr 21, 2022 at 2:01 PM Tom Rini wrote: > OK, but this doesn't do anything. Where are you select'ing the new > symbol from? It is in code for a new platform which I am going to slowly beat into shape and try to get upstreamed. If you prefer to see everything at once, I can do that,

[PATCH v3 2/2] imx8mn/8mp: Allow booting via USB

2022-04-21 Thread Fabio Estevam
From: Fabio Estevam When trying to boot via USB on i.MX8MN it is necessary to specify the U-Boot environment location, otherwise the boot process simply hangs. Specify the environment location when booting from USB. Tested on a imx8mn-evk. Suggested-by: Michael Nazzareno Trimarchi

[PATCH v3 1/2] imx8mn_ddr4_evk: Add USB Mass Storage support

2022-04-21 Thread Fabio Estevam
From: Fabio Estevam Add USB Mass Storage support, which is a convenient way to flash the eMMC card, for example. Signed-off-by: Fabio Estevam --- Changes since v2: - None configs/imx8mn_ddr4_evk_defconfig | 12 1 file changed, 12 insertions(+) diff --git

Re: [PATCH] ARM: armv7: add non-SPL enable for Cortex SMPEN

2022-04-21 Thread Tom Rini
On Thu, Apr 21, 2022 at 01:52:02PM -0400, Ralph Siemsen wrote: > Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S") > added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For > platforms not using SPL boot, add the corresponding non-SPL config, > so that

[PATCH] ARM: armv7: add non-SPL enable for Cortex SMPEN

2022-04-21 Thread Ralph Siemsen
Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S") added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For platforms not using SPL boot, add the corresponding non-SPL config, so that CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) works as expected. Signed-off-by: Ralph

[PATCH] mips: dts: mt7620: rename nodes to generic names

2022-04-21 Thread Du Huanpeng
The name of a node should be somewhat generic, reflecting the function of the device and not its precise programming model. - oscillator - syscon - clock-controller - reset-controller - serial - gpio - ethernet - usb-phy - usb [1] devicetree-specification-v0.3.pdf

Re: [PATCH v2 2/2] imx8mn/8mp: Allow booting via USB

2022-04-21 Thread Marek Vasut
On 4/21/22 19:24, Fabio Estevam wrote: From: Fabio Estevam When trying to boot via USB on i.MX8MN it is necessary to specify the U-Boot environment location, otherwise the boot process simply hangs. Specify the environment location when booting from USB. Tested on a imx8mn-evk.

[PATCH v2 2/2] imx8mn/8mp: Allow booting via USB

2022-04-21 Thread Fabio Estevam
From: Fabio Estevam When trying to boot via USB on i.MX8MN it is necessary to specify the U-Boot environment location, otherwise the boot process simply hangs. Specify the environment location when booting from USB. Tested on a imx8mn-evk. Suggested-by: Michael Nazzareno Trimarchi

[PATCH v2 1/2] imx8mn_ddr4_evk: Add USB Mass Storage support

2022-04-21 Thread Fabio Estevam
From: Fabio Estevam Add USB Mass Storage support, which is a convenient way to flash the eMMC card, for example. Signed-off-by: Fabio Estevam --- Changes since v1: - None configs/imx8mn_ddr4_evk_defconfig | 12 1 file changed, 12 insertions(+) diff --git

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Fabio Estevam
On 21/04/2022 14:10, Michael Nazzareno Trimarchi wrote: The uboot has no problem, the problem is that the function is wrong ;). When you boot from USB you should inform where to pick the environment. You can force ENV_EVERYWHERE for those architectures, you can decide to change the switch as I

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Michael Nazzareno Trimarchi
Hi On Thu, Apr 21, 2022 at 7:03 PM Fabio Estevam wrote: > > On 21/04/2022 14:01, Michael Nazzareno Trimarchi wrote: > > > I have seen those patches already but the cost of a function pointer > > and a call is more readable. If they get applied, I will be fine with > > them ;) > > They are

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Fabio Estevam
On 21/04/2022 14:01, Michael Nazzareno Trimarchi wrote: I have seen those patches already but the cost of a function pointer and a call is more readable. If they get applied, I will be fine with them ;) They are already in master. How do we proceed to fix the U-Boot load via USB?

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Michael Nazzareno Trimarchi
Hi On Thu, Apr 21, 2022 at 6:51 PM Adam Ford wrote: > > On Thu, Apr 21, 2022 at 11:47 AM Fabio Estevam wrote: > > > > Hi Michael, > > > > On 21/04/2022 13:34, Michael Nazzareno Trimarchi wrote: > > > > > That function should drop. There is not other architecture that does > > > it. What about:

Re: [PATCH v14 1/2] net: Add TCP protocol

2022-04-21 Thread Ying-Chun Liu (PaulLiu)
Hi Ying, You woke up an old can, Can you elaborate on the changes you did to the original patchset ? I'm reviewing this instead of Joe, so I want to get some context. I would appreciate it if you could separate the SACK support to a separate patch, preferably option based. The TCP stack is

[PATCH v14 2/2] net: Add wget application

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Ramon Fried --- v13: Fix some issues which is reviewed by

[PATCH v14 1/2] net: Add TCP protocol

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: Duncan Hare

[PATCH v14 0/2] add TCP and HTTP for downloading images

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v13: Fix some issues which is

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Adam Ford
On Thu, Apr 21, 2022 at 11:47 AM Fabio Estevam wrote: > > Hi Michael, > > On 21/04/2022 13:34, Michael Nazzareno Trimarchi wrote: > > > That function should drop. There is not other architecture that does > > it. What about: > > I implemented your suggestion like this: > > ---

[PATCH v4] bosch: Add initial board support for ACC

2022-04-21 Thread Philip Oberfichtner
The Bosch ACC (Air Center Control) Board is based on the i.MX6D. Signed-off-by: Philip Oberfichtner --- Changes in v4: - Remove obsolete CONFIG_FEC #defines - Sync device tree with Linux Changes in v3: - Rename acc to bosch-acc - Sync device tree with Linux Changes in v2: - Adapt defconfig

Re: [PATCH v3] bosch: Add initial board support for ACC

2022-04-21 Thread pro
Hi Stefano, On 2022-04-21 16:53, Stefano Babic wrote: Hi Philip, Ci is still broken: On 19.04.22 16:44, Philip Oberfichtner wrote: The Bosch ACC (Air Center Control) Board is based on the i.MX6D. [...] +/* Ethernet */ +#ifdef CONFIG_FEC_MXC +#define CONFIG_FEC_MXC_PHYADDR 0 +#define

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Fabio Estevam
Hi Michael, On 21/04/2022 13:34, Michael Nazzareno Trimarchi wrote: That function should drop. There is not other architecture that does it. What about: I implemented your suggestion like this: --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -1536,6 +1536,14 @@

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Michael Nazzareno Trimarchi
Hi Fabio On Thu, Apr 21, 2022 at 6:19 PM Fabio Estevam wrote: > > Hi Michael, > > On 21/04/2022 11:34, Michael Nazzareno Trimarchi wrote: > > > You need only add USB_ case in MMC and NAND > > #ifdef CONFIG_ENV_IS_IN_NAND > > /* add */ > > case USB_BOOT: > > case

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Fabio Estevam
Hi Michael, On 21/04/2022 11:34, Michael Nazzareno Trimarchi wrote: You need only add USB_ case in MMC and NAND #ifdef CONFIG_ENV_IS_IN_NAND /* add */ case USB_BOOT: case NAND_BOOT: env_loc = ENVL_NAND; break; #endif #ifdef

[PATCH v3 00/18] virtio: pci: Add and fix consistency checks

2022-04-21 Thread Andrew Scull
The virtio PCI drivers forgo a number of consistency checks, particularly around pointer validation and bounds checking. This series focuses on the modern driver to add those checks. The start of the series adds and fixes some basic bounds checks. Later patches ensure PCI addresses fall within

Re: [PATCH v2] treewide: Enable SPL_SEPARATE_BSS if SPL_BSS_START_ADDR is used

2022-04-21 Thread Tom Rini
On Tue, Apr 12, 2022 at 10:59:04AM -0400, Sean Anderson wrote: > If .bss does not immediately follow the end of the image, then > CONFIG_SPL_SEPARATE_BSS must be selected. Typically, the location of bss > is specified by using CONFIG_SPL_BSS_START_ADDR in a linker script. On > these arches,

Re: [PATCH 3/3] board: ti: am335x: Add support for BBE Extended WiFi

2022-04-21 Thread Tom Rini
On Mon, Apr 11, 2022 at 03:42:01PM +, Paul Barker wrote: > The Sancloud BeagleBone Enhanced Extended WiFi (BBE Extended WiFi) has > its own devicetree file and the board can be identified by the 2nd > letter of the config string within the common EEPROM. > > Signed-off-by: Paul Barker

Re: [PATCH 2/3] board: ti: am335x: Add BBE Lite support

2022-04-21 Thread Tom Rini
On Mon, Apr 11, 2022 at 03:42:00PM +, Paul Barker wrote: > The Sancloud BeagleBone Enhanced Lite (BBE Lite) has its own devicetree > file and the board can be identified by the 2nd letter of the config > string within the common EEPROM. > > Signed-off-by: Paul Barker Applied to

Re: [PATCH 1/3] arm: dts: Resync dts for BeagleBone and derivatives

2022-04-21 Thread Tom Rini
On Mon, Apr 11, 2022 at 03:41:59PM +, Paul Barker wrote: > Sync BeagleBone dts files & TPS dtsi files with Linux v5.17 and include > the SanCloud BBE Extended WiFi dts added in v5.18-rc1. Also pull in > changes to am33xx-l4.dtsi needed to support the BeagleBone Blue. > > The change to use

Re: [PATCH] fs: Allow to compile FS_SQUASHFS only for proper U-Boot

2022-04-21 Thread Tom Rini
On Wed, Apr 06, 2022 at 11:34:00PM +0200, Pali Rohár wrote: > CONFIG_SPL_FS_SQUASHFS cannot be disabled when CONFIG_FS_SQUASHFS is > enabled. Fix it. > > Signed-off-by: Pali Rohár Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/3] ARM: imx: imx8m: env: Switch to arch_env_get_location()

2022-04-21 Thread Tom Rini
On Wed, Apr 06, 2022 at 02:21:34AM +0200, Marek Vasut wrote: > Implement arch_env_get_location() instead of env_get_location(), so that > the env_get_location() can be implemented on board level and override the > arch_env_get_location() architecture defaults. > > Signed-off-by: Marek Vasut >

Re: [PATCH 2/3] armv8: layerscape: env: Switch to arch_env_get_location()

2022-04-21 Thread Tom Rini
On Wed, Apr 06, 2022 at 02:21:33AM +0200, Marek Vasut wrote: > Implement arch_env_get_location() instead of env_get_location(), so that > the env_get_location() can be implemented on board level and override the > arch_env_get_location() architecture defaults. > > Signed-off-by: Marek Vasut >

Re: [PATCH 1/3] env: Implement lower priority arch_env_get_location()

2022-04-21 Thread Tom Rini
On Wed, Apr 06, 2022 at 02:21:32AM +0200, Marek Vasut wrote: > Currently there is only one way to override desired environment location, > by implementing env_get_location(). This is increasingly being conflated > both on board level and architecture level, which leads to a problem on > boards

Re: [PATCH] led: Configure LED default-state on boot

2022-04-21 Thread Patrice CHOTARD
On 4/21/22 17:18, Marek Vasut wrote: > On 4/21/22 17:09, Patrice CHOTARD wrote: >> Hi Marek > > Hi, > >> I tested the current U-Boot master branch >> (22bfaa1f673ab5442dfb9778eea4c9a18dee42d0) >> This patch is breaking the boot sequence on stm32mp157c-dk2. > > Breaking it ... how ? What

Re: [PATCH] led: Configure LED default-state on boot

2022-04-21 Thread Marek Vasut
On 4/21/22 17:09, Patrice CHOTARD wrote: Hi Marek Hi, I tested the current U-Boot master branch (22bfaa1f673ab5442dfb9778eea4c9a18dee42d0) This patch is breaking the boot sequence on stm32mp157c-dk2. Breaking it ... how ? What happens, hang ?

Re: [PATCH] led: Configure LED default-state on boot

2022-04-21 Thread Patrice CHOTARD
Hi Marek I tested the current U-Boot master branch (22bfaa1f673ab5442dfb9778eea4c9a18dee42d0) This patch is breaking the boot sequence on stm32mp157c-dk2. Thanks Patrice On 4/4/22 01:23, Marek Vasut wrote: > In case the DT LED subnode contains "default-state" property set to > either "on" or

Re: [PATCH v3] bosch: Add initial board support for ACC

2022-04-21 Thread Stefano Babic
Hi Philip, Ci is still broken: On 19.04.22 16:44, Philip Oberfichtner wrote: The Bosch ACC (Air Center Control) Board is based on the i.MX6D. Signed-off-by: Philip Oberfichtner --- Changes in v3: - Rename acc to bosch-acc - Sync device tree with Linux Changes in v2: - Adapt defconfig and

Re: [PATCH 2/2] arch: layerscape: Add SFP binding

2022-04-21 Thread Sean Anderson
Hi Michael, On 4/20/22 4:06 AM, Michael Walle wrote: > Am 2022-04-20 01:51, schrieb Sean Anderson: >>> Could you submit a patch there to add your new compatibles? >> >> Sure. I didn't know there was an upstream binding, but I'll try and >> add these properties. > > If you'll submit the patch(es)

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Marek Vasut
On 4/21/22 16:17, Fabio Estevam wrote: Hi Marek, On Wed, Apr 20, 2022 at 7:15 PM Marek Vasut wrote: Did you actually hit the USB_BOOT case or did you fall into the default: case ? It does hit the USB_BOOT case. I also tested forcing to return ENVL_UNKNOWN: Hum, sigh. Can you check

Re: [PATCH 5/5] misc: atsha204a: Remove duplicate CRC-16 implementation

2022-04-21 Thread Stefan Roese
On 4/12/22 11:20, Pali Rohár wrote: ATSHA204A uses bit-reversed checksum of standard CRC-16 with polynomial x^16 + x^15 + x^2 + 1. This ATSHA204A specific checksum can be calculated just by using common U-Boot functions bitrev16() and crc16(). So replace custom driver CRC-16 implementation by

Re: [PATCH 4/5] fs: ext4: Use CRC-16 implementation from linux/crc16.h

2022-04-21 Thread Stefan Roese
On 4/12/22 11:20, Pali Rohár wrote: Implementation in linux/crc16.h provides standard CRC-16 algorithm with polynomial x^16 + x^15 + x^2 + 1. Use it and remove duplicate ext4 CRC-16 specific code. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- fs/ext4/Makefile

Re: [PATCH 3/5] crc16: Move standard CRC-16 implementation from ubifs to lib

2022-04-21 Thread Stefan Roese
On 4/12/22 11:20, Pali Rohár wrote: This implementation provides standard CRC-16 algorithm with polynomial x^16 + x^15 + x^2 + 1. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- fs/ubifs/Makefile | 2 +- include/u-boot/crc.h | 3 +++ lib/Makefile

Re: [PATCH 2/5] crc16: Rename fs/ubifs/crc16.h to include/linux/crc16.h

2022-04-21 Thread Stefan Roese
On 4/12/22 11:20, Pali Rohár wrote: File fs/ubifs/crc16.h is standard linux's crc16.h include file. So move it from fs/ubifs to include/linux where are also other linux include files. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- fs/ubifs/crc16.c

Re: [PATCH 1/5] crc16-ccitt: Rename file with CRC-16-CCITT implementation to crc16-ccitt.c

2022-04-21 Thread Stefan Roese
On 4/12/22 11:20, Pali Rohár wrote: U-Boot CRC-16 implementation uses polynomial x^16 + x^12 + x^5 + 1 which is not standard CRC-16 algorithm, but it is known as CRC-16-CCITT. Rename file crc16.c to crc16-ccitt.c to reduce confusion. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Michael Nazzareno Trimarchi
Hi Fabio On Thu, Apr 21, 2022 at 4:17 PM Fabio Estevam wrote: > > Hi Marek, > > On Wed, Apr 20, 2022 at 7:15 PM Marek Vasut wrote: > > > Did you actually hit the USB_BOOT case or did you fall into the default: > > case ? > > It does hit the USB_BOOT case. > > I also tested forcing to return

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

2022-04-21 Thread Stefan Roese
Hi Tony, On 4/21/22 03:45, Tony Dinh wrote: Hi Stefan, On Tue, Apr 19, 2022 at 1:47 PM Tony Dinh wrote: Hi Stefan, On Tue, Apr 19, 2022 at 3:29 AM Stefan Roese wrote: Hi Tony, On 4/12/22 22:18, Tony Dinh wrote: For most Kirkwood boards, the PHY page is already set to page 0 (in

Please pull u-boot-marvell/master

2022-04-21 Thread Stefan Roese
Hi Tom, please pull the first batch of Marvell related patches: - mrvl_uart.sh: Remove script (Pali) - Fix Espressobin build for configs where ENV is not in SPI (Rogier) - mvebu: a37xx: Add support for reading OTP (Pali) - mvebu:

Re: [PATCH v2] arm: kirkwood: Sheevaplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-04-21 Thread Stefan Roese
On 4/18/22 01:42, Tony Dinh wrote: The Globalscale Technologies Sheevaplug board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1310 driver to bring up Ethernet. - Remove CONFIG_RESET_PHY_R symbol from all board files - Use uclass mvgbe to bring up the

Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE

2022-04-21 Thread Fabio Estevam
Hi Marek, On Wed, Apr 20, 2022 at 7:15 PM Marek Vasut wrote: > Did you actually hit the USB_BOOT case or did you fall into the default: > case ? It does hit the USB_BOOT case. I also tested forcing to return ENVL_UNKNOWN: --- a/arch/arm/mach-imx/imx8m/soc.c +++

Re: [PATCH 4/4] board: turris: Rename atsha204a@64 DT node to crypto@64

2022-04-21 Thread Stefan Roese
On 4/8/22 16:30, Pali Rohár wrote: DT node name should be generic, therefore rename atsha204a@64 to crypto@64. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi | 2 +- board/CZ.NIC/turris_atsha_otp.c

Re: [PATCH 3/4] board: turris: Allow to specify first eth idx of first MAC address

2022-04-21 Thread Stefan Roese
On 4/8/22 16:30, Pali Rohár wrote: Turris Omnia uses first MAC address from OTP for second ethernet interface. Second MAC address for third interface and third MAC address for first interface. Other Turris routers do not have this rotate by one mapping. So add function parameter for specifying

Re: [PATCH 2/4] board: turris: Do not cache Atsha device in BSS

2022-04-21 Thread Stefan Roese
On 4/8/22 16:30, Pali Rohár wrote: Atsha device is used prior relocation and at this early stage BSS does not have to be ready yet. So do not cache Atsha device in BSS. Fixes support for other Turris routers. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan ---

Re: [PATCH 1/4] board: turris: Move Turris Atsha OTP code to separate file

2022-04-21 Thread Stefan Roese
On 4/8/22 16:30, Pali Rohár wrote: OTP code is not Atsha generic but also it is not Omnia specific. It is common for all Turris routers which use Atsha cryptochip for storing OTP. So move this common Turris specific Atsha OTP code from Turris Omnia into separate file. It will be used also by

Re: [PATCH] arm: mvebu: a37xx: Add support for writing Security OTP values

2022-04-21 Thread Stefan Roese
On 4/7/22 11:32, Pali Rohár wrote: Implement write support for Security OTP values via mailbox API commands MBOX_CMD_OTP_WRITE_32B and MBOX_CMD_OTP_WRITE. Write support for North and South Bridge OTPs are not implemented as these OTPs are already burned in factory with some data.

Re: [PATCH] spl_imx_romapi: Remove extraneous character

2022-04-21 Thread Marek Vasut
On 4/21/22 16:01, Fabio Estevam wrote: From: Fabio Estevam Currently the following output is shown: ... Trying to boot from BOOTROM Find img info 0x&48020a00, size 872 ... Remove the extraneous "&" character, so that the correct output can be seen. Signed-off-by: Fabio Estevam Acked-by:

Re: [PATCH u-boot-marvell v2 3/3] arm: mvebu: Enable CONFIG_SPL_SYS_NO_VECTOR_TABLE for 32-bit mvebu

2022-04-21 Thread Stefan Roese
On 4/6/22 16:20, Pali Rohár wrote: U-Boot SPL is on 32-bit mvebu executed by the BootROM. And BootROM expects that U-Boot SPL returns execution back to the BootROM. Vectors during execution of U-Boot SPL should not be changed as BootROM does not expect it and uses its own vectors. So do not

Re: [PATCH u-boot-marvell v2 2/3] arm: Do not compile vector table when SYS_NO_VECTOR_TABLE is enabled

2022-04-21 Thread Stefan Roese
On 4/6/22 16:20, Pali Rohár wrote: Vector table is not used when SYS_NO_VECTOR_TABLE is enabled. So do not compile it and reduce image size. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- arch/arm/lib/vectors.S | 6 ++ 1 file changed, 6 insertions(+)

Re: [PATCH u-boot-marvell v2 1/3] arm: Introduce new CONFIG_SPL_SYS_NO_VECTOR_TABLE option

2022-04-21 Thread Stefan Roese
On 4/6/22 16:20, Pali Rohár wrote: Move OMAP4 specific option for disabling overwriting vector table into config option CONFIG_SPL_SYS_NO_VECTOR_TABLE. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- arch/arm/Kconfig| 4

Re: [PATCH] arm: mvebu: turris_omnia: Enable CONFIG_CMD_FUSE

2022-04-21 Thread Stefan Roese
On 4/6/22 15:26, Pali Rohár wrote: This allows to read eFuse on Turris Omnia. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- configs/turris_omnia_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/turris_omnia_defconfig

Re: [PATCH] tools: kwboot: Replace fstat()+st_size by lseek()+SEEK_END

2022-04-21 Thread Stefan Roese
On 4/6/22 15:18, Pali Rohár wrote: fstat()'s st_size works only for regular files. lseek() with SEEK_END works also for block or MTD devices. This replacement allows kwboot to load kwbimage from /dev/mtd0 for booting another device over /dev/ttyS0. Signed-off-by: Pali Rohár Applied to

Re: [PATCH] arm: mvebu: Add support for reading LD0 and LD1 eFuse

2022-04-21 Thread Stefan Roese
On 4/6/22 14:18, Pali Rohár wrote: Armada 385 contains 64 lines of HD eFuse and 2 lines of LD eFuse. HD eFuse is used for secure boot and each line is 64 bits long + 1 lock bit. LD eFuse lines are 256 bits long + 1 lock bit. LD 0 line is reserved for Marvell Internal Use and LD 1 line is for

Re: [PATCH v3 4/4] mvebu: uDPU: update defconfig

2022-04-21 Thread Stefan Roese
On 3/24/22 10:57, Robert Marko wrote: Update the current uDPU defconfig with following changes: * Disable CONFIG_SPI_BOOT, its not needed for booting and the device boots from eMMC anyway. * Disable CONFIG_SYS_CONSOLE_INFO_QUIET, there is no need to diverge from other boards by not priting the

Re: [PATCH v3 1/4] arm: mvebu: dts: uDPU: update DTS

2022-04-21 Thread Stefan Roese
On 3/24/22 10:57, Robert Marko wrote: Update the uDPU DTS to the version that is pending upstream [1][2]. [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220322105857.1107016-1-robert.ma...@sartura.hr/ [2]

Re: [PATCH v3 3/4] arm: mvebu: dts: uDPU: fix non-working networking

2022-04-21 Thread Stefan Roese
On 3/24/22 10:57, Robert Marko wrote: uDPU is a bit of a specific device in that it does not have any copper ports nor any ethernet PHY-s but 2 SFP ports. This is an issue since MVNETA requires a PHY phandle or a fixed-link to be defined under its node. Since U-boot has no SFP support this is

Re: [PATCH v3 2/4] net: mvneta: add SFP TX disable handling

2022-04-21 Thread Stefan Roese
On 3/24/22 10:57, Robert Marko wrote: Add support for handling SFP TX disable for MVNETA in the same fashion as to what MVPP2 is doing in order to enable using SFP-s. This allows using ethernet on SFP only boards. Signed-off-by: Robert Marko Applied to u-boot-marvell/master Thanks, Stefan

Re: [PATCH u-boot-mvebu v3 0/5] arm: mvebu: a37xx: Add support for reading OTP

2022-04-21 Thread Stefan Roese
On 2/23/22 14:15, Pali Rohár wrote: Add support for reading NB fuse OTP, SB fuse OTP and Security OTP values via U-Boot fuse API on Armada 37xx boards. Changes in v3: * Updated comment in patch 5/5 about MBOX_CMD_OTP_READ command * In patch 5/5 fixed number of output arguments for

[PATCH] spl_imx_romapi: Remove extraneous character

2022-04-21 Thread Fabio Estevam
From: Fabio Estevam Currently the following output is shown: ... Trying to boot from BOOTROM Find img info 0x&48020a00, size 872 ... Remove the extraneous "&" character, so that the correct output can be seen. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/spl_imx_romapi.c | 2 +- 1 file

[PATCH] verdin-imx8mm, verdin-imx8mp: Fix default systemd console output

2022-04-21 Thread Philippe Schenker
From: Philippe Schenker systemd prints its messages on the last console= statement that it finds in the kernel arguments. The current ordering sends the systemd messages to tty1, by default this is the display. Ensure that systemd sends its messages to the default UART, reorder the console=

  1   2   >