From patchwork Wed Mar 11 09:16:58 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: 203512 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 478E3C10F27 for ; Wed, 11 Mar 2020 09:17:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F2DF2146E for ; Wed, 11 Mar 2020 09:17:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="M56im9O3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728852AbgCKJRQ (ORCPT ); Wed, 11 Mar 2020 05:17:16 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:58454 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728606AbgCKJRQ (ORCPT ); Wed, 11 Mar 2020 05:17:16 -0400 X-UUID: e5f77489817f46938285fbb914e26390-20200311 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=w/OFvaAVqelVRqsmT335UVcjfyRxqRhg1qlxZpxXnpY=; b=M56im9O3gMpK9T2JmCngoiZYscMXlR4BpT6C5tbfeOd32LrLxKi7PInM16+ItyscRh0xCoyMs+p0m3GQbvbL5z4uPiNR+XEWIkVMt6JkeoBlUfWXUJjh/6dVispN67R5AXBlEYcZTHvmoccDAdSD/zWnS2YHhuKC0TVZiEBvO24=; X-UUID: e5f77489817f46938285fbb914e26390-20200311 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 4283539; Wed, 11 Mar 2020 17:17:12 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 11 Mar 2020 17:15:37 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 11 Mar 2020 17:17:12 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Alexandre Belloni , Matthias Brugger CC: Mark Rutland , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Hsin-Hsiung Wang , Frank Wunderlich , Thomas Gleixner , Richard Fontana , Josef Friedl , Ran Bi , , , , , , , Nicolas Boichat , Subject: [PATCH v10 0/5] Add Support for MediaTek PMIC MT6358 Date: Wed, 11 Mar 2020 17:16:58 +0800 Message-ID: <1583918223-22506-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 X-MTK: N Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 v9: - remove redundant loop in mfd driver. - move mtk_rtc_data from rtc.h to rtc-mt6397.c 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 | 32 +- 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, 1168 insertions(+), 49 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