[PATCH] mmc: arm_pl180_mmci: Rely on DM

2024-02-08 Thread Linus Walleij
-by: Linus Walleij --- drivers/mmc/Kconfig | 1 + drivers/mmc/arm_pl180_mmci.c | 66 ++-- 2 files changed, 3 insertions(+), 64 deletions(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 17618c3bdcc1..59716c3966e5 100644 --- a/drivers/mmc

Re: [PATCH v1] vexpress_ca9x4: Enable DM_SERIAL

2024-02-08 Thread Linus Walleij
.35 Filename 'zImage'. Load address: 0x6200 Loading: smc911x: MAC 00:02:f7:00:3c:9d Yours, Linus Walleij

Re: [PATCH v1] vexpress_ca9x4: Enable DM_SERIAL

2024-01-29 Thread Linus Walleij
On Mon, Jan 29, 2024 at 12:54 PM Kristian Amlie wrote: > On 29/01/2024 12:41, Ole Orhagen wrote: > > On Fri, Jan 26, 2024 at 8:57 PM Linus Walleij > <mailto:linus.wall...@linaro.org>> wrote: > > Are you using the actual hardware, or QEMU? > > &

Re: [PATCH v1] vexpress_ca9x4: Enable DM_SERIAL

2024-01-26 Thread Linus Walleij
evice tree. > > Signed-off-by: Ole P. Orhagen Nice! Reviewed-by: Linus Walleij Are you using the actual hardware, or QEMU? > - chosen { }; > + chosen { > + stdout-path = _serial0; > + }; Can you please send this patch also to the Linux codebase. Yours, Linus Walleij

Re: [PATCH v2] bmips: Add Inteno XG6846 board

2023-10-31 Thread Linus Walleij
On Tue, Sep 26, 2023 at 11:23 AM Linus Walleij wrote: > This adds support for the Inteno XG6846 board based on the > Broadcom MIPS 6328 SoC. > > The default boot will read a uImage from flash and boot it. > > Reviewed-by: Daniel Schwierzeck > Signed-off-by: Linus Walleij

Re: [PATCH 2/2] vexpress64: Add MMC card to the BOOT_TARGET_DEVICES of FVP

2023-10-21 Thread Linus Walleij
On Wed, Oct 18, 2023 at 8:28 AM Qi Feng wrote: > From: Wei Chen > > Add MMC disk to FVP's BOOT_TARGET_DEVICES. This allows the user to boot > from MMC devices. > > Signed-off-by: Wei Chen > Signed-off-by: Qi Feng Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 1/2] misc: vexpress_config: Use member .priv_auto to set the private data

2023-10-21 Thread Linus Walleij
g Looks like a reasonable solution to me! Reviewed-by: Linus Walleij Yours, Linus Walleij

[PATCH v2] bmips: Add Inteno XG6846 board

2023-09-26 Thread Linus Walleij
This adds support for the Inteno XG6846 board based on the Broadcom MIPS 6328 SoC. The default boot will read a uImage from flash and boot it. Reviewed-by: Daniel Schwierzeck Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rebase on top of Tom's patches making Makefile optio

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-25 Thread Linus Walleij
re with this? If it's on the master I'll just rebase and be done with it, else I can go with an empty Makefile simply. Yours, Linus Walleij

Re: [PATCH] RFT: mips: implement __udivdi3

2023-09-21 Thread Linus Walleij
return ret; > } > > #endif /* BITS_PER_LONG == 32 */ > > What do you think? Looks good to me! You can just modify the patch, sign off and apply, I guess? Go ahead! Yours, Linus Walleij

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-20 Thread Linus Walleij
e upstreamed before the device trees can be upstreamed. But I can try to bring in more of it for sure :) > > +++ b/board/inteno/xg6846/xg6846.c > > @@ -0,0 +1,6 @@ > > +// SPDX-License-Identifier: GPL-2.0+ > > +/* > > + * Copyright (C) 2023 Linus Walleij > > + */ &

[PATCH] bmips: Add Inteno XG6846 board

2023-09-20 Thread Linus Walleij
This adds support for the Inteno XG6846 board based on the Broadcom MIPS 6328 SoC. The default boot will read a uImage from flash and boot it. Cc: Daniel Schwierzeck Signed-off-by: Linus Walleij --- arch/mips/dts/Makefile | 1 + arch/mips/dts/inteno,xg6846.dts | 57

[PATCH] RFT: mips: implement __udivdi3

2023-09-18 Thread Linus Walleij
Condarelli Cc: Ralf Baechle Signed-off-by: Linus Walleij --- I can't test this because it didn't work for MTD devices as I had expected, but I saw Mauro had this problem before so I think I might have fixed it. I better put the patch out there rather than let it sit on my drive. --- arch/mips/lib

[PATCH v5 3/3] board: Add new Broadcom Northstar board

2023-04-24 Thread Linus Walleij
they need to create a separate DTS file and augment the code, but I don't know if any other users will turn up. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- ChangeLog v4->v5: - Rebase on the U-Boot master branch - Add some documentation ChangeLog v3->v4: - No changes ChangeLog

[PATCH v5 2/3] arm: Add support for the Broadcom Northstar SoCs

2023-04-24 Thread Linus Walleij
by the Linux kernel and OpenWrt as it is used in many routers. Since we currently don't need any chip-specific quirks and can get the system up from just the device tree, a mach-* directory doesn't even need to be added, just some small Kconfig fragments. Cc: Rafał Miłecki Signed-off-by: Linus Walleij

[PATCH v5 1/3] arm: dts: Import device tree for Broadcom Northstar

2023-04-24 Thread Linus Walleij
This brings in the main SoC device tree used by the Broadcom Northstar chipset, i.e. BCM4709x and BCM5301x. This is taken from the v6.3 Linux kernel. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- ChangeLog v4->v5: - Rebase on the U-Boot master branch ChangeLog v3->v4: - No c

[PATCH v5 0/3] Add Broadcom Northstar basic support

2023-04-24 Thread Linus Walleij
proc NAND and nand base pacthes as the iproc patch is a prerequisite. - Jump from v1->v3 as the other patches was at version v3. Linus Walleij (3): arm: dts: Import device tree for Broadcom Northstar arm: Add support for the Broadcom Northstar SoCs board: Add new Broadcom Northstar boar

Re: [PATCH v2] nand: brcmnand: add iproc support

2023-04-20 Thread Linus Walleij
On Wed, Apr 19, 2023 at 6:13 PM Dario Binacchi wrote: > On Wed, Apr 19, 2023 at 4:00 PM Linus Walleij > wrote: > > > > On Wed, Apr 19, 2023 at 3:19 PM Dario Binacchi > > wrote: > > > On Wed, Apr 19, 2023 at 3:04 PM Linus Walleij > > > wrote: > &

Re: [PATCH v2] nand: brcmnand: add iproc support

