Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4287277pxu; Wed, 9 Dec 2020 13:08:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbTga8b0iht8F1KY+q/YpmUohE9iONHHrkfZUixdtBML/SENrOoONfVlYNgPCANMUcYamz X-Received: by 2002:a17:906:d9cf:: with SMTP id qk15mr3829965ejb.453.1607548127010; Wed, 09 Dec 2020 13:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607548127; cv=none; d=google.com; s=arc-20160816; b=HTOd6/xUSnDSpy9Pr2UcTMW+ut8zQezzZX9jn49jWjaIoqyfL/YLOraNMjYhjZNp7I NAKrit2forhhE4jX2oo222bYAPviqfUfcg411AW3JV3csaz5STOlZubKcVN+X5tb02Q7 OO6qePemQGIkqHRsrw4n51jeQXg1TkjEbrYBpSbhbf7Yl5i6FN9Ek/v5MYgt68QLXln5 iZJGWt8ouL85y67fozwdlSkh6Z6fnLezkGPjmcgSP2HAyECdufk+DOzFSZbhgwigCu5X GIZiCgNIXuQ3sjYxkKCzh/vOonZ9+pildgL4q5kcPJYtMiDx8dU+2Kfl7beHLRGfjSAB JHQg== 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=Yv3BisX3VSbCqFQLA4ar1BwG3T8m1Bk8ItATVLb6B/A=; b=VjW9GQk1RYMJDZHstn0MPjTGqRLzvLSbJUH5HgflvQsmX40chfyHvbBagOSJ2x2lkI pE9e+YoCA8LplkYB/wQWnTWlns9axJ/Y+z38YOpQYtxvRcrzeSJNOQrUIHJv6BlOAkW3 DsmnadzCnbkzPpc9DZcmfQAPvrUBFehRcnhhpQas1wEZp4497VLY6b5qFPOQqG0MONoB NfFQpNxRUKyS/D1udWv7/xkFJO7zi9KD5Kt2j/cjxFCJ+tQRjBInMPNwN/SsqnEpt5za Uy0wCLNSJBylEweUL0MdHn/e6D0zbPMTBkpUuf79H5KsGW5JJIYPcxpcJqCA/Hp+g/nd wGXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fossekall.de header.s=strato-dkim-0002 header.b=isEvdXqR; 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 11si1537745edv.53.2020.12.09.13.08.23; Wed, 09 Dec 2020 13:08:46 -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=isEvdXqR; 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 S2387561AbgLIVGp (ORCPT + 99 others); Wed, 9 Dec 2020 16:06:45 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]:27895 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgLIVGp (ORCPT ); Wed, 9 Dec 2020 16:06:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1607547832; s=strato-dkim-0002; d=fossekall.de; h=Message-Id:Date:Subject:Cc:To:From:From:Subject:Sender; bh=Yv3BisX3VSbCqFQLA4ar1BwG3T8m1Bk8ItATVLb6B/A=; b=isEvdXqRuahkZiE4PEREE3/32hxkwMb9MkEqXaf7S4lag83P4e87iiDlwJQezhPUKy aU+yW7ljxQQurJuu9c/BRFfRbJFPXmky6YXKc3Vr4EfaQyfC1hiAK8tEjrMT9XBRh+8t sNs0qqkn6A/ZfsVycn9s+YTMEzydy9RDcS8bv7X/7l5YoZRMNId3cy2fZtYByUhvMq38 INdF+z3paYVrclIO8HK21clF8lKspYs2vJ0FeUcTMNWOSiUchqGq97DOxi5pf4Rg9sVs D62jtM/b1siQoQWWWKq6vaMStP2pVD2twhtav1z/C8Jc4tFy7RE0U2+07etaMB9fNJbH BtXg== X-RZG-AUTH: ":O2kGeEG7b/pS1EzgE2y7nF0STYsSLflpbjNKxx7cGrBOdI6BL9pkS3QW19mO7I+/JwRspuzJFZuRzQ==" X-RZG-CLASS-ID: mo00 Received: from aerfugl by smtp.strato.de (RZmta 47.6.2 AUTH) with ESMTPSA id e07b38wB9L3mB1V (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); Wed, 9 Dec 2020 22:03:48 +0100 (CET) Received: from koltrast.a98shuttle.de ([192.168.1.27] helo=a98shuttle.de) by aerfugl with smtp (Exim 4.89) (envelope-from ) id 1kn6cj-0008CT-7V; Wed, 09 Dec 2020 22:03:45 +0100 Received: (nullmailer pid 385332 invoked by uid 502); Wed, 09 Dec 2020 21:03:45 -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 v4 0/3] BPi M2 Zero poweroff support via new regulator-poweroff driver Date: Wed, 9 Dec 2020 22:02:18 +0100 Message-Id: <20201209210221.385188-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 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 | 86 +++++++++++++++++++ 5 files changed, 136 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/regulator-poweroff.yaml create mode 100644 drivers/power/reset/regulator-poweroff.c -- 2.29.2