From patchwork Mon Jul 29 17:41:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 11064303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3E6491398 for ; Mon, 29 Jul 2019 17:45:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BA4722AFC for ; Mon, 29 Jul 2019 17:45:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D7B226E3D; Mon, 29 Jul 2019 17:45:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB51D22AFC for ; Mon, 29 Jul 2019 17:45:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=jL4IZoFwWAGA6XZJwBbxuttt8lHAmczUNue/q9vbe7o=; b=ZDu5YQHSjiIRNW VhFYL+iK+S+DJwbdUPFjuMyaZVDmjUmavcrhLiagPmKDiDj1cm7R0QXvafoi/axuGlpPZXI4L9o1C oAR5mV9xizQssGlYaOEj1BhzhziNeRHRnhBtrml8vUITe2XsGR6kDDnVLrXDwQCgYcvoJbcFaCCNO ZQ5TrLtmWwCTbT1DzD+eL1Iumi+jTU77q6i3WjP/ju8eHgaDeMU/MD5Gw4qlUCGts2dK5sasH4q3F N+Q35GSeJ9dXtCXrnp1+PUrvkHxmpiIVx9+qJg/G+45IbqbTsE7p+6KKx6/DUHU3MmyXSRXEI4L13 J+/gXvJ+ViSznmgGp4sw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hs9iK-0001Ai-BV; Mon, 29 Jul 2019 17:45:36 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hs9fq-0006EC-7e; Mon, 29 Jul 2019 17:43:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1564422129; bh=RdzV7ibrX+DwP2/BCdjL01crPjcknaV01tD0aoWIdDg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=R9ZrFy29vedWnJJeYzRWI5kBNGitmtGhHhCP3B9ig27ts59fWQFKCzV97vz/8OzDY n6mCgzrWb1jtHN57Y6ItnOZCHxkP8tDgVFPdEL5iLjcvrd5ZsiqKmSnZEHKTLgK4Ir DeeCkmABc5HnZPTN1+C1vbQYuY0J+H1KK2m2mVGU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([185.76.97.79]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LzskF-1iV7102Ez5-014xXw; Mon, 29 Jul 2019 19:42:09 +0200 From: Frank Wunderlich To: Alessandro Zummo , Alexandre Belloni , Allison Randal , "David S. Miller" , devicetree@vger.kernel.org, Eddie Huang , Greg Kroah-Hartman , Jonathan Cameron , Kate Stewart , Lee Jones , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, Mark Rutland , Matthias Brugger , Mauro Carvalho Chehab , Nicolas Ferre , Richard Fontana , Rob Herring , Sean Wang , Sebastian Reichel , Thomas Gleixner , "Tianping . Fang" Subject: [PATCH v3 00/10] implement poweroff for mt6323 / bpi-r2 Date: Mon, 29 Jul 2019 19:41:44 +0200 Message-Id: <20190729174154.4335-1-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:eaB03qW1RdZHhSSwGKsKQ5ipDCg+qmUpRIGapr9mOzrFy6CA0gx pz2or5Jz0m/M9Qv2WF+ghf9EH2MsOqsPCwN08N5B7E1g7UGFfTI3HJ+h15PC4DVZUlZl3ms Ho9F5fTbpA8NIggLdlvetC6qOgK+0GU9Baeq4OYqZUrc0peTECs3o5j/2V8HKESuUQIOeLd mIQqBZ2JLaJTffUIw8qQw== X-UI-Out-Filterresults: notjunk:1;V03:K0:/HfsKFt0IkQ=:O6NiHfNSSWLslNZ2emBoSG 3VE4lb75JDVpkh0pU4mnlj4DCCz8wrM46AxzVryqq/4jrwBGdE8zf5nHHd8FCHwVeiwF2dQOe c4hw7A3ZPyKQSTp+VjcSoY7ViYIocfgEQe1Rmtv1QKyKHYVB8RypT97Hl4xh9rsCNQKov31ZR Kh09x91Fe6+V+QVYs1ldQ6ue/UPuf5x7Z5ttCRO4b/C/HupnIX8TELpRf4SJbs/fHjDUowMvS s0WsYVHXi3Mf0kbI6w322RGXHO5ouSwsFPfuHMnYJcN6e9hMqg359/xdavduRXNfbjr9+66ag b73SyLlBC+VvqVLr7LdZ1ulevSzFTtViC0lqqqQoKxC/YpxF+y2oAegEGos3xSR0NcOJ14tGO Ix4oH90ojljyY5lMBZRPEnDIA1ciHvjd8aF1kN+07WPNpF8RfIabSMfgFx0kxDnPEM79DzWYW 9CmniUHxAVkrLE73XiwRLpmiVxhICUdHtJtykDGiIFRYX1bsNbGRB3+lRVdcTcg1jjJ61Bkzc XanCObGqjjwGQBV0lxtpsPoRdhI87GFqURmW+BQsYwKdOSBDqz1UdvzJYJNg5SnrZZcG0+bzW v78/pNEbdvPI+PCoOSlFr48xxDQnIPo6FGGZhEX2kFRjDRTnKfl1fIS4nj7ytLwrkkLGZmR9g joq8YSOAPXfUBhlR843i8iLLlgpptHakCm1DKZfV3g2nOb68J0iYHCfZYrinZUhhf3GkgJbBQ NNfqYzbluzq7X/DH9sBz1gVSviWE+idaU7vg8uwUO1OCDB4ztzqK9ZtnI9mjbloc2zZ0hn8ux pyZOmpSHSHtgN4X6EyF0uIwRBRQySv1FoA7QHuIF8WKf9d0sGJDK2xjc9D5mAXdy0e/DS6sG0 h5SI0fPzvoHtN/Ug6kttZOyAYptN2u5XGvb2fWfoNGaaTnkoSdychfXritF3eC5CsJJqsH2Ss rKpjNiKlLZtK8NX+Cxk2dx41HbodyTigWZESf8vxyhdT2aYguOQYmYGWm+QXmEZv44qehYR9p Y7riK9MFJTWkINuhFSe9O3LuLnzWJ0CWLgxNCjNKKBlq0EvaFiKjh3aa53x2vHO31WrK0AAcp +5qSgXM+s/WGDPtW51uZ1Hg/NqmNalg2b8A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190729_104302_563701_E7C96395 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Wunderlich Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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) changes since v1: - splitted into functional parts - more infos about changes Josef Friedl (10): dt-bindings: add powercontroller dt-bindings: 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 mfd: mt6323: some improvements of mt6397-core mfd: mt6323: add mt6323 rtc+pwrc power: reset: add driver for mt6323 poweroff MAINTAINERS: add Mediatek shutdown drivers arm: dts: mt6323: add keys, power-controller, rtc and codec .../devicetree/bindings/mfd/mt6397.txt | 10 +- .../bindings/power/reset/mt6323-poweroff.txt | 20 ++++ .../devicetree/bindings/rtc/rtc-mt6397.txt | 29 +++++ MAINTAINERS | 7 ++ arch/arm/boot/dts/mt6323.dtsi | 27 +++++ drivers/mfd/mt6397-core.c | 40 +++++-- 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/core.h | 2 + include/linux/mfd/mt6397/rtc.h | 71 ++++++++++++ 12 files changed, 323 insertions(+), 98 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt 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 --- 2.17.1