[RFC v2 0/2] PWM support for HiFive Unleashed

2018-12-13 Thread Yash Shah
ments 3. Replace ioread32/iowrite32 with readl/writel 4. Remove camelcase 5. Change dev_info to dev_dbg for unnecessary log 6. Correct typo in driver name 7. Remove use of of_match_ptr macro 8. Update the DT compatible strings and Add reference to a common versioning document Yash

[RFC v2 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2018-12-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 | 10 +++ drivers/pwm/Makefile | 1 + drivers/pw

[RFC v2 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2018-12-13 Thread Yash Shah
DT documentation for PWM controller added with updated compatible string. Signed-off-by: Wesley W. Terpstra [Atish: Compatible string update] Signed-off-by: Atish Patra Signed-off-by: Yash Shah --- .../devicetree/bindings/pwm/pwm-sifive.txt | 44 ++ 1 file changed

Re: [RFC v2 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2019-01-03 Thread Yash Shah
On Tue, Dec 18, 2018 at 10:50 PM Rob Herring wrote: > > On Fri, Dec 14, 2018 at 11:50:41AM +0530, Yash Shah wrote: > > DT documentation for PWM controller added with updated compatible > > string. > > > > Signed-off-by: Wesley W. Terpstra > > [Atish: Compati

Re: [RFC v2 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2019-01-03 Thread Yash Shah
On Tue, Dec 18, 2018 at 2:46 AM Uwe Kleine-König wrote: > > On Fri, Dec 14, 2018 at 11:50:41AM +0530, Yash Shah wrote: > > DT documentation for PWM controller added with updated compatible > > string. > > > > Signed-off-by: Wesley W. Terpstra > > [Atish: Comp

Re: [RFC v2 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-01-03 Thread Yash Shah
On Tue, Dec 18, 2018 at 3:42 AM Uwe Kleine-König wrote: > > On Fri, Dec 14, 2018 at 11:50:42AM +0530, Yash Shah wrote: > > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > > > Signed-off-by: Wesley W. Terpstra > > [Atish: Various fix

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

2019-03-01 Thread Yash Shah
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 | 33 ++ driv

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

2019-03-01 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 v8 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-01 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/pw

[PATCH 0/2] L2 cache controller support for SiFive FU540

2019-04-24 Thread Yash Shah
of: https://github.com/yashshah7/riscv-linux.git Yash Shah (2): RISC-V: Add DT documentation for SiFive L2 Cache Controller RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs .../devicetree/bindings/riscv/sifive-l2-cache.txt | 53 + arch/riscv/m

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

2019-04-24 Thread Yash Shah
The driver currently supports only SiFive FU540-C000 platform. The initial version of L2 cache controller driver includes: - Initial configuration reporting at boot up. - Support for ECC related functionality. Signed-off-by: Yash Shah --- arch/riscv/mm/Makefile | 1 + arch/riscv/mm

[PATCH 1/2] RISC-V: Add DT documentation for SiFive L2 Cache Controller

2019-04-24 Thread Yash Shah
Add device tree bindings for SiFive FU540 L2 cache controller driver Signed-off-by: Yash Shah --- .../devicetree/bindings/riscv/sifive-l2-cache.txt | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/sifive-l2-cache.txt

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

2019-04-25 Thread Yash Shah
On Thu, Apr 25, 2019 at 3:48 PM Sudeep Holla wrote: > > On Thu, Apr 25, 2019 at 11:24:56AM +0530, Yash Shah wrote: > > The driver currently supports only SiFive FU540-C000 platform. > > > > The initial version of L2 cache controller driver includes: > > - Initial c

Re: [PATCH 1/2] RISC-V: Add DT documentation for SiFive L2 Cache Controller

2019-04-25 Thread Yash Shah
On Thu, Apr 25, 2019 at 3:43 PM Sudeep Holla wrote: > > On Thu, Apr 25, 2019 at 11:24:55AM +0530, Yash Shah wrote: > > Add device tree bindings for SiFive FU540 L2 cache controller driver > > > > Signed-off-by: Yash Shah > > --- > > .../devicetree/bind

[PATCH 0/2] L2 Cache EDAC Support for HiFive Unleashed

2019-03-12 Thread Yash Shah
This patch series adds a L2 Cache EDAC driver and DT documentation for HiFive Unleashed board. Yash Shah (2): edac: sifive: Add DT documentation for SiFive L2 cache Controller sifive: edac: Add EDAC driver for Sifive l2 Cache Controller .../devicetree/bindings/edac/sifive-edac-l2.txt

[PATCH 2/2] sifive: edac: Add EDAC driver for Sifive l2 Cache Controller

2019-03-12 Thread Yash Shah
Add driver for the SiFive L2 cache controller on the HiFive Unleashed board Signed-off-by: Yash Shah --- arch/riscv/Kconfig| 1 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1 + drivers/edac/sifive_edac-l2.c | 292

[PATCH 1/2] edac: sifive: Add DT documentation for SiFive L2 cache Controller

2019-03-12 Thread Yash Shah
DT documentation for L2 cache controller added. Signed-off-by: Yash Shah --- .../devicetree/bindings/edac/sifive-edac-l2.txt| 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/sifive-edac-l2.txt diff --git a/Documentation

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

2019-03-15 Thread Yash Shah
On Tue, Mar 12, 2019 at 3:44 PM Andreas Schwab wrote: > > On Mär 12 2019, Yash Shah wrote: > > > This patch series adds a PWM driver and DT documentation > > for HiFive Unleashed board. The patches are mostly based on > > Wesley's patch. > > Heartbeat trigge

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

2019-02-06 Thread Yash Shah
On Wed, Jan 30, 2019 at 1:44 PM Uwe Kleine-König wrote: > > On Tue, Jan 29, 2019 at 05:13:18PM +0530, Yash Shah wrote: > > DT documentation for PWM controller added. > > > > Signed-off-by: Wesley W. Terpstra > > [Atish: Compatible string update] > > Signed-of

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

2019-02-07 Thread Yash Shah
On Wed, Feb 6, 2019 at 6:14 PM Thierry Reding wrote: > > On Tue, Jan 29, 2019 at 05:13:19PM +0530, Yash Shah wrote: > [...] > > diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c > [...] > > +static void pwm_sifive_update_clock(stru

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

2019-03-25 Thread Yash Shah
'On Mon, Mar 25, 2019 at 9:24 PM Andreas Schwab wrote: > > > I still don't see any improvement. FYI, this is the patch I use for the > device tree: > I am sharing you my test environment which has been working for me so that you can duplicate at your end I have tested the patch on Linux v5.0-rc

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

2019-02-26 Thread Yash Shah
On Fri, Feb 22, 2019 at 2:46 AM Uwe Kleine-König wrote: > > On Thu, Feb 21, 2019 at 02:41:41PM +0530, Yash Shah wrote: > > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > > > Signed-off-by: Wesley W. Terpstra > > [Atish: Various fix

[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 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 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 0/9] arch: riscv: add board and SoC DT file support

2020-12-07 Thread Yash Shah
1-git-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):

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

[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

[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

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

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; > r.

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

[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 0/4] arch: riscv: add board and SoC DT file support

2020-12-02 Thread Yash Shah
1-git-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:

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

[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

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

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

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

[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

[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

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

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

2019-02-11 Thread Yash Shah
On Thu, Feb 7, 2019 at 3:47 PM Uwe Kleine-König wrote: > > Hello, > > On Tue, Jan 29, 2019 at 05:13:19PM +0530, Yash Shah wrote: > > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > > > Signed-off-by: Wesley W. Terpstra > &g

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

2019-03-18 Thread Yash Shah
ary log - Correct typo 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 .../de

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

2019-03-18 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 v10 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-18 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/pw

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

2019-03-18 Thread Yash Shah
On Mon, Mar 18, 2019 at 10:56 PM Andreas Schwab wrote: > > On Mär 15 2019, Yash Shah wrote: > > > You need to make sure the period setting is passed via the > > conventional way in DT file. > > Example: > > pwmleds { > > compatible = "pwm-leds"

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

2019-03-19 Thread Yash Shah
On Tue, Mar 19, 2019 at 3:16 AM Uwe Kleine-König wrote: > > Hello, > > [I put Thierry into To: because some remaining questions depend on his > views] > > On Mon, Mar 18, 2019 at 05:17:14PM +0530, Yash Shah wrote: > > Adds a PWM driver for PWM chip present in Si

[PATCH 0/2] EDAC Support for SiFive SoCs

2019-03-20 Thread Yash Shah
found at dev/yashs/L2_cache_controller branch of: https://github.com/yashshah7/riscv-linux.git Yash Shah (2): edac: sifive: Add DT documentation for SiFive EDAC driver and subcomponent edac: sifive: Add EDAC driver for SiFive FU540-C000 chip .../devicetree/bindings/edac/sifive-edac.txt

[PATCH 1/2] edac: sifive: Add DT documentation for SiFive EDAC driver and subcomponent

2019-03-20 Thread Yash Shah
DT documentation for EDAC driver added. DT documentation for subcomponent L2 cache controller also added. Signed-off-by: Yash Shah --- .../devicetree/bindings/edac/sifive-edac.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 2/2] edac: sifive: Add EDAC driver for SiFive FU540-C000 chip

2019-03-20 Thread Yash Shah
this EDAC driver. Signed-off-by: Yash Shah --- arch/riscv/Kconfig | 1 + drivers/edac/Kconfig | 13 ++ drivers/edac/Makefile | 1 + drivers/edac/sifive_edac.c | 297 + 4 files changed, 312 insertions(+) create mode 100644

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

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

[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

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

2019-09-16 Thread Yash Shah
e,fu540-c000-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 i

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

2019-08-19 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. It

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

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

2019-02-13 Thread Yash Shah
On Wed, Feb 13, 2019 at 4:05 PM Uwe Kleine-König wrote: > > Hello, > > On Wed, Feb 13, 2019 at 02:56:18PM +0530, Yash Shah wrote: > > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > > > Signed-off-by: Wesley W. Terpstra > &g

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

2019-02-14 Thread Yash Shah
On Thu, Feb 14, 2019 at 2:07 AM Rob Herring wrote: > > On Wed, Feb 13, 2019 at 02:56:17PM +0530, Yash Shah wrote: > > DT documentation for PWM controller added. > > > > Signed-off-by: Wesley W. Terpstra > > [Atish: Compatible string update] > > Signed-off-by:

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

2019-02-14 Thread Yash Shah
On Thu, Feb 14, 2019 at 2:04 PM Uwe Kleine-König wrote: > > Hello, > > On Thu, Feb 14, 2019 at 01:25:27PM +0530, Yash Shah wrote: > > On Wed, Feb 13, 2019 at 4:05 PM Uwe Kleine-König > > wrote: > > > On Wed, Feb 13, 2019 at 02:56:18PM +0530, Yash Shah wrote: >

[PATCH 0/2] SPI support for HiFive Unleashed

2019-02-19 Thread Yash Shah
This patch series adds a SPI driver and DT documentation for HiFive Unleashed board. Yash Shah (2): spi: sifive: Add DT documentation for SiFive SPI controller spi: sifive: Add driver for the SiFive SPI controller .../devicetree/bindings/spi/spi-sifive.txt | 37 ++ drivers/spi

[PATCH 2/2] spi: sifive: Add driver for the SiFive SPI controller

2019-02-19 Thread Yash Shah
Add driver for the SiFive SPI controller on the HiFive Unleashed board. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing Signed-off-by: Yash Shah --- drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-sifive.c | 450

[PATCH 1/2] spi: sifive: Add DT documentation for SiFive SPI controller

2019-02-19 Thread Yash Shah
DT documentation for SPI controller added. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing Signed-off-by: Yash Shah --- .../devicetree/bindings/spi/spi-sifive.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation

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

2019-02-21 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 --- .../devicetree/bindings/pwm/pwm-sifive.txt | 33 ++ 1 file changed, 33 insertions(+) create mode

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

2019-02-21 Thread Yash Shah
cial alignments - Replace ioread32/iowrite32 with readl/writel - Remove camelcase - Change dev_info to dev_dbg for unnecessary log - Correct typo 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): p

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

2019-02-21 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/pw

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

2019-01-29 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 --- .../devicetree/bindings/pwm/pwm-sifive.txt | 33 ++ 1 file changed, 33 insertions(+) create mode

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

2019-01-29 Thread Yash Shah
icial alignments - Replace ioread32/iowrite32 with readl/writel - Remove camelcase - Change dev_info to dev_dbg for unnecessary log - Correct typo 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):

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

2019-01-29 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/pw

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

2019-01-16 Thread Yash Shah
On Wed, Jan 16, 2019 at 1:41 AM Uwe Kleine-König wrote: > > Hello, > > this is v3, right? It is helpful to point this out to ease reviewing. Yes, it is v3. Will take care of this in v4. > > On Fri, Jan 11, 2019 at 01:52:43PM +0530, Yash Shah wrote: > > DT documentation

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

2019-01-16 Thread Yash Shah
On Wed, Jan 16, 2019 at 3:30 AM Uwe Kleine-König wrote: > > Hello, > > On Fri, Jan 11, 2019 at 01:52:44PM +0530, Yash Shah wrote: > > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > > > Signed-off-by: Wesley W. Terpstra > &g

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

2019-01-16 Thread Yash Shah
On Wed, Jan 16, 2019 at 10:16 PM Uwe Kleine-König wrote: > > Hello, > > On Wed, Jan 16, 2019 at 04:40:42PM +0530, Yash Shah wrote: > > On Wed, Jan 16, 2019 at 3:30 AM Uwe Kleine-König > > wrote: > > > On Fri, Jan 11, 2019 at 01:52:44PM +0530, Yash Shah wrote:

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

2019-01-21 Thread Yash Shah
po 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/pw

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

2019-01-21 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 --- .../devicetree/bindings/pwm/pwm-sifive.txt | 37 ++ 1 file changed, 37 insertions(+) create mode

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

2019-01-21 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/pw

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

2019-01-24 Thread Yash Shah
On Mon, Jan 21, 2019 at 8:29 PM Rob Herring wrote: > > On Mon, Jan 21, 2019 at 03:50:42PM +0530, Yash Shah wrote: > > DT documentation for PWM controller added. > > > > Signed-off-by: Wesley W. Terpstra > > [Atish: Compatible string update] > > Signed-off-by:

[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

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

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 >

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

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, &parent_rate); > > + iowrite32(rate != 12

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 com

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

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

[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
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 | 33 ++ drivers/pwm/Kconfig| 1

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

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

2019-05-06 Thread Yash Shah
Hi james, On Thu, May 2, 2019 at 10:12 PM James Morse wrote: > > Hi Yash, > > Sorry for the delay on the earlier version of this - I was trying to work out > what happens > when multiple edac drivers probe based on DT... > > > On 02/05/2019 12:16, Yash Shah wrote:

[PATCH v3 1/2] RISC-V: Add DT documentation for SiFive L2 Cache Controller

2019-05-06 Thread Yash Shah
Add device tree bindings for SiFive FU540 L2 cache controller driver Signed-off-by: Yash Shah --- .../devicetree/bindings/riscv/sifive-l2-cache.txt | 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/sifive-l2-cache.txt

[PATCH v3 0/2] L2 cache controller support for SiFive FU540

2019-05-06 Thread Yash Shah
27; - Add "cache" to supported compatible string property - Remove conditional checks from debugfs functions in sifive_l2_cache.c Yash Shah (2): RISC-V: Add DT documentation for SiFive L2 Cache Controller RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs .../de

  1   2   >