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

2024-11-07 Thread William Zhang
Hi Linus, > -Original Message- > From: Linus Walleij > Sent: Thursday, November 7, 2024 6:16 AM > To: david regan > Cc: u-boot ; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > ; Florian Fai

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:59 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; David R

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:59 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; Florian

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:59 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; F

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:59 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij >

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:59 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; Miquel R

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:59 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; F

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:59 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; F

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

2024-09-16 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Monday, September 16, 2024 2:23 AM > To: William Zhang > Cc: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; Kursad Oney > ; Philippe Reynes > ; Florian Fainelli > ; Mique

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

2024-09-15 Thread William Zhang
nx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; David Regan > ; Miquel Raynal > Subject: [PATCH 7/7] mtd: rawnand: brcmnand: Add support for getting ecc > setting from strap > > Fro

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

2024-09-15 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Wednesday, September 11, 2024 12:11 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; David R

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

2024-09-15 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Wednesday, September 11, 2024 12:11 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij

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

2024-09-15 Thread William Zhang
> -Original Message- > From: Linus Walleij > Sent: Thursday, September 12, 2024 1:16 AM > To: William Zhang > Cc: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; Kursad Oney > ; Philippe Reynes > ; Florian Fainelli > ; Mique

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

2024-09-11 Thread William Zhang
eij > Sent: Wednesday, September 11, 2024 12:11 AM > To: u-boot@lists.denx.de; Dario Binacchi > ; Michael Trimarchi > ; Anand Gore > ; William Zhang > ; Kursad Oney > ; Philippe Reynes > > Cc: Linus Walleij ; Florian Fainelli > ; Miquel Raynal > ; Kamal Dasu ; >

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

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

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

Re: [PATCH v3 06/10] dt-bindings: spi: Add bcm63xx-hsspi controller support

2023-06-14 Thread William Zhang
Hi Jagan, On 06/11/2023 03:43 AM, Jagan Teki wrote: On Thu, Jun 8, 2023 at 5:08 AM William Zhang wrote: 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

[PATCH v3 08/10] arm64: dts: broadcom: bcmbca: Add spi controller node

2023-06-07 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 v3: None Changes in v2: None arch/arm/dts/bcm4908.dtsi | 17 + arch

[PATCH v3 07/10] ARM: dts: broadcom: bcmbca: Add spi controller node

2023-06-07 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 v3: None Changes in v2: None arch/arm/dts/bcm47622.dtsi | 18

[PATCH v3 09/10] broadcom: bcmbca: Enable SPI drivers by default

2023-06-07 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 v3: - Move BCMBCA_HSSPI config enabling and its dependent config from new BCMBCA driver patch to this more relevant patch - Combine

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

2023-06-07 Thread William Zhang
Add entry for Broadcom Broadband SoC HS SPI drivers Signed-off-by: William Zhang --- Changes in v3: None 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 228d8af433df

[PATCH v3 05/10] spi: bcmbca-hsspi: Add driver for newer HSSPI controller

2023-06-07 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 v3: - Move arch related Kconfig changes to SPI enabling patch

[PATCH v3 06/10] dt-bindings: spi: Add bcm63xx-hsspi controller support

2023-06-07 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 v3 04/10] spi: bcm63xx-hsspi: Add prepend mode support

2023-06-07 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 v3: None Changes in v2: None

[PATCH v3 03/10] spi: bcm63xx-hsspi: Add new compatible string support

2023-06-07 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 v3 02/10] spi: bcm63xx-hsspi: Fix multi-bit mode setting

2023-06-07 Thread William Zhang
oadcom.com Signed-off-by: William Zhang Reviewed-by: Jagan Teki --- Changes in v3: - Add Reviewed-by tag 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_hss

[PATCH v3 01/10] spi: bcm63xx-hsspi: Make driver depend on BCMBCA arch

2023-06-07 Thread William Zhang
ARCH_BCMBCA was introduced to cover individual Broadcom broadband SoC for common features and IP blocks. Use this config instead of each chip config as the Kconfig dependency for Broadcom HSSPI driver. Signed-off-by: William Zhang --- Changes in v3: None Changes in v2: None drivers/spi

[PATCH v3 00/10] spi: bcm63xx-hsspi: driver and doc updates

2023-06-07 Thread William Zhang
- Combine multi-line condition into single line for config HAVE_SPI_CS_CTRL Changes in v2: - Add Álvaro Fernández Rojas as another maintainer William Zhang (10): spi: bcm63xx-hsspi: Make driver depend on BCMBCA arch spi: bcm63xx-hsspi: Fix multi-bit mode setting spi: bcm63xx-hsspi: Add new

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

2023-06-07 Thread William Zhang
Hi Tom, On 06/07/2023 01:05 PM, Tom Rini wrote: On Tue, Jun 06, 2023 at 01:19:47PM -0700, William Zhang wrote: Hi Jagan, On 06/02/2023 11:56 AM, William Zhang wrote: Hi Jagan, On 06/01/2023 11:01 PM, Jagan Teki wrote: On Wed, May 3, 2023 at 12:29 AM William Zhang wrote: This patch

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

2023-06-06 Thread William Zhang
Hi Jagan, On 06/02/2023 11:56 AM, William Zhang wrote: Hi Jagan, On 06/01/2023 11:01 PM, Jagan Teki wrote: On Wed, May 3, 2023 at 12:29 AM William Zhang wrote: This patch series is the u-boot port from the recently accepted kernel Broadcom HSSPI driver patch series here [1]. It includes

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

2023-06-02 Thread William Zhang
Hi Jagan, On 06/01/2023 11:01 PM, Jagan Teki wrote: On Wed, May 3, 2023 at 12:29 AM William Zhang wrote: This patch series is the u-boot port from the recently accepted kernel Broadcom HSSPI driver patch series here [1]. It includes the accumulative updates and fixes for the driver from

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

2023-06-02 Thread William Zhang
Hi Jagan, On 06/01/2023 10:54 PM, Jagan Teki wrote: On Wed, May 3, 2023 at 12:29 AM William Zhang wrote: The newer BCMBCA SoCs such as BCM6756, BCM4912 and BCM6855 include an updated SPI controller that add the capability to allow the driver to control chip select explicitly. Driver can

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

2023-06-01 Thread William Zhang
23 11:58 AM, William Zhang wrote: This patch series is the u-boot port from the recently accepted kernel Broadcom HSSPI driver patch series here [1]. It includes the accumulative updates and fixes for the driver from Broadcom. It also added a new driver for the updated SPI controller found in th

[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

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

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 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 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 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 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 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 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 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 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 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 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 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 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 01/14] mtd: nand: brcm: switch to mtd_ooblayout_ops

2023-02-03 Thread William Zhang
Hi Linus and Michael, On 02/03/2023 03:10 AM, Linus Walleij wrote: 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

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

2023-01-26 Thread William Zhang
Hi Linus and Rafał, On 01/26/2023 12:59 AM, Linus Walleij wrote: 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

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

2023-01-26 Thread William Zhang
On 01/26/2023 12:43 AM, Linus Walleij wrote: On Thu, Jan 26, 2023 at 2:02 AM William Zhang wrote: Unfortunately the u-boot nand base code still uses nand_ecclayout structure because it was based on old kernel nand driver. Your change cause bugcheck in the nand_scan_tail at line 4978 when

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

2023-01-25 Thread William Zhang
Hi Linus, 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 routers, we need to explicitly select the ECC like this in the device tree: nand-ecc-algo = "bch"; nand-ecc-strength = <1>; nand-ecc-step-size

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

2023-01-25 Thread William Zhang
Hi Linus, Unfortunately the u-boot nand base code still uses nand_ecclayout structure because it was based on old kernel nand driver. Your change cause bugcheck in the nand_scan_tail at line 4978 when mtd->oobsize is not one of the default size (i.e. some large nand with BCH-8 ecc requiremen

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

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

  1   2   >