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

2023-02-21 Thread William Zhang
MUST be set before populating FC */ - brcmnand_write_reg(ctrl, BRCMNAND_CMD_ADDRESS, - lower_32_bits(addr)); - (void)brcmnand_read_reg(ctrl, BRCMNAND_CMD_ADDRESS); + brcmnand_set_cmd_addr(mtd, addr); if (buf) { brcmnand_soc_data_bus_prepare(ctrl->soc, false); Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-02-21 Thread William Zhang
and_flash_dma_revision_init(ctrl); + + /* linked-list and stop on error */ + flash_dma_writel(ctrl, FLASH_DMA_MODE, FLASH_DMA_MODE_MASK); flash_dma_writel(ctrl, FLASH_DMA_ERROR_STATUS, 0); /* Allocate descriptor(s) */ Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-02-21 Thread William Zhang
chip->ecc.size, oob, sas, NULL, 0, chip->ecc.strength); if (ret < 0) Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-02-21 Thread William Zhang
nand_version > 0x0602) { + flash_dma_writel(ctrl, FLASH_DMA_FIRST_DESC_EXT, +upper_32_bits(desc)); + (void)flash_dma_readl(ctrl, FLASH_DMA_FIRST_DESC_EXT); + } /* Start FLASH_DMA engine */ ctrl->dma_pending = true;

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

2023-02-21 Thread William Zhang
ret = nand_check_erased_ecc_chunk(ecc_chunk, chip->ecc.size, + ecc_bytes, ecc.length, + NULL, 0, chip->ecc.strength); if (ret < 0)

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

2023-02-21 Thread William Zhang
t;nand_version >= 0x0303) + ctrl->reg_offsets = brcmnand_regs_v33; /* Chip-select stride */ if (ctrl->nand_version >= 0x0701) Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-02-21 Thread William Zhang
v3.3-5.0 have a different CS0 offset layout */ + if (ctrl->nand_version >= 0x0303 && + ctrl->nand_version <= 0x0500) ctrl->cs0_offsets = brcmnand_cs_offsets_cs0; } Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-02-21 Thread William Zhang
zes = page_sizes; + ctrl->page_sizes = page_sizes_v3_4; if (ctrl->nand_version >= 0x0600) ctrl->block_sizes = block_sizes_v6; else Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-02-21 Thread William Zhang
e_area_size; + } nand_writereg(ctrl, acc_control_offs, tmp); brcmnand_set_sector_size_1k(host, cfg->sector_size_1k); @@ -2543,6 +2608,8 @@ const struct dev_pm_ops brcmnand_pm_ops = { EXPORT_SYMBOL_GPL(brcmnand_pm_ops); static const struct of_device_id brcmnand_of_match[] = {

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

2023-02-21 Thread William Zhang
_read_oob_raw; + } + return ret; } Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-02-21 Thread William Zhang
Hi Linus. On 02/11/2023 07:28 AM, Linus Walleij wrote: 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-Boo

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

2023-03-10 Thread William Zhang
@@ static int nand_dt_init(struct mtd_info *mtd, struct nand_chip *chip, ofnode nod return -EINVAL; } + chip->ecc.algo = ecc_algo; + if (ecc_mode >= 0) chip->ecc.mode = ecc_mode; Acked-by: William Zhang smime.p7s Description: S/MIME Cryptographic Signature

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

2023-03-10 Thread William Zhang
proc_nand_soc), +}; + +void board_nand_init(void) +{ + struct udevice *dev; + int ret; + + ret = uclass_get_device_by_driver(UCLASS_MTD, + DM_DRIVER_GET(iproc_nand), &dev); + if (ret && ret != -ENODEV) +

Re: [PATCH 0/4] arm: bcmbca: add basic support for more Broadcom BCA SoCs

2022-08-08 Thread William Zhang
Hi Florian, Thanks for the review! Please see my comments inline blow, On 08/08/2022 08:29 PM, Florian Fainelli wrote: On 8/5/2022 6:33 PM, William Zhang wrote: Broadcom BCA (Broadband Carrier Access origin) chipset family includes DSL, PON and WLAN access point and gateway SoC. Now that

[PATCH 1/5] arm: bcmbca: add bcm63158 SoC support under CONFIG_ARCH_BCMBCA

2022-08-11 Thread William Zhang
and the original dts is updated with the one from linux next git repository. The u-boot image can be loaded from flash or network to the entry point address in the memory and boot from there to the console. Signed-off-by: William Zhang --- MAINTAINERS | 1

[PATCH 2/5] arm: bcmbca: remove bcm63158 support under CONFIG_ARCH_BCM63158

2022-08-11 Thread William Zhang
Now that BCM63158 is supported under CONFIG_ARCH_BCMBCA and CONFIG_BCM63158, remove the original ARCH_BCM63158 support and migrate configuration settings. Signed-off-by: William Zhang --- arch/arm/Kconfig | 8 +--- arch/arm/dts/Makefile| 3 -- board

[PATCH 3/5] arm: bcmbca: make bcm63158 driver depending on CONFIG_BCM63158

2022-08-11 Thread William Zhang
As CONFIG_ARCH_BCM63158 is replaced with CONFIG_BCM63158, update the driver Kconfig to use the new config symbol Signed-off-by: William Zhang --- drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 2 +- drivers/spi/Kconfig | 2

[PATCH 4/5] MAINTAINERS: Add BCM63158 maintainer to BCMBCA entry

2022-08-11 Thread William Zhang
Since ARCH_BCM63158 SoC support is merged into ARCH_BCMBCA, add BCM63158 maintainer Philippe to bcmbca maintainer list. Signed-off-by: William Zhang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5b219d62f6bf..d0a5b2352cc8 100644 --- a

[PATCH 5/5] arm: bcmbca: make reset_cpu function weak

2022-08-11 Thread William Zhang
BCM63158 carries the CONFIG_SYSRESET from the original configuration. It provide reset_cpu function already so need to define weak version of the dummy reset_cpu for other BCMBCA SoCs to avoid linking error. Signed-off-by: William Zhang --- board/broadcom/bcmbca/board.c | 2 +- 1 file changed

[PATCH 0/5] arm: bcmbca: move bcm63158 support under CONFIG_ARCH_BCMBCA

2022-08-11 Thread William Zhang
the BCM63158 support to ARCH_BCMBCA. William Zhang (5): arm: bcmbca: add bcm63158 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove bcm63158 support under CONFIG_ARCH_BCM63158 arm: bcmbca: make bcm63158 driver depending on CONFIG_BCM63158 MAINTAINERS: Add BCM63158 maintainer to

Re: [PATCH 0/5] arm: bcmbca: move bcm63158 support under CONFIG_ARCH_BCMBCA

2022-08-11 Thread William Zhang
Sorry forgot to mention. This patch series need to apply on top of my previous patch series: https://lists.denx.de/pipermail/u-boot/2022-August/491061.html On 08/11/2022 04:17 PM, William Zhang wrote: BCM63158 is one of the Broadcom Broadband origin DSL Gateway router SoC. It was originally

[PATCH 1/3] arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA

2022-08-12 Thread William Zhang
-by: William Zhang --- MAINTAINERS | 1 + arch/arm/dts/Makefile| 2 + arch/arm/dts/bcm6856.dtsi| 103 +++ arch/arm/dts/bcm96856.dts| 30 +++ arch/arm/mach-bcmbca/Kconfig | 8

[PATCH 2/3] arm: bcmbca: remove bcm68360 support under CONFIG_ARCH_BCM68360

2022-08-12 Thread William Zhang
generic bcmbca board folder. - Merge the 68360.dtsi setting to the new 6856.dtsi file. Update board dts with the new compatible string. - Merge broadcom_bcm968360bg.h setting to the new bcm96856.h file. Signed-off-by: William Zhang --- arch/arm/Kconfig | 7

[PATCH 3/3] arm: bcmbca: make bcm68360 driver depending on CONFIG_BCM6856

2022-08-12 Thread William Zhang
As CONFIG_ARCH_BCM68360 is replaced with CONFIG_BCM6856, update the driver Kconfig to use the new config symbol Signed-off-by: William Zhang --- drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 2 +- drivers/spi/Kconfig | 2

[PATCH 0/3] arm: bcmbca: move bcm68360 support under CONFIG_ARCH_BCMBCA

2022-08-12 Thread William Zhang
under the unified ARCH_BCMBCA config. This patch series migrate the BCM68360 support under the config of ARCH_BCMBCA and BCM6856. This patch series need to apply on top of my previous patch series [1]. [1] https://lists.denx.de/pipermail/u-boot/2022-August/491581.html William Zhang (3): arm

[PATCH 0/3] arm: bcmbca: move bcm68360 support under CONFIG_ARCH_BCMBCA

2022-08-13 Thread William Zhang
under the unified ARCH_BCMBCA config. This patch series migrate the BCM68360 support under the config of ARCH_BCMBCA and BCM6856. This patch series need to apply on top of my previous patch series [1]. [1] https://lists.denx.de/pipermail/u-boot/2022-August/491581.html William Zhang (3): arm

[PATCH v2 0/3] arm: bcmbca: move bcm68360 support under CONFIG_ARCH_BCMBCA

2022-08-15 Thread William Zhang
Reynes copyright tag from 68360 dts to 6856 dts William Zhang (3): arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove bcm68360 support under CONFIG_ARCH_BCM68360 arm: bcmbca: make bcm68360 driver depending on CONFIG_BCM6856 MAINTAINERS

[PATCH v2 1/3] arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA

2022-08-15 Thread William Zhang
-by: William Zhang --- (no changes since v1) MAINTAINERS | 1 + arch/arm/dts/Makefile| 2 + arch/arm/dts/bcm6856.dtsi| 103 +++ arch/arm/dts/bcm96856.dts| 30 +++ arch/arm/mach-bcmbca

[PATCH v2 2/3] arm: bcmbca: remove bcm68360 support under CONFIG_ARCH_BCM68360

2022-08-15 Thread William Zhang
generic bcmbca board folder. - Merge the 68360.dtsi setting to the new 6856.dtsi file. Update board dts with the new compatible string. - Merge broadcom_bcm968360bg.h setting to the new bcm96856.h file. Signed-off-by: William Zhang --- Changes in v2: - Bring Philippe Reynes copyright

[PATCH v2 3/3] arm: bcmbca: make bcm68360 driver depending on CONFIG_BCM6856

2022-08-15 Thread William Zhang
As CONFIG_ARCH_BCM68360 is replaced with CONFIG_BCM6856, update the driver Kconfig to use the new config symbol Signed-off-by: William Zhang --- (no changes since v1) drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 2 +- drivers/spi

[PATCH v2 0/5] arm: bcmbca: move bcm63158 support under CONFIG_ARCH_BCMBCA

2022-08-17 Thread William Zhang
other BCA chip convention. - Remove bcm963158_ram_defconfig per discussion with Philippe as a basic config version of bcm963158_defconfig is now added. William Zhang (5): arm: bcmbca: add bcm63158 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove bcm63158 support under CONFIG_ARCH_BCM63158

[PATCH v2 1/5] arm: bcmbca: add bcm63158 SoC support under CONFIG_ARCH_BCMBCA

2022-08-17 Thread William Zhang
-off-by: William Zhang --- Changes in v2: - Remove extra nodes from bcm963158.dts and keep it as a generic minimun board support dts following other BCA chip convention. MAINTAINERS | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/bcm63158

[PATCH v2 3/5] arm: bcmbca: make bcm63158 driver depending on CONFIG_BCM63158

2022-08-17 Thread William Zhang
As CONFIG_ARCH_BCM63158 is replaced with CONFIG_BCM63158, update the driver Kconfig to use the new config symbol Signed-off-by: William Zhang --- (no changes since v1) drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 2 +- drivers/spi

[PATCH v2 2/5] arm: bcmbca: remove bcm63158 support under CONFIG_ARCH_BCM63158

2022-08-17 Thread William Zhang
Now that BCM63158 is supported under CONFIG_ARCH_BCMBCA and CONFIG_BCM63158, remove the original ARCH_BCM63158 support and migrate configuration settings. Signed-off-by: William Zhang --- Changes in v2: - Remove bcm963158_ram_defconfig per discussion with Philippe as a basic config version of

[PATCH v2 4/5] MAINTAINERS: Add BCM63158 maintainer to BCMBCA entry

2022-08-17 Thread William Zhang
Since ARCH_BCM63158 SoC support is merged into ARCH_BCMBCA, add BCM63158 maintainer Philippe to bcmbca maintainer list. Signed-off-by: William Zhang --- (no changes since v1) MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5b219d62f6bf

[PATCH v2 5/5] arm: bcmbca: make reset_cpu function weak

2022-08-17 Thread William Zhang
BCM63158 carries the CONFIG_SYSRESET from the original configuration. It provide reset_cpu function already so need to define weak version of the dummy reset_cpu for other BCMBCA SoCs to avoid linking error. Signed-off-by: William Zhang --- (no changes since v1) board/broadcom/bcmbca/board.c

[PATCH v3 0/3] arm: bcmbca: move bcm68360 support under CONFIG_ARCH_BCMBCA

2022-08-17 Thread William Zhang
bcm968360bg_ram_defconfig per discussion with Philippe as a basic config version of bcm96856_defconfig is now added. - Update commit message Changes in v2: - Bring Philippe Reynes copyright tag from 68360 dts to 6856 dts William Zhang (3): arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA

[PATCH v3 1/3] arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA

2022-08-17 Thread William Zhang
-by: William Zhang --- (no changes since v1) MAINTAINERS | 1 + arch/arm/dts/Makefile| 2 + arch/arm/dts/bcm6856.dtsi| 103 +++ arch/arm/dts/bcm96856.dts| 30 +++ arch/arm/mach-bcmbca

[PATCH v3 2/3] arm: bcmbca: remove bcm68360 support under CONFIG_ARCH_BCM68360

2022-08-17 Thread William Zhang
bcm96856_defconfig is now added. Signed-off-by: William Zhang --- Changes in v3: - Remove bcm968360bg_ram_defconfig per discussion with Philippe as a basic config version of bcm96856_defconfig is now added. - Update commit message Changes in v2: - Bring Philippe Reynes copyright tag from 68360 dts to 6856 dts

[PATCH v3 3/3] arm: bcmbca: make bcm68360 driver depending on CONFIG_BCM6856

2022-08-17 Thread William Zhang
As CONFIG_ARCH_BCM68360 is replaced with CONFIG_BCM6856, update the driver Kconfig to use the new config symbol Signed-off-by: William Zhang --- (no changes since v1) drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 2 +- drivers/spi

[PATCH 0/3] arm: bcmbca: move bcm6858 support under CONFIG_ARCH_BCMBCA BCM6858 is

2022-08-17 Thread William Zhang
the BCM6858 support under the config of ARCH_BCMBCA and BCM6858. This patch series need to apply on top of my previous patch series [1]. [1]: https://lists.denx.de/pipermail/u-boot/2022-August/492078.html William Zhang (3): arm: bcmbca: add bcm6858 SoC support under CONFIG_ARCH_BCMBCA arm

[PATCH 1/3] arm: bcmbca: add bcm6858 SoC support under CONFIG_ARCH_BCMBCA

2022-08-17 Thread William Zhang
and the original dts is updated with the one from linux next git repository. The u-boot image can be loaded from flash or network to the entry point address in the memory and boot from there to the console. Signed-off-by: William Zhang --- MAINTAINERS | 1 + arch

[PATCH 2/3] arm: bcmbca: remove bcm6858 support under CONFIG_ARCH_BCM6858

2022-08-17 Thread William Zhang
board dts with the new compatible string. - Delete broadcom_bcm968580xref.h and merge its setting to the new bcm96858.h file. - Remove bcm968580xref_ram_defconfig as a basic config version of bcm96858_defconfig is now added. Signed-off-by: William Zhang --- arch/arm/Kconfig

[PATCH 3/3] arm: bcmbca: make bcm6858 driver depending on CONFIG_BCM6858

2022-08-17 Thread William Zhang
As CONFIG_ARCH_BCM6858 is replaced with CONFIG_BCM6858, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang --- drivers/gpio/Kconfig | 3 +-- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 2 +- drivers/spi/Kconfig | 3

[PATCH 0/3] arm: bcmbca: move bcm6753 support under CONFIG_ARCH_BCMBCA

2022-08-17 Thread William Zhang
. [1]: https://lists.denx.de/pipermail/u-boot/2022-August/492082.html William Zhang (3): arm: bcmbca: add bcm6855 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove bcm6753 support under CONFIG_ARCH_BCM6753 arm: bcmbca: make bcm6753 driver depending on CONFIG_BCM6855 MAINTAINERS

[PATCH 1/3] arm: bcmbca: add bcm6855 SoC support under CONFIG_ARCH_BCMBCA

2022-08-17 Thread William Zhang
-off-by: William Zhang --- MAINTAINERS | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/bcm6855.dtsi | 120 ++ arch/arm/dts/bcm96855.dts | 30 +++ arch/arm/mach-bcmbca/Kconfig | 8 ++ arch

[PATCH 2/3] arm: bcmbca: remove bcm6753 support under CONFIG_ARCH_BCM6753

2022-08-17 Thread William Zhang
basic config version of bcm96855_defconfig Signed-off-by: William Zhang --- arch/arm/Kconfig | 8 - arch/arm/dts/Makefile| 6 +- arch/arm/dts/bcm6753.dtsi| 208 --- arch/arm/dts/bcm6855.dtsi| 137

[PATCH 3/3] arm: bcmbca: make bcm6753 driver depending on CONFIG_BCM6855

2022-08-17 Thread William Zhang
As CONFIG_ARCH_BCM6753 is replaced with CONFIG_BCM6855, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang --- drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw/Kconfig | 2 +- drivers/watchdog/Kconfig | 2

[PATCH v3 0/5] arm: bcmbca: move bcm63158 support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
with Philippe as a basic config version of bcm963158_defconfig is now added. William Zhang (5): arm: bcmbca: add bcm63158 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove bcm63158 support under CONFIG_ARCH_BCM63158 arm: bcmbca: replace ARCH_BCM63158 symbols in Kconfig with BCM63158

[PATCH v3 1/5] arm: bcmbca: add bcm63158 SoC support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
-off-by: William Zhang --- (no changes since v2) Changes in v2: - Remove extra nodes from bcm963158.dts and keep it as a generic minimun board support dts following other BCA chip convention. MAINTAINERS | 1 + arch/arm/dts/Makefile | 2

[PATCH v3 2/5] arm: bcmbca: remove bcm63158 support under CONFIG_ARCH_BCM63158

2022-08-22 Thread William Zhang
Now that BCM63158 is supported under CONFIG_ARCH_BCMBCA and CONFIG_BCM63158, remove the original ARCH_BCM63158 support and migrate configuration settings. Signed-off-by: William Zhang --- (no changes since v2) Changes in v2: - Remove bcm963158_ram_defconfig per discussion with Philippe as a

[PATCH v3 3/5] arm: bcmbca: replace ARCH_BCM63158 symbols in Kconfig with BCM63158

2022-08-22 Thread William Zhang
As CONFIG_ARCH_BCM63158 is replaced with CONFIG_BCM63158, update the Kconfig to use the new config symbol. Signed-off-by: William Zhang --- Changes in v3: -Update subject line to be more clear drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers/mtd/nand/raw

[PATCH v3 4/5] MAINTAINERS: Add BCM63158 maintainer to BCMBCA entry

2022-08-22 Thread William Zhang
Since ARCH_BCM63158 SoC support is merged into ARCH_BCMBCA, add BCM63158 maintainer Philippe to bcmbca maintainer list. Signed-off-by: William Zhang --- (no changes since v1) MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5b219d62f6bf

[PATCH v3 5/5] arm: bcmbca: make reset_cpu function weak

2022-08-22 Thread William Zhang
BCM63158 carries the CONFIG_SYSRESET from the original configuration. It provide reset_cpu function already so need to define weak version of the dummy reset_cpu for other BCMBCA SoCs to avoid linking error. Signed-off-by: William Zhang --- Changes in v3: -Fix reset_cpu function prototype

[PATCH v4 0/3] arm: bcmbca: move bcm68360 support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
discussion with Philippe as a basic config version of bcm96856_defconfig is now added. - Update commit message Changes in v2: - Bring Philippe Reynes copyright tag from 68360 dts to 6856 dts William Zhang (3): arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove

[PATCH v4 1/3] arm: bcmbca: add bcm6856 SoC support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
-by: William Zhang --- Changes in v4: -Add help in BCM6856 Kconfig option to include the list of the supported chips. MAINTAINERS | 1 + arch/arm/dts/Makefile| 2 + arch/arm/dts/bcm6856.dtsi| 103 +++ arch

[PATCH v4 2/3] arm: bcmbca: remove bcm68360 support under CONFIG_ARCH_BCM68360

2022-08-22 Thread William Zhang
bcm96856_defconfig is now added. Signed-off-by: William Zhang --- (no changes since v3) Changes in v3: - Remove bcm968360bg_ram_defconfig per discussion with Philippe as a basic config version of bcm96856_defconfig is now added. - Update commit message Changes in v2: - Bring Philippe Reynes copyright tag from

[PATCH v4 3/3] arm: bcmbca: replace ARCH_BCM68360 symbols in Kconfig with BCM6856

2022-08-22 Thread William Zhang
As CONFIG_ARCH_BCM68360 is replaced with CONFIG_BCM6856, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang --- Changes in v4: -Update subject line to be more clear for patch 3 drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers

[PATCH v2 0/3] arm: bcmbca: move bcm6858 support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
://lists.denx.de/pipermail/u-boot/2022-August/492470.html Changes in v2: -Add help in BCM6858 Kconfig option to include the list of the supported chips. -Update subject line to be more clear for patch 3 William Zhang (3): arm: bcmbca: add bcm6858 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove

[PATCH v2 1/3] arm: bcmbca: add bcm6858 SoC support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
and the original dts is updated with the one from linux next git repository. The u-boot image can be loaded from flash or network to the entry point address in the memory and boot from there to the console. Signed-off-by: William Zhang --- Changes in v2: -Add help in BCM6858 Kconfig option to

[PATCH v2 2/3] arm: bcmbca: remove bcm6858 support under CONFIG_ARCH_BCM6858

2022-08-22 Thread William Zhang
board dts with the new compatible string. - Delete broadcom_bcm968580xref.h and merge its setting to the new bcm96858.h file. - Remove bcm968580xref_ram_defconfig as a basic config version of bcm96858_defconfig is now added. Signed-off-by: William Zhang --- (no changes since v1) arch/arm/Kconfig

[PATCH v2 3/3] arm: bcmbca: replace ARCH_BCM6858 symbols in Kconfig with BCM6858

2022-08-22 Thread William Zhang
As CONFIG_ARCH_BCM6858 is replaced with CONFIG_BCM6858, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang --- Changes in v2: -Update subject line to be more clear for patch 3 drivers/gpio/Kconfig | 3 +-- drivers/led/Kconfig | 2 +- drivers

[PATCH v2 0/3] arm: bcmbca: move bcm6753 support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
subject line to be more clear for patch 3 William Zhang (3): arm: bcmbca: add bcm6855 SoC support under CONFIG_ARCH_BCMBCA arm: bcmbca: remove bcm6753 support under CONFIG_ARCH_BCM6753 arm: bcmbca: replace ARCH_BCM6753 symbols in Kconfig with BCM6855 MAINTAINERS

[PATCH v2 1/3] arm: bcmbca: add bcm6855 SoC support under CONFIG_ARCH_BCMBCA

2022-08-22 Thread William Zhang
-off-by: William Zhang --- Changes in v2: - Add help in BCM6855 Kconfig option to include the list of the supported chips. MAINTAINERS | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/bcm6855.dtsi | 120 ++ arch

[PATCH v2 2/3] arm: bcmbca: remove bcm6753 support under CONFIG_ARCH_BCM6753

2022-08-22 Thread William Zhang
basic config version of bcm96855_defconfig Signed-off-by: William Zhang --- (no changes since v1) arch/arm/Kconfig | 8 - arch/arm/dts/Makefile| 6 +- arch/arm/dts/bcm6753.dtsi| 208 --- arch/arm/dts/bcm6855.dtsi

[PATCH v2 3/3] arm: bcmbca: replace ARCH_BCM6753 symbols in Kconfig with BCM6855

2022-08-22 Thread William Zhang
As CONFIG_ARCH_BCM6753 is replaced with CONFIG_BCM6855, update the driver Kconfig to use the new config symbol. Signed-off-by: William Zhang --- Changes in v2: - Update subject line to be more clear for patch 3 drivers/gpio/Kconfig | 2 +- drivers/led/Kconfig | 2 +- drivers

[PATCH 1/2] timer: sti: convert sti-timer to arm a9 global timer

2022-08-23 Thread William Zhang
STI timer is actually ARM Cortex A9 global timer. Convert the driver to use generic global timer name and make it consistent with Linux kernel global timer driver. This also allows any A9 based device to use this driver. Signed-off-by: William Zhang --- MAINTAINERS

[PATCH 2/2] timer: bcmbca: use arm global timer for bcm63138 SoS

2022-08-23 Thread William Zhang
As STI timer is renamed to ARM A9 global timer, change BCM63138 to use the new global timer config symbol name. This patch applies on top of the my previous patch [1]. [1]: https://lists.denx.de/pipermail/u-boot/2022-August//491060.html Signed-off-by: William Zhang --- arch/arm/mach-bcmbca

[PATCH v2 1/2] timer: sti: convert sti-timer to arm a9 global timer

2022-08-23 Thread William Zhang
STI timer is actually ARM Cortex A9 global timer. Convert the driver to use generic global timer name and make it consistent with Linux kernel global timer driver. This also allows any A9 based device to use this driver. Signed-off-by: William Zhang --- (no changes since v1) MAINTAINERS

[PATCH v2 2/2] timer: bcmbca: use arm global timer for bcm63138 SoC

2022-08-23 Thread William Zhang
As STI timer is renamed to ARM A9 global timer, change BCM63138 to use the new global timer config symbol name. This patch applies on top of the my previous patch [1]. [1]: https://lists.denx.de/pipermail/u-boot/2022-August/491060.html Signed-off-by: William Zhang --- Changes in v2: - Fix

[PATCH 1/9] dt-bindings: spi: Add bcm63xx-hsspi controller support

2023-04-27 Thread William Zhang
Bring the device tree binding document from Linux to u-boot Port from linux patches: Link: https://lore.kernel.org/r/20230207065826.285013-2-william.zh...@broadcom.com Link: https://lore.kernel.org/r/20230207065826.285013-3-william.zh...@broadcom.com Signed-off-by: William Zhang --- .../spi

[PATCH 4/9] spi: bcm63xx-hsspi: Enable SPI drivers by default

2023-04-27 Thread William Zhang
SPI controller is always presented in BCMBCA platform SoCs so enable the controller driver and SPI core by default. Signed-off-by: William Zhang --- arch/arm/Kconfig | 2 ++ arch/arm/mach-bcmbca/Kconfig | 11 +++ drivers/spi/Kconfig | 4 ++-- 3 files changed, 15

[PATCH 5/9] spi: bcm63xx-hsspi: Add new compatible string support

2023-04-27 Thread William Zhang
New compatible string brcm,bcmbca-hsspi-v1.0 is introduced based on dts document brcm,bcm63xx-hsspi.yaml. Add it to the driver to support this new binding. Port from linux patch: Link: https://lore.kernel.org/r/20230207065826.285013-6-william.zh...@broadcom.com Signed-off-by: William Zhang

[PATCH 7/9] spi: bcm63xx-hsspi: Add prepend mode support

2023-04-27 Thread William Zhang
meet the above requirement, we switch to original dummy cs mode but limit the clock rate to the safe 25MHz. Port from linux patch: Link: https://lore.kernel.org/r/20230209200246.141520-12-william.zh...@broadcom.com Signed-off-by: William Zhang --- drivers/spi/bcm63xx_hsspi.c | 259

[PATCH 8/9] spi: bcmbca-hsspi: Add driver for newer HSSPI controller

2023-04-27 Thread William Zhang
bcm63xx-hsspi driver are no longer needed and this new driver is much cleaner. Port from linux patch: Link: https://lore.kernel.org/r/20230209200246.141520-15-william.zh...@broadcom.com Signed-off-by: William Zhang --- arch/arm/mach-bcmbca/Kconfig | 15 ++ drivers/spi/Kconfig | 9

[PATCH 3/9] arm64: dts: broadcom: bcmbca: Add spi controller node

2023-04-27 Thread William Zhang
Add support for HSSPI controller in ARMv8 chip dts files. Port from linux patch: Link: https://lore.kernel.org/r/20230207065826.285013-5-william.zh...@broadcom.com Signed-off-by: William Zhang --- arch/arm/dts/bcm4908.dtsi | 17 + arch/arm/dts/bcm4912.dtsi | 20

[PATCH 9/9] MAINTAINERS: Add Broadcom Broadband SoC HS SPI drivers

2023-04-27 Thread William Zhang
Add entry for Broadcom Broadband SoC HS SPI drivers Signed-off-by: William Zhang --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4c17c6cb9f1e..cfec29ee5c07 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -823,6 +823,14 @@ F: include

[PATCH 2/9] ARM: dts: broadcom: bcmbca: Add spi controller node

2023-04-27 Thread William Zhang
Add support for HSSPI controller in ARMv7 chip dts files. Port from linux patch: Link: https://lore.kernel.org/r/20230207065826.285013-4-william.zh...@broadcom.com Signed-off-by: William Zhang --- arch/arm/dts/bcm47622.dtsi | 18 ++ arch/arm/dts/bcm63138.dtsi | 18

[PATCH 6/9] spi: bcm63xx-hsspi: Fix multi-bit mode setting

2023-04-27 Thread William Zhang
oadcom.com Signed-off-by: William Zhang --- drivers/spi/bcm63xx_hsspi.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c index 495feba02262..0d12c345b1dd 100644 --- a/drivers/spi/bcm63xx_hsspi.c +++ b/d

[PATCH 0/9] spi: bcm63xx-hsspi: driver and doc updates

2023-04-27 Thread William Zhang
document is converted to yaml format and updated accordingly. [1]: https://lore.kernel.org/all/20230207065826.285013-1-william.zh...@broadcom.com/ William Zhang (9): dt-bindings: spi: Add bcm63xx-hsspi controller support ARM: dts: broadcom: bcmbca: Add spi controller node arm64: dts

[PATCH v2 2/9] ARM: dts: broadcom: bcmbca: Add spi controller node

2023-05-02 Thread William Zhang
Add support for HSSPI controller in ARMv7 chip dts files. Port from linux patch: Link: https://lore.kernel.org/r/20230207065826.285013-4-william.zh...@broadcom.com Signed-off-by: William Zhang --- Changes in v2: None arch/arm/dts/bcm47622.dtsi | 18 ++ arch/arm/dts/bcm63138

[PATCH v2 3/9] arm64: dts: broadcom: bcmbca: Add spi controller node

2023-05-02 Thread William Zhang
Add support for HSSPI controller in ARMv8 chip dts files. Port from linux patch: Link: https://lore.kernel.org/r/20230207065826.285013-5-william.zh...@broadcom.com Signed-off-by: William Zhang --- Changes in v2: None arch/arm/dts/bcm4908.dtsi | 17 + arch/arm/dts/bcm4912

[PATCH v2 1/9] dt-bindings: spi: Add bcm63xx-hsspi controller support

2023-05-02 Thread William Zhang
Bring the device tree binding document from Linux to u-boot Port from linux patches: Link: https://lore.kernel.org/r/20230207065826.285013-2-william.zh...@broadcom.com Link: https://lore.kernel.org/r/20230207065826.285013-3-william.zh...@broadcom.com Signed-off-by: William Zhang --- Changes

[PATCH v2 4/9] spi: bcm63xx-hsspi: Enable SPI drivers by default

2023-05-02 Thread William Zhang
SPI controller is always presented in BCMBCA platform SoCs so enable the controller driver and SPI core by default. Signed-off-by: William Zhang --- Changes in v2: None arch/arm/Kconfig | 2 ++ arch/arm/mach-bcmbca/Kconfig | 11 +++ drivers/spi/Kconfig | 4

[PATCH v2 5/9] spi: bcm63xx-hsspi: Add new compatible string support

2023-05-02 Thread William Zhang
New compatible string brcm,bcmbca-hsspi-v1.0 is introduced based on dts document brcm,bcm63xx-hsspi.yaml. Add it to the driver to support this new binding. Port from linux patch: Link: https://lore.kernel.org/r/20230207065826.285013-6-william.zh...@broadcom.com Signed-off-by: William Zhang

[PATCH v2 9/9] MAINTAINERS: Add Broadcom Broadband SoC HS SPI drivers

2023-05-02 Thread William Zhang
Add entry for Broadcom Broadband SoC HS SPI drivers Signed-off-by: William Zhang --- Changes in v2: - Add Álvaro Fernández Rojas as another maintainer MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4c17c6cb9f1e..a1d490e66ed4 100644

[PATCH v2 7/9] spi: bcm63xx-hsspi: Add prepend mode support

2023-05-02 Thread William Zhang
meet the above requirement, we switch to original dummy cs mode but limit the clock rate to the safe 25MHz. Port from linux patch: Link: https://lore.kernel.org/r/20230209200246.141520-12-william.zh...@broadcom.com Signed-off-by: William Zhang --- Changes in v2: None drivers/spi

[PATCH v2 6/9] spi: bcm63xx-hsspi: Fix multi-bit mode setting

2023-05-02 Thread William Zhang
oadcom.com Signed-off-by: William Zhang --- Changes in v2: None drivers/spi/bcm63xx_hsspi.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c index 495feba02262..0d12c345b1dd 100644 --- a/drivers/spi/bcm63

[PATCH v2 8/9] spi: bcmbca-hsspi: Add driver for newer HSSPI controller

2023-05-02 Thread William Zhang
bcm63xx-hsspi driver are no longer needed and this new driver is much cleaner. Port from linux patch: Link: https://lore.kernel.org/r/20230209200246.141520-15-william.zh...@broadcom.com Signed-off-by: William Zhang --- Changes in v2: None arch/arm/mach-bcmbca/Kconfig | 15 ++ drivers/spi

[PATCH v2 0/9] spi: bcm63xx-hsspi: driver and doc updates

2023-05-02 Thread William Zhang
document is converted to yaml format and updated accordingly. [1]: https://lore.kernel.org/all/20230207065826.285013-1-william.zh...@broadcom.com/ Changes in v2: - Add Álvaro Fernández Rojas as another maintainer William Zhang (9): dt-bindings: spi: Add bcm63xx-hsspi controller support ARM

Re: [PATCH v3 10/10] MAINTAINERS: Add Broadcom Broadband SoC HS SPI drivers

2023-08-11 Thread William Zhang
Hi Tom, On 08/08/2023 07:02 PM, Tom Rini wrote: On Wed, Jun 07, 2023 at 04:37:10PM -0700, William Zhang wrote: Add entry for Broadcom Broadband SoC HS SPI drivers Signed-off-by: William Zhang Can you please rebase this rest of this series on top of current next and fix the compiler

[PATCH] spi: bcm63xx-hsspi: Fix compiler warning

2023-08-11 Thread William Zhang
mp;_min2); \ | ^~ drivers/spi/bcm63xx_hsspi.c:298:22: note: in expansion of macro ‘min’ 298 | size_t curr_step = min(step_size, data_bytes); This change fix this warning by casting the data_bytes to size_t. Fixes: 0e144ec38cbb ("spi: bcm63xx-hsspi: Add prepend mode support") Signed-off

