Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp745440imc; Sun, 10 Mar 2019 20:49:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBUbsLNr9+BKTV91DrdaMzUZeoCc7aywb3CkS+f2Hl8jS0o5PFVsbNF4N6Y2he7HiClXLm X-Received: by 2002:a62:ed06:: with SMTP id u6mr30460075pfh.132.1552276161296; Sun, 10 Mar 2019 20:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552276161; cv=none; d=google.com; s=arc-20160816; b=pFlNUlkvqo0q40prjX+0vyALYiqvL0N9ca5+dlPhKIGlqm3DSdNClho1/DZl5Z8yVj sj73zSrru1+OtDcKm29LZh7Z0B1BUz9Uc7p1t5htKidg6bWc53cNRg5bq27IHo7IxKVk rUqWGO5OGaoltAyPGwkM1+7aBP7pjFRFNt8ARRHfE8PuLFDfD6rvcyP6aUB9tlTHrdiY yDMWB4unanjHTGsBMS64VmmAq1Rm8212WzCKkws49m2uBWLhT2OUHUBG/RhfazEtUlSA QyNLHZx1uTpqKc89N8eUcXXDkUNMtP4c09c3HFIC+sIx0uzWn/JBBTPdhCz1J6OEL2Q+ 3zbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=seVs3OOxwFbgUZkCOxJ1pWiGtWFa3/o2vz5F0S/iHbI=; b=WX6A/HIa30ZvaXbI/kXQQV6Ozo1rFu4ohAUBcei2++GtamMRwqWz4bD9ll+8F57IjM a6HP8GjTC5yPe0JKBhE71zXcHvHzOySAX8+Lp0Dk8aVYY+D0N/Yq71Bhnd3vacHO5PNr FgWeDiwGHMEFuNCPxC79/CfOmsoN4vMrZArBIEzwxtEm3++VOPcOl/RqJxQ43CEkHIoN JZQR7zDl/iDucacPueyQRYMKMLpCFF6jo276p5gLDcaiyi6dAtk3EegOn2JRS7g/UwPU 0UqmdHFZrH45vSYxW5AU58GZd+jy223zOBUsQR7neDaotp4fUyte22eb5E2bTtenonxc zgcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si4552050plb.138.2019.03.10.20.49.05; Sun, 10 Mar 2019 20:49:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727361AbfCKDsR (ORCPT + 99 others); Sun, 10 Mar 2019 23:48:17 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:29574 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727028AbfCKDsP (ORCPT ); Sun, 10 Mar 2019 23:48:15 -0400 X-UUID: 46008fe1903c4d55a7f222371891aa97-20190311 X-UUID: 46008fe1903c4d55a7f222371891aa97-20190311 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1501552983; Mon, 11 Mar 2019 11:48:09 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Mar 2019 11:48:07 +0800 Received: from mtkslt302.mediatek.inc (10.21.14.115) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 11 Mar 2019 11:48:07 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Mark Brown , Eddie Huang CC: Marc Zyngier , , , , , , , Liam Girdwood , Mark Rutland , Sean Wang , Alessandro Zummo , Alexandre Belloni , Hsin-Hsiung Wang Subject: [PATCH v2 0/9] Add Support for MediaTek PMIC MT6358 Date: Mon, 11 Mar 2019 11:46:22 +0800 Message-ID: <1552275991-34648-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset including refactoring interrupt add support to MT6358 PMIC. MT6358 is the primary PMIC for MT8183 platform. changes since v1: - refine for better code quality. - remove of_match_table in the MT6358 regulator driver. - some minor bug fix of mfd driver, like getting pmic id flow. - add support for the MediaTek MT6358 RTC. Hsin-Hsiung Wang (7): mfd: mt6397: clean up code 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 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 | 318 ++++ arch/arm64/boot/dts/mediatek/mt6358.dtsi | 318 ++++ drivers/mfd/Makefile | 2 +- drivers/mfd/mt6358-irq.c | 236 +++ drivers/mfd/mt6397-core.c | 289 +-- drivers/mfd/mt6397-irq.c | 214 +++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6358-regulator.c | 600 ++++++ drivers/rtc/rtc-mt6397.c | 63 +- 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 + 15 files changed, 4000 insertions(+), 216 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 -- 1.9.1