2023-04-19 Thread Linus Walleij
On Wed, Apr 19, 2023 at 3:19 PM Dario Binacchi wrote: > On Wed, Apr 19, 2023 at 3:04 PM Linus Walleij > wrote: > > > > On Mon, Apr 17, 2023 at 10:37 AM Dario Binacchi > > wrote: > > > > > Applied to nand-next ( as well as the patch "mtd: rawnand:

Re: [PATCH v2] nand: brcmnand: add iproc support

2023-04-19 Thread Linus Walleij
ernel.org/u-boot/20230407134008.1939717-2-linus.wall...@linaro.org/ https://lore.kernel.org/u-boot/20230407134008.1939717-3-linus.wall...@linaro.org/ Otherwise please use these versions instead, because the second patch needed some fixing for Tom's system. Thanks a lot! Yours, Linus Walleij

Re: [PATCH v4 5/5] board: Add new Broadcom Northstar board

2023-04-08 Thread Linus Walleij
On Fri, Apr 7, 2023 at 11:40 PM Tom Rini wrote: > On Fri, Apr 07, 2023 at 11:31:03PM +0200, Linus Walleij wrote: > > On Fri, Apr 7, 2023 at 7:46 PM Tom Rini wrote: > > > On Fri, Apr 07, 2023 at 03:40:08PM +0200, Linus Walleij wrote: > > > > This adds a simple North

Re: [PATCH v4 5/5] board: Add new Broadcom Northstar board

2023-04-07 Thread Linus Walleij
On Fri, Apr 7, 2023 at 7:46 PM Tom Rini wrote: > On Fri, Apr 07, 2023 at 03:40:08PM +0200, Linus Walleij wrote: > > This adds a simple Northstar "BRCMNS" board to be used with > > the BCM4709x and BCM5301x chips. > > > > The main intention is to use this with

Re: [PATCH v4 3/5] arm: dts: Import device tree for Broadcom Northstar

2023-04-07 Thread Linus Walleij
On Fri, Apr 7, 2023 at 7:46 PM Tom Rini wrote: > On Fri, Apr 07, 2023 at 03:40:06PM +0200, Linus Walleij wrote: > > > This brings in the main SoC device tree used by the > > Broadcom Northstar chipset, i.e. BCM4709x and BCM5301x. > > This is taken from the latest Linux k

[PATCH v4 5/5] board: Add new Broadcom Northstar board

2023-04-07 Thread Linus Walleij
ad command, so we are currently not adding support for things such as networking. If other board need other ECC for example, they need to create a separate DTS file and augment the code, but I don't know if any other users will turn up. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- Change

[PATCH v4 3/5] arm: dts: Import device tree for Broadcom Northstar

2023-04-07 Thread Linus Walleij
This brings in the main SoC device tree used by the Broadcom Northstar chipset, i.e. BCM4709x and BCM5301x. This is taken from the latest Linux kernel. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - No changes ChangeLog v1->v3: - Bundle with the iproc nand an

[PATCH v4 4/5] arm: Add support for the Broadcom Northstar SoCs

2023-04-07 Thread Linus Walleij
by the Linux kernel and OpenWrt as it is used in many routers. Since we currently don't need any chip-specific quirks and can get the system up from just the device tree, a mach-* directory doesn't even need to be added, just some small Kconfig fragments. Cc: Rafał Miłecki Signed-off-by: Linus Walleij

[PATCH v4 2/5] mtd: rawnand: nand_base: Handle algorithm selection

2023-04-07 Thread Linus Walleij
inux kernel but U-Boot core does not respect this. Fix it up by parsing the algorithm and preserve the behaviour using this property to select software BCH as far as possible. Reviewed-by: Michael Trimarchi Acked-by: William Zhang Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - After a bug

[PATCH v4 1/5] nand: brcmnand: add iproc support

2023-04-07 Thread Linus Walleij
Add support for the iproc Broadcom NAND controller, used in Northstar SoCs for example. Based on the Linux driver. Cc: Philippe Reynes Cc: Dario Binacchi Acked-by: William Zhang Reviewed-by: Michael Trimarchi Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - No changes ChangeLog v2-

[PATCH v4 0/5] Add Broadcom Northstar basic support

2023-04-07 Thread Linus Walleij
can merge this patches... BRCM custodian? Linus Walleij (5): nand: brcmnand: add iproc support mtd: rawnand: nand_base: Handle algorithm selection arm: dts: Import device tree for Broadcom Northstar arm: Add support for the Broadcom Northstar SoCs board: Add new Broadcom Northstar board

[PATCH v3 3/5] arm: dts: Import device tree for Broadcom Northstar

2023-03-21 Thread Linus Walleij
This brings in the main SoC device tree used by the Broadcom Northstar chipset, i.e. BCM4709x and BCM5301x. This is taken from the latest Linux kernel. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- ChangeLog v1->v3: - Bundle with the iproc nand and algo select patches --- arch/arm/

[PATCH v3 4/5] arm: Add support for the Broadcom Northstar SoCs

2023-03-21 Thread Linus Walleij
by the Linux kernel and OpenWrt as it is used in many routers. Since we currently don't need any chip-specific quirks and can get the system up from just the device tree, a mach-* directory doesn't even need to be added, just some small Kconfig fragments. Cc: Rafał Miłecki Signed-off-by: Linus Walleij

[PATCH v3 5/5] board: Add new Broadcom Northstar board

2023-03-21 Thread Linus Walleij
ad command, so we are currently not adding support for things such as networking. If other board need other ECC for example, they need to create a separate DTS file and augment the code, but I don't know if any other users will turn up. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- Change

[PATCH v3 1/5] nand: brcmnand: add iproc support

2023-03-21 Thread Linus Walleij
Add support for the iproc Broadcom NAND controller, used in Northstar SoCs for example. Based on the Linux driver. Cc: Philippe Reynes Cc: Dario Binacchi Acked-by: William Zhang Reviewed-by: Michael Trimarchi Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Collect William Zhang's

[PATCH v3 2/5] mtd: rawnand: nand_base: Handle algorithm selection

2023-03-21 Thread Linus Walleij
inux kernel but U-Boot core does not respect this. Fix it up by parsing the algorithm and preserve the behaviour using this property to select software BCH as far as possible. Reviewed-by: Michael Trimarchi Acked-by: William Zhang Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Collect

[PATCH v3 0/5] Add Broadcom Northstar basic support

2023-03-21 Thread Linus Walleij
dle with the iproc NAND and nand base pacthes as the iproc patch is a prerequisite. - Jump from v1->v3 as the other patches was at version v3. It is a bit of a mystery to me who can merge this patches... BRCM custodian? Linus Walleij (5): nand: brcmnand: add iproc support mtd: r

Re: [PATCH 3/3] board: Add new Broadcom Northstar board

2023-03-21 Thread Linus Walleij
On Fri, Feb 10, 2023 at 6:49 PM Tom Rini wrote: > On Thu, Feb 02, 2023 at 12:37:45AM +0100, Linus Walleij wrote: > > > This adds a simple Northstar "BRCMNS" board to be used with > > the BCM4709x and BCM5301x chips. > > > > The main intention is to use t

[PATCH v2] nand: brcmnand: add iproc support

2023-03-08 Thread Linus Walleij
Add support for the iproc Broadcom NAND controller, used in Northstar SoCs for example. Based on the Linux driver. Cc: Philippe Reynes Cc: Dario Binacchi Reviewed-by: Michael Trimarchi Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Check return value of dev_read_resource() -

[PATCH v2] mtd: rawnand: nand_base: Handle algorithm selection

2023-03-08 Thread Linus Walleij
inux kernel but U-Boot core does not respect this. Fix it up by parsing the algorithm and preserve the behaviour using this property to select software BCH as far as possible. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Drop pointless check for ecc_algo >= 0, it is always >

Re: [PATCH] nand: brcmnand: add iproc support

2023-03-08 Thread Linus Walleij
On Wed, Mar 8, 2023 at 5:54 PM Tom Rini wrote: > On Wed, Mar 08, 2023 at 12:04:53AM +0100, Linus Walleij wrote: > > On Sun, Jan 22, 2023 at 12:45 AM Linus Walleij > > wrote: > > > > > Add support for the iproc Broadcom NAND controller, > > > us

Re: [PATCH] mtd: rawnand: nand_base: Handle algorithm selection

2023-03-07 Thread Linus Walleij
On Sun, Jan 22, 2023 at 12:43 AM Linus Walleij wrote: > For BRCMNAND with 1-bit BCH ECC (BCH-1) such as used on the > D-Link DIR-885L and DIR-890L routers, we need to explicitly > select the ECC like this in the device tree: > > nand-ecc-algo = "bch"; > nand-ecc-

Re: [PATCH] nand: brcmnand: add iproc support

2023-03-07 Thread Linus Walleij
On Sun, Jan 22, 2023 at 12:45 AM Linus Walleij wrote: > Add support for the iproc Broadcom NAND controller, > used in Northstar SoCs for example. Based on the Linux > driver. > > Cc: Philippe Reynes > Signed-off-by: Linus Walleij It's been 1 1/2 month, could we apply this pa

Re: [PATCH V2 1/9] gpio: gpio-rockchip: parse gpio-ranges for bank id

2023-02-23 Thread Linus Walleij
oblem. What has been used in the past is just some unique hardware ID in the device tree, so I would just add that. Yours, Linus Walleij

[PATCH v2 10/10] mtd: rawnand: brcmnand: fix OOB R/W with Hamming ECC

2023-02-11 Thread Linus Walleij
kernel.org/linux-mtd/20210224080210.23686-1-nolt...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmn

[PATCH v2 09/10] mtd: rawnand: brcmnand: support v2.1-v2.2 controllers

2023-02-11 Thread Linus Walleij
...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 85 +--- 1 file changed, 76 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c

[PATCH v2 07/10] mtd: rawnand: brcmnand: fix CS0 layout

2023-02-11 Thread Linus Walleij
by: Florian Fainelli Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200522121524.4161539-3-nolt...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 5 +++-- 1 file changed, 3 insertions(+), 2 dele

[PATCH v2 08/10] mtd: rawnand: brcmnand: rename page sizes

2023-02-11 Thread Linus Walleij
kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 1ea9091e6497..10a2e2c0f599 100644 --- a/drivers/mtd

[PATCH v2 06/10] mtd: rawnand: brcmnand: rename v4 registers

2023-02-11 Thread Linus Walleij
from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 5d3fb460d89a..ee7c3a21602e 100644

[PATCH v2 05/10] mtd: rawnand: brcmnand: correctly verify erased pages

2023-02-11 Thread Linus Walleij
: 02b88eea9f9c ("mtd: brcmnand: Add check for erased page bitflips") Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200512082451.771212-1-nolt...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- d

[PATCH v2 04/10] mtd: nand: brcmnand: Add support for flash-dma v0

2023-02-11 Thread Linus Walleij
From: Kamal Dasu This change adds support for flash dma v0.0. Signed-off-by: Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 21 +++-- 1 file changed, 19 insertions

[PATCH v2 03/10] mtd: rawnand: brcmnand: Fix ecc chunk calculation for erased page bitfips

2023-02-11 Thread Linus Walleij
Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/ra

[PATCH v2 02/10] mtd: rawnand: brcmnand: Add support for v7.3 controller

2023-02-11 Thread Linus Walleij
-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 106 ++- 1 file changed, 84 insertions(+), 22 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 571f1c795da0..170aece0aa79 100644 --- a/drivers/mtd/nand

[PATCH v2 01/10] mtd: rawnand: brcmnand: Refactored code to introduce helper functions

2023-02-11 Thread Linus Walleij
From: Kamal Dasu Refactored NAND ECC and CMD address configuration code to use helper functions. Signed-off-by: Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 100

[PATCH v2 00/10] Backport BRCMNAND changes from Linux

2023-02-11 Thread Linus Walleij
Hunting down a bug on my system I took to back-porting all reasonable changes from the Linux brcmnand driver that were not yet in the U-Boot derivative. I noticed that a simple diff -ur between brcmnand.c between the file in Linux and U-Boot was possible to see what differs. Combining this with

Re: [PATCH 01/14] mtd: nand: brcm: switch to mtd_ooblayout_ops

2023-02-03 Thread Linus Walleij
On Fri, Feb 3, 2023 at 9:48 AM Michael Nazzareno Trimarchi wrote: > On Thu, Jan 26, 2023 at 6:39 PM William Zhang > wrote: > > > > > > > > On 01/26/2023 12:43 AM, Linus Walleij wrote: > > > On Thu, Jan 26, 2023 at 2:02 AM William Zhang > > > wrote

[PATCH 3/3] board: Add new Broadcom Northstar board

2023-02-01 Thread Linus Walleij
ad command, so we are currently not adding support for things such as networking. If other board need other ECC for example, they need to create a separate DTS file and augment the code, but I don't know if any other users will turn up. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- arch/a

[PATCH 1/3] arm: dts: Import device tree for Broadcom Northstar

2023-02-01 Thread Linus Walleij
This brings in the main SoC device tree used by the Broadcom Northstar chipset, i.e. BCM4709x and BCM5301x. This is taken from the latest Linux kernel. Cc: Rafał Miłecki Signed-off-by: Linus Walleij --- arch/arm/dts/bcm5301x.dtsi | 581 include/dt-bindings

[PATCH 2/3] arm: Add support for the Broadcom Northstar SoCs

2023-02-01 Thread Linus Walleij
by the Linux kernel and OpenWrt as it is used in many routers. Since we currently don't need any chip-specific quirks and can get the system up from just the device tree, a mach-* directory doesn't even need to be added, just some small Kconfig fragments. Cc: Rafał Miłecki Signed-off-by: Linus Walleij

[PATCH 0/3] Add Broadcom Northstar basic support

2023-02-01 Thread Linus Walleij
. While it is a bit tailored to this usecase (it can probably also be used with the DIR-885L without modifications) it forms a base that can be used to support more Northstar boards. I have this working with DIR-890L and OpenWrt: https://dflund.se/~triad/krad/dlink-dir-890l/ Linus Walleij (3): arm

[PATCH] cmd: Add a SEAMA image load command

2023-01-31 Thread Linus Walleij
-off-by: Linus Walleij --- MAINTAINERS | 7 ++ README | 1 + cmd/Kconfig | 6 ++ cmd/Makefile| 1 + cmd/seama.c | 158 doc/usage/cmd/seama.rst | 60 +++ doc/usage/index.rst

Re: [PATCH] mtd: rawnand: nand_base: Handle algorithm selection

2023-01-26 Thread Linus Walleij
Hi William, so this is the patch that actually solved my bug in the end :) On Thu, Jan 26, 2023 at 2:14 AM William Zhang wrote: > On 01/21/2023 03:43 PM, Linus Walleij wrote: > > For BRCMNAND with 1-bit BCH ECC (BCH-1) such as used on the > > D-Link DIR-885L and DIR-890L r

