From patchwork Tue Mar 31 04:07:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Hsiung Wang X-Patchwork-Id: 212440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MIME_BASE64_TEXT, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1495C2D0F4 for ; Tue, 31 Mar 2020 04:08:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A7D9920748 for ; Tue, 31 Mar 2020 04:08:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="MLrdhoml" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbgCaEHw (ORCPT ); Tue, 31 Mar 2020 00:07:52 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:51617 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725792AbgCaEHv (ORCPT ); Tue, 31 Mar 2020 00:07:51 -0400 X-UUID: 431f3b00fa2444e887b8bc81a5a01dbd-20200331 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=6cH/NQKcPKqnVf6a6IZggs62m/KD6ANc8osyacauays=; b=MLrdhomltPL1bVKFbGkqFF3CNzF9snFr56BNXlWwatKHSyEHJ1RtGoleqx3wrWhXu7IS9O3iAEJeW958rUrPPwjWBhDMHujxm/vXK5GWBKZfBdxg/mSeLDUQBQVNj1+6BKCa4jTxAOJu9FLnLP9G9F8qM+qtZksZLgeCYzzoy9o=; X-UUID: 431f3b00fa2444e887b8bc81a5a01dbd-20200331 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 685286035; Tue, 31 Mar 2020 12:07:47 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 12:07:34 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 31 Mar 2020 12:07:39 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Alexandre Belloni CC: Nicolas Boichat , Mark Rutland , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Kate Stewart , Richard Fontana , Frank Wunderlich , Josef Friedl , Thomas Gleixner , Hsin-Hsiung Wang , Ran Bi , , , , , , , Subject: [PATCH v11 0/5] Add Support for MediaTek PMIC MT6358 Date: Tue, 31 Mar 2020 12:07:32 +0800 Message-ID: <1585627657-3265-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 X-TM-SNTS-SMTP: 9478A9E60E7CEAB7CD3D185E20460CD264C9B82EE337357E728FF91007D8EDDE2000:8 X-MTK: N Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This patchset including modifying suspend/resume behavior add support to MT6358 PMIC. MT6358 is the primary PMIC for MT8183 platform. changes since v10: - get match data without cast in the rtc driver. - move MODULE_DEVICE_TABLE to the bottom of the file in the rtc driver. Hsin-Hsiung Wang (4): mfd: mt6397: modify suspend/resume behavior dt-bindings: mfd: Add compatible for the MediaTek MT6358 PMIC mfd: Add support for the MediaTek MT6358 PMIC arm64: dts: mt6358: add PMIC MT6358 related nodes Ran Bi (1): rtc: mt6397: Add support for the MediaTek MT6358 RTC Documentation/devicetree/bindings/mfd/mt6397.txt | 14 +- arch/arm64/boot/dts/mediatek/mt6358.dtsi | 358 +++++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 1 + drivers/mfd/Makefile | 2 +- drivers/mfd/mt6358-irq.c | 236 +++++++++++++++ drivers/mfd/mt6397-core.c | 85 +++--- drivers/mfd/mt6397-irq.c | 33 +++ drivers/power/reset/mt6323-poweroff.c | 2 +- drivers/rtc/rtc-mt6397.c | 23 +- include/linux/mfd/mt6358/core.h | 158 ++++++++++ include/linux/mfd/mt6358/registers.h | 282 ++++++++++++++++++ include/linux/mfd/mt6397/core.h | 5 + include/linux/mfd/mt6397/rtc.h | 9 +- 13 files changed, 1163 insertions(+), 45 deletions(-) create mode 100644 arch/arm64/boot/dts/mediatek/mt6358.dtsi create mode 100644 drivers/mfd/mt6358-irq.c create mode 100644 include/linux/mfd/mt6358/core.h create mode 100644 include/linux/mfd/mt6358/registers.h -- 2.6.4