RE: [PATCH] RISC-V: Enable SYSCON reboot and poweroff drivers

From: Anup Patel
Date: Mon Nov 11 2019 - 11:51:36 EST




> -----Original Message-----
> From: Andreas Schwab <schwab@xxxxxxx>
> Sent: Monday, November 11, 2019 8:02 PM
> To: Anup Patel <Anup.Patel@xxxxxxx>
> Cc: Palmer Dabbelt <palmer@xxxxxxxxxxx>; Paul Walmsley
> <paul.walmsley@xxxxxxxxxx>; Atish Patra <Atish.Patra@xxxxxxx>; Alistair
> Francis <Alistair.Francis@xxxxxxx>; Christoph Hellwig <hch@xxxxxx>; Anup
> Patel <anup@xxxxxxxxxxxxxx>; linux-riscv@xxxxxxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH] RISC-V: Enable SYSCON reboot and poweroff drivers
>
> On Nov 11 2019, Anup Patel wrote:
>
> >> -----Original Message-----
> >> From: Andreas Schwab <schwab@xxxxxxx>
> >> Sent: Monday, November 11, 2019 7:38 PM
> >> To: Anup Patel <Anup.Patel@xxxxxxx>
> >> Cc: Palmer Dabbelt <palmer@xxxxxxxxxx>; Paul Walmsley
> >> <paul.walmsley@xxxxxxxxxx>; Atish Patra <Atish.Patra@xxxxxxx>;
> >> Alistair Francis <Alistair.Francis@xxxxxxx>; Christoph Hellwig
> >> <hch@xxxxxx>; Anup Patel <anup@xxxxxxxxxxxxxx>;
> >> linux-riscv@xxxxxxxxxxxxxxxxxxx; linux- kernel@xxxxxxxxxxxxxxx
> >> Subject: Re: [PATCH] RISC-V: Enable SYSCON reboot and poweroff
> >> drivers
> >>
> >> On Nov 11 2019, Anup Patel wrote:
> >>
> >> > We can use SYSCON reboot and poweroff drivers for the SiFive test
> >> > device found on QEMU virt machine and SiFive SOCs.
> >>
> >> I don't see any syscon-reboot compatible in the device tree.
> >
> > I have sent patch to QEMU as well for generating SYSCON DT nodes.
>
> What about the kernel DT?

For QEMU virt machine, the DT is generated by QEMU at runtime
so we don't need an explicit DT file in Linux sources.

Regards,
Anup