Re: [PATCH 01/14] mtd: nand: brcm: switch to mtd_ooblayout_ops

2023-01-26 Thread Linus Walleij
the code related to this patch? Actually not, I think, it's one of the other patches I sent, the one enabling BCH-1 by reading the proper ECC properties from the device tree. That made it finally work. The iproc NAND driver I sent should also work pretty much as-is, nothing depends on these backports. Yours, Linus Walleij

[PATCH] test: bootdev: Do not require USB to compile test

2023-01-23 Thread Linus Walleij
This test will block compilation of the entire test suite on platforms without USB support. Make the extern "usb_started" conditional on USB host or gadget and define a dummy flag if neither is enabled. Cc: Simon Glass Signed-off-by: Linus Walleij --- test/boot/bootdev.c | 4 ++

[PATCH] nand: brcmnand: add iproc support

2023-01-21 Thread Linus Walleij
Add support for the iproc Broadcom NAND controller, used in Northstar SoCs for example. Based on the Linux driver. Cc: Philippe Reynes Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/Kconfig | 7 + drivers/mtd/nand/raw/brcmnand/Makefile | 1 + drivers/mtd/nand/raw

[PATCH] mtd: rawnand: nand_base: Handle algorithm selection

2023-01-21 Thread Linus Walleij
inux kernel but U-Boot core does not respect this. Fix it up by parsing the algorithm and preserve the behaviour using this property to select software BCH as far as possible. Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/nand_base.c | 13 ++--- 1 file changed, 10 insertions(+), 3 de

