Nand write from uboot

2022-10-22 Thread momo aubin
Hello all, I'm using the evaluation board for davinci. I'm using uboot 2013 because the project started 10 years ago. I want to write to the NAND from u-boot code. I saw there is a driver for davinci in davinci_nand.c. How to write in the nand from u-boot code ? I need to write in a block (page) of

Aw: Nand write from uboot

2022-10-22 Thread Frank Wunderlich
Hi, this is how i do nand-write on a mediatek board, if your driver is capable with mtd it should be similar: https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r3:uboot#nand_flash HTH regards Frank

Don't use sudo in python tests

2022-10-22 Thread Heinrich Schuchardt
Hello Simon, As described in doc/develop/py_testing.doc using sudo in python tests should be avoided. * users building U-Boot may not be sudoers * running code as sudo comes with a risk You added sudo in test/py/tests/test_ut.py Can we use virt-make-fs here? Best regards Heinrich

Re: [PATCH v3 0/6] eficonfig: add UEFI Secure Boot key maintenance interface

2022-10-22 Thread Heinrich Schuchardt
On 10/14/22 08:56, Masahisa Kojima wrote: This series adds the UEFI Secure Boot key maintenance interface to the eficonfig command. User can enroll and delete the PK, KEK, db and dbx. Source code can be cloned with: $ git clone https://git.linaro.org/people/masahisa.kojima/u-boot.git -b kojima/

[BUG] poweroff command in ./u-boot -T -l causes SIG_SEGV

2022-10-22 Thread Heinrich Schuchardt
Hello Simon, when running ./u-boot -T -l and issuing the poweroff command a crash occurs: os_exit() results in std::ostream::flush() calling U-Boot's fflush with file = -138447008 (or any other negative number) Man fflush shows the following definition: int fflush(FILE *stream); U-Boot's

[PATCH 1/1] cli: always show cursor

2022-10-22 Thread Heinrich Schuchardt
We may enter the command line interface in a state where on the remote console the cursor is not shown. Send an escape sequence to enable it. Signed-off-by: Heinrich Schuchardt --- common/main.c | 4 1 file changed, 4 insertions(+) diff --git a/common/main.c b/common/main.c index 682f3359e

Re: Nand write from uboot

2022-10-22 Thread momo aubin
Thanks for frank your answer. > On 22 Oct 2022, at 9:57 AM, Frank Wunderlich wrote: > > Hi, > > this is how i do nand-write on a mediatek board, if your driver is capable > with mtd it should be similar: > > https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r3:uboot#nand_flash > > HTH > >

[PATCH 1/1] console: file should always be non-negative

2022-10-22 Thread Heinrich Schuchardt
We use the parameter file in console function to choose from an array after checking against MAX_FILES but we never check if the value of file is negative. Running ./u-boot -T -l and issuing the poweroff command has resulted in crashes because os_exit() results in std::ostream::flush() calling U-

[PATCH 1/1] console: file should always be non-negative

2022-10-22 Thread Heinrich Schuchardt
We use the parameter file in console function to choose from an array after checking against MAX_FILES but we never check if the value of file is negative. Running ./u-boot -T -l and issuing the poweroff command has resulted in crashes because os_exit() results in std::ostream::flush() calling U-

Re: [PATCH v2 1/4] riscv: dts: Update memory configuration

2022-10-22 Thread Conor Dooley
On Fri, Oct 21, 2022 at 12:29:19PM +0530, Padmarao Begari wrote: > In the v2022.10 Icicle reference design, the seg registers are going to be Hey Padmarao, Since the release was done the other day I think that this should be s/are going to be/have been > changed, resulting in a required change to

[PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Fabio Estevam
From: Fabio Estevam The following build error is seen when building imx28_xea_defconfig: arch/arm/dts/.imx28-xea.dtb.pre.tmp:8:10: fatal error: imx28-lwe.dtsi: No such file or directory This happens because commit ebcca534f557 ("imx28: synchronise device tree with linux") missed to import the

Re: [PATCH v2 2/4] riscv: dts: Add QSPI NAND device node

2022-10-22 Thread Conor Dooley
On Fri, Oct 21, 2022 at 12:29:20PM +0530, Padmarao Begari wrote: > Add QSPI NAND device node to the Microchip PolarFire SoC > Icicle kit device tree. > > The Winbond NAND flash memory can be connected to the > Icicle Kit by using the Mikroe Flash 5 click board and > the Pi 3 Click shield. > > Sig

Re: [PATCH v2 3/4] spi: Add Microchip PolarFire SoC QSPI driver

2022-10-22 Thread Conor Dooley
On Fri, Oct 21, 2022 at 12:29:21PM +0530, Padmarao Begari wrote: > Add QSPI driver code for the Microchip PolarFire SoC. > This driver supports the QSPI standard, dual and quad > mode interfaces. > > Co-developed-by: Naga Sureshkumar Relli > Signed-off-by: Naga Sureshkumar Relli > Signed-off-by:

[PATCH] imx8qm-cgtqmx8: Introduce imx8qm-cgtqmx8-u-boot.dtsi

2022-10-22 Thread Fabio Estevam
From: Fabio Estevam Since commit 02682bf82568 ("imx: imx8qm: cgtqmx8: switch to binman") the following build error is seen: arch/arm/dts/.imx8qm-cgtqmx8.dtb.pre.tmp:15:10: fatal error: imx8qm-u-boot.dtsi: No such file or directory This commit included "imx8qm-u-boot.dtsi", but this file does n

Re: Don't use sudo in python tests

2022-10-22 Thread Tom Rini
On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote: > Hello Simon, > > As described in doc/develop/py_testing.doc using sudo in python tests > should be avoided. > > * users building U-Boot may not be sudoers > * running code as sudo comes with a risk > > You added sudo in test/

Re: [PATCH] imx8mn-venice-u-boot: Fix broken boot

2022-10-22 Thread Fabio Estevam
Hi Stefano, On Fri, Oct 21, 2022 at 8:50 AM wrote: > > > When the imx8mm.dtsi file was pulled in from Linux, the UARTs > > were moved into an spba sub-node which wasn't being included > > in the SPL device tree. This meant the references to the UART > > weren't being handled properly and when bo

Re: [BUG] poweroff command in ./u-boot -T -l causes SIG_SEGV

2022-10-22 Thread Mark Kettenis
> Date: Sat, 22 Oct 2022 11:14:34 +0200 > From: Heinrich Schuchardt > > Hello Simon, > > when running ./u-boot -T -l and issuing the poweroff command a crash occurs: > > os_exit() results in std::ostream::flush() calling U-Boot's fflush with > file = -138447008 (or any other negative number) >

Re: [PATCH v2 3/8] imxrt1050: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
Hi Jesse Sorry, I kinda missed your reply and imx maintainership was quiet for quite some time. I am now preparing a v3 taking your feedback into account. Thanks! On Sun, 2022-08-28 at 02:50 -0400, Jesse Taube wrote: > > > On 8/26/22 14:31, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > >

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Marcel Ziswiler
Hi Fabio On Sat, 2022-10-22 at 08:22 -0300, Fabio Estevam wrote: > From: Fabio Estevam > > The following build error is seen when building imx28_xea_defconfig: > > arch/arm/dts/.imx28-xea.dtb.pre.tmp:8:10: fatal error: imx28-lwe.dtsi: No > such file or directory > > This happens because commi

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Michael Nazzareno Trimarchi
Hi Fabio On Sat, Oct 22, 2022 at 3:02 PM Marcel Ziswiler wrote: > > Hi Fabio > > On Sat, 2022-10-22 at 08:22 -0300, Fabio Estevam wrote: > > From: Fabio Estevam > > > > The following build error is seen when building imx28_xea_defconfig: > > > > arch/arm/dts/.imx28-xea.dtb.pre.tmp:8:10: fatal er

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Fabio Estevam
Hi Michael, On Sat, Oct 22, 2022 at 10:19 AM Michael Nazzareno Trimarchi wrote: > I have seen patches that fix build issues but how they land in the > first place. I mean > CI is used to avoid build regression I am sorry, but I could not understand your message. Care to clarify? Thanks

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Michael Nazzareno Trimarchi
Hi On Sat, Oct 22, 2022 at 3:24 PM Fabio Estevam wrote: > > Hi Michael, > > On Sat, Oct 22, 2022 at 10:19 AM Michael Nazzareno Trimarchi > wrote: > > > I have seen patches that fix build issues but how they land in the > > first place. I mean > > CI is used to avoid build regression > > I am sor

Re: [PATCH] configs: imx8mn_beacon_fspi: Add config for booting from QSPI

2022-10-22 Thread Adam Ford
On Sun, Jul 31, 2022 at 8:24 PM Adam Ford wrote: > > The imx8mn-beacon SOM has a QSPI part on it connected to the > FlexSPI controller. Add a defconfig option which supports > booting from the QSPI NOR flash instead of sd/mmc. > > Signed-off-by: Adam Ford > --- > > This won't fully function with

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 10:31 AM Michael Nazzareno Trimarchi wrote: > On my side the Continuous Integration using gitlab-ci, verify board > combinations > and test the build. I'm asking if this build breakage happen because > those boards > are not built. All boards are built by CI and the bui

[PATCH V2 1/4] configs: imx8mn_beacon: Re-align memory to standard imx8mn settings

2022-10-22 Thread Adam Ford
The imx8mn_beacon board does not use the same memory map as the reference design from NXP or other imx8mn boards. As such, memory is more limited in SPL. Moving SPL_BSS_START_ADDR and SPL_STACK to default locations increases the amount of available meory for the SPL stack. Doing this allows the

[PATCH V2 2/4] regulator: bd718x7: Only bind children when PMIC_CHILDREN is enabled

2022-10-22 Thread Adam Ford
If the bd718x7 is required, but PMIC_CHILDREN is disabled, this driver throws a compile error. Fix this by putting the function to bind children into an if-statement checking for PMIC_CHILDREN. Allowing PMIC_CHILDREN to be disabled in SPL saves some space and still permits some read/write functio

[PATCH V2 3/4] configs: imx8mn_beacon: Enable SPL_DM_PMIC_BD71837

2022-10-22 Thread Adam Ford
To properly operate the Nano with LPDDR4 at 1.6GHz, the voltage needs to be adjusted before DDR is initialized. Enable the PMIC in SPL to do this. Signed-off-by: Adam Ford diff --git a/configs/imx8mn_beacon_2g_defconfig b/configs/imx8mn_beacon_2g_defconfig index 5708ba5c69..4931f836f0 100644 --

[PATCH V2 4/4] imx: imx8mn-beacon: Fix out of spec voltage

2022-10-22 Thread Adam Ford
The DDR is configured for LPDDR4 running at 1.6GHz which requires the voltage on the PMIC to rise a bit before initializing LPDDR4 or it will be running out of spec. Signed-off-by: Adam Ford diff --git a/board/beacon/imx8mn/spl.c b/board/beacon/imx8mn/spl.c index 029f71bc99..9acd916180 100644 --

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Michael Nazzareno Trimarchi
Hi On Sat, Oct 22, 2022 at 3:35 PM Fabio Estevam wrote: > > On Sat, Oct 22, 2022 at 10:31 AM Michael Nazzareno Trimarchi > wrote: > > > On my side the Continuous Integration using gitlab-ci, verify board > > combinations > > and test the build. I'm asking if this build breakage happen because >

[PATCH 1/3] imx: imx8mm_beacon: Eliminate a few extras to free up SPL space

2022-10-22 Thread Adam Ford
There are a few functions which are not essential for use in SPL, but they take up enough space to make other preferred features not fit. Remove the extras. Signed-off-by: Adam Ford diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c index a93cc93878..b0e9d918da 100644 --- a/boar

[PATCH 2/3] imx: imx8mm-beacon: Enable USB booting via SDP

2022-10-22 Thread Adam Ford
In order to boot over USB, the device tree needs to enable a few extra nodes in SPL. Since the USB driver has the ability to detect host/device, the dr_mode can be removed from the device tree since it needs to act as a device when booting and OTG is the default mode. Add USB boot support to spl_

[PATCH 3/3] imx: imx8mm-beacon: Move Environment to eMMC partition 2

2022-10-22 Thread Adam Ford
The downstream U-Boot distributed by Beacon stores the environment in the eMMC and the end of partition 2. This allow the environment to stay on the SOM regardless of the boot source. Signed-off-by: Adam Ford diff --git a/configs/imx8mm_beacon_defconfig b/configs/imx8mm_beacon_defconfig index 9

[PATCH] xen: pvblock: Use uclass_probe_all

2022-10-22 Thread Michal Suchanek
Also eliminate useless code and variables. Signed-off-by: Michal Suchanek --- drivers/xen/pvblock.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c index 95e298d7dd..4ad548d599 100644 --- a/drivers/xen/pvblock.c +++ b/dr

PSCI: prefetch abort with Mainline linux (even with rockchip u-boot)

2022-10-22 Thread Jagan Teki
Hi Kever and Heiko, Rockchip 32-bit SoC, like rv1126 seems to depend on PSCI to bring SMP in linux. With rockchip u-boot and Mainline U-Boot the psci in linux-next triggers the abort. (note that I have added rockchip_smcc and enabled PSCI in u-boot) [0.00] Booting Linux on physical CPU 0

Re: [PATCH 1/3] imx: imx8mm_beacon: Eliminate a few extras to free up SPL space

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 11:28 AM Adam Ford wrote: > > There are a few functions which are not essential for use in > SPL, but they take up enough space to make other preferred > features not fit. Remove the extras. > > Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam

Re: [PATCH 2/3] imx: imx8mm-beacon: Enable USB booting via SDP

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 11:28 AM Adam Ford wrote: > > In order to boot over USB, the device tree needs to enable > a few extra nodes in SPL. Since the USB driver has the > ability to detect host/device, the dr_mode can be removed > from the device tree since it needs to act as a device when > boo

Re: [PATCH 3/3] imx: imx8mm-beacon: Move Environment to eMMC partition 2

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 11:28 AM Adam Ford wrote: > > The downstream U-Boot distributed by Beacon stores the environment > in the eMMC and the end of partition 2. This allow the environment > to stay on the SOM regardless of the boot source. > > Signed-off-by: Adam Ford Reviewed-by: Fabio Estev

Re: [PATCH V2 1/4] configs: imx8mn_beacon: Re-align memory to standard imx8mn settings

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 10:44 AM Adam Ford wrote: > > The imx8mn_beacon board does not use the same memory map as the reference > design from NXP or other imx8mn boards. As such, memory is more limited > in SPL. > > Moving SPL_BSS_START_ADDR and SPL_STACK to default locations increases > the amou

Re: [PATCH V2 2/4] regulator: bd718x7: Only bind children when PMIC_CHILDREN is enabled

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 10:44 AM Adam Ford wrote: > > If the bd718x7 is required, but PMIC_CHILDREN is disabled, this > driver throws a compile error. Fix this by putting the function > to bind children into an if-statement checking for PMIC_CHILDREN. > > Allowing PMIC_CHILDREN to be disabled in

Re: [PATCH V2 3/4] configs: imx8mn_beacon: Enable SPL_DM_PMIC_BD71837

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 10:44 AM Adam Ford wrote: > > To properly operate the Nano with LPDDR4 at 1.6GHz, the > voltage needs to be adjusted before DDR is initialized. > Enable the PMIC in SPL to do this. > > Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam

Re: [PATCH V2 4/4] imx: imx8mn-beacon: Fix out of spec voltage

2022-10-22 Thread Fabio Estevam
On Sat, Oct 22, 2022 at 10:44 AM Adam Ford wrote: > > The DDR is configured for LPDDR4 running at 1.6GHz which requires > the voltage on the PMIC to rise a bit before initializing LPDDR4 > or it will be running out of spec. > > Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Stefano Babic
Hi everybody, On 22.10.22 15:44, Michael Nazzareno Trimarchi wrote: Hi On Sat, Oct 22, 2022 at 3:35 PM Fabio Estevam wrote: On Sat, Oct 22, 2022 at 10:31 AM Michael Nazzareno Trimarchi wrote: On my side the Continuous Integration using gitlab-ci, verify board combinations and test the bui

Re: Don't use sudo in python tests

2022-10-22 Thread Sean Anderson
On 10/22/22 08:04, Tom Rini wrote: On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote: Hello Simon, As described in doc/develop/py_testing.doc using sudo in python tests should be avoided. * users building U-Boot may not be sudoers * running code as sudo comes with a risk You

Re: [PATCH v2] tests: Build correct sandbox configuration on 32bit

2022-10-22 Thread Michal Suchánek
On Fri, Oct 21, 2022 at 06:05:51PM -0700, Simon Glass wrote: > Hi, > > On Mon, 17 Oct 2022 at 01:28, Michal Suchánek wrote: > > > > On Sat, Oct 15, 2022 at 10:27:43PM +0200, Heinrich Schuchardt wrote: > > > On 10/15/22 21:46, Simon Glass wrote: > > > > Hi Heinrich, > > > > > > > > On Sat, 15 Oct

Re: Don't use sudo in python tests

2022-10-22 Thread Tom Rini
On Sat, Oct 22, 2022 at 02:44:27PM -0400, Sean Anderson wrote: > On 10/22/22 08:04, Tom Rini wrote: > > On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote: > > > Hello Simon, > > > > > > As described in doc/develop/py_testing.doc using sudo in python tests > > > should be avoided.

[PATCH] test: Don't use sudo in unit test

2022-10-22 Thread Sean Anderson
I originally did this with fusefat, but it was unbearably slow. It could be useful with some optimization work... I switched to mtools instead. I have used fuse2fs on another project and it worked great. I didn't test this too throughoughly; I just made sure that the contents were intact (by using

Re: [PATCH] test: Don't use sudo in unit test

2022-10-22 Thread Tom Rini
On Sat, Oct 22, 2022 at 04:16:49PM -0400, Sean Anderson wrote: > I originally did this with fusefat, but it was unbearably slow. It could be > useful with some optimization work... I switched to mtools instead. I have > used > fuse2fs on another project and it worked great. > > I didn't test thi

[PATCH] sandbox: Correctly define BITS_PER_LONG

2022-10-22 Thread Michal Suchanek
SANDBOX_BITS_PER_LONG is the number of bits in long on the sandbox platform. Signed-off-by: Michal Suchanek --- arch/sandbox/include/asm/types.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/sandbox/include/asm/types.h b/arch/sandbox/include/asm/types.h index c1a

[PATCH v3 1/8] vf610: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1 plus the recent DDR pinmux addition still being in-flight. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/vf610-pinfunc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/

[PATCH v3 0/8] arm: dts: imx: sync device trees with upstream linux kernel part 1

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler This series synchronises them imx device trees with the upstream Linux kernel (v6.0-rc1). I split it into two parts. This is part 1. It also fixes a few issues as discussed during/after the pre-mature application of my first series [1]. I am not touching kontron-sl-mx6ul

[PATCH v3 2/8] imxrt1020: fix lpuart issue in common u-boot device tree

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix lpuart issue in common U-Boot device tree. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imxrt1020-evk-u-boot.dtsi | 7 --- arch/arm/dts/imxrt1020-evk.dts | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/

[PATCH v3 3/8] imxrt1050: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- Changes in v3: - Incorporate feedback from Jesse. Changes in v2: - imxrt1050: Re-added DDR timings aka semc node as pointed out by Fabio. Thanks! arch/arm/dts/imxrt1050-evk-u-boot.dtsi

[PATCH v3 4/8] imx8ulp: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v2) Changes in v2: - imx8ulp: Re-added s400_mu device tree node. arch/arm/dts/imx8ulp-evk-u-boot.dtsi | 15 +- arch/arm/dts/imx8ulp-evk.dts | 1

[PATCH v3 5/8] imx8mq: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx8mq-evk.dts | 43 + arch/arm/dts/imx8mq-u-boot.dtsi | 10 ++-- arch/arm/dts/imx8mq.dtsi | 15 +++--

[PATCH v3 7/8] imx8mn: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx8mn-beacon-baseboard.dtsi | 4 +- arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi| 2 +- .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi | 2 +- arc

[PATCH v3 6/8] imx8mp: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx8mp-dhcom-pdk2.dts | 27 +++-- arch/arm/dts/imx8mp-dhcom-som.dtsi | 20 +--- arch/arm/dts/imx8mp-evk.dts | 126 +

[PATCH v3 8/8] imx8mm: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx8mm-beacon-baseboard.dtsi | 4 +- arch/arm/dts/imx8mm-evk.dtsi | 43 +++ arch/arm/dts/imx8mm-icore-mx8mm.dtsi | 12 +

Re: [PATCH] sandbox: Correctly define BITS_PER_LONG

2022-10-22 Thread Heinrich Schuchardt
Am 22. Oktober 2022 23:22:01 MESZ schrieb Michal Suchanek : >SANDBOX_BITS_PER_LONG is the number of bits in long on the sandbox >platform. Please, explain in the commit message what this patch is good for. Aren't further patches needed to make use of it? Best regards Heinrich > >Signed-off

