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