From patchwork Wed Jan 30 09:18:05 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: 10787971 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 0F645746 for ; Wed, 30 Jan 2019 09:19:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9588D2D235 for ; Wed, 30 Jan 2019 09:19:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 894142D2A1; Wed, 30 Jan 2019 09:19:12 +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=ham 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 34D392D235 for ; Wed, 30 Jan 2019 09:19:12 +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=hpW3PgaQoyt+gw/tuR9iZgCoUItJMwM4lhKN/6PBWSg=; b=K7zuWWxraCMgfF AGLF4tDjZpv3AdZr8C/Wu6NMxVcXBPDgKTycnfy4pJEMB+Kw+b7b2Ad9yIrTuZSdOLn1vIEnK4rkZ aJ8DZXnAiHvOogAx1s2TMuToW0dVIvzOigvH/70hkgaVvz3Dix97J0qau7/bqtGVSEKAd3Tm2bRmD N22Y89TC5ZKzSymxIFRB2ec4X4l2e8azXxLkQBW7QHpYnKB6RnVPRGGL89HD4SwXC13/ZkOOupcq8 exkZlBLzlsnHfpNNk7qDKS4CKgc0Jka4clVvGVL7PCcKFAEp0Ao/Wfck8nyTu+/Jf44VqNM68Xax8 7XBDs5siYVakpCUmVofA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gom1W-0005gy-Le; Wed, 30 Jan 2019 09:19:10 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gom0y-000521-EW; Wed, 30 Jan 2019 09:18:37 +0000 X-UUID: 7887061645734d54bb8a6d49e2a9597d-20190130 X-UUID: 7887061645734d54bb8a6d49e2a9597d-20190130 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1841366583; Wed, 30 Jan 2019 01:18:28 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 30 Jan 2019 01:18:26 -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, 30 Jan 2019 17:18:24 +0800 Received: from mtkslt302.mediatek.inc (10.21.14.115) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 30 Jan 2019 17:18:24 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Mark Brown Subject: [PATCH 0/6] Add Support for MediaTek PMIC MT6358 MFD Core and Regulator Date: Wed, 30 Jan 2019 17:18:05 +0800 Message-ID: <1548839891-20932-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190130_011836_486374_E0AC993F X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, srv_heupstream@mediatek.com, Liam Girdwood , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Hsin-Hsiung Wang Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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. Hsin-Hsiung Wang (6): mfd: mt6397: extract irq related code from core driver 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 Documentation/devicetree/bindings/mfd/mt6397.txt | 9 +- .../bindings/regulator/mt6358-regulator.txt | 318 ++++ arch/arm64/boot/dts/mediatek/mt6358.dtsi | 318 ++++ drivers/mfd/Makefile | 2 +- drivers/mfd/mt6358-irq.c | 236 +++ drivers/mfd/mt6397-core.c | 291 +-- drivers/mfd/mt6397-irq.c | 214 +++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6358-regulator.c | 607 ++++++ include/linux/mfd/mt6358/core.h | 158 ++ include/linux/mfd/mt6358/registers.h | 1926 ++++++++++++++++++++ include/linux/mfd/mt6397/core.h | 15 + include/linux/regulator/mt6358-regulator.h | 56 + 14 files changed, 3962 insertions(+), 198 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