mbox series

[v4,0/5] add DM based reset driver for SiFive SoC's

Message ID 1595580442-25485-1-git-send-email-sagar.kadam@sifive.com
Headers show
Series add DM based reset driver for SiFive SoC's | expand

Message

Sagar Shrikant Kadam July 24, 2020, 8:47 a.m. UTC
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

Comments

Sagar Shrikant Kadam July 27, 2020, 3:26 p.m. UTC | #1
Hi Rick,
> -----Original Message-----
> From: Sagar Kadam <sagar.kadam@sifive.com>
> Sent: Friday, July 24, 2020 2:17 PM
> To: u-boot@lists.denx.de
> Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> <paul.walmsley@sifive.com>; palmer@dabbelt.com; anup.patel@wdc.com;
> atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> weijie.gao@mediatek.com; nsaenzjulienne@suse.de; festevam@gmail.com;
> seanga2@gmail.com; Sagar Kadam <sagar.kadam@sifive.com>
> Subject: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> 
> 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
> 

I have rebased this series on u-boot/master.
Can you please pull it and let me know if any issues are there.

Thanks & BR,
Sagar

> 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
Sagar Shrikant Kadam July 28, 2020, 3:19 p.m. UTC | #2
Hello Rick,

> -----Original Message-----
> From: Sagar Kadam
> Sent: Monday, July 27, 2020 8:56 PM
> To: u-boot@lists.denx.de
> Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> <paul.walmsley@sifive.com>; palmer@dabbelt.com; anup.patel@wdc.com;
> atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> weijie.gao@mediatek.com; nsaenzjulienne@suse.de; festevam@gmail.com;
> seanga2@gmail.com
> Subject: RE: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> 
> Hi Rick,
> > -----Original Message-----
> > From: Sagar Kadam <sagar.kadam@sifive.com>
> > Sent: Friday, July 24, 2020 2:17 PM
> > To: u-boot@lists.denx.de
> > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > <paul.walmsley@sifive.com>; palmer@dabbelt.com;
> anup.patel@wdc.com;
> > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > weijie.gao@mediatek.com; nsaenzjulienne@suse.de;
> festevam@gmail.com;
> > seanga2@gmail.com; Sagar Kadam <sagar.kadam@sifive.com>
> > Subject: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> >
> > 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
> >
> 
> I have rebased this series on u-boot/master.
> Can you please pull it and let me know if any issues are there.
> 
It seems that u-boot/master is moved ahead and the commit on which this series 
was based is reverted "Revert "Merge tag 'dm-pull-20jul20' of git://git.denx.de/u-boot-dm""
and will again conflict considering other patch's that are merged in u-boot/master. 
I can rebase it again, but would like to know what you would prefer me to rebase on u-boot/master 
or  u-boot-riscv/master?

Thanks & BR,
Sagar

> Thanks & BR,
> Sagar
> 
> > 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
Simon Glass July 28, 2020, 6:58 p.m. UTC | #3
Hi Sagar,

On Tue, 28 Jul 2020 at 09:19, Sagar Kadam <sagar.kadam@sifive.com> wrote:
>
> Hello Rick,
>
> > -----Original Message-----
> > From: Sagar Kadam
> > Sent: Monday, July 27, 2020 8:56 PM
> > To: u-boot@lists.denx.de
> > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > <paul.walmsley@sifive.com>; palmer@dabbelt.com; anup.patel@wdc.com;
> > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > weijie.gao@mediatek.com; nsaenzjulienne@suse.de; festevam@gmail.com;
> > seanga2@gmail.com
> > Subject: RE: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> >
> > Hi Rick,
> > > -----Original Message-----
> > > From: Sagar Kadam <sagar.kadam@sifive.com>
> > > Sent: Friday, July 24, 2020 2:17 PM
> > > To: u-boot@lists.denx.de
> > > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > > <paul.walmsley@sifive.com>; palmer@dabbelt.com;
> > anup.patel@wdc.com;
> > > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > > jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> > > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > > weijie.gao@mediatek.com; nsaenzjulienne@suse.de;
> > festevam@gmail.com;
> > > seanga2@gmail.com; Sagar Kadam <sagar.kadam@sifive.com>
> > > Subject: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> > >
> > > 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
> > >
> >
> > I have rebased this series on u-boot/master.
> > Can you please pull it and let me know if any issues are there.
> >
> It seems that u-boot/master is moved ahead and the commit on which this series
> was based is reverted "Revert "Merge tag 'dm-pull-20jul20' of git://git.denx.de/u-boot-dm""
> and will again conflict considering other patch's that are merged in u-boot/master.
> I can rebase it again, but would like to know what you would prefer me to rebase on u-boot/master
> or  u-boot-riscv/master?

Can you take another look? The DM stuff landed again yesterday.

Regards,
Simon
Rick Chen July 29, 2020, 1:55 a.m. UTC | #4
Hi Sagar

> From: Sagar Kadam [mailto:sagar.kadam@sifive.com]
> Sent: Tuesday, July 28, 2020 11:19 PM
> To: u-boot@lists.denx.de
> Cc: Rick Jian-Zhi Chen(陳建志); Paul Walmsley ( Sifive); palmer@dabbelt.com; anup.patel@wdc.com; atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel; bin.meng@windriver.com; jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com; patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com; weijie.gao@mediatek.com; nsaenzjulienne@suse.de; festevam@gmail.com; seanga2@gmail.com
> Subject: RE: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
>
> Hello Rick,
>
> > -----Original Message-----
> > From: Sagar Kadam
> > Sent: Monday, July 27, 2020 8:56 PM
> > To: u-boot@lists.denx.de
> > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > <paul.walmsley@sifive.com>; palmer@dabbelt.com; anup.patel@wdc.com;
> > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > weijie.gao@mediatek.com; nsaenzjulienne@suse.de; festevam@gmail.com;
> > seanga2@gmail.com
> > Subject: RE: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> >
> > Hi Rick,
> > > -----Original Message-----
> > > From: Sagar Kadam <sagar.kadam@sifive.com>
> > > Sent: Friday, July 24, 2020 2:17 PM
> > > To: u-boot@lists.denx.de
> > > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > > <paul.walmsley@sifive.com>; palmer@dabbelt.com;
> > anup.patel@wdc.com;
> > > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > > jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> > > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > > weijie.gao@mediatek.com; nsaenzjulienne@suse.de;
> > festevam@gmail.com;
> > > seanga2@gmail.com; Sagar Kadam <sagar.kadam@sifive.com>
> > > Subject: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> > >
> > > 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
> > >
> >
> > I have rebased this series on u-boot/master.
> > Can you please pull it and let me know if any issues are there.
> >
> It seems that u-boot/master is moved ahead and the commit on which this series was based is reverted "Revert "Merge tag 'dm-pull-20jul20' of git://git.denx.de/u-boot-dm""
> and will again conflict considering other patch's that are merged in u-boot/master.
> I can rebase it again, but would like to know what you would prefer me to rebase on u-boot/master or  u-boot-riscv/master?

Yes, it conflict again.
Applying: configs: reset: fu540: enable dm reset framework for SiFive
error: patch failed: configs/sifive_fu540_defconfig:21
error: configs/sifive_fu540_defconfig: patch does not apply
Patch failed at 0001 configs: reset: fu540: enable dm reset framework for SiFive

You can rebase on u-boot-riscv/master.

Thanks,
Rick

