Received: by 10.192.165.148 with SMTP id m20csp471484imm; Wed, 25 Apr 2018 02:36:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx499xNNK8rjnSIjjqLxdcTHJDbvf2qF1v+Eg4NNx5sJwq/qwHM1OSyUh74y6sApuCW0/Gdeg X-Received: by 10.101.70.72 with SMTP id k8mr21245367pgr.47.1524648982852; Wed, 25 Apr 2018 02:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524648982; cv=none; d=google.com; s=arc-20160816; b=t6SiW3os1IY2lDf49s+AumqhYraBYmONLwHPgRviQCM8t5bIgcZJKp9jW8ZrC2wQLd G8TnndDN0uPUqOUl/pFY2U9kfVSo7QosbviQb0poWjkrR6wzXcG5sDr2DBMnUkI2+VNz Z6EYuYcYN18P3/2Ta+xZ10jVwY18KkTcQs4x3mTsmTvSUqiDdiAFJthitEwIx+4kPGjr +RZBvxb1klYU3eiszHihlx0nudh91avQ1BQwNlNqqhDtvan11PV/KtB8PheT7hCMBAAQ kPpds674d7Yj529CdNojvlYfx0rY0tPSadNAhCPNqzilZh2mlNKDwQ9amKJS+8HojjZz C3gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=fTseOvMZh21oqLez99rwqUDG+txZiiy3PW8Th0i3dd4=; b=ANOZIA4oZaBRKcQ06hcV3BOFwUHWTKmRYnDBWz05fSuWj+oVWIfkeFw0H8thySzXaQ NxHwtkI3Zk9JzyrVCO7D4SXD3y65hgIw8RsHuBlFa4pQgOfNx12r3ohPwlg4DRO4t9S2 CU9X+J7SpZXp/GBnrISeBpJJGCHPo0YQjN0IpfP+go6YqtKjWodstozk/6ReKrwh+KCQ ljePXfeTYEEpqWGmUJ4X0Rc9elSmJWo8yMHMEIX9pn8qGvfiQ//9g06EulnYoi54pMka QqUp7eR5XdH4jH5XlVGsQTmSBwGguvItSkbCZEL6Zr7jE7k764CueqiJQNDPwznUSqq0 JdMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si12689120pgo.650.2018.04.25.02.36.08; Wed, 25 Apr 2018 02:36:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752131AbeDYJek (ORCPT + 99 others); Wed, 25 Apr 2018 05:34:40 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:13791 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751591AbeDYJdK (ORCPT ); Wed, 25 Apr 2018 05:33:10 -0400 X-UUID: 8de0c26095b04ee1b357dec5444e1e84-20180425 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1446265842; Wed, 25 Apr 2018 17:32:49 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 25 Apr 2018 17:32:47 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 25 Apr 2018 17:32:47 +0800 From: To: , , , , , , , CC: , , , , , , "Sean Wang" Subject: [PATCH v2 00/17] Add support to MT6323 RTC and its power device Date: Wed, 25 Apr 2018 17:32:26 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang v2: - The changes must be relative to the below tree since one critial patch for the rtc-mt6397.c the series depends on was being applied into the tree. Otherwise, for example, if the series are applied on the top of [1], a build error must happen due to an implicit declaration of function 'irq_create_mapping' as kbuild test robot was reporting in [2]. tree : https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git branch : mfd/ib-mfd-input-rtc-4.18 - changes since v1: * Define the power controller as a function of MT6323 MFD. * Refine the whole series commit message and title. * Add tag Reviewed-by and Acked-by got from v1 result. * Reuse use the DEFINE_RES_* helpers in mfd driver. * Remove an overdone patch rtc: mediatek: remove unnecessary parentheses. * Use devm_rtc_allocate_device() and rtc_register_device instead of devm_rtc_device_register. * Have an improvement according to the license rule the SPDX notation for C header file. * Move a file from include/linux/rtc/mt6397.h to include/linux/mfd/mt6397/rtc.h * Refine include/linux/mfd/mt6397/rtc.h [1] https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git [2] http://lists.infradead.org/pipermail/linux-mediatek/2018-March/012548.html v1: Hi, The series keeps to extend the capability of BPI-R2 board with MT7623 and the result can as well bring benefits into the other MediaTek PMICs such as MT6397 or SoCs. The series sent across mfd, rtc, pm, dt-binding sub-system is for hoping to let people have a simple cross-reference to know the exact dependency and why those patches are being split in that way between each one. Patch 1-3: Add dt-binding to the related devices newly or already supported. Patch 4-5: Extend driver with the functionality of MT6323 RTC device. Patch 6-9 and 12-13: Add a few of trivial fixups, cleanups and improvements. Patch 10-11: It's a preparation for Patch 14 adding a new driver. Patch 14: Add a new driver for a power-off driver. Patch 15-16: Update MAINTAINERS with these new files being added. Sean Sean Wang (17): dt-bindings: power: reset: mt6323: add bindings for MT6323 power controller dt-bindings: rtc: mt6397: add bindings for MediaTek PMIC based RTC dt-bindings: mfd: mt6397: add a description for MT6323 RTC dt-bindings: mfd: mt6397: add a description for MT6323 power controller mfd: mt6397: add MT6323 RTC support into MT6397 driver mfd: mt6397: add support for MT6323 power controller into MT6397 driver mfd: mt6397: reuse DEFINE_RES_* helpers rtc: mt6397: add MT6323 support to RTC driver rtc: mt6397: replace a poll with regmap_read_poll_timeout rtc: mt6397: remove unnecessary irq_dispose_mapping rtc: mt6397: convert to use device managed functions rtc: mt6397: move the declaration into a globally visible header file rtc: mt6397: cleanup header files to include rtc: mt6397: update license converting to using SPDX identifiers power: reset: mt6323: add a driver for MT6323 power controller MAINTAINERS: update entry for ARM/Mediatek RTC DRIVER MAINTAINERS: add an entry for MediaTek board level shutdown driver Documentation/devicetree/bindings/mfd/mt6397.txt | 10 +- .../bindings/power/reset/mt6323-poweroff.txt | 20 +++ .../devicetree/bindings/rtc/rtc-mt6397.txt | 29 ++++ MAINTAINERS | 9 ++ 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 | 146 +++++---------------- include/linux/mfd/mt6397/rtc.h | 71 ++++++++++ 10 files changed, 308 insertions(+), 125 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.7.4