[PATCH 4/5] sifive: reset: add DM based reset driver for SiFive SoC's

Sagar Kadam sagar.kadam at sifive.com
Wed Jun 24 08:53:35 CEST 2020


Hi,

> -----Original Message-----
> From: Sean Anderson <seanga2 at gmail.com>
> Sent: Wednesday, June 24, 2020 10:49 AM
> To: Bin Meng <bmeng.cn at gmail.com>
> Cc: Sagar Kadam <sagar.kadam at sifive.com>; U-Boot Mailing List <u-
> boot at lists.denx.de>; Rick Chen <rick at andestech.com>; Paul Walmsley (
> Sifive) <paul.walmsley at sifive.com>; Palmer Dabbelt
> <palmer at dabbelt.com>; Anup Patel <anup.patel at wdc.com>; Atish Patra
> <atish.patra at wdc.com>; Lukasz Majewski <lukma at denx.de>; Pragnesh
> Patel <pragnesh.patel at sifive.com>; Jagan Teki
> <jagan at amarulasolutions.com>; Simon Glass <sjg at chromium.org>;
> twoerner at gmail.com; Patrick Wildt <patrick at blueri.se>; Fabio Estevam
> <festevam at gmail.com>; Weijie Gao <weijie.gao at mediatek.com>; Eugeniy
> Paltsev <Eugeniy.Paltsev at synopsys.com>
> Subject: Re: [PATCH 4/5] sifive: reset: 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
> 
> On 6/24/20 1:15 AM, Bin Meng wrote:
> > Hi Sean,
> >
> > On Wed, Jun 24, 2020 at 1:04 PM Sean Anderson <seanga2 at gmail.com>
> wrote:
> >>
> >> On 6/24/20 1:01 AM, Bin Meng wrote:
> >>> Hi Sean,
> >>>
> >>> On Wed, Jun 24, 2020 at 12:17 PM Sean Anderson
> <seanga2 at gmail.com> wrote:
> >>>>
> >>>> On 6/22/20 8:27 AM, Sagar Shrikant Kadam wrote:
> >>>>> The resets to DDR and ethernet sub-system are connected to PRCI
> >>>>> device reset control register, these reset signals are active low
> >>>>> and are held low at power-up. Add these reset producer and
> >>>>> consumer details needed by the reset driver.
> >>>>>
> >>>>> Signed-off-by: Sagar Shrikant Kadam <sagar.kadam at sifive.com>
> >>>>> Reviewed-by: Pragnesh Patel <Pragnesh.patel at sifive.com>
> >>>>> ---
> >>>>>  arch/riscv/dts/fu540-c000-u-boot.dtsi | 10 ++++++++++
> >>>>>  1 file changed, 10 insertions(+)
> >>>>>
> >>>>> diff --git a/arch/riscv/dts/fu540-c000-u-boot.dtsi
> >>>>> b/arch/riscv/dts/fu540-c000-u-boot.dtsi
> >>>>> index 9bba554..b37241e 100644
> >>>>> --- a/arch/riscv/dts/fu540-c000-u-boot.dtsi
> >>>>> +++ b/arch/riscv/dts/fu540-c000-u-boot.dtsi
> >>>>> @@ -59,6 +59,16 @@
> >>>>>                       reg = <0x0 0x2000000 0x0 0xc0000>;
> >>>>>                       u-boot,dm-spl;
> >>>>>               };
> >>>>> +             prci: clock-controller at 10000000 {
> >>>>
> >>>> Shouldn't this have a compatible property?
> >>>
> >>> This is the U-Boot specific dts fragment. See fu540-c000.dtsi
> >>
> >> I ask because this node sits in /soc, and all the other nodes in /soc
> >> have compatible strings. Since this device is bound by the clock
> >> driver, perhaps it should be located under /soc/prci instead.
> >
> > fu540-c000.dtsi has everything you asked.
> >
> 
> Ah, I didn't see that this was an extension. Looks good to me.
> 
> --Sean

Thanks Bin and Sean for looking at it.

BR,
Sagar Kadam


More information about the U-Boot mailing list