[PATCH 14/14] mtd: rawnand: brcmnand: fix OOB R/W with Hamming ECC

2023-01-15 Thread Linus Walleij
kernel.org/linux-mtd/20210224080210.23686-1-nolt...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmn

[PATCH 13/14] mtd: rawnand: brcmnand: support v2.1-v2.2 controllers

2023-01-15 Thread Linus Walleij
...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 85 +--- 1 file changed, 76 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c

[PATCH 12/14] mtd: rawnand: brcmnand: rename page sizes

2023-01-15 Thread Linus Walleij
kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index c02d34ffbc95..934981e2f3fe 100644 --- a/drivers/mtd

[PATCH 11/14] mtd: rawnand: brcmnand: fix CS0 layout

2023-01-15 Thread Linus Walleij
by: Florian Fainelli Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200522121524.4161539-3-nolt...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 5 +++-- 1 file changed, 3 insertions(+), 2 dele

[PATCH 09/14] mtd: rawnand: brcmnand: correctly verify erased pages

2023-01-15 Thread Linus Walleij
: 02b88eea9f9c ("mtd: brcmnand: Add check for erased page bitflips") Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200512082451.771212-1-nolt...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- d

[PATCH 10/14] mtd: rawnand: brcmnand: rename v4 registers

2023-01-15 Thread Linus Walleij
from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index b87e3e0656df..effc7f1ea802 100644