>
> Thanks & BR,
> Sagar
>
> > Thanks & BR,
> > Sagar
> >
> > > 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
>
> CONFIDENTIALITY NOTICE:
>
> This e-mail (and its attachments) may contain confidential and legally privileged information or information protected from disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is strictly prohibited. In this case, please immediately notify the sender by return e-mail, delete the message (and any accompanying documents) and destroy all printed hard copies. Thank you for your cooperation.
>
> Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved.
Sagar Shrikant Kadam July 29, 2020, 3:32 a.m. UTC | #5
Hi Simon,
> -----Original Message-----
> From: Simon Glass <sjg@chromium.org>
> Sent: Wednesday, July 29, 2020 12:28 AM
> To: Sagar Kadam <sagar.kadam@sifive.com>
> Cc: u-boot@lists.denx.de; rick@andestech.com; Paul Walmsley ( Sifive)
> <paul.walmsley@sifive.com>; palmer@dabbelt.com; anup.patel@wdc.com;
> atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> jagan@amarulasolutions.com; twoerner@gmail.com; patrick@blueri.se;
> mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> weijie.gao@mediatek.com; nsaenzjulienne@suse.de; festevam@gmail.com;
> seanga2@gmail.com
> Subject: Re: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> Hi Sagar,
> 
> On Tue, 28 Jul 2020 at 09:19, Sagar Kadam <sagar.kadam@sifive.com> wrote:
> >
> > Hello Rick,
> >
> > > -----Original Message-----
> > > From: Sagar Kadam
> > > Sent: Monday, July 27, 2020 8:56 PM
> > > To: u-boot@lists.denx.de
> > > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > > <paul.walmsley@sifive.com>; palmer@dabbelt.com;
> anup.patel@wdc.com;
> > > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > > jagan@amarulasolutions.com; sjg@chromium.org;
> twoerner@gmail.com;
> > > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > > weijie.gao@mediatek.com; nsaenzjulienne@suse.de;
> festevam@gmail.com;
> > > seanga2@gmail.com
> > > Subject: RE: [PATCH v4 0/5] add DM based reset driver for SiFive
> > > SoC's
> > >
> > > Hi Rick,
> > > > -----Original Message-----
> > > > From: Sagar Kadam <sagar.kadam@sifive.com>
> > > > Sent: Friday, July 24, 2020 2:17 PM
> > > > To: u-boot@lists.denx.de
> > > > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > > > <paul.walmsley@sifive.com>; palmer@dabbelt.com;
> > > anup.patel@wdc.com;
> > > > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > > > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > > > jagan@amarulasolutions.com; sjg@chromium.org;
> twoerner@gmail.com;
> > > > patrick@blueri.se; mbrugger@suse.com;
> > > > Eugeniy.Paltsev@synopsys.com; weijie.gao@mediatek.com;
> > > > nsaenzjulienne@suse.de;
> > > festevam@gmail.com;
> > > > seanga2@gmail.com; Sagar Kadam <sagar.kadam@sifive.com>
> > > > Subject: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> > > >
> > > > 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
> > > >
> > >
> > > I have rebased this series on u-boot/master.
> > > Can you please pull it and let me know if any issues are there.
> > >
> > It seems that u-boot/master is moved ahead and the commit on which
> > this series was based is reverted "Revert "Merge tag 'dm-pull-20jul20' of
> git://git.denx.de/u-boot-dm""
> > and will again conflict considering other patch's that are merged in u-
> boot/master.
> > I can rebase it again, but would like to know what you would prefer me
> > to rebase on u-boot/master or  u-boot-riscv/master?
> 
> Can you take another look? The DM stuff landed again yesterday.
> 
Yes sure, I will revisit it again.

BR,
Sagar

> Regards,
> Simon
Sagar Shrikant Kadam July 29, 2020, 3:49 a.m. UTC | #6
Hi Rick,

