Re: [PATCH v2 00/13] Enable OF_UPSTREAM for STM32 and STi platforms

2025-04-23 Thread Linus Walleij
concerns MPU's platform with introduction of STM32 > System Bus. Excellent work as always Patrice, Reviewed-by: Linus Walleij Yours, Linus Walleij

[PATCH] configs: stm32f769-disco: Fix console cmdline

2025-02-11 Thread Linus Walleij
The Linux cmdline encoded in the defconfig is wrong, the STM32 USART driver registers as ttySTM0 not ttyS0. Signed-off-by: Linus Walleij --- configs/stm32f769-disco_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/stm32f769-disco_defconfig b/configs

Re: [PATCH v2 32/44] test: Drop the function for running seama tests

2025-01-22 Thread Linus Walleij
On Mon, Jan 20, 2025 at 10:27 PM Simon Glass wrote: > Use the new suite-runner to run these tests instead. > > It is not clear that these actually work, since they are not enabled on > sandbox for some reason. > > Signed-off-by: Simon Glass Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH] vexpress64: Fix bootargs when building without NET

2025-01-16 Thread Linus Walleij
hout_CONFIG_CMD_DHCP_or_PXE > | > ^ > > Signed-off-by: Chanho Park Makes sense to me: Acked-by: Linus Walleij Maybe expand the commit message to show how the current config strings for PXE or DHCP boot will be passed on to the actual strings landing on the target. Can we enable both PXE and DHCP at

Re: [PATCH 2/4] board: vexpress64: default to hardware device tree

2024-12-27 Thread Linus Walleij
On Wed, Dec 18, 2024 at 4:40 PM Harrison Mutai wrote: > When booting into the Linux kernel with semi-hosting, use the device > tree provided by hardware unless one is provided in the current > directory. > > Signed-off-by: Harrison Mutai This looks helpful to me! Reviewed-by

Re: [PATCH 2/2] arm: dts: Update nand node for bcmbca board dts

2024-12-20 Thread Linus Walleij
On Thu, Dec 19, 2024 at 7:50 PM david regan wrote: > Update bcmbca dts to current nand node naming convention. > > Signed-off-by: david regan > Reviewed-by: William Zhang > Reviewed-by: Anand Gore Looks like a reasonable step Acked-by: Linus Walleij But: >

Re: [PATCH v2 1/1] rtc: CONFIGS_RTC_PL031 must depend on CONFIGS_DM_RTC

2024-12-17 Thread Linus Walleij
e are using imply in U-Boot is a bit worrisome but I'm no expert. It may work better in our case because we never have an option be "m" (module) as in Linux... This works for sure. Yours, Linus Walleij

Re: [PATCH 1/1] rtc: CONFIGS_RTC_PL031 must depend on CONFIGS_DM_RTC

2024-12-17 Thread Linus Walleij
On Thu, Dec 5, 2024 at 9:30 PM Heinrich Schuchardt wrote: > Building qemu_arm64_defconfig with CONFIGS_DM_RTC=n and CONFIGS_RTC_PL031=y > leads to a build failure. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH v2 3/4] mtd: rawnand: brcmnand: Default bcmbca parameter_page_big_endian to zero

2024-11-12 Thread Linus Walleij
On Wed, Nov 13, 2024 at 7:27 AM david regan wrote: > Set parameter_page_big_endian to zero for bcmbca > > Signed-off-by: david regan > Reviewed-by: William Zhang > Reviewed-by: Anand Gore Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 3/4] mtd: rawnand: brcmnand: Add BCMBCA read data bus interface

2024-11-07 Thread Linus Walleij
The patch looks fine, but shouldn't the existing brcmnand_read_data_bus() in drivers/mtd/nand/raw/brcmnand/brcmnand.c also be replaced with brcmnand_soc_data_bus_read()? Maybe this is a problem in the upstream kernel driver though :/ Yours, Linus Walleij

Re: [PATCH 4/4] mtd: rawnand: brcmnand: update log level messages

2024-11-07 Thread Linus Walleij
rnel.org/linux-mtd/20240223034758.13753-4-william.zh...@broadcom.com/ > > Signed-off-by: david regan Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 2/4] arm: dts: Use upstream dts

2024-11-07 Thread Linus Walleij
On Wed, Nov 6, 2024 at 10:04 PM david regan wrote: > Make use of OF_UPSTREAM which uses Linux dts. > > Signed-off-by: david regan Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 1/4] mtd: nand: brcmnand: remove device specific nand driver files