[PATCH 08/14] mtd: rawnand: brcmnand: improve hamming oob layout

2023-01-15 Thread Linus Walleij
] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 35 +++- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 7cb6f2651250..d082801b8306 100644

[PATCH 07/14] mtd: rawnand: brcmnand: fix hamming oob layout

2023-01-15 Thread Linus Walleij
/linux-mtd/20200512075733.745374-2-nolt...@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/ra

[PATCH 06/14] mtd: nand: brcmnand: Add support for flash-dma v0

2023-01-15 Thread Linus Walleij
From: Kamal Dasu This change adds support for flash dma v0.0. Signed-off-by: Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 21 +++-- 1 file changed, 19 insertions

[PATCH 05/14] mtd: rawnand: brcmnand: Fix ecc chunk calculation for erased page bitfips

2023-01-15 Thread Linus Walleij
Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/ra

[PATCH 04/14] mtd: rawnand: brcmnand: Add support for v7.3 controller

2023-01-15 Thread Linus Walleij
-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 106 ++- 1 file changed, 84 insertions(+), 22 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index ede51def5063..ef73205d8c18 100644 --- a/drivers/mtd/nand

[PATCH 03/14] mtd: rawnand: brcmnand: Refactored code to introduce helper functions

2023-01-15 Thread Linus Walleij
From: Kamal Dasu Refactored NAND ECC and CMD address configuration code to use helper functions. Signed-off-by: Kamal Dasu Signed-off-by: Miquel Raynal [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 100

[PATCH 02/14] mtd: rawnand: brcmnand: Fix BCH ECC layout for large page NAND parts

2023-01-15 Thread Linus Walleij
rom the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 8ea33e861354..65aab4be87b9 100644 --- a/drivers

[PATCH 01/14] mtd: nand: brcm: switch to mtd_ooblayout_ops

2023-01-15 Thread Linus Walleij
From: Boris Brezillon Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 260

[PATCH 00/14] Backport BRCMNAND changes from Linux

2023-01-15 Thread Linus Walleij
Hunting down a bug on my system I took to back-porting all reasonable changes from the Linux brcmnand driver that were not yet in the U-Boot derivative. I noticed that a simple diff -ur between brcmnand.c between the file in Linux and U-Boot was possible to see what differs. Combining this with

Re: [PATCH 00/11] vexpress64: OF_CONTROL and ARMv8-R64 support

2022-03-07 Thread Linus Walleij
(OF_CONTROL and distro_boot support), but also to generalise > the code, so that plugging in the v8-R64 support in the last patch gets > much easier. The series: Acked-by: Linus Walleij Thank you for working on this, much appreciated!! Yours, Linus Walleij

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-03 Thread Linus Walleij
osting creates software traps inside the emulated environment. Yours, Linus Walleij

[PATCH v2] board: stemmy: Detect board variants and patch DTB

2022-02-20 Thread Linus Walleij
any other Samsung U8500 board variants that may need a slightly augmented DTB. Cc: Markuss Broks Cc: Stephan Gerhold Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Use ft_board_setup() like everyone else. The patch refers to samsung,codina-tmo which is a device tree which is not

[PATCH] board: stemmy: Detect board variants and patch DTB

2022-02-19 Thread Linus Walleij
ndling any other Samsung U8500 board variants that may need a slightly augmented DTB. Cc: Markuss Broks Cc: Stephan Gerhold Signed-off-by: Linus Walleij --- This patch depends on the patch to abootimg.c that makes the abootimg command properly report the location of a DTB in the "second&

[PATCH] cmd: abootimg: Accept a DTB in second for index 0

2022-02-16 Thread Linus Walleij
this on some PostmarkeOS systems to modify DTBs on-the-fly, make the abootimg also recognize and fall back to using "second" if the Android image header is < 2. Cc: Markuss Broks Cc: Stephan Gerhold Cc: Simon Glass Cc: Sam Protsenko Signed-off-by: Linus Walleij --- cmd/abootim

Re: [PATCH v2 1/2] doc: Add documentation for the Arm VExpress64 board configs

2021-12-21 Thread Linus Walleij
ndre Przywara Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v2 2/2] doc: add Arm Juno board documentation

2021-12-21 Thread Linus Walleij
by: Andre Przywara This is excellent and much needed documentation. Thank you so much for doing this Andre! Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v8 07/32] arm: vexpress: Add a devicetree files for juno

2021-12-17 Thread Linus Walleij
the text in those files, but is not the same as the > GPL-2.0 of some files. > > [1] https://releases.linaro.org/android/reference-lcr/juno/7.1-17.05/ > > Signed-off-by: Simon Glass > --- > > Changes in v8: > - Enable the flash as suggested by Linus Walleij Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v7 08/31] arm: vexpress: Add a devicetree files for juno

2021-12-06 Thread Linus Walleij
-firmware-suite"; > + }; > + }; This should not be marked "disabled" in U-boot. The boot loader is not using some CPU idle states and hotplug but may be very interested in accessing the flash. Yours, Linus Walleij

[PATCH v2] board: stemmy: Increase boot image to 64 MB

2021-11-20 Thread Linus Walleij
-off-by: Linus Walleij --- ChangeLog v1->v2: - Bump to 64MB instead of 16MB --- include/configs/stemmy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/stemmy.h b/include/configs/stemmy.h index ed79b1203901..4bba2a627259 100644 --- a/include/configs/stemmy.h +++ b/include/conf

[PATCH] board: stemmy: Increase boot image to 16 MB

