boot and warm boot.
Change History:
===
V2:
-Rebased v1 on linux kernel v5.10-rc3.
V1:
-Ignore 4th patch as suggested and so removed it from the series.
-Verified this series on 5.7-rc5.
V0: Base RFC patch. Verified on 5.7-rc2
Sagar Shrikant Kadam (3):
dts: phy
[1]: VSC8541-01 datasheet:
https://www.mouser.com/ds/2/523/Microsemi_VSC8541-01_Datasheet_10496_V40-1148034.pdf
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/boot/dts/sifive/hifive-unlea
Ethernet phy VSC8541-01 on HiFive Unleashed has its reset line
connected to a gpio, so enable GPIO driver's required to reset
the phy.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b
The GEMGXL_RST line on HiFive Unleashed is pulled low and is
using GPIO number 12. Add these reset-gpio details to dt-node
using which the linux phylib can reset the phy.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
1 file changed, 1
nd OCORES_FLAG_BROKEN_IRQ flag.
V3:
-Rectified typo as suggested here:
https://lkml.org/lkml/2020/10/9/902
V2:
-Incorporated changes as suggested by Peter Kosgaard
https://lkml.org/lkml/2020/10/8/663
V1: Base version
Sagar Shrikant Kadam (1):
i2c: ocores: fix polling mode workaround on FU5
i2c0 node of the
device tree.
So check if it's the FU540-C000 soc and enable polling mode master
xfers, as the IRQ for this chip is broken.
Fixes commit c45d4ba86731 ("i2c: ocores: add polling mode workaround
for Sifive FU540-C000 SoC")
Signed-off-by: Sagar Shrikant Kadam
---
dri
tect -y 0"
turns the system unresponsive, with CPU stall messages.
Patch History:
===
V3:
-Rectified typo as suggested here:
https://lkml.org/lkml/2020/10/9/902
V2:
-Incorporated changes as suggested by Peter Kosgaard
https://lkml.org/lkml/2020/10/8/663
V1: Base
i2c0 node of the
device tree.
So check if it's the FU540-C000 soc and enable polling mode master
xfers, as the IRQ for this chip is broken.
Fixes commit c45d4ba86731 ("i2c: ocores: add polling mode workaround
for Sifive FU540-C000 SoC")
Signed-off-by: Sagar Shrikant Kadam
---
dri
tect -y 0"
turns the system unresponsive, with CPU stall messages.
Patch History:
===
V2:
-Incorporated changes as suggested by Peter Kosgaard
https://lkml.org/lkml/2020/10/8/663
V1: Base version
Sagar Shrikant Kadam (1):
i2c: ocores: fix polling mode wor
i2c0 node of the
device tree.
So check if it's the FU540-C000 soc and enable polling mode master
xfers, as the IRQ for this chip is broken.
Fixes commit c45d4ba86731 ("i2c: ocores: add polling mode workaround
for Sifive FU540-C000 SoC")
Signed-off-by: Sagar Shrikant Kadam
---
dri
i2c0 node of the
device tree.
So check if it's the FU540-C000 soc and enable polling mode master
xfers, as the IRQ for this chip is broken.
Fixes commit c45d4ba86731 ("i2c: ocores: add polling mode workaround
for Sifive FU540-C000 SoC")
Signed-off-by: Sagar Shrikant Kadam
---
dri
y
# i2cget 0 0x57 0 b -y
0x5a
# i2cget 0 0x6f 0 b -y
0x00
# i2cset 0 0x6f 0 0x5a b -y
# i2cget 0 0x6f 0 b -y
0x5a
Without the fix here, it's observed that "i2cdetect -y 0" turns the
system unresponsive, with CPU stall messages.
Sagar Shrikant Kadam (1):
i2c: ocores: fix p
Enable MTD based SPI-NOR framework in order to use spi flash available
on HiFive Unleashed A00 board, and move SPI_SIFIVE to Kconfig.socs. The
configurability of SPI_SIFIVE is retained and still can be enabled or
disabled as required.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv
35.23s
user0m 0.00s
sys 0m 23.97s
Serial Input Page Program operations:
> time mtd_debug write /dev/mtd0 0 33554432 rd32M
Copied 33554432 bytes from rd32M to address 0x in flash
real0m 39.25s
user0m 0.00s
sys 0m 27.93s
Signed-off-by: Sagar Shrikant Kadam
---
drive
lity using "imply" instead of "select"
V0: Base version patch (Tested on 5.7.0-rc3).
Sagar Shrikant Kadam (2):
riscv: defconfig: enable spi nor on Hifive Unleashed A00
spi: nor: update page program settings for is25wp256 using post bfpt
fixup
arch/riscv/Kconfig.socs
d on 5.7.0-rc3).
Sagar Shrikant Kadam (2):
riscv: defconfig: enable spi nor on Hifive Unleashed A00 board.
spi: nor: update page program settings for is25wp256 using post bfpt
fixup
arch/riscv/Kconfig.socs | 1 +
arch/riscv/configs/defconfig | 3 ++-
drivers/mtd/spi-nor/issi.c | 16
Enable MTD based SPI-NOR framework in order to use spi flash available
on HiFive Unleashed A00 board, and move SPI_SIFIVE to Kconfig.socs. The
configurability of SPI_SIFIVE is retained and still can be enabled or
disabled as required.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv
54432 bytes from rd32M to address 0x in flash
real0m 35.87s
user0m 0.00s
sys 0m 35.42s
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/issi.c | 16
1 file changed, 16 insertions(+)
diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi
41-01 datasheet:
https://www.mouser.com/ds/2/523/Microsemi_VSC8541-01_Datasheet_10496_V40-1148034.pdf
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
b/
The GEMGXL_RST line on HiFive Unleashed is pulled low and is
using GPIO number 12. Add these reset-gpio details to dt-node
using which the linux phylib can reset the phy.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
1 file changed, 1
patch. Verified on 5.7-rc2
Sagar Shrikant Kadam (3):
dts: phy: fix missing mdio device and probe failure of vsc8541-01
device
dts: phy: add GPIO number and active state used for phy reset
riscv: defconfig: enable gpio support for HiFive Unleashed
arch/riscv/boot/dts/sifive/hifive-unleashed-a0
Ethernet phy VSC8541-01 on HiFive Unleashed has its reset line
connected to a gpio, so enable GPIO driver's required to reset
the phy.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b
/b9fe49483a903f404e7acc15a6efbef756db28ae.ca...@wdc.com
Fixes: 45c054d0815b ("tty: serial: add driver for the SiFive UART")
Reported-by: Atish Patra
Signed-off-by: Sagar Shrikant Kadam
---
drivers/tty/serial/sifive.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/seria
ted issue from lore.kernel.org both in
cover-letter and in patch.
V0 : Base patch.
Sagar Shrikant Kadam (1):
tty: serial: add missing spin_lock_init for SiFive serial console
drivers/tty/serial/sifive.c | 1 +
1 file changed, 1 insertion(+)
--
2.7.4
Enable MTD based SPI-NOR framework in order to use spi flash
available on HiFive Unleashed A00 board.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index
(opcode: 0x12).
The patchset is tested on Linux 5.7-rc3.
Sagar Shrikant Kadam (2):
riscv: defconfig: enable spi nor on Hifive Unleashed A00 board.
spi: nor: update page program settings for is25wp256 using post bfpt
fixup
arch/riscv/configs/defconfig | 2 ++
drivers/mtd/spi-nor/issi.c
54432 bytes from rd32M to address 0x in flash
real0m 35.87s
user0m 0.00s
sys 0m 35.42s
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/issi.c | 16
1 file changed, 16 insertions(+)
diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi
g dt binding of VSC8531 device to include
VSC8541 device example.
Signed-off-by: Sagar Shrikant Kadam
---
Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt
b/Documentation/devi
Ethernet phy VSC8541-01 on HiFive Unleashed has its reset line
connected to a gpio, so enable GPIO driver's required to reset
the phy.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b
s set
without any failure.
So irrespective of whether the prior stages handle the phy reset sequence,
the probing is successful in both the cases of cold boot and warm boot.
Sagar Shrikant Kadam (4):
dts: phy: fix missing mdio device and probe failure of vsc8541-01
device
dts: phy: add
The GEMGXL_RST line on HiFive Unleashed is pulled low and is
using GPIO number 12. Add these reset-gpio details to dt-node
using which the linux phylib can reset the phy.
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
1 file changed, 1
41-01 datasheet:
https://www.mouser.com/ds/2/523/Microsemi_VSC8541-01_Datasheet_10496_V40-1148034.pdf
Signed-off-by: Sagar Shrikant Kadam
---
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
b/
Use the post bfpt fixup hook for the is25wp256 device as done for
is25lp256 device to overwrite the address width advertised by BFPT.
For instance the standard devices eg: IS25WP256D-JMLE where J stands
for "standard" does not support SFDP.
Signed-off-by: Sagar Shrikant Kadam
R
-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
Reviewed-by: Vignesh Raghavendra
---
drivers/mtd/spi-nor/spi-nor.c | 9 -
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/spi
ce.
-Add support for locking is25xx device.
v1:
-Add support for is25wp256 device.
Sagar Shrikant Kadam (2):
mtd: spi-nor: add support for is25wp256
mtd: spi-nor: fix nor->addr_width for is25wp256
drivers/mtd/spi-nor/spi-nor.c | 9 -
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 9 insertions(+), 1 deletion(-)
--
1.9.1
-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 265 ++
include/linux/mtd/spi-nor.h | 5 +
2 files changed, 222 insertions(+), 48 deletions(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 24c1c11
Use the post bfpt fixup hook for the is25wp256 device as done for
is25lp256 device to overwrite the address width advertised by BFPT.
For instance the standard devices eg: IS25WP256D-JMLE where J stands
for "standard" does not support SFDP.
Signed-off-by: Sagar Shrikant Kadam
R
-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
Reviewed-by: Vignesh Raghavendra
---
drivers/mtd/spi-nor/spi-nor.c | 9 -
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/spi
spell correction: "Configuration" in spansion_quad_enable function
description.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 72 ---
include/linux/mtd/spi-nor.h | 2 ++
2 files changed, 70 insertions(+), 4 deletion
rs regarding patch/cover letter
versioning, references of patch.
-Updated cover letter with description for flash operations verified with these
changes.
-Add support for unlocking is25xx device.
-Add support for locking is25xx device.
v1:
-Add support for is25wp256 device.
Sagar Shrik
Use the post bfpt fixup hook for the is25wp256 device as done for
is25lp256 device to overwrite the address width advertised by BFPT.
For instance the standard devices eg: IS25WP256D-JMLE where J stands
for "standard" does not support SFDP.
Signed-off-by: Sagar Shrikant Kadam
---
d
spell correction: "Configuration" in spansion_quad_enable function
description.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 72 ---
include/linux/mtd/spi-nor.h | 2 ++
2 files changed, 70 insertions(+), 4 deletion
-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 266 ++
include/linux/mtd/spi-nor.h | 5 +
2 files changed, 223 insertions(+), 48 deletions(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 4ed241d
letter with description for flash operations verified with these
changes.
-Add support for unlocking is25xx device.
-Add support for locking is25xx device.
v1:
-Add support for is25wp256 device.
Sagar Shrikant Kadam (4):
mtd: spi-nor: add support for is25wp256
mtd: spi-nor: fix nor
-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 9 -
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
/c94e267766d62bc9a669611c3d0c8ed5ea26569b
spell correction: "Configuration" in spansion_quad_enable function
description.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 66 ---
include/linux/mtd/spi-nor.h | 1 +
2 files c
Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 261 ++
include/linux/mtd/spi-nor.h | 6 +
2 files changed, 217 insertions(+), 50 deletions(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index d165fcd..16735fc 100644
--- a
code originally written by Wesley Terpstra
and/or Palmer Dabbelt
https://github.com/riscv/riscv-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 19 +++
include/linux/mtd/spi-nor.h | 1 +
2 files ch
-Add support for locking is25xx device.
v1:
-Add support for is25wp256 device.
Sagar Shrikant Kadam (3):
mtd: spi-nor: add support for is25wp256
mtd: spi-nor: add support to unlock flash device
mtd: spi-nor: add locking support for is25x device
drivers/mtd/spi-nor/spi-nor.c | 342 ++
tch/cover letter
versioning, references of patch.
-Updated cover letter with description for flash operations verified with these
changes.
-Add support for unlocking is25xx device.
-Add support for locking is25xx device.
v1:
-Add support for is25wp256 device.
Sagar Shrikant Kadam (3)
-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 10 +-
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi
and/or Palmer Dabbelt .
https://github.com/riscv/riscv-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 51 ++-
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 51
Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 291 ++
include/linux/mtd/spi-nor.h | 5 +
2 files changed, 245 insertions(+), 51 deletions(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index b7c6261..9281ec0 100644
--- a
OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
The polling function identifies a SiFive device based on the device node
and enables the workaround.
Signed-off-by: Sagar Shrikant Kadam
Reviewed-by: Andrew Lunn
---
drivers/i2c/busses/i2c-ocores.c | 24 ++--
1 file cha
-C000 SoC from sifive, has an Opencore's I2C block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Document
SIFIVE_FLAG_POLL to OCORES_FLAG_BROKEN_IRQ
V1:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocores: sifive: add support for i2c device on FU540-c000 So
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index c3dabee..b334fa2 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
The polling function identifies a SiFive device based on the device node
and enables the workaround.
Signed-off-by: Sagar Shrikant Kadam
Acked-by: Andrew Lunn
---
drivers/i2c/busses/i2c-ocores.c | 24 ++--
1 file cha
SIFIVE_FLAG_POLL to OCORES_FLAG_BROKEN_IRQ
V1:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocores: sifive: add support for i2c device on FU540-c000 So
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index c3dabee..b334fa2 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
-C000 SoC from sifive, has an Opencore's I2C block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Document
OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
The polling function identifies a SiFive device based on the device node
and enables the workaround.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 24 ++--
1 file changed, 22 insertions(+), 2 d
SIFIVE_FLAG_POLL to OCORES_FLAG_BROKEN_IRQ
V1:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocores: sifive: add support for i2c device on FU540-c000 So
-C000 SoC from sifive, has an Opencore's I2C block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Document
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index c3dabee..b334fa2 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
The polling function identifies a SiFive device based on the device node
and enables the workaround.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 24 ++--
1 file changed, 22 insertions(+), 2 d
OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
The polling function identifies a SiFive device based on the device node
and enables the workaround.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 24 ++--
1 file changed, 22 insertions(+), 2 d
-C000 SoC from sifive, has an Opencore's I2C block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Document
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index c3dabee..b334fa2 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
mode hooks for SoC specific fix to handle broken IRQ
(i2c-ocores).
V1<->V2:
-Incorporate review comments from Andrew
-Extend dt bindings into i2c-ocores.txt instead of adding new file
-Rename SIFIVE_FLAG_POLL to OCORES_FLAG_BROKEN_IRQ
V1:
-Update dt bindings for sifive i2c devices
-Fix broken
OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
The polling function identifies a SiFive device based on the device node
and enables the workaround.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 38 +-
1 file changed, 33 i
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index c3dabee..b334fa2 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
s into i2c-ocores.txt instead of adding new file
-Rename SIFIVE_FLAG_POLL to OCORES_FLAG_BROKEN_IRQ
V1:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocores: sif
-C000 SoC from sifive, has an Opencore's I2C block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Document
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index 4e1a077..aee1d86 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
t;)
The workaround / fix under OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 22 --
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/
block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 7 ++-
1
adding new file
-Rename SIFIVE_FLAG_POLL to OCORES_FLAG_BROKEN_IRQ
V1:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocores: sifive: add support for i2c device
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index 4e1a077..aee1d86 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 7 ++-
1
t;)
The workaround / fix under OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 31 ++-
1 file changed, 26 insertions(+), 5 deletions(-)
diff --git a/drivers/i2c/busses/i2c-ocores.c
V1:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocores: sifive: add support for i2c device on FU540-c000 SoC.
i2c-ocores: sifive: add polling mode workaround for FU
t;)
The workaround / fix under OCORES_FLAG_BROKEN_IRQ is particularly for
FU540-COOO SoC.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 34 --
1 file changed, 28 insertions(+), 6 deletions(-)
diff --git a/drivers/i2c/busses/i2c-ocores.c
-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index 4e1a077..aee1d86 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -
block
reimplementation.
The DT compatibility string for this IP is present in HDL and available at.
https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73
Signed-off-by: Sagar Shrikant Kadam
---
Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 7 ++-
1
file
-Rename SIFIVE_FLAG_POLL to OCORES_FLAG_BROKEN_IRQ
V1:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocore: sifive: add support for i2c device on FU540-c00
and/or Palmer Dabbelt .
https://github.com/riscv/riscv-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 51 ++-
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 51
cannot be modified.
Some common code from stm_lock/unlock implementation is extracted so that
it can be re-used for issi devices.The locking scheme has been tested on
HiFive Unleashed board, having is25wp256 flash memory.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 288
-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 10 +-
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi
x device
-Add support for locking is25xx device.
v1:
-Add support for is25wp256 device.
Sagar Shrikant Kadam (3):
mtd: spi-nor: add support for is25wp256
mtd: spi-nor: add support to unlock flash device.
mtd: spi-nor: add locking support for is25x device
dr
is25wp256d device.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 51 +++
1 file changed, 51 insertions(+)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 3942b26..5986260 100644
--- a/drivers/mtd/spi
and/or Palmer Dabbelt .
https://github.com/riscv/riscv-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 51 ++-
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 51
-linux/commit/c94e267766d62bc9a669611c3d0c8ed5ea26569b
Signed-off-by: Sagar Shrikant Kadam
---
drivers/mtd/spi-nor/spi-nor.c | 10 +-
include/linux/mtd/spi-nor.h | 1 +
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi
ice.
Sagar Shrikant Kadam (3):
mtd: spi-nor: add support for is25wp256
mtd: spi-nor: add support to unlock flash device.
mtd: spi-nor: add locking support for is25x device
drivers/mtd/spi-nor/spi-nor.c | 110 +-
include/linux/mtd/spi-nor.h | 2 +
2 f
0:
-Update dt bindings for sifive i2c devices
-Fix broken IRQ affecting i2c polling mode interface.
Sagar Shrikant Kadam (3):
dt-bindings: i2c: extend existing opencore bindings.
i2c-ocore: sifive: add support for i2c device on FU540-c000 SoC.
i2c-ocores: sifive: add polling mode wor
Update device id table for Opencores I2C master used in HiFive Unleashed
platform having FU540-c000 chipset.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c
N_IRQ is particularly for
FU540-COOO SoC.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 28
1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index 7bf7b0c..8b9
Add FU540-C000 specific device tree bindings to already
available i2-ocores file. This device is available on
HiFive Unleashed Rev A00 board.
Signed-off-by: Sagar Shrikant Kadam
---
Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 20
1 file changed, 20 insertions
Update device id table for Opencores I2C master used in HiFive Unleashed
platform having FU540-c000 chipset.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c
-COOO SoC.
Signed-off-by: Sagar Shrikant Kadam
---
drivers/i2c/busses/i2c-ocores.c | 28
1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index 7bf7b0c..08cdfed 100644
--- a/drivers/i2c/
1 - 100 of 109 matches
Mail list logo