From patchwork Mon Aug 5 05:21:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Hsiung Wang X-Patchwork-Id: 11076067 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 7AC20912 for ; Mon, 5 Aug 2019 05:25:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63E0B26E90 for ; Mon, 5 Aug 2019 05:25:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 581CE284BE; Mon, 5 Aug 2019 05:25:41 +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,UNPARSEABLE_RELAY autolearn=unavailable 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 0DB7F26E90 for ; Mon, 5 Aug 2019 05:25:41 +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=lXW1d79yS2BxLrb8kOEUAgwZJIDBhrXbxb0sOOy2q/g=; b=YB/x9cJNx/aHvq IKQ1/D8xAKMGs1Y8qBbVXrbQEuGl7qSGZD0H70sq1HafKZWdULsPNuKB2RC6F1u+oaj03S/99wCMV OqeqPf0hvt0A1RYZp9FfbLnYQscnutIAXNCeqFBCNYdhdJra7I2XrnKw8+bBQD7259Ekg8/MfM47w g/pul/HrzCVjq/Enh1EACTMPN7V7DhnUJBR3ki03CCl6km+DqNKpPAzD+ahnZ+snDZyeWCAJ4taSj I/4XcLGdlsGGrg7UTxuWlVPPeiyuzTKmXUbXwVuiB6D1d1pUaduUoH4cC4yQ6HKY4RHttMfI3iata teOkU7HSYx7NXV250oTw==; 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 1huVV6-00023C-C4; Mon, 05 Aug 2019 05:25:40 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1huVSZ-00070W-Gz; Mon, 05 Aug 2019 05:23:04 +0000 X-UUID: 673e2c0a7cf24569a1b8fb972098a5da-20190804 X-UUID: 673e2c0a7cf24569a1b8fb972098a5da-20190804 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 2083306908; Sun, 04 Aug 2019 21:22:56 -0800 Received: from MTKMBS01N2.mediatek.inc (172.21.101.79) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 4 Aug 2019 22:22:55 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 5 Aug 2019 13:22:41 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 5 Aug 2019 13:22:41 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Mark Brown Subject: [PATCH v4 00/10] Add Support for MediaTek PMIC MT6358 Date: Mon, 5 Aug 2019 13:21:48 +0800 Message-ID: <1564982518-32163-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-TM-SNTS-SMTP: B7A1D82E4A122D7A7FC8BF3D5936A10879DD64CFF1D5E491B7B59F716D384DAF2000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190804_222303_569699_D743AB63 X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Alessandro Zummo , Alexandre Belloni , srv_heupstream@mediatek.com, devicetree@vger.kernel.org, Kate Stewart , Sean Wang , Liam Girdwood , linux-kernel@vger.kernel.org, Richard Fontana , linux-mediatek@lists.infradead.org, Allison Randal , linux-rtc@vger.kernel.org, Thomas Gleixner , Eddie Huang , Hsin-Hsiung Wang , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset including refactoring interrupt add support to MT6358 PMIC. MT6358 is the primary PMIC for MT8183 platform. changes since v3: - refine some coding style in the mt6358 interrupt setting for better code quality. - refine some coding style in the mt6358 regulstor for better code quality. - fix correct voltage register for vgpu. - remove useless define in mt6397-core.c. - add rtc node in 6358.dtsi. Hsin-Hsiung Wang (8): mfd: mt6397: clean up code mfd: mt6397: extract irq related code from core driver mfd: mt6397: modify suspend/resume behavior dt-bindings: mfd: Add compatible for the MediaTek MT6358 PMIC regulator: Add document for MT6358 regulator mfd: Add support for the MediaTek MT6358 PMIC regulator: mt6358: Add support for MT6358 regulator arm64: dts: mt6358: add PMIC MT6358 related nodes Ran Bi (2): rtc: mt6397: fix alarm register overwrite rtc: Add support for the MediaTek MT6358 RTC Documentation/devicetree/bindings/mfd/mt6397.txt | 11 +- .../bindings/regulator/mt6358-regulator.txt | 358 +++++++++++++ arch/arm64/boot/dts/mediatek/mt6358.dtsi | 362 +++++++++++++ drivers/mfd/Makefile | 4 +- drivers/mfd/mt6358-irq.c | 229 ++++++++ drivers/mfd/mt6397-core.c | 281 +++------- drivers/mfd/mt6397-irq.c | 214 ++++++++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6358-regulator.c | 580 +++++++++++++++++++++ drivers/rtc/rtc-mt6397.c | 90 +++- include/linux/mfd/mt6358/core.h | 158 ++++++ include/linux/mfd/mt6358/registers.h | 282 ++++++++++ include/linux/mfd/mt6397/core.h | 15 + include/linux/regulator/mt6358-regulator.h | 56 ++ 15 files changed, 2428 insertions(+), 222 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/mt6358-regulator.txt create mode 100644 arch/arm64/boot/dts/mediatek/mt6358.dtsi create mode 100644 drivers/mfd/mt6358-irq.c create mode 100644 drivers/mfd/mt6397-irq.c create mode 100644 drivers/regulator/mt6358-regulator.c create mode 100644 include/linux/mfd/mt6358/core.h create mode 100644 include/linux/mfd/mt6358/registers.h create mode 100644 include/linux/regulator/mt6358-regulator.h