From patchwork Tue Sep 10 07:04:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 11138855 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B8581395 for ; Tue, 10 Sep 2019 07:14:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 13A0121D7D for ; Tue, 10 Sep 2019 07:14:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406597AbfIJHOp (ORCPT ); Tue, 10 Sep 2019 03:14:45 -0400 Received: from mxwww.masterlogin.de ([95.129.51.220]:43544 "EHLO mxwww.masterlogin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404327AbfIJHOc (ORCPT ); Tue, 10 Sep 2019 03:14:32 -0400 Received: from mxout1.routing.net (unknown [192.168.10.81]) by new.mxwww.masterlogin.de (Postfix) with ESMTPS id A088C962BA; Tue, 10 Sep 2019 07:05:11 +0000 (UTC) Received: from mxbox2.masterlogin.de (unknown [192.168.10.253]) by mxout1.routing.net (Postfix) with ESMTP id ED6A343E8B; Tue, 10 Sep 2019 07:05:11 +0000 (UTC) Received: from localhost.localdomain (fttx-pool-185.75.73.135.bambit.de [185.75.73.135]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id C3943100B88; Tue, 10 Sep 2019 07:05:10 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alessandro Zummo , Alexandre Belloni , Eddie Huang , Josef Friedl , Lee Jones , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, Mark Rutland , Matthias Brugger , Rob Herring , Sean Wang , Sebastian Reichel , "Tianping Fang" Subject: [PATCH v7 0/7] implement poweroff for mt6323 / bpi-r2 Date: Tue, 10 Sep 2019 09:04:39 +0200 Message-Id: <20190910070446.639-1-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org mainline-driver does not support mt6323 this series makes some cleanup to mt6397-rtc-driver, adds mt6323 and implement power-controller on it. tested on bananapi-r2 Original Patch from Josef Friedl changes since v6: - rebased on 5.3-rc8 - post only 7 Patches because 6 are already applied to next - update copyright in "move some common definitions into rtc.h" changes since v5: - splitted part 1 to separate changes and additions not related to pwrc - move mfd/mt6397/core.h from v4.8 in separate patch "add mutex include" - changed recipients (moved from To to Cc, removed committers) changes since v4: - relative path in part 1+2 - drop change of copyright-year in part 5 changes since v3: - moved SOB in 2/10 and 9/10 - moved part 5 to 6 to be near driver-change - changehistory of patches below --- changes since v2: - Splitted some parts and rebased on 5.3-rc2: v2.1 dt-bindings: add powercontroller – try to make better subject v2.2 separate rtc-mt6397.txt (suggested by Alexandre Belloni) add missing commit-message (suggested by Matthias Brugger) v2.3 fix alloc after IRQ (suggested by Alexandre Belloni) new compatible (splitting suggested by Alexandre Belloni) needed due to different rtc-base/size see #7 v2.4 simplifications (Define-res-macros) add mt6323 rtc+pwrc v2.5 add poweroff-driver (no change) v2.6 MAINTAINERS (no change) v2.7 DTS-Changes (no change) Josef Friedl (7): dt-bindings: rtc: mediatek: add missing mt6397 rtc rtc: mt6397: move some common definitions into rtc.h rtc: mt6397: improvements of rtc driver rtc: mt6397: add compatible for mt6323 power: reset: add driver for mt6323 poweroff MAINTAINERS: add Mediatek shutdown drivers arm: dts: mt6323: add keys, power-controller, rtc and codec .../devicetree/bindings/rtc/rtc-mt6397.txt | 29 +++++ MAINTAINERS | 7 ++ arch/arm/boot/dts/mt6323.dtsi | 27 +++++ drivers/power/reset/Kconfig | 10 ++ drivers/power/reset/Makefile | 1 + drivers/power/reset/mt6323-poweroff.c | 97 ++++++++++++++++ drivers/rtc/rtc-mt6397.c | 107 ++++-------------- include/linux/mfd/mt6397/rtc.h | 71 ++++++++++++ 8 files changed, 263 insertions(+), 86 deletions(-) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt6397.txt create mode 100644 drivers/power/reset/mt6323-poweroff.c create mode 100644 include/linux/mfd/mt6397/rtc.h