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=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 772CEC43331 for ; Thu, 7 Nov 2019 21:53:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40F3B2166E for ; Thu, 7 Nov 2019 21:53:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20150623.gappssmtp.com header.i=@dabbelt-com.20150623.gappssmtp.com header.b="l3vjWLyd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725928AbfKGVxA (ORCPT ); Thu, 7 Nov 2019 16:53:00 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44982 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbfKGVxA (ORCPT ); Thu, 7 Nov 2019 16:53:00 -0500 Received: by mail-pf1-f196.google.com with SMTP id q26so3349458pfn.11 for ; Thu, 07 Nov 2019 13:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=1ZmP3Rg7HzABUgxKqQ/4jGQaai0OdMM5UHRs2UoA2Us=; b=l3vjWLydFjCtnlYdjNGzXOljrsJTHX7IERVD5wJFYO/t45yCELfuaDoGwYeNyVpB+n XJY0CrCVjHDn4tgOv41UjW04q89qVSuKyrmw3WyN+SUF2+WhB1Z2CVsZO9mXZ+3Gm0Fk XITUMqVoXa1++r+JUrAoyVzBswTQkxIKvy0zryDeeGCLem79epiacJJYmY4qHsYvj965 eV0qb3WtRvntvfMLHk/3wf5DBA4WxPbPUWk18Iy2O0Fr7EYaoHFJuqkegWXJjPGLodU7 CRMK5eKfjf8Vu2scccHhiMkieOf4DnxBcKR95/NlZ1ZoSPvrIT8aTsVKRuBoFZEizlmd +A5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=1ZmP3Rg7HzABUgxKqQ/4jGQaai0OdMM5UHRs2UoA2Us=; b=fF++6M+CM9UHcOh+d6o/nbpzXqCcP2TeBrKE33D8w3KVTTHLM6AZ1Qkht4NdkjRpYy qlmPfZM40mnrs1Kdsy29zaprVmvHX967AAmQIJFsyak9/5AOXj6wV645JwFOfUDxFiYk Y2t6q6n5TonHr7nWehyU9KdPNMf3NPn1Mz5Fb/SAFhCn77j9bn5N8+PqCOfl5EG/62E9 uhpKL+FFVnr7X1I80nXqkAbcFC2hg4vunLaqAtFs4VuVtc6AYnmKwUQo4M0CFn1sd4pv yAvYIlAKELnBbxabQbt6pe1fBJgP/3O6inLKzIkyb1yFjzGFV3Zwy5nlrCQhEI5cX24g 5tKA== X-Gm-Message-State: APjAAAVwx0cqYW8UfCabSOGG8a7Re9FNH+Pu/gtnVJbZLRpTGf2nRjgD fUj01tsVfYvB1WntFXxvRu9R9e/HNps= X-Google-Smtp-Source: APXvYqzzcZmDI/kaSp6LdK1qm0znVJ6nCHWBAR7hkCC2Zt7lvAHXwwzIgNfPrMwN/CstJOHouv4T7w== X-Received: by 2002:a63:955a:: with SMTP id t26mr7618796pgn.280.1573163579261; Thu, 07 Nov 2019 13:52:59 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id f13sm3338842pgs.83.2019.11.07.13.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 13:52:58 -0800 (PST) Date: Thu, 07 Nov 2019 13:52:58 -0800 (PST) X-Google-Original-Date: Thu, 07 Nov 2019 13:45:27 PST (-0800) Subject: Re: [PATCH 1/2] dt-bindings: power: reset: document the QEMU RISC-V virt machine poweroff device In-Reply-To: <20191107212408.11857-2-hch@lst.de> CC: sre@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, Paul Walmsley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, 07 Nov 2019 13:24:07 PST (-0800), Christoph Hellwig wrote: > Add the binding for the trivial Qemu RISC-V poweroff mechanism, which is > 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. There's a third value that reboots the system, but it's only implemented in qemu-4.2 (not released yet) and above. It'll be 'compatible = "sifive,test1", "sifive,test0";' (or at least will be when I merge my patch to do so). > + > +Required Properties: > +-compatible: "sifive,test0" > +-reg: Specifies the physical address of the register > + > +Example: > + > + test@100000 { > + compatible = "sifive,test0"; > + reg = <0x100000 0x1000>; > + }; Reviewed-by: Palmer Dabbelt 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 56D4EC43331 for ; Thu, 7 Nov 2019 21:53:04 +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 27A19222C2 for ; Thu, 7 Nov 2019 21:53:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c1UcIeHT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=dabbelt-com.20150623.gappssmtp.com header.i=@dabbelt-com.20150623.gappssmtp.com header.b="l3vjWLyd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 27A19222C2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com 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-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Mime-Version:Message-ID:To:From:In-Reply-To:Subject: Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References:List-Owner; bh=P7JL75qtfMUOeGVnCbaThm3GP52Fv0Bh8QgONnN0sO4=; b=c1UcIeHTBWTqDDBesTyKs5ANA OLjkFrFodvEqrUIe18TwarxdF/OPQ3iKHE7OpGTfOy3Zfu8ukLI8pxDaCeEBu64fd9LuMO2nvuYjm mqkrSxXMJoUAuxcFCCKnImqrtOFQQz11S4bsqfcaUBmGExhvZTn1MJRJU6U/ix5ei+0lTC9uKoc0E t5BwWF6t2cKVsLLuvREpZMBFVq+NfcXDKyk4B0nn4THgON6v/+gb2PWed9BcyC1mqE0ZuehTRdkkW 6+GIA24w+4B/k5l9vWvQnjhgsKfE/FOf1mTvEH/vgSL57i0evR7d8zXXSJosS8VXwafd4ZBcU+f5K scn7ofYkA==; 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 1iSpiB-0001Ma-7W; Thu, 07 Nov 2019 21:53:03 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSpi8-0001LV-Rd for linux-riscv@lists.infradead.org; Thu, 07 Nov 2019 21:53:02 +0000 Received: by mail-pg1-x542.google.com with SMTP id f19so2795115pgk.11 for ; Thu, 07 Nov 2019 13:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=1ZmP3Rg7HzABUgxKqQ/4jGQaai0OdMM5UHRs2UoA2Us=; b=l3vjWLydFjCtnlYdjNGzXOljrsJTHX7IERVD5wJFYO/t45yCELfuaDoGwYeNyVpB+n XJY0CrCVjHDn4tgOv41UjW04q89qVSuKyrmw3WyN+SUF2+WhB1Z2CVsZO9mXZ+3Gm0Fk XITUMqVoXa1++r+JUrAoyVzBswTQkxIKvy0zryDeeGCLem79epiacJJYmY4qHsYvj965 eV0qb3WtRvntvfMLHk/3wf5DBA4WxPbPUWk18Iy2O0Fr7EYaoHFJuqkegWXJjPGLodU7 CRMK5eKfjf8Vu2scccHhiMkieOf4DnxBcKR95/NlZ1ZoSPvrIT8aTsVKRuBoFZEizlmd +A5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=1ZmP3Rg7HzABUgxKqQ/4jGQaai0OdMM5UHRs2UoA2Us=; b=m0xZEHG+pPaoiiUnrQKpyGyjm8twFJQQeRyJMLTRDs0CDLdW4nV6QyrPqFWBnq+Lu1 rjUFfUreMetq+kXQyECNUfqwvG3FEii/xrDlP/aqVK9srzTXgcquzss/hP5wzESCgys7 FWMymVM+L2nj91tVtXwtnuwSA4p0GKWogWKRFPaiyUy7mGJmp1mkCFB8Hr7oUBNYpuPS aybQbN1t0mVz/roBu041U0WPxnR42Ads3/3c4xlZ/S7L+DskJIPdjdO1rTnN6jhywFRh 32h2tS/53Wfe5NVPsFSvu7pPCZG1YpCcJhvJZn6yoWyQadfOZi/CIIKcIvNAVey+EcQV UViQ== X-Gm-Message-State: APjAAAUbISev12ig8TtzDkM/u4Ed2egzM/Tjp6XbK6F8+vuiycRgW2Uy gkBKbHUAwpoBTYQO+F3fFuKzGw== X-Google-Smtp-Source: APXvYqzzcZmDI/kaSp6LdK1qm0znVJ6nCHWBAR7hkCC2Zt7lvAHXwwzIgNfPrMwN/CstJOHouv4T7w== X-Received: by 2002:a63:955a:: with SMTP id t26mr7618796pgn.280.1573163579261; Thu, 07 Nov 2019 13:52:59 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id f13sm3338842pgs.83.2019.11.07.13.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 13:52:58 -0800 (PST) Date: Thu, 07 Nov 2019 13:52:58 -0800 (PST) X-Google-Original-Date: Thu, 07 Nov 2019 13:45:27 PST (-0800) Subject: Re: [PATCH 1/2] dt-bindings: power: reset: document the QEMU RISC-V virt machine poweroff device In-Reply-To: <20191107212408.11857-2-hch@lst.de> From: Palmer Dabbelt To: Christoph Hellwig Message-ID: Mime-Version: 1.0 (MHng) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191107_135300_899542_AE1FC2D2 X-CRM114-Status: GOOD ( 18.20 ) 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@arm.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, sre@kernel.org, robh+dt@kernel.org, Paul Walmsley , linux-riscv@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On Thu, 07 Nov 2019 13:24:07 PST (-0800), Christoph Hellwig wrote: > Add the binding for the trivial Qemu RISC-V poweroff mechanism, which is > 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. There's a third value that reboots the system, but it's only implemented in qemu-4.2 (not released yet) and above. It'll be 'compatible = "sifive,test1", "sifive,test0";' (or at least will be when I merge my patch to do so). > + > +Required Properties: > +-compatible: "sifive,test0" > +-reg: Specifies the physical address of the register > + > +Example: > + > + test@100000 { > + compatible = "sifive,test0"; > + reg = <0x100000 0x1000>; > + }; Reviewed-by: Palmer Dabbelt _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv