RE: [PATCH v2 7/9] riscv: dts: add initial support for the SiFive FU740-C000 SoC

2020-12-15 Thread Yash Shah
> -Original Message- > From: Bin Meng > Sent: 16 December 2020 11:36 > To: Yash Shah > Cc: linux-...@vger.kernel.org; linux-ser...@vger.kernel.org; linux- > p...@vger.kernel.org; linux-...@vger.kernel.org; linux-kernel ker...@vger.kernel.org>; linux-riscv ; > dev

RE: [PATCH v2 7/9] riscv: dts: add initial support for the SiFive FU740-C000 SoC

2020-12-15 Thread Yash Shah
> -Original Message- > From: Bin Meng > Sent: 10 December 2020 19:05 > To: Yash Shah > Cc: linux-...@vger.kernel.org; linux-ser...@vger.kernel.org; linux- > p...@vger.kernel.org; linux-...@vger.kernel.org; linux-kernel ker...@vger.kernel.org>; linux-riscv ; > dev

[PATCH v3 2/2] RISC-V: sifive_l2_cache: Update L2 cache driver to support SiFive FU740

2020-12-10 Thread Yash Shah
SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540. Update the L2 cache controller driver to support this additional interrupt in case of FU740-C000 chip. Signed-off-by: Yash Shah --- drivers/soc/sifive/sifive_l2_cache.c | 27 --- 1 file changed, 24

[PATCH v3 1/2] dt-bindings: riscv: Update l2 cache DT documentation to add support for SiFive FU740

2020-12-10 Thread Yash Shah
The L2 cache controller in SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540. Update the DT documentation accordingly with "compatible" and "interrupt" property changes. Signed-off-by: Yash Shah --- .../devicetree/bindings/riscv/sifiv

[PATCH v3 0/2] riscv: sifive_l2_cache: Add support for SiFive FU740 SoC

2020-12-10 Thread Yash Shah
Add support for additional interrupt present in SiFive FU740 chip. Changes: v3: - Rename the subject line of dt-binding patch - Add the additional interrupt "DirFail" as the last entry so as to keep the order of all previous index same. v2: - Changes as per Rob Herring's request o

RE: [PATCH 2/3] soc: sifive: beu: Add support for SiFive Bus Error Unit

2020-12-09 Thread Yash Shah
Any updates on this patch? - Yash > -Original Message- > From: Yash Shah > Sent: 12 November 2020 17:31 > To: robh...@kernel.org; Paul Walmsley ( Sifive) > ; pal...@dabbelt.com; b...@alien8.de; > mche...@kernel.org; tony.l...@intel.com; james.mo...@arm.com; >

RE: [PATCH v2 1/2] RISC-V: Update l2 cache DT documentation to add support for SiFive FU740

2020-12-08 Thread Yash Shah
> -Original Message- > From: Rob Herring > Sent: 09 December 2020 04:52 > To: Yash Shah > Cc: linux-kernel@vger.kernel.org; linux-ri...@lists.infradead.org; > devicet...@vger.kernel.org; b...@suse.de; a...@brainfault.org; > jonathan.came...@huawei.com; w...@kernel.o

[PATCH v2 9/9] riscv: dts: add initial board data for the SiFive HiFive Unmatched

2020-12-07 Thread Yash Shah
Add initial board data for the SiFive HiFive Unmatched A00. This patch is dependent on Zong's Patchset[0]. [0]: https://lore.kernel.org/linux-riscv/20201130082330.77268-4-zong...@sifive.com/T/#u Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/Makefile| 3

[PATCH v2 7/9] riscv: dts: add initial support for the SiFive FU740-C000 SoC

2020-12-07 Thread Yash Shah
Add initial support for the SiFive FU540-C000 SoC. FU740-C000 is built around the SiFIve U7 Core Complex and a TileLink interconnect. This file is expected to grow as more device drivers are added to the kernel. Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 293

[PATCH v2 8/9] dt-bindings: riscv: Update YAML doc to support SiFive HiFive Unmatched board

2020-12-07 Thread Yash Shah
Add new compatible strings to the YAML DT binding document to support SiFive's HiFive Unmatched board Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/riscv/sifive.yaml | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 3/9] dt-bindings: pwm: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/pwm/pwm-sifive.yaml | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm

[PATCH v2 6/9] dt-bindings: i2c: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt

[PATCH v2 5/9] dt-bindings: gpio: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/gpio/sifive,gpio.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/sifive

[PATCH v2 4/9] dt-bindings: serial: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/serial/sifive-serial.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/serial/sifive

[PATCH v2 1/9] dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings in cpus.yaml to support the E71 and U74 CPU cores ("harts") that are present on FU740-C000 SoC. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/riscv/cpus.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetre

[PATCH v2 2/9] dt-bindings: spi: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/spi/spi-sifive.yaml | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi

[PATCH v2 0/9] arch: riscv: add board and SoC DT file support

2020-12-07 Thread Yash Shah
-send-email-yash.s...@sifive.com/T/#t [2]: https://lore.kernel.org/linux-riscv/20201126030043.67390-1-zong...@sifive.com/T/#u Changes in v2: - The dt bindings patch is split into several individual patches. - Expand the full list for compatible strings in i2c-ocores.txt Yash Shah (9): dt

RE: [PATCH 1/4] dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC

2020-12-02 Thread Yash Shah
> -Original Message- > From: Andrew Lunn > Sent: 02 December 2020 20:28 > To: Yash Shah > Cc: linux-...@vger.kernel.org; linux-ser...@vger.kernel.org; linux- > p...@vger.kernel.org; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; linux-ri...@lists.inf

[PATCH 4/4] riscv: dts: add initial board data for the SiFive HiFive Unmatched

2020-12-02 Thread Yash Shah
Add initial board data for the SiFive HiFive Unmatched A00 Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/Makefile| 3 +- .../riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 253 + 2 files changed, 255 insertions(+), 1 deletion(-) create mode

[PATCH 1/4] dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC

2020-12-02 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Also, add new compatible strings in cpus.yaml to support the E71 and U74 CPU cores ("harts") that are present on FU740-C000 SoC. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/g

[PATCH 3/4] dt-bindings: riscv: Update YAML doc to support SiFive HiFive Unmatched board

2020-12-02 Thread Yash Shah
Add new compatible strings to the YAML DT binding document to support SiFive's HiFive Unmatched board Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/riscv/sifive.yaml | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree

[PATCH 2/4] riscv: dts: add initial support for the SiFive FU740-C000 SoC

2020-12-02 Thread Yash Shah
Add initial support for the SiFive FU540-C000 SoC. FU740-C000 is built around the SiFIve U7 Core Complex and a TileLink interconnect. This file is expected to grow as more device drivers are added to the kernel. Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 293

[PATCH 0/4] arch: riscv: add board and SoC DT file support

2020-12-02 Thread Yash Shah
-send-email-yash.s...@sifive.com/T/#t [2]: https://lore.kernel.org/linux-riscv/20201126030043.67390-1-zong...@sifive.com/T/#u Yash Shah (4): dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC riscv: dts: add initial support for the SiFive FU740-C000 SoC dt-bindings: riscv

[PATCH v2 2/2] RISC-V: sifive_l2_cache: Update L2 cache driver to support SiFive FU740

2020-11-29 Thread Yash Shah
SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540. Update the L2 cache controller driver to support this additional interrupt in case of FU740-C000 chip. Signed-off-by: Yash Shah --- drivers/soc/sifive/sifive_l2_cache.c | 49 +++- 1 file changed

[PATCH v2 1/2] RISC-V: Update l2 cache DT documentation to add support for SiFive FU740

2020-11-29 Thread Yash Shah
The L2 cache controller in SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540. Update the DT documentation accordingly with "compatible" and "interrupt" property changes. Signed-off-by: Yash Shah --- Changes in v2: - Changes as per Rob Herring's request on v1

RE: [PATCH 1/2] RISC-V: Update l2 cache DT documentation to add support for SiFive FU740

2020-11-23 Thread Yash Shah
> -Original Message- > From: Rob Herring > Sent: 21 November 2020 18:25 > To: Yash Shah > Cc: Paul Walmsley ( Sifive) ; > pal...@dabbelt.com; a...@eecs.berkeley.edu; > jonathan.came...@huawei.com; w...@kernel.org; s...@ravnborg.org; > Sagar Kadam ; a...@brainf

[PATCH 1/3] dt-bindings: riscv: Add DT documentation for SiFive Bus Error Unit

2020-11-12 Thread Yash Shah
Add DT json-schema for SiFive Bus Error unit present in FU740-C000 chip Signed-off-by: Yash Shah --- .../devicetree/bindings/riscv/sifive-beu.yaml | 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/sifive-beu.yaml diff

[PATCH 2/3] soc: sifive: beu: Add support for SiFive Bus Error Unit

2020-11-12 Thread Yash Shah
Add driver support for Bus Error Unit present in SiFive's FU740 chip. Currently the driver reports erroneous events only using Platform-level interrupts. The support for reporting events using hart-local interrupts can be added in future. Signed-off-by: Yash Shah --- drivers/soc/sifive/Kconfig

[PATCH 3/3] EDAC/sifive: Add support for SiFive BEU in SiFive platform EDAC

2020-11-12 Thread Yash Shah
Register for ECC error events from SiFive BEU in SiFive platform EDAC driver. Signed-off-by: Yash Shah --- drivers/edac/Kconfig | 2 +- drivers/edac/sifive_edac.c | 13 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/edac/Kconfig b/drivers/edac

[PATCH 1/2] RISC-V: Update l2 cache DT documentation to add support for SiFive FU740

2020-11-12 Thread Yash Shah
The L2 cache controller in SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540. Update the DT documentation accordingly with "compatible" and "interrupt" property changes. Signed-off-by: Yash Shah --- .../devicetree/bindings/riscv/sifiv

[PATCH 2/2] RISC-V: sifive_l2_cache: Update L2 cache driver to support SiFive FU740

2020-11-12 Thread Yash Shah
SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540. Update the L2 cache controller driver to support this additional interrupt in case of FU740-C000 chip. Signed-off-by: Yash Shah --- drivers/soc/sifive/sifive_l2_cache.c | 49 +++- 1 file changed

RE: [PATCH v2 2/3] soc: sifive: Add SiFive specific Cadence DDR controller driver

2020-09-08 Thread Yash Shah
> -Original Message- > From: Palmer Dabbelt > Sent: 09 September 2020 08:42 > To: Christoph Hellwig ; dkang...@cadence.com > Cc: Yash Shah ; robh...@kernel.org; Paul > Walmsley ( Sifive) ; b...@alien8.de; > mche...@kernel.org; tony.l...@intel.com; devic

[PATCH v2 1/3] dt-bindings: riscv: Add DT documentation for DDR Controller in SiFive SoCs

2020-09-06 Thread Yash Shah
Add device tree bindings for SiFive FU540 DDR controller driver Signed-off-by: Yash Shah Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- .../devicetree/bindings/riscv/sifive-ddr.yaml | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation

[PATCH v2 0/3] SiFive DDR controller and EDAC support

2020-09-06 Thread Yash Shah
Changes in v2: Incorporate below changes in EDAC patch as suggested by Borislav Petkov - Replace all ifdeffery with if(IS_ENABLED(CONFIG_...)) - A few textual changes in patch description and code Yash Shah (3): dt-bindings: riscv: Add DT documentation for DDR Controller in SiFive SoCs soc

[PATCH v2 3/3] EDAC/sifive: Add EDAC support for Memory Controller in SiFive SoCs

2020-09-06 Thread Yash Shah
Add Memory controller EDAC support to the SiFive platform EDAC driver. It registers for ECC notifier events from the memory controller. Signed-off-by: Yash Shah Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- drivers/edac/Kconfig | 2 +- drivers/edac/sifive_edac.c | 119

[PATCH v2 2/3] soc: sifive: Add SiFive specific Cadence DDR controller driver

2020-09-06 Thread Yash Shah
Add a driver to manage the Cadence DDR controller present on SiFive SoCs At present the driver manages the EDAC feature of the DDR controller. Additional features may be added to the driver in future to control other aspects of the DDR controller. Signed-off-by: Yash Shah Reviewed-by: Palmer

RE: [PATCH 3/3] edac: sifive: Add EDAC support for Memory Controller in SiFive SoCs

2020-09-01 Thread Yash Shah
> -Original Message- > From: Borislav Petkov > Sent: 31 August 2020 14:22 > To: Yash Shah > Cc: robh...@kernel.org; pal...@dabbelt.com; Paul Walmsley ( Sifive) > ; mche...@kernel.org; tony.l...@intel.com; > a...@eecs.berkeley.edu; james.mo...@arm.com; rrich...@m

[PATCH 3/3] edac: sifive: Add EDAC support for Memory Controller in SiFive SoCs

2020-08-25 Thread Yash Shah
Add Memory controller EDAC support in exisiting SiFive platform EDAC driver. It registers for notifier events from the SiFive DDR controller driver for DDR ECC events. Signed-off-by: Yash Shah --- drivers/edac/Kconfig | 2 +- drivers/edac/sifive_edac.c | 117

[PATCH 1/3] dt-bindings: riscv: Add DT documentation for DDR Controller in SiFive SoCs

2020-08-25 Thread Yash Shah
Add device tree bindings for SiFive FU540 DDR controller driver Signed-off-by: Yash Shah --- .../devicetree/bindings/riscv/sifive-ddr.yaml | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/sifive-ddr.yaml diff --git

[PATCH 2/3] soc: sifive: Add SiFive specific Cadence DDR controller driver

2020-08-25 Thread Yash Shah
Add a driver to manage the Cadence DDR controller present on SiFive SoCs At present the driver manages the EDAC feature of the DDR controller. Additional features may be added to the driver in future to control other aspects of the DDR controller. Signed-off-by: Yash Shah --- drivers/soc/sifive

[PATCH 0/3] SiFive DDR controller and EDAC support

2020-08-25 Thread Yash Shah
Yash Shah (3): dt-bindings: riscv: Add DT documentation for DDR Controller in SiFive SoCs soc: sifive: Add SiFive specific Cadence DDR controller driver edac: sifive: Add EDAC support for Memory Controller in SiFive SoCs .../devicetree/bindings/riscv/sifive-ddr.yaml | 41

RE: [PATCH 0/3] Dynamic CPU frequency switching for the HiFive

2020-07-08 Thread Yash Shah
Hi Andreas, > -Original Message- > From: Andreas Schwab > Sent: 01 July 2020 16:11 > To: Yash Shah > Cc: Paul Walmsley ( Sifive) ; > pal...@dabbelt.com; robh...@kernel.org; linux-ri...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.ker

RE: [PATCH 0/3] Dynamic CPU frequency switching for the HiFive

2020-07-02 Thread Yash Shah
> -Original Message- > From: David Abdurachmanov > Sent: 01 July 2020 17:34 > To: Andreas Schwab > Cc: Yash Shah ; devicet...@vger.kernel.org; Albert > Ou ; Atish Patra ; Anup > Patel ; lolliv...@baylibre.com; linux- > ker...@vger.kernel.org List ; Green Wan &

[PATCH] RISC-V: Don't allow write+exec only page mapping request in mmap

2020-06-16 Thread Yash Shah
v kernel, the mmap call should fail for this particular combination of permission bits since it's not valid. [0]: https://www2.eecs.berkeley.edu/Pubs/TechRpts/2016/EECS-2016-161.pdf Signed-off-by: Yash Shah Reported-by: David Abdurachmanov --- arch/riscv/kernel/sys_riscv.c | 6 ++ 1 file

[PATCH 1/3] riscv: defconfig, Kconfig: enable CPU power management

2020-06-16 Thread Yash Shah
. Signed-off-by: Yash Shah --- arch/riscv/Kconfig | 8 arch/riscv/configs/defconfig | 5 + 2 files changed, 13 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a31e1a4..1c8443e 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -381,6 +381,14

[PATCH 2/3] riscv: dts: fu540-c000: define hart clocks

2020-06-16 Thread Yash Shah
Declare that each hart defined in the FU540 DT data is clocked by the COREPLL. This is in preparation for enabling CPUFreq for the FU540-C000 SoC on the HiFive Unleashed board. Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 5 + 1 file changed, 5 insertions

[PATCH 0/3] Dynamic CPU frequency switching for the HiFive

2020-06-16 Thread Yash Shah
The patch series adds the support for dynamic CPU frequency switching for FU540-C000 SoC on the HiFive Unleashed board. All the patches are based on Paul Walmsley's work. This series is based on Linux v5.7 and tested on HiFive unleashed board. Yash Shah (3): riscv: defconfig, Kconfig: enable

[PATCH 3/3] riscv: dts: HiFive Unleashed: define a default set of CPU OPPs

2020-06-16 Thread Yash Shah
, the 1GHz rate is present solely because the default HiFive Unleashed bootloaders set the CPU to run at 1GHz before starting the kernel. Signed-off-by: Yash Shah --- .../riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 38 ++ 1 file changed, 38 insertions(+) diff --git a/arch

Re: [PATCH] riscv: dts: Add DT support for SiFive FU540 PWM driver

2019-09-16 Thread Yash Shah
00-pwm". I will add it along with "sifive,pwm0" and repost as version 2. Thanks for your comment. - Yash > > > > > - Yash > > > > On Wed, Aug 21, 2019 at 2:53 PM Yash Shah wrote: > >> > >> Add the PWM DT node in SiFive F

Re: [PATCH] riscv: dts: Add DT support for SiFive FU540 PWM driver

2019-09-10 Thread Yash Shah
Hi, Any comments on this patch? - Yash On Wed, Aug 21, 2019 at 2:53 PM Yash Shah wrote: > > Add the PWM DT node in SiFive FU540 soc-specific DT file. > Enable the PWM nodes in HiFive Unleashed board-specific DT file. > > Signed-off-by: Yash Shah > --- > arch/riscv/boot/

Re: [PATCH v2 0/2] Update ethernet compatible string for SiFive FU540

2019-08-29 Thread Yash Shah
On Thu, Aug 29, 2019 at 2:36 AM David Miller wrote: > > From: Yash Shah > Date: Tue, 27 Aug 2019 10:36:02 +0530 > > > This patch series renames the compatible property to a more appropriate > > string. The patchset is based on Linux-5.3-rc6 and tested on SiFive > >

[PATCH v2 2/2] macb: Update compatibility string for SiFive FU540-C000

2019-08-26 Thread Yash Shah
Update the compatibility string for SiFive FU540-C000 as per the new string updated in the binding doc. Reference: https://lore.kernel.org/netdev/caj2_jofevzqat0yprg4hem4jrrqkb72fkseqj4p8p5ka-+r...@mail.gmail.com/ Signed-off-by: Yash Shah Acked-by: Nicolas Ferre Reviewed-by: Paul Walmsley

[PATCH v2 1/2] macb: bindings doc: update sifive fu540-c000 binding

2019-08-26 Thread Yash Shah
As per the discussion with Nicolas Ferre[0], rename the compatible property to a more appropriate and specific string. [0] https://lore.kernel.org/netdev/caj2_jofevzqat0yprg4hem4jrrqkb72fkseqj4p8p5ka-+r...@mail.gmail.com/ Signed-off-by: Yash Shah Acked-by: Nicolas Ferre Reviewed-by: Paul

[PATCH v2 0/2] Update ethernet compatible string for SiFive FU540

2019-08-26 Thread Yash Shah
to a 'lore.kernel.org' link instead of 'lkml.org' Yash Shah (2): macb: bindings doc: update sifive fu540-c000 binding macb: Update compatibility string for SiFive FU540-C000 Documentation/devicetree/bindings/net/macb.txt | 4 ++-- drivers/net/ethernet/cadence/macb_main.c | 2 +- 2 files

[PATCH] riscv: dts: Add DT support for SiFive FU540 PWM driver

2019-08-21 Thread Yash Shah
Add the PWM DT node in SiFive FU540 soc-specific DT file. Enable the PWM nodes in HiFive Unleashed board-specific DT file. Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 19 +++ arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 8

Re: [PATCH] riscv: move sifive_l2_cache.c to drivers/soc

2019-08-20 Thread Yash Shah
On Mon, Aug 19, 2019 at 11:56 AM Christoph Hellwig wrote: > > On Mon, Aug 19, 2019 at 08:09:04AM +0200, Borislav Petkov wrote: > > On Sun, Aug 18, 2019 at 10:29:35AM +0200, Christoph Hellwig wrote: > > > The sifive_l2_cache.c is in no way related to RISC-V architecture > > > memory management.

Re: [PATCH 2/3] macb: Update compatibility string for SiFive FU540-C000

2019-07-21 Thread Yash Shah
On Fri, Jul 19, 2019 at 5:36 PM wrote: > > On 19/07/2019 at 13:10, Yash Shah wrote: > > Update the compatibility string for SiFive FU540-C000 as per the new > > string updated in the binding doc. > > Reference: https://lkml.org/lkml/2019/7/17/200 > > Maybe referrin

[PATCH 2/3] macb: Update compatibility string for SiFive FU540-C000

2019-07-19 Thread Yash Shah
Update the compatibility string for SiFive FU540-C000 as per the new string updated in the binding doc. Reference: https://lkml.org/lkml/2019/7/17/200 Signed-off-by: Yash Shah --- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/3] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver

2019-07-19 Thread Yash Shah
DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 15 +++ arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 9 + 2 files changed, 24 insertions(+) diff --git a/arch

[PATCH 1/3] macb: bindings doc: update sifive fu540-c000 binding

2019-07-19 Thread Yash Shah
As per the discussion with Nicolas Ferre, rename the compatible property to a more appropriate and specific string. LINK: https://lkml.org/lkml/2019/7/17/200 Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/net/macb.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH 1/2] net/macb: bindings doc: add sifive fu540-c000 binding

2019-07-17 Thread Yash Shah
On Mon, Jun 24, 2019 at 9:08 PM wrote: > > On 23/05/2019 at 22:50, Rob Herring wrote: > > On Thu, May 23, 2019 at 6:46 AM Yash Shah wrote: > >> > >> Add the compatibility string documentation for SiFive FU540-C > >> interface. > >> On the

[PATCH v2] riscv: ccache: Remove unused variable

2019-07-01 Thread Yash Shah
Reading the count register clears the interrupt signal. Currently, the count registers are read into 'regval' variable but the variable is never used. Therefore remove it. V2 of this patch add comments to justify the readl calls without checking the return value. Signed-off-by: Yash Shah

Re: [PATCH] riscv: ccache: Remove unused variable

2019-06-27 Thread Yash Shah
On Thu, Jun 27, 2019 at 9:43 PM Paul Walmsley wrote: > > On Thu, 27 Jun 2019, Yash Shah wrote: > > > Reading the count register clears the interrupt signal. Currently, the > > count registers are read into 'regval' variable but the variable is > > never used. Therefor

[PATCH] riscv: ccache: Remove unused variable

2019-06-27 Thread Yash Shah
Reading the count register clears the interrupt signal. Currently, the count registers are read into 'regval' variable but the variable is never used. Therefore remove it. Signed-off-by: Yash Shah --- arch/riscv/mm/sifive_l2_cache.c | 8 1 file changed, 4 insertions(+), 4 deletions

[PATCH] riscv: dts: Re-organize the DT nodes

2019-06-25 Thread Yash Shah
As per the convention for any SOC device with external connection, define only device DT node in SOC DTSi file with status = "disabled" and enable device in Board DTS file with status = "okay" Reported-by: Anup Patel Signed-off-by: Yash Shah --- arch/riscv/boot/dts/si

Re: [PATCH] riscv: dts: Re-organize SPI DT nodes

2019-06-25 Thread Yash Shah
On Tue, Jun 25, 2019 at 2:53 AM Paul Walmsley wrote: > > On Mon, 24 Jun 2019, Yash Shah wrote: > > > As per the General convention, define only device DT node in SOC DTSi > > file with status = "disabled" and enable device in Board DTS file with > > status = &

[PATCH] riscv: dts: Re-organize SPI DT nodes

2019-06-24 Thread Yash Shah
As per the General convention, define only device DT node in SOC DTSi file with status = "disabled" and enable device in Board DTS file with status = "okay" Reported-by: Anup Patel Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 3 +++

[PATCH v2] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver

2019-06-21 Thread Yash Shah
DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 16 arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 9 + 2 files changed, 25 insertions(+) diff --git a/arch

[PATCH v2] DT node for SiFive FU540 Ethernet Controller driver

2019-06-21 Thread Yash Shah
Change history: v2: - Set "status = disabled" in DTSI file and enable it in Board DTS file - Move PHY related nodes into board DTS file Yash Shah (1): riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver arch/riscv/boot/dts/sifive/fu540-c000.dtsi

Re: [PATCH] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver

2019-06-21 Thread Yash Shah
On Fri, Jun 21, 2019 at 2:31 PM Anup Patel wrote: > > On Fri, Jun 21, 2019 at 11:40 AM Yash Shah wrote: > > > > DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added > > > > Signed-off-by: Yash Shah > > --- > > arch/

[PATCH] DT node for SiFive FU540 Ethernet Controller driver

2019-06-21 Thread Yash Shah
Yash Shah (1): riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 20 1 file changed, 20 insertions(+) -- 1.9.1

[PATCH] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver

2019-06-21 Thread Yash Shah
DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540

[PATCH v3 2/2] macb: Add support for SiFive FU540-C000

2019-06-18 Thread Yash Shah
. Signed-off-by: Yash Shah --- drivers/net/ethernet/cadence/macb_main.c | 123 +++ 1 file changed, 123 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index c049410..15d0737 100644 --- a/drivers/net

[PATCH v3 0/2] Add macb support for SiFive FU540-C000

2019-06-18 Thread Yash Shah
register. - Fix the issue of probe fail on reloading the module reported by: Andreas Schwab Yash Shah (2): macb: bindings doc: add sifive fu540-c000 binding macb: Add support for SiFive FU540-C000 Documentation/devicetree/bindings/net/macb.txt | 3 + drivers/net/ethernet/cadence/macb_main.c

[PATCH v3 1/2] macb: bindings doc: add sifive fu540-c000 binding

2019-06-18 Thread Yash Shah
additional range to "reg" property for SiFive GEMGXL management IP registers. Signed-off-by: Yash Shah Reviewed-by: Paul Walmsley --- Documentation/devicetree/bindings/net/macb.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/m

Re: [PATCH v2 2/2] macb: Add support for SiFive FU540-C000

2019-06-17 Thread Yash Shah
On Mon, Jun 17, 2019 at 9:28 PM Andrew Lunn wrote: > > On Mon, Jun 17, 2019 at 09:49:27AM +0530, Yash Shah wrote: ... > > static const struct macb_config at91sam9260_config = { > > .caps = MACB_CAPS_USRIO_HAS_CLKEN | > > MACB_CAPS_USRIO_DEFAULT_IS_MII_G

Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-17 Thread Yash Shah
On Mon, Jun 17, 2019 at 3:58 PM Paul Walmsley wrote: > > On Mon, 17 Jun 2019, Yash Shah wrote: > > > On Mon, Jun 17, 2019 at 3:28 PM Paul Walmsley > > wrote: > > > > > On Mon, 17 Jun 2019, Andreas Schwab wrote: > > > > > > >

Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-17 Thread Yash Shah
On Mon, Jun 17, 2019 at 3:28 PM Paul Walmsley wrote: > > Hi Yash, > > On Mon, 17 Jun 2019, Andreas Schwab wrote: > > > On Jun 17 2019, Yash Shah wrote: > > > > > - Add "MACB_SIFIVE_FU540" in Kconfig to support SiFive FU540 in macb > > > d

Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-16 Thread Yash Shah
On Mon, Jun 17, 2019 at 9:49 AM Yash Shah wrote: > > On FU540, the management IP block is tightly coupled with the Cadence > MACB IP block. It manages many of the boundary signals from the MACB IP > This patchset controls the tx_clk input signal to the MACB IP. It > switches betwe

[PATCH v2 2/2] macb: Add support for SiFive FU540-C000

2019-06-16 Thread Yash Shah
. Signed-off-by: Yash Shah --- drivers/net/ethernet/cadence/Kconfig | 6 ++ drivers/net/ethernet/cadence/macb_main.c | 129 +++ 2 files changed, 135 insertions(+) diff --git a/drivers/net/ethernet/cadence/Kconfig b/drivers/net/ethernet/cadence/Kconfig index

[PATCH v2 1/2] macb: bindings doc: add sifive fu540-c000 binding

2019-06-16 Thread Yash Shah
additional range to "reg" property for SiFive GEMGXL management IP registers. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/net/macb.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bi

[PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-16 Thread Yash Shah
SiFive FU540 in macb driver. This is needed because on FU540, the macb driver depends on SiFive GPIO driver. - Avoid writing the result of a comparison to a register. - Fix the issue of probe fail on reloading the module reported by: Andreas Schwab Yash Shah (2): macb: bindings doc: add sifive fu540-c0

[PATCH v13 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-06-10 Thread Yash Shah
Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. Signed-off-by: Wesley W. Terpstra [Atish: Various fixes and code cleanup] Signed-off-by: Atish Patra Signed-off-by: Yash Shah --- drivers/pwm/Kconfig | 11 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm

[PATCH v13 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2019-06-10 Thread Yash Shah
DT documentation for PWM controller added. Signed-off-by: Wesley W. Terpstra [Atish: Compatible string update] Signed-off-by: Atish Patra Signed-off-by: Yash Shah Reviewed-by: Rob Herring --- .../devicetree/bindings/pwm/pwm-sifive.txt | 33 ++ 1 file changed, 33

[PATCH v13 0/2] PWM support for HiFive Unleashed

2019-06-10 Thread Yash Shah
in driver name - Remove use of of_match_ptr macro - Update the DT compatible strings and Add reference to a common versioning document Yash Shah (2): pwm: sifive: Add DT documentation for SiFive PWM Controller pwm: sifive: Add a driver for SiFive SoC PWM .../devicetree/bindings/pwm/pwm-sifive.txt

Re: [PATCH 0/2] net: macb: Add support for SiFive FU540-C000

2019-05-27 Thread Yash Shah
On Mon, May 27, 2019 at 1:34 PM Andreas Schwab wrote: > > On Mai 24 2019, Yash Shah wrote: > > > Hi Andreas, > > > > On Thu, May 23, 2019 at 6:19 PM Andreas Schwab wrote: > >> > >> On Mai 23 2019, Yash Shah wrote: > >> >

Re: [PATCH 1/2] net/macb: bindings doc: add sifive fu540-c000 binding

2019-05-23 Thread Yash Shah
On Fri, May 24, 2019 at 2:20 AM Rob Herring wrote: > > On Thu, May 23, 2019 at 6:46 AM Yash Shah wrote: > > > > Add the compatibility string documentation for SiFive FU540-C > > interface. > > On the FU540, this driver also needs to read and write register

Re: [PATCH 0/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Yash Shah
On Thu, May 23, 2019 at 9:58 PM David Miller wrote: > > > Please be consistent in your subsystem prefixes used in your Subject lines. > You use "net: macb:" then "net/macb:" Really, plain "macb: " is sufficient. Sure, Will take care of this in the next revision of this patch. Thanks for your

Re: [PATCH 2/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Yash Shah
On Thu, May 23, 2019 at 8:24 PM Andrew Lunn wrote: > > > +static int fu540_macb_tx_set_rate(struct clk_hw *hw, unsigned long rate, > > + unsigned long parent_rate) > > +{ > > + rate = fu540_macb_tx_round_rate(hw, rate, _rate); > > + iowrite32(rate !=

Re: [PATCH 0/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Yash Shah
Hi Andreas, On Thu, May 23, 2019 at 6:19 PM Andreas Schwab wrote: > > On Mai 23 2019, Yash Shah wrote: > > > On FU540, the management IP block is tightly coupled with the Cadence > > MACB IP block. It manages many of the boundary signals from the MACB IP > > This p

[PATCH 2/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Yash Shah
. Signed-off-by: Yash Shah --- drivers/net/ethernet/cadence/macb_main.c | 118 +++ 1 file changed, 118 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index c049410..a9e5227 100644 --- a/drivers/net

[PATCH 1/2] net/macb: bindings doc: add sifive fu540-c000 binding

2019-05-23 Thread Yash Shah
additional range to "reg" property for SiFive GEMGXL management IP registers. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/net/macb.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bi

[PATCH 0/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Yash Shah
patches needed for testing can be found at dev/yashs/ethernet branch of: https://github.com/yashshah7/riscv-linux.git Yash Shah (2): net/macb: bindings doc: add sifive fu540-c000 binding net: macb: Add support for SiFive FU540-C000 Documentation/devicetree/bindings/net/macb.txt | 3 + drivers

Re: [PATCH v2] edac: sifive: Add EDAC platform driver for SiFive SoCs

2019-05-20 Thread Yash Shah
On Mon, May 6, 2019 at 4:57 PM Yash Shah wrote: > > The initial ver of EDAC driver supports: > - ECC event monitoring and reporting through the EDAC framework for SiFive > L2 cache controller. > > The EDAC driver registers for notifier events from the L2 cache controller >

[PATCH v12 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-05-13 Thread Yash Shah
Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. Signed-off-by: Wesley W. Terpstra [Atish: Various fixes and code cleanup] Signed-off-by: Atish Patra Signed-off-by: Yash Shah --- drivers/pwm/Kconfig | 11 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm

[PATCH v12 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2019-05-13 Thread Yash Shah
DT documentation for PWM controller added. Signed-off-by: Wesley W. Terpstra [Atish: Compatible string update] Signed-off-by: Atish Patra Signed-off-by: Yash Shah Reviewed-by: Rob Herring --- .../devicetree/bindings/pwm/pwm-sifive.txt | 33 ++ 1 file changed, 33

[PATCH v12 0/2] PWM support for HiFive Unleashed

2019-05-13 Thread Yash Shah
versioning document Yash Shah (2): pwm: sifive: Add DT documentation for SiFive PWM Controller pwm: sifive: Add a driver for SiFive SoC PWM .../devicetree/bindings/pwm/pwm-sifive.txt | 33 ++ drivers/pwm/Kconfig| 11 + drivers/pwm/Makefile

Re: [PATCH v3 2/2] RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs

2019-05-07 Thread Yash Shah
On Tue, May 7, 2019 at 7:15 PM Andrew F. Davis wrote: > > On 5/7/19 2:48 AM, Yash Shah wrote: > > On Mon, May 6, 2019 at 5:48 PM Andrew F. Davis wrote: > >> > >> On 5/6/19 6:48 AM, Yash Shah wrote: > >>> The driver currently supports only SiFive FU

Re: [PATCH v11 0/2] PWM support for HiFive Unleashed

2019-05-07 Thread Yash Shah
Hi Andreas, On Tue, May 7, 2019 at 3:09 PM Andreas Schwab wrote: > > On Mai 02 2019, Yash Shah wrote: > > > The PWM default output state is high (When duty cycle is 0), So I > > guess leds will remain on by default. > > So that's the bug that needs to be fixed. Sorr

Re: [PATCH v3 2/2] RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs

2019-05-07 Thread Yash Shah
On Mon, May 6, 2019 at 5:48 PM Andrew F. Davis wrote: > > On 5/6/19 6:48 AM, Yash Shah wrote: > > The driver currently supports only SiFive FU540-C000 platform. > > > > The initial version of L2 cache controller driver includes: > > - Initial configuration repor

  1   2   >