2021-11-19 Thread Linus Walleij
-off-by: Linus Walleij --- include/configs/stemmy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/stemmy.h b/include/configs/stemmy.h index ed79b1203901..f4700a45daf5 100644 --- a/include/configs/stemmy.h +++ b/include/configs/stemmy.h @@ -14,6 +14,7 @@ * bootloader. New

Re: [PATCH 0/7] Enable new drivers added for U-Boot 2021.10 in "stemmy" board

2021-08-07 Thread Linus Walleij
sic Fastboot support > board: stemmy: Update documentation > arm: u8500: Prefer building in thumb mode by default The series: Reviewed-by: Linus Walleij Thanks for getting this into shape Stephan! Yours, Linus Walleij

Re: [PATCH] arm: vexpress64: juno: Enable distro_bootcmd functionality

2021-07-21 Thread Linus Walleij
; distributions and UEFI work out of the box. > The NOR flash kernel functionality is still preserved as the last > resort, should all other methods fail. > > Signed-off-by: Andre Przywara Looks helpful! Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 2/2] board: stemmy: Copy atags for booting downstream/vendor kernel

2021-07-07 Thread Linus Walleij
SERIAL that is also passed by the Samsung bootloader. > > Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 1/2] board: stemmy: Parse atags to get available memory

2021-07-07 Thread Linus Walleij
enerate ATAGS in U-Boot > (asm/setup.h) can also be easily used to parse them. > > Also clarify and simplify stemmy.h a bit to make it more clear where > some of the magic values in there are actually coming from. > > Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij &g

Re: [PATCH 0/4] Add support for eMMC on ST-Ericsson Ux500(v2)

2021-07-07 Thread Linus Walleij
the u8500 "stemmy" board that is already present > in U-Boot. The series: Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 3/3] usb: musb-new: Add glue driver for ST-Ericsson Ux500

2021-07-07 Thread Linus Walleij
USB together with a generic PHY. > There are no SoC-specific registers etc needed to make USB work. > > The new Ux500 glue driver is only tested to work with DM_USB > and DM_USB_GADGET. Both host and gadget mode work fine on > the u8500 "stemmy" board that is already present in U-

Re: [PATCH 2/3] phy: Add driver for ST-Ericsson AB8500 USB PHY

2021-07-07 Thread Linus Walleij
t the moment. > Therefore, one very simple approach that works fine is to select > the mode to configure at compile time. When the MUSB driver is > configured in host mode the PHY is configured in host mode, and > similarly when the MUSB driver is configured in device/gadget mode. >

Re: [PATCH] video: Add simple driver for ST-Ericsson MCDE with pre-configured display

2021-07-02 Thread Linus Walleij
and mode displays) we need to explicitly > trigger a software sync. This is done through the video_sync() > callback that triggers the sync and wait for completion. > > Cc: Linus Walleij > Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH] timer: nomadik-mtu: Use dev_read_addr_ptr()

2021-07-02 Thread Linus Walleij
On Fri, Jul 2, 2021 at 6:00 PM Stephan Gerhold wrote: > Simplify the code a bit by using dev_read_addr_ptr() instead of > dev_read_addr(). This avoids having to cast explicitly to the > struct nomadik_mtu_regs. > > Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij

Re: [PATCH 2/2] gpio: Add driver for Nomadik GPIO

2021-07-02 Thread Linus Walleij
t; registers that allow updating the state without having to read the > existing state. > > The driver implements support for it for use together with DM_GPIO > and the existing ste-dbx5x0.dtsi device tree. > > Cc: Linus Walleij > Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij Yours, Linus Walleij

  1   2   3   4   >