Re: [PATCH 00/14] Backport BRCMNAND changes from Linux

2023-01-16 Thread William Zhang
Hi Linus, I will try to review and test your patches late this week or early next week. I don't have those old chips (v2.1, v2.2, v4) but will test on some of recent Broadcom broadband(BCMBCA) SoCs with v7.0 and 7.1 controller. Thanks, William On 01/16/2023 11:11 AM, Michael Nazzareno Trima

Re: [PATCH 029/149] board: broadcom: Remove and add needed includes

2024-04-30 Thread William Zhang
Hi Tom, On 04/30/2024 07:41 PM, Tom Rini wrote: Remove from this board vendor directory and when needed add missing include files directly. Signed-off-by: Tom Rini --- Cc: Anand Gore Cc: William Zhang Cc: Kursad Oney Cc: Joel Peshkin Cc: Philippe Reynes Cc: Linus Walleij Cc: Rayagonda

Re: [PATCH 43/81] mtd: Remove and add needed includes

2024-05-02 Thread William Zhang
On 05/01/2024 06:31 PM, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini --- Cc: Tom Rini Cc: Stefan Roese Cc: Dario Binacchi Cc: Michael Trimarchi Cc: Anand Gore Cc: William Zhang Cc: Kursad Oney Cc: Joel