2024-11-07 Thread Linus Walleij
On Wed, Nov 6, 2024 at 10:03 PM david regan wrote: > These device specific nand driver files can be removed because > they are now replaced by a common driver bcmbca_nand.c > > Signed-off-by: david regan I believe you! Reviewed-by: Linus Walleij Yours, Linus Walleij

[PATCH v2 4/4] board: bcm96846: Switch to using OF_UPSTREAM

2024-10-11 Thread Linus Walleij
This board clearly develops first in Linux which had more hardware listed, so let's start to use OF_UPSTREAM. This makes the NAND driver work. Suggested-by: Neil Armstrong Signed-off-by: Linus Walleij --- arch/arm/dts/bcm6846.dtsi| 103 --- arc

[PATCH v2 3/4] board: bcm96846: Enable NAND options

2024-10-11 Thread Linus Walleij
the flash layout for BCM96846 so we can add this too so the bcm96846_config is usable out of the box. Signed-off-by: Linus Walleij --- configs/bcm96846_defconfig | 12 1 file changed, 12 insertions(+) diff --git a/configs/bcm96846_defconfig b/configs/bcm96846_defconfig index ea643e

[PATCH v2 2/4] drivers: nand: bcmbca: Enable on BCM6846

2024-10-11 Thread Linus Walleij
The BCM6846 has the BRCMBCA NAND controller so enable it. Reviewed-by: Michael Trimarchi Signed-off-by: Linus Walleij --- arch/arm/mach-bcmbca/bcm6846/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-bcmbca/bcm6846/Kconfig b/arch/arm/mach-bcmbca/bcm6846/Kconfig

[PATCH v2 1/4] mtd: rawnand: brcmnand: Add BCMBCA RAW NAND driver

2024-10-11 Thread Linus Walleij
The Broadcom BCA platforms are broadband access SoCs. This is a port of the upstream Linux driver to U-Boot. It was based on drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c from Linux v6.11. Reviewed-by: Michael Trimarchi Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/Kconfig

[PATCH v2 0/4] mtd: rawnand: brcmnand: Add BCMBCA support

2024-10-11 Thread Linus Walleij
which is a derivative of the BCM96846 reference design, but probably has a different flash layout, be sure to check the last patch in the series for a comment on that. Signed-off-by: Linus Walleij --- Changes in v2: - Switch to using OF_UPSTREAM instead of syncing DTS files. - Mention the Linux

[PATCH 3/4] drivers: nand: bcmbca: Enable on BCM6846

2024-09-30 Thread Linus Walleij
The BCM6846 has the BRCMBCA NAND controller so enable it. Signed-off-by: Linus Walleij --- arch/arm/mach-bcmbca/bcm6846/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-bcmbca/bcm6846/Kconfig b/arch/arm/mach-bcmbca/bcm6846/Kconfig index 229ab88dbb0d..5ef9535369ec

[PATCH 4/4] board: bcm96846: Enable NAND options

2024-09-30 Thread Linus Walleij
the flash layout for BCM96846 so we can add this too so the bcm96846_config is usable out of the box. Signed-off-by: Linus Walleij --- configs/bcm96846_defconfig | 12 1 file changed, 12 insertions(+) diff --git a/configs/bcm96846_defconfig b/configs/bcm96846_defconfig index 467f4d

[PATCH 1/4] mtd: rawnand: brcmnand: Add BCMBCA RAW NAND driver

2024-09-30 Thread Linus Walleij
The Broadcom BCA platforms are broadband access SoCs. This is a port of the upstream Linux driver to U-Boot. Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/Kconfig| 7 ++ drivers/mtd/nand/raw/brcmnand/Makefile | 1 + drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c

[PATCH 2/4] arm: dts: bcm: Update bcm6846 and bcm96846

2024-09-30 Thread Linus Walleij
Update the devicetrees for the BCM6846 and the reference design BCM96846 from the Linux kernel so we get support for NAND. (Linux v6.11-rc7). Signed-off-by: Linus Walleij --- arch/arm/dts/bcm6846.dtsi | 34 ++ arch/arm/dts/bcm96846.dts | 14 ++ 2

[PATCH 0/4] mtd: rawnand: brcmnand: Add BCMBCA support

2024-09-30 Thread Linus Walleij
which is a derivative of the BCM96846 reference design, but probably has a different flash layout, be sure to check the last patch in the series for a comment on that. Signed-off-by: Linus Walleij --- Linus Walleij (4): mtd: rawnand: brcmnand: Add BCMBCA RAW NAND driver arm: dts: bcm

Re: [PATCH 0/7] mtd: nand: brcmnand: Backported fixes from Linux

2024-09-30 Thread Linus Walleij
On Sat, Sep 28, 2024 at 2:51 AM Michael Nazzareno Trimarchi wrote: > I have already seen all of them and I follow the thread > > We will pick them up Thanks Michael, I will send out the remaining patches adding BCMBCA support to the NAND driver as well. Yours, Linus Walleij

Re: [PATCH 0/7] mtd: nand: brcmnand: Backported fixes from Linux

2024-09-27 Thread Linus Walleij
Hi Dario, On Wed, Sep 11, 2024 at 9:11 AM Linus Walleij wrote: > These are a number of assorted upstream Linux fixes to the > BRCMNAND driver that I have backported in an attempt to get > BRCMBCA working with U-Boot (still not there). The patches are ACKed and tested, could you merge

Re: [PATCH 0/7] mtd: nand: brcmnand: Backported fixes from Linux

2024-09-17 Thread Linus Walleij
ects and works fine on Genexis XG6846B, see here for a full session where I do some ubifs inspection: https://dflund.se/~triad/krad/genexis-xg6846b/ubi-info.txt Yours, Linus Walleij

[PATCH v2 7/7] mtd: rawnand: brcmnand: Add support for getting ecc setting from strap

2024-09-16 Thread Linus Walleij
/linux-mtd/20240301173308.226004-1-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 70 ++-- 1 file changed, 66 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/ra

[PATCH v2 6/7] mtd: rawnand: brcmnand: Support write protection setting from dts

2024-09-16 Thread Linus Walleij
ard dts on per board basis. Signed-off-by: William Zhang Reviewed-by: Florian Fainelli Reviewed-by: Kamal Dasu Reviewed-by: David Regan Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20240223034758.13753-14-william.zh...@broadcom.com Signed-off-by: Linus Walleij ---

[PATCH v2 5/7] mtd: rawnand: brcmnand: Add read data bus interface

2024-09-16 Thread Linus Walleij
This is a port of the read data bus interface from the Linux brcmnand driver, commit 546e425991205f59281e160a0d0daed47b7ca9b3 "mtd: rawnand: brcmnand: Add BCMBCA read data bus interface" This is needed for the BCMBCA RAW NAND driver. Signed-off-by: William Zhang Signed-off-by: Lin

[PATCH v2 4/7] mtd: rawnand: brcmnand: Fix mtd oobsize

2024-09-16 Thread Linus Walleij
ible spare area size. Fixes: a7ab085d7c16 ("mtd: rawnand: Initialize the nand_device object") Signed-off-by: William Zhang Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20230706182909.79151-6-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/na

[PATCH v2 3/7] mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write

2024-09-16 Thread Linus Walleij
/linux-mtd/20230706182909.79151-5-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/

[PATCH v2 1/7] mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller

2024-09-16 Thread Linus Walleij
cessor and successor controller. It needs to be set specifically. Signed-off-by: William Zhang Reviewed-by: Florian Fainelli Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20230706182909.79151-2-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/ra

[PATCH v2 2/7] mtd: rawnand: brcmnand: Fix potential false time out warning

2024-09-16 Thread Linus Walleij
william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 700d1122639f..46a4107a83a9 100644 --- a/drivers/mt

[PATCH v2 0/7] mtd: nand: brcmnand: Backported fixes from Linux

2024-09-16 Thread Linus Walleij
ize 2048 b OOB size64 b Erase size 131072 b ecc strength 4 bits ecc step size 512 b subpagesize 2048 b options 0x00104200 bbt options 0x0006 Signed-off-by: Linus Walleij --- Changes in v2: - Augment the write protect handling to a

Re: [PATCH 0/7] mtd: nand: brcmnand: Backported fixes from Linux

2024-09-16 Thread Linus Walleij
On Mon, Sep 16, 2024 at 6:45 AM William Zhang wrote: > Yes we have it working. And your patches works too after fixing two > Issues that I will comment on the specific patch. Yay! > You will need to > enable the NAND related configurations and the nand dts node. Aha maybe I simply missed th

Re: [PATCH 0/7] mtd: nand: brcmnand: Backported fixes from Linux

2024-09-12 Thread Linus Walleij
, excellent, I guess you guys know the stuff better than me so I prefer if your patches are used. Do you even have U-Boot working on BCMBCA? I didn't get the NAND to detect properly yet despite all the backported patches. :/ Yours, Linus Walleij

[PATCH 7/7] mtd: rawnand: brcmnand: Add support for getting ecc setting from strap

