Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1358669pxu; Sat, 12 Dec 2020 10:04:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpGy6KWpvE1GF9MJeIgnotL0HKiPwKVeEZMW3QZyAEYtMXWbbPwv8fElVx2+jywv7vmWcd X-Received: by 2002:a17:906:60d4:: with SMTP id f20mr16448741ejk.156.1607796249660; Sat, 12 Dec 2020 10:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607796249; cv=none; d=google.com; s=arc-20160816; b=F/MXgRj7wyrIfQ4z2hSURpiIDyc9IM6rp425MI2L5oiazAPGTUwAl40T9l+b/qV5xZ Xwuk5ZV+ojqwrNRVCsOVSXY/hu/MHl7J7wJPZs0HufBfwHi9jr3hH9MqO0bjVZ6YUTtf 5OUY8LtwpaSb1CRehgzJ2ATZ3srKEXT2HCYMX5t+YFwSUvTVwo3HmvJPRt9LrIK6/4tA 6NzWKP22eq2/p4Cz/ZsqCitXKNo+CGGt77vm+ZG92XE8ZxMvSQgUdywp1AAvhhXI/+nP 2oCT0mP60G7oUdxbpMUREd2yzsml9bsRsWnOqJk7OQ3gfu39b3mL0Y8jDyyWIeLcvOcw 3XJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NCsW77FbQ1B3gPrsvuKFRFGs+rTfq3kJjuPpOkHykKY=; b=AHV4ktGWAzTVkdYqbfsBQXOlE603IIqJfEJ24ZEecoyVwyZQmNRvqONiIcAYKuuC14 N5J3XDTZdCYYvuhEwWkAL78zPPz5omoIFbfpDJ1O2z9txCCMI7k2dvt359DPnsD5X5yd 6Ga37D5Qltn55T/xvTF5Yu5wNagdvMhAI7/Kx95Y8A9W7/fT46dJPW8B36baotjk/gNK ulVLPNv49mRDbZdfw1vdKdjGKA2BMkD8Du1VWW7BG0Q5uqgBrvObjZS2UxsuOOxu2Y1X ufqQ91ss88AyhkAYziLHGgoNuK5iYxR85LFuW49OyDoQa5eaTfVOMKXmFpDet36xPwCN hfpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fossekall.de header.s=strato-dkim-0002 header.b=gHyX06VE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si7531763ejq.721.2020.12.12.10.03.47; Sat, 12 Dec 2020 10:04:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fossekall.de header.s=strato-dkim-0002 header.b=gHyX06VE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406622AbgLKPTp (ORCPT + 99 others); Fri, 11 Dec 2020 10:19:45 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.83]:13540 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437682AbgLKPTG (ORCPT ); Fri, 11 Dec 2020 10:19:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1607699768; s=strato-dkim-0002; d=fossekall.de; h=Message-Id:Date:Subject:Cc:To:From:From:Subject:Sender; bh=NCsW77FbQ1B3gPrsvuKFRFGs+rTfq3kJjuPpOkHykKY=; b=gHyX06VEezUlEoSxYyFkmFgQUQHCJYgBv7j/3d7dVuMiUJEXXKKRutgaGZjt5zKls1 vQYmXRWZadJzAqym7HWtE01SoG9+ct8XuXK4do99Z3Z69EY6VxgWxF0DHDD2+7voHAbA sRBiyr5pAd8dU78v1QoLjihWyugK0eYmUzXRro+a3jyszjG8tEVRkwSq9SUOy9lPr7c2 DPb2xnb6/SpprfzmthLkkgAwjULxreFzUKkBRnHXuqldzYzrl9KYgV6WFO9QRKB5fliQ eq046dfsHCm+KHBDQ5e/3J7eZvyVPDIzVtYtHsWTsacsKDC1jptVH6my+tK4bJku6OGp ZOVA== X-RZG-AUTH: ":O2kGeEG7b/pS1EzgE2y7nF0STYsSLflpbjNKxx7cGrBOdI6BL9pkS3QW19mO7I+/JwRspuzJFZuRzQ==" X-RZG-CLASS-ID: mo00 Received: from aerfugl by smtp.strato.de (RZmta 47.7.1 AUTH) with ESMTPSA id L0a6acwBBFG61AH (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); Fri, 11 Dec 2020 16:16: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 1knk8G-0005RX-4w; Fri, 11 Dec 2020 16:14:56 +0100 Received: (nullmailer pid 116008 invoked by uid 502); Fri, 11 Dec 2020 15:14:56 -0000 From: Michael Klein To: Sebastian Reichel , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Michael Klein Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 0/3] BPi M2 Zero poweroff support via new regulator-poweroff driver Date: Fri, 11 Dec 2020 16:14:42 +0100 Message-Id: <20201211151445.115943-1-michael@fossekall.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v2: - rename DT node Changes in v3: - add regulator-poweroff driver - use regulator-poweroff driver instead of gpio-poweroff Changes in v4: - hardcode poweroff timeout to 3000ms, not configurable any more - remove support for multiple regulators - fix Documentation issues Changes in v5: - rename DT property 'power-supply' -> 'cpu-supply' Michael Klein (3): power: reset: new driver regulator-poweroff Documentation: DT: binding documentation for regulator-poweroff ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add poweroff node .../power/reset/regulator-poweroff.yaml | 37 +++++++++ .../dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 ++ drivers/power/reset/Kconfig | 7 ++ drivers/power/reset/Makefile | 1 + drivers/power/reset/regulator-poweroff.c | 82 +++++++++++++++++++ 5 files changed, 132 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/regulator-poweroff.yaml create mode 100644 drivers/power/reset/regulator-poweroff.c -- 2.29.2