Re: [PATCH 65/81] spi: Remove and add needed includes

2024-05-02 Thread William Zhang
On 05/01/2024 06:31 PM, Tom Rini wrote: Remove from this driver directory and when needed add missing include files directly. Signed-off-by: Tom Rini --- Cc: Jagan Teki Cc: Tom Rini Cc: Anand Gore Cc: William Zhang Cc: Kursad Oney Cc: Joel Peshkin Cc: Philippe Reynes Cc: Alex

[PATCH] MAINTAINERS: update Broadcom BCMBCA maintainer

2024-05-02 Thread William Zhang
Joel is no longer with Broadcom. Remove his email from bcmbca maintainer list and replace him with myself for stack protection maintainer. Signed-off-by: William Zhang --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [U-Boot] [PATCH] drivers: nand: brcmnand: fix nand_chip ecc layout structure

2019-10-20 Thread William Zhang
Thank you Daniel! -Original Message- From: Daniel Schwierzeck [mailto:daniel.schwierz...@gmail.com] Sent: Friday, October 18, 2019 4:37 AM To: William Zhang; philippe.rey...@softathome.com Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH] drivers: nand: brcmnand: fix nand_chip ecc

[PATCH] dm: tpl: Add fdt address translation support in TPL

2022-10-14 Thread William Zhang
This is needed in the platforms that use "ranges" node property for address translation in their dts for TPL. Signed-off-by: William Zhang --- drivers/core/Kconfig | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/core/Kconfig b/drivers/core/Kco

[PATCH v2 0/1] arm: bcmbca: introduce the bcmbca architecture and 47622 SOC

2022-05-06 Thread William Zhang
SE to 0x0100 from 0x1000 to work on boards with 256MB or less memory William Zhang (1): arm: bcmbca: introduce the bcmbca architecture and 47622 SOC MAINTAINERS| 11 +++ arch/arm/Kconfig | 7 ++ arch/arm/Makefile

  1   2   >