2024-09-11 Thread Linus Walleij
/linux-mtd/20240301173308.226004-1-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 70 ++-- 1 file changed, 66 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/ra

[PATCH 6/7] mtd: rawnand: brcmnand: Support write protection setting from dts

2024-09-11 Thread Linus Walleij
y: Florian Fainelli Reviewed-by: Kamal Dasu Reviewed-by: David Regan Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20240223034758.13753-14-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 8 1 file changed, 8

[PATCH 5/7] mtd: rawnand: brcmnand: Add read data bus interface

2024-09-11 Thread Linus Walleij
This is a port of the read data bus interface from the Linux brcmnand driver, commit 546e425991205f59281e160a0d0daed47b7ca9b3 "mtd: rawnand: brcmnand: Add BCMBCA read data bus interface" This is needed for the BCMBCA RAW NAND driver. Signed-off-by: William Zhang Signed-off-by: Lin

[PATCH 4/7] mtd: rawnand: brcmnand: Fix mtd oobsize

2024-09-11 Thread Linus Walleij
ible spare area size. Fixes: a7ab085d7c16 ("mtd: rawnand: Initialize the nand_device object") Signed-off-by: William Zhang Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20230706182909.79151-6-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/na

[PATCH 3/7] mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write

2024-09-11 Thread Linus Walleij
/linux-mtd/20230706182909.79151-5-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/

[PATCH 2/7] mtd: rawnand: brcmnand: Fix potential false time out warning

2024-09-11 Thread Linus Walleij
william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 700d1122639f..46a4107a83a9 100644 --- a/drivers/mt

[PATCH 1/7] mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller

2024-09-11 Thread Linus Walleij
cessor and successor controller. It needs to be set specifically. Signed-off-by: William Zhang Reviewed-by: Florian Fainelli Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20230706182909.79151-2-william.zh...@broadcom.com Signed-off-by: Linus Walleij --- drivers/mtd/nand/ra

[PATCH 0/7] mtd: nand: brcmnand: Backported fixes from Linux

2024-09-11 Thread Linus Walleij
but I know the maintainers have some nice test farms so try to put these to test and see if we can merge them. I bet the Broadcom folks has this on their TODO list anyway. Signed-off-by: Linus Walleij --- Linus Walleij (1): mtd: rawnand: brcmnand: Add read data bus interface William Zhang (6

Re: [PATCH 6/6] usb: gadget: Pass struct udevice to usb_add_gadget_udc()

2024-08-30 Thread Linus Walleij
the UDC core, which does not happen right now. Switch UDC core to > use struct udevice outright and drop the casts. > > UX500 has to be updated slightly, as that is the last place which does > correctly use private struct device instance. > > Signed-off-by: Marek Vasut Reviewed-by

Re: [PATCH 04/33] arm: u8500: Remove and add needed includes

2024-04-30 Thread Linus Walleij
On Tue, Apr 30, 2024 at 3:36 PM Tom Rini wrote: > Remove from all mach-u8500 files and when needed add missing > include files directly. > > Signed-off-by: Tom Rini Reviewed-by: Linus Walleij Yours, Linus Walleij

[PATCH] mmc: arm_pl180_mmci: Rely on DM

2024-02-08 Thread Linus Walleij
: 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
e in the device tree. > > Signed-off-by: Ole P. Orhagen Nice! Reviewed-by: Linus Walleij Are you using the actual hardware, or QEMU? > - chosen { }; > + chosen { > + stdout-path = &v2m_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 option

Re: [PATCH] bmips: Add Inteno XG6846 board

2023-09-25 Thread Linus Walleij
nywhere 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
ed to be 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-17 Thread Linus Walleij
Mauro 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. ---

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

2023-04-24 Thread Linus Walleij
ey 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 v1-&

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

2023-04-24 Thread Linus Walleij
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: Lin

[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
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. Linus Walleij (3): arm: dts: Import device tree for Broadcom Northstar arm: Add support for the Broadcom Northstar SoCs board: Add new Broadcom Nort

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 --- C

[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
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: Lin

[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
to me who 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 Northst

[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
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: Lin

[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 --- C

[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&#x

[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 rev

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

2023-03-21 Thread Linus Walleij
- Bundle 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 m

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, > > > used in N

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 th

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

2023-02-23 Thread Linus Walleij
nto the rk_gpio relevant DTS files as well, so this is not a good solution to your problem. 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
lore.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/

[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
Fixes: 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 -

[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
: 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 so

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

  1   2   3   4   5   >