All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
@ 2020-07-24  8:47 Sagar Shrikant Kadam
  2020-07-24  8:47 ` [PATCH v4 1/5] dt-bindings: prci: add indexes for reset signals available in prci Sagar Shrikant Kadam
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Sagar Shrikant Kadam @ 2020-07-24  8:47 UTC (permalink / raw)
  To: u-boot

The FU540-C000 support in U-Boot is missing DM based reset driver,
and is handling reset's to sub-system within the prci driver itself.
The series here adds a generic DM reset driver for SiFive SoC's so as 
to leverage the U-Boot's reset framework and binds the reset driver with
prci driver.
The PRCI driver takes care of triggering the consumers reset signals
appropriately.

Patch 1: Add necessary dt indexes for device reset register.
Patch 2: Update macro's to use common dt indexes from binding header. 
Patch 3: Add reset producer and consumer entries within the device tree.
Patch 4: Add reset dm driver and bind it within prci module.
Patch 5: Add Kconfig, Makefile entries and enable the driver

This series is re-based on mainline U-Boot commit 5d3a21df6694 ("Merge tag
 'dm-pull-20jul20' of git://git.denx.de/u-boot-dm") and depends on [1]

[1] https://patchwork.ozlabs.org/project/uboot/list/?series=190862

History:
==========================
V4:
-Rebased the series to u-boot/master. 

V3:
-Add reset indexes in separate dt binding header instead of
 updating the clock dt binding header which is synced from Linux

V2:
-Removed extra character in commit log of 2nd patch 

V1:
-Base version.

Sagar Shrikant Kadam (5):
  dt-bindings: prci: add indexes for reset signals available in prci
  fu540: prci: use common reset indexes defined in binding header
  fu540: dtsi: add reset producer and consumer entries
  sifive: reset: add DM based reset driver for SiFive SoC's
  configs: reset: fu540: enable dm reset framework for SiFive

 arch/riscv/dts/fu540-c000-u-boot.dtsi         |  12 +++
 arch/riscv/include/asm/arch-fu540/reset.h     |  13 +++
 configs/sifive_fu540_defconfig                |   2 +
 drivers/clk/sifive/fu540-prci.c               |  90 ++++++++++++++------
 drivers/reset/Kconfig                         |   9 ++
 drivers/reset/Makefile                        |   1 +
 drivers/reset/reset-sifive.c                  | 118 ++++++++++++++++++++++++++
 include/dt-bindings/reset/sifive-fu540-prci.h |  19 +++++
 8 files changed, 239 insertions(+), 25 deletions(-)
 create mode 100644 arch/riscv/include/asm/arch-fu540/reset.h
 create mode 100644 drivers/reset/reset-sifive.c
 create mode 100644 include/dt-bindings/reset/sifive-fu540-prci.h

-- 
2.7.4

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-07-29  3:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  8:47 [PATCH v4 0/5] add DM based reset driver for SiFive SoC's Sagar Shrikant Kadam
2020-07-24  8:47 ` [PATCH v4 1/5] dt-bindings: prci: add indexes for reset signals available in prci Sagar Shrikant Kadam
2020-07-24  8:47 ` [PATCH v4 2/5] fu540: prci: use common reset indexes defined in binding header Sagar Shrikant Kadam
2020-07-24  8:47 ` [PATCH v4 3/5] fu540: dtsi: add reset producer and consumer entries Sagar Shrikant Kadam
2020-07-24  8:47 ` Sagar Shrikant Kadam
2020-07-24  8:47 ` [PATCH v4 4/5] sifive: reset: add DM based reset driver for SiFive SoC's Sagar Shrikant Kadam
2020-07-24  8:47 ` [PATCH v4 5/5] configs: reset: fu540: enable dm reset framework for SiFive Sagar Shrikant Kadam
2020-07-27 15:26 ` [PATCH v4 0/5] add DM based reset driver for SiFive SoC's Sagar Kadam
2020-07-28 15:19   ` Sagar Kadam
2020-07-28 18:58     ` Simon Glass
2020-07-29  3:32       ` Sagar Kadam
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FA472CA0A@ATCPCS16.andestech.com>
2020-07-29  1:55       ` Rick Chen
2020-07-29  3:49         ` Sagar Kadam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.