From patchwork Tue Apr 21 03:00:06 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: 201712 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 9675AC38A30 for ; Tue, 21 Apr 2020 03:00:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 71CC220782 for ; Tue, 21 Apr 2020 03:00:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="lhc693EK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727911AbgDUDA0 (ORCPT ); Mon, 20 Apr 2020 23:00:26 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:3503 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727889AbgDUDAZ (ORCPT ); Mon, 20 Apr 2020 23:00:25 -0400 X-UUID: 74d6c1ec07f543caacbecb519939d4c8-20200421 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=ZLGMpeA19u1Wima9wc0S7lbHcEYXik+4JHiV+qyzH4U=; b=lhc693EKaBy0XHE9FarKqckLUwKiTZ2x5Qsw2rU4P/Ok+SP7Uvz5OzupMeTAxya+csS6N9NU/LKGsnqONlAnJJyM8UsRWvdBibiUymqZuGSsUsMRaRkpEkDvFMI2ji/VfoLmPZJMjhfsp4a86IVQOUCGVE3ljA3Z8GnuVSJJlyg=; X-UUID: 74d6c1ec07f543caacbecb519939d4c8-20200421 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 610182586; Tue, 21 Apr 2020 11:00:15 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Apr 2020 11:00:13 +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.1497.2 via Frontend Transport; Tue, 21 Apr 2020 11:00:12 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Alexandre Belloni CC: , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Frank Wunderlich , Hsin-Hsiung Wang , Josef Friedl , Richard Fontana , Thomas Gleixner , Ran Bi , , , , , , , Subject: [PATCH v13 0/6] Add Support for MediaTek PMIC MT6358 Date: Tue, 21 Apr 2020 11:00:06 +0800 Message-ID: <1587438012-24832-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: F7DE3C45707E7BC4C1C7A2764009051DD0C524407E750491ADB5A3F3C0033AAC2000:8 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 and trimming probe function add support to MT6358 PMIC. MT6358 is the primary PMIC for MT8183 platform. changes since v12: - update file date. - modify patch sign-offs block according to chronological order. - modify register definition in header file. - rebase series on 5.7-rc1. Hsin-Hsiung Wang (5): mfd: mt6397: Modify suspend/resume behavior mfd: mt6397: Trim probe function to support different chips more cleanly 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 | 235 +++++++++++++++ drivers/mfd/mt6397-core.c | 101 ++++--- drivers/mfd/mt6397-irq.c | 35 ++- drivers/power/reset/mt6323-poweroff.c | 2 +- drivers/rtc/rtc-mt6397.c | 18 +- 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, 1158 insertions(+), 62 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