From patchwork Tue Nov 24 13:36:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Klein X-Patchwork-Id: 11929067 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 EB90BC56201 for ; Tue, 24 Nov 2020 13:46:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 9B7752083E for ; Tue, 24 Nov 2020 13:46:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="r5EHYwTG"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fossekall.de header.i=@fossekall.de header.b="E9GpUrA8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B7752083E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fossekall.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+a6oTIbhSlDqxB6dI6fw84zj6t9tJpqb+oHKsF3hW9E=; b=r5EHYwTGDwqNUd1PG4lN/dkPu jLfNN8+5Qv1Fi2xVuYOPYealZzS0MMB4sTj9oONt2Tmpq31y4M2IEr3KdWr6R5R6QwosV9JEZWPj2 Snkhk1g6g6CdesE8z3Bovqw2HsWS+MHwFnoVD+8TX4X7Fx9BnBzTeaS0TZhDJ/KXJ9KZwcHcoE3YO qLenBSRK0q4UxYTrICfExMVlC0w/bp9vO2LKX08urxg0G7QxjGQ3y+2dPS2ENICB7ifeq79uMMl5L ggU2mmivQg8EVzy9SmgDzgRV9B6L5wgD90xgPqFlm8dp/pY1t4ja1OAAbPqxWpKT+33JM8TvGsk06 LQJziNvYA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khYe2-0003fL-2V; Tue, 24 Nov 2020 13:46:10 +0000 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khYVT-0004Cr-Px for linux-arm-kernel@lists.infradead.org; Tue, 24 Nov 2020 13:37:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1606225032; s=strato-dkim-0002; d=fossekall.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=l4RKmcHE9AoB+I3oA1SIVpSHWqTYKywjLKV8cJNu5Vw=; b=E9GpUrA86S/bGb67W9aw/nay+8tc+jyLkTwYzjFz2UcwLi6YIiKrWaArWC8jY91xon 1BvmRFLfZst4b3eTyjsc4tZEyIw0kOP70Ujh1eNzco+8Mnp1PvV8lkVRQYZkB3IxrilV V6qddMKDfW7rhCm9vAEpAAwppfqTgfx5DRxQ1R3r2cc6+/C8wt4wMW/2kfBUblRA0Aeg BQaIk6+OAte1fP7AFj0buPKrEoGbi7phVo63RnfFpBwhce1IacU0VO0hfAbX8gNazkdP hSUNrgqWtB8Z/h7MfibTv72DS4IoprN/vSXS6GmHFvHziegBcFb5kXG3zMmiUdzq64rC Wh0w== X-RZG-AUTH: ":O2kGeEG7b/pS1EzgE2y7nF0STYsSLflpbjNKxx7cGrBOdI6BL9pkS3QW19mO7I+/JwRspuzJFZuRzQ==" X-RZG-CLASS-ID: mo00 Received: from aerfugl by smtp.strato.de (RZmta 47.3.4 AUTH) with ESMTPSA id g02087wAODb6DKK (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Tue, 24 Nov 2020 14:37:06 +0100 (CET) Received: from koltrast.a98shuttle.de ([192.168.1.27] helo=a98shuttle.de) by aerfugl with smtp (Exim 4.89) (envelope-from ) id 1khYVD-0006HR-W0; Tue, 24 Nov 2020 14:37:04 +0100 Received: (nullmailer pid 682809 invoked by uid 502); Tue, 24 Nov 2020 13:37:03 -0000 From: Michael Klein To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v2] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node to DT Date: Tue, 24 Nov 2020 14:36:33 +0100 Message-Id: <20201124133633.672259-1-michael@fossekall.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201124131933.2l2go6z6ltar5fpa@gilmour> References: <20201124131933.2l2go6z6ltar5fpa@gilmour> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201124_083720_244865_21C71923 X-CRM114-Status: GOOD ( 13.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Klein , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add poweroff node to allow the board to power itself off after shutdown by disabling the SYSTEM and CPUX regulators (U5 resp. U6). The RST button can be used to restart the board. Signed-off-by: Michael Klein --- arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts index 4c6704e4c57e..ea2fa48a1647 100644 --- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts +++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts @@ -46,6 +46,11 @@ sw4 { }; }; + poweroff { + compatible = "gpio-poweroff"; + gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */ + }; + reg_vdd_cpux: vdd-cpux-regulator { compatible = "regulator-gpio"; regulator-name = "vdd-cpux";