[PATCH v2 02/16] imx7d: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) include/dt-bindings/reset/imx7-reset.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/reset/imx7-reset.h b/include/dt-bindings/reset/imx7-rese

[PATCH v2 00/16] arm: dts: imx: sync device trees with upstream linux kernel part 2

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler This series synchronises them imx device trees with the upstream Linux kernel (v6.0-rc1). I split it into two parts. This is part 2. It also fixes a few issues as discussed during/after the pre-mature application of my first series [1]. I am not touching kontron-sl-mx6ul

[PATCH v2 04/16] imx6ull: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6ull-colibri.dtsi | 10 +++--- arch/arm/dts/imx6ull.dtsi | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/dt

[PATCH v2 03/16] imx6ul: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6ul-14x14-evk-u-boot.dtsi | 2 +- arch/arm/dts/imx6ul-phytec-segin.dtsi | 5 arch/arm/dts/imx6ul.dtsi | 36 +++--

[PATCH v2 05/16] imx6ulz: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6ulz.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/imx6ulz.dtsi b/arch/arm/dts/imx6ulz.dtsi index aeb2ddc540..0b5f1a7635 100644 -

[PATCH v2 08/16] imx6sl: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6sl-evk.dts | 183 ++-- arch/arm/dts/imx6sl-pinfunc.h| 6 +- arch/arm/dts/imx6sl.dtsi | 362 +

[PATCH v2 06/16] imx6sx: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6sx-sabreauto.dts | 623 +++- arch/arm/dts/imx6sx-sdb.dts | 8 +- arch/arm/dts/imx6sx-sdb.dtsi

[PATCH v2 09/16] imx6qp: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6qp-sabreauto.dts | 7 ++- arch/arm/dts/imx6qp-sabresd.dts | 10 +- arch/arm/dts/imx6qp.dtsi | 3 +-- 3 files changed, 16 inser

[PATCH v2 10/16] imx6qdl: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6q-sabrelite.dts| 11 ++- arch/arm/dts/imx6qdl-sabrelite.dtsi | 11 ++- 2 files changed, 12 insertions(+), 10 deletions(-) diff --g

[PATCH v2 12/16] imx51: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx51.dtsi | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/arch/arm/dts/imx51.dtsi b/arch/arm/dts/imx51.dtsi

[PATCH v2 11/16] imx53: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx53-cx9020.dts| 414 ++- arch/arm/dts/imx53-kp.dts| 2 + arch/arm/dts/imx53-m53menlo.dts | 306 +++

[PATCH v2 07/16] imx6sll: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx6sll-evk.dts | 879 -- arch/arm/dts/imx6sll-pinfunc.h| 6 +- arch/arm/dts/imx6sll.dtsi |

Re: Don't use sudo in python tests

2022-10-22 Thread Heinrich Schuchardt
Am 22. Oktober 2022 20:44:27 MESZ schrieb Sean Anderson : >On 10/22/22 08:04, Tom Rini wrote: >> On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote: >>> Hello Simon, >>> >>> As described in doc/develop/py_testing.doc using sudo in python tests >>> should be avoided. >>> >>> *

[PATCH v2 13/16] imx28: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Add missing imx28-lwe.dtsi as pointed out by Fabio. Thanks! arch/arm/dts/imx28-evk.dts | 2 +- arch/arm/dts/imx28-lwe.dtsi | 170 +++ arch/

[PATCH v2 16/16] imx28: avoid num_cs and spi_max_frequency build errors

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Avoid the following build errors after the device tree sync: drivers/spi/mxs_spi.c: In function ‘mxs_spi_probe’: drivers/spi/mxs_spi.c:327:25: error: ‘struct dtd_fsl_imx23_spi’ has no member named ‘spi_max_frequency’ 327 | priv->max_freq = dtplat->spi_max_frequency;

[PATCH v2 14/16] imx23: synchronise device tree with linux

2022-10-22 Thread Marcel Ziswiler
From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imx23-evk.dts | 1 - arch/arm/dts/imx23-pinfunc.h | 8 +--- arch/arm/dts/imx23-u-boot.dtsi | 7 +++ arch/arm/dts/imx23.dtsi| 2 +- 4

Re: Pending imx patch sets

2022-10-22 Thread Marcel Ziswiler
On Fri, 2022-10-21 at 14:30 +0200, Stefano Babic wrote: > On 21.10.22 14:22, Marcel Ziswiler wrote: > > Hi Stefano > > > > On Fri, 2022-10-21 at 12:05 +0200, Stefano Babic wrote: > > > Hi Marcel, > > > > > > I have picked up several of yours as first attempt to merge most i.MX, > > > CI is runnin

Re: [PATCH] imx28-xea: Add missing imx28-lwe.dtsi

2022-10-22 Thread Marcel Ziswiler
On Sat, 2022-10-22 at 17:44 +0200, Stefano Babic wrote: > Hi everybody, > > On 22.10.22 15:44, Michael Nazzareno Trimarchi wrote: > > Hi > > > > On Sat, Oct 22, 2022 at 3:35 PM Fabio Estevam wrote: > > > > > > On Sat, Oct 22, 2022 at 10:31 AM Michael Nazzareno Trimarchi > > > wrote: > > > > >

Re: [PATCH v3 2/8] imxrt1020: fix lpuart issue in common u-boot device tree

2022-10-22 Thread Giulio Benetti
Hi Marcel, thanks for contributing, Il 22/10/2022 23:42, Marcel Ziswiler ha scritto: From: Marcel Ziswiler Fix lpuart issue in common U-Boot device tree. There's no need to repeat in commit log the subject. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/dts/imxrt1

Re: [PATCH v3 3/8] imxrt1050: synchronise device tree with linux

2022-10-22 Thread Giulio Benetti
Hi Marcel, Il 22/10/2022 23:42, Marcel Ziswiler ha scritto: From: Marcel Ziswiler Synchronise device tree with linux v6.0-rc1. Signed-off-by: Marcel Ziswiler --- Changes in v3: - Incorporate feedback from Jesse. Changes in v2: - imxrt1050: Re-added DDR timings aka semc node as pointed out

Re: Don't use sudo in python tests

2022-10-22 Thread Sean Anderson
On 10/22/22 18:00, Heinrich Schuchardt wrote: Am 22. Oktober 2022 20:44:27 MESZ schrieb Sean Anderson : On 10/22/22 08:04, Tom Rini wrote: On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote: Hello Simon, As described in doc/develop/py_testing.doc using sudo in python tests

Re: [PATCH 0/3] mtd: spi-nor-core: Add support for s28hl512t, s28hl01gt, and s28hs01gt

2022-10-22 Thread Jagan Teki
On Thu, Aug 25, 2022 at 1:19 PM wrote: > > From: Takahiro Kuwano > > These devices are variants of s28hs512t(1.8V 512Mb) with different > density(1Gb) and power supply voltage(3V). > > Datasheet: > https://www.infineon.com/dgdl/Infineon-S28HS256T_S28HS512T_S28HS01GT_S28HL256T_S28HL512T_S28HL01GT_

Re: [PATCH 0/4] mtd: spi-nor-core: Track flash's internal address mode in s25hx-t

2022-10-22 Thread Jagan Teki
On Thu, Sep 1, 2022 at 11:36 AM wrote: > > From: Takahiro Kuwano > > For S25hx-T support in Linux (single die package only), flash's internal > address mode is not changed and it is assumed as factory default. Current > implementation of u-boot forces to 4-byte address mode while some parts > are

Re: [PATCH] spi: spi-mem: ease checks in dtr_supports_op()

2022-10-22 Thread Jagan Teki
On Thu, Oct 20, 2022 at 2:04 PM Dhruva Gole wrote: > > Remove the extra conditions that cause some cases to fail prematurely > like if the data number of bytes is odd. The controller can handle odd > number of bytes data read in DTR Mode. Don't fail supports op for this > condition. > > Signed-off

Re: [PATCH] mtd: spi-nor-core: Fix index value for SCCR dwords

2022-10-22 Thread Jagan Teki
On Mon, Sep 12, 2022 at 10:56 AM wrote: > > From: Takahiro Kuwano > > Array index for SCCR 22th DWORD should be 21. > > Fixes: bebdc237507c ("mtd: spi-nor: Parse SFDP SCCR Map") > Signed-off-by: Takahiro Kuwano > --- Applied to u-boot-spi/master

Re: [PATCH] cmd: sf: Handle unaligned 'update' start offset

2022-10-22 Thread Jagan Teki
On Wed, Sep 28, 2022 at 10:15 PM Marek Vasut wrote: > > Currently the 'sf update' command fails in case the 'start' offset is > not aligned to SPI NOR erase block size. Add the missing alignment > calculation. In case the start offset is in the middle of erase block, > round start address down to

Re: [PATCH 016/347] FogBugz #516535: Fix QSPI write issues

2022-10-22 Thread Jagan Teki
On Tue, Aug 30, 2022 at 11:50 AM Jit Loon Lim wrote: > > From: Chee Hong Ang > > QSPI driver perform chip select on every flash read/write > access. The driver need to disable/enable the QSPI controller > while performing chip select. This may cause some data lost > especially the QSPI controller

Re: [PATCH v3 0/6] eficonfig: add UEFI Secure Boot key maintenance interface

2022-10-22 Thread Masahisa Kojima
Hi Heinrich, On Sat, 22 Oct 2022 at 17:31, Heinrich Schuchardt wrote: > > On 10/14/22 08:56, Masahisa Kojima wrote: > > This series adds the UEFI Secure Boot key maintenance interface > > to the eficonfig command. > > User can enroll and delete the PK, KEK, db and dbx. > > > > Source code can be