> -----Original Message-----
> From: Rick Chen <rickchen36@gmail.com>
> Sent: Wednesday, July 29, 2020 7:26 AM
> To: Sagar Kadam <sagar.kadam@sifive.com>
> Cc: U-Boot Mailing List <u-boot@lists.denx.de>; Paul Walmsley ( Sifive)
> <paul.walmsley@sifive.com>; Palmer Dabbelt <palmer@dabbelt.com>; Anup
> Patel <anup.patel@wdc.com>; Atish Patra <atish.patra@wdc.com>; Lukasz
> Majewski <lukma@denx.de>; Pragnesh Patel <pragnesh.patel@sifive.com>;
> bin.meng@windriver.com; Jagan Teki <jagan@amarulasolutions.com>;
> Simon Glass <sjg@chromium.org>; Trevor Woerner <twoerner@gmail.com>;
> patrick@blueri.se; mbrugger@suse.com; Eugeniy Paltsev
> <Eugeniy.Paltsev@synopsys.com>; weijie.gao@mediatek.com;
> nsaenzjulienne@suse.de; festevam@gmail.com; Sean Anderson
> <seanga2@gmail.com>; rick <rick@andestech.com>; Alan Kao
> <alankao@andestech.com>
> Subject: Re: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> 
> [External Email] Do not click links or attachments unless you recognize the
> sender and know the content is safe
> 
> Hi Sagar
> 
> > From: Sagar Kadam [mailto:sagar.kadam@sifive.com]
> > Sent: Tuesday, July 28, 2020 11:19 PM
> > To: u-boot@lists.denx.de
> > Cc: Rick Jian-Zhi Chen(陳建志); Paul Walmsley ( Sifive);
> > palmer@dabbelt.com; anup.patel@wdc.com; atish.patra@wdc.com;
> > lukma@denx.de; Pragnesh Patel; bin.meng@windriver.com;
> > jagan@amarulasolutions.com; sjg@chromium.org; twoerner@gmail.com;
> > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > weijie.gao@mediatek.com; nsaenzjulienne@suse.de;
> festevam@gmail.com;
> > seanga2@gmail.com
> > Subject: RE: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> >
> > Hello Rick,
> >
> > > -----Original Message-----
> > > From: Sagar Kadam
> > > Sent: Monday, July 27, 2020 8:56 PM
> > > To: u-boot@lists.denx.de
> > > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > > <paul.walmsley@sifive.com>; palmer@dabbelt.com;
> anup.patel@wdc.com;
> > > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > > jagan@amarulasolutions.com; sjg@chromium.org;
> twoerner@gmail.com;
> > > patrick@blueri.se; mbrugger@suse.com; Eugeniy.Paltsev@synopsys.com;
> > > weijie.gao@mediatek.com; nsaenzjulienne@suse.de;
> festevam@gmail.com;
> > > seanga2@gmail.com
> > > Subject: RE: [PATCH v4 0/5] add DM based reset driver for SiFive
> > > SoC's
> > >
> > > Hi Rick,
> > > > -----Original Message-----
> > > > From: Sagar Kadam <sagar.kadam@sifive.com>
> > > > Sent: Friday, July 24, 2020 2:17 PM
> > > > To: u-boot@lists.denx.de
> > > > Cc: rick@andestech.com; Paul Walmsley ( Sifive)
> > > > <paul.walmsley@sifive.com>; palmer@dabbelt.com;
> > > anup.patel@wdc.com;
> > > > atish.patra@wdc.com; lukma@denx.de; Pragnesh Patel
> > > > <pragnesh.patel@sifive.com>; bin.meng@windriver.com;
> > > > jagan@amarulasolutions.com; sjg@chromium.org;
> twoerner@gmail.com;
> > > > patrick@blueri.se; mbrugger@suse.com;
> > > > Eugeniy.Paltsev@synopsys.com; weijie.gao@mediatek.com;
> > > > nsaenzjulienne@suse.de;
> > > festevam@gmail.com;
> > > > seanga2@gmail.com; Sagar Kadam <sagar.kadam@sifive.com>
> > > > Subject: [PATCH v4 0/5] add DM based reset driver for SiFive SoC's
> > > >
> > > > 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
> > > >
> > >
> > > I have rebased this series on u-boot/master.
> > > Can you please pull it and let me know if any issues are there.
> > >
> > It seems that u-boot/master is moved ahead and the commit on which this
> series was based is reverted "Revert "Merge tag 'dm-pull-20jul20' of
> git://git.denx.de/u-boot-dm""
> > and will again conflict considering other patch's that are merged in u-
> boot/master.
> > I can rebase it again, but would like to know what you would prefer me to
> rebase on u-boot/master or  u-boot-riscv/master?
> 
> Yes, it conflict again.
> Applying: configs: reset: fu540: enable dm reset framework for SiFive
> error: patch failed: configs/sifive_fu540_defconfig:21
> error: configs/sifive_fu540_defconfig: patch does not apply Patch failed at
> 0001 configs: reset: fu540: enable dm reset framework for SiFive
> 
> You can rebase on u-boot-riscv/master.
> 
Thanks for confirmation. I will rebase on u-boot-riscv/master.

BR,
Sagar


> Thanks,
> Rick
> 
> >
> > Thanks & BR,
> > Sagar
> >
> > > Thanks & BR,
> > > Sagar
> > >
> > > > 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
> >
> > CONFIDENTIALITY NOTICE:
> >
> > This e-mail (and its attachments) may contain confidential and legally
> privileged information or information protected from disclosure. If you are
> not the intended recipient, you are hereby notified that any disclosure,
> copying, distribution, or use of the information contained herein is strictly
> prohibited. In this case, please immediately notify the sender by return e-
> mail, delete the message (and any accompanying documents) and destroy all
> printed hard copies. Thank you for your cooperation.
> >
> > Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved.