From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 478F7C432C3 for ; Thu, 14 Nov 2019 01:44:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5868E206D8 for ; Thu, 14 Nov 2019 01:44:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZuhOKON+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5868E206D8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+dfvlMgPuV+k0ITHOh4Dq+izaMCthDUMMXYiu1q/xiI=; b=ZuhOKON+RcL3Yg QME39C3wyHQGoqghctV8SoBcjvLMd+Gny7snfVem2oNalz0Vbb3Blo1GNxE+h5XJZlSQ/cRotKsgf ISmTC5tr8opa9xN58XE/dHDUVwXLrFPS0CMWAUnohZDDz4cpQTI9DjcQp46OUshP17dts+TJImK4U FfvhfGXPFC3bMtBMZTDkxRDXkmQAbqB0og1m5a9HQxkTjkUoJ7eYrX4qknBbxIyjuw9IZ+l1w4vCr uxRZcWKnWpvy/Dx5s9oQ3MgGe3qhW87tjxx2GqcaNm1yRu6YBbGc6vMv494uwidGG62J8XTy2Zupl Q629SaIvEaUOVZxpuWlA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iV4BW-00017F-5O; Thu, 14 Nov 2019 01:44:34 +0000 Received: from mail-oi1-f194.google.com ([209.85.167.194]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iV4BT-00016P-G4 for linux-riscv@lists.infradead.org; Thu, 14 Nov 2019 01:44:32 +0000 Received: by mail-oi1-f194.google.com with SMTP id i185so3761511oif.9 for ; Wed, 13 Nov 2019 17:44:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XksZDpsl+U9eidQT9vUr4VQK7VIl76Oi7Z4m7FmcSig=; b=A67iqtuHuXXJfVxVTvdjB0Bq8zT+5pzeL46YRUts7npLSF4KNAEazZtq5E5+4vwA+E AGD1IPpyETUM7hPBMXqvLtFiujV5GTdce9fK6JjFUc2/Z1dHcbVoYGxp5reVM7mby5T2 inNfja2z33wDO2LchTOddJwxVBrijZMQehTnEWkeHefZkUE6B+dOG44CS1bKeBYoHwuM s+Ln6+PZHwNiU//ik4HGFt/CAusHoA6eKkO+2ZyrPCiP259hR+HLGhk47kgDl0K1TvR8 FZo7Kf2RvflbE8LMWQpCD0deyhYhbmbTLu8L+JlsWOwIOD3LjkmNvMtRTalmlYBcMAgh wW9w== X-Gm-Message-State: APjAAAUXjPMsQLynRpxxKfyfiTUf4aJnRlVdgZzN2DepYcNlcY6c/NYT R+jMM9Jg7OBR7PTvSpndig== X-Google-Smtp-Source: APXvYqx2Eeg+6EnhJgfdAOYmTb/PvPNHZCErIRw9s8XIEA97Diy6JQJHOsXE/C4FqFN6moMduEPhwQ== X-Received: by 2002:aca:845:: with SMTP id 66mr1397732oii.137.1573695867242; Wed, 13 Nov 2019 17:44:27 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id h79sm1303959oib.3.2019.11.13.17.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 17:44:26 -0800 (PST) Date: Wed, 13 Nov 2019 19:44:25 -0600 From: Rob Herring To: Paul Walmsley , Christoph Hellwig Subject: Re: [PATCH 1/2] dt-bindings: power: reset: document the QEMU RISC-V virt machine poweroff device Message-ID: <20191114014425.GA1748@bogus> References: <20191107212408.11857-1-hch@lst.de> <20191107212408.11857-2-hch@lst.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191113_174431_535923_8BD17D03 X-CRM114-Status: GOOD ( 20.79 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, peter.maydell@linaro.org, Sebastian Reichel , Palmer Dabbelt , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On Thu, Nov 07, 2019 at 02:32:01PM -0800, Paul Walmsley wrote: > On Thu, 7 Nov 2019, Christoph Hellwig wrote: > > > Add the binding for the trivial Qemu RISC-V poweroff mechanism, which is > > There's nothing RISC-V specific here. This IP isn't defined in the RISC-V > specifications, or anything like that. Does the VM have a spec or anything? Would be nice if it did. Would be nicer still to just copy Arm's virt machine. > Apparently it's a SiFive IP block which now has a virtual IP > implementation in QEMU in hw/riscv/sifive_test.c. But since there's > nothing RISC-V specific about this IP block, any QEMU system, with any CPU > implementation, should be able to use this virtual IP, and this Linux > driver. > > For these reasons, it's better if "RISC-V" is just removed from everywhere > in this driver. If something needs to go in its place, "SiFive" may be > better. IIRC, there's already syscon poweroff binding. You could probably use that. > > > - Paul > > > > just a single MMIO register exposed through the DT. > > > > Signed-off-by: Christoph Hellwig > > --- > > .../power/reset/qemu-riscv-virt-poweroff.txt | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/power/reset/qemu-riscv-virt-poweroff.txt > > > > diff --git a/Documentation/devicetree/bindings/power/reset/qemu-riscv-virt-poweroff.txt b/Documentation/devicetree/bindings/power/reset/qemu-riscv-virt-poweroff.txt > > new file mode 100644 > > index 000000000000..80ff6fd4e3b7 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/power/reset/qemu-riscv-virt-poweroff.txt > > @@ -0,0 +1,16 @@ > > +QEMU RISC-V virt machine poweroff device > > + > > +This is a device in Qemu that can signal successful or error exit > > +by writing two magic numbers to a trivial mmio register. > > +A Linux poweroff is implemented as successful exit. > > + > > +Required Properties: > > +-compatible: "sifive,test0" > > +-reg: Specifies the physical address of the register > > + > > +Example: > > + > > + test@100000 { > > + compatible = "sifive,test0"; > > + reg = <0x100000 0x1000>; > > + }; > > -- > > 2.20.1 > > > > > > > - Paul _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv