Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp326214yba; Fri, 3 May 2019 02:35:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuhX44m9TOqRe1o0J9w3ZCv0BnFpBAZ4oR9hNV0hRgjPmFY2NNutiFCOmXlSfTeEoxit0K X-Received: by 2002:a63:5659:: with SMTP id g25mr9114779pgm.59.1556876155009; Fri, 03 May 2019 02:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556876155; cv=none; d=google.com; s=arc-20160816; b=py0se300b0wHL+9NMeId0YEdj8ryd7HKth/GS+0Gd2LZLzfjFh4DQ719xUbcsdxrFb TwV1xrK/MM0T/lROpOdWDKs+3Vlx6uHZLXluhcCETi/t9/R+t4g6pbhG/m3bk7gtHjvg 5DGSCjwGFwTu0bGhFiFaKYaY63UfOobz6Z9NS44KtLpv88J4yICeEI+joAk1i60HGe+a ytBhjg4fTb485lXWT6mlvxWYms6ZlkLXkYRSs6/FP3427eUbSvDBLsPvGE5xcIp/69ug FEU0CaafJvZ6swe5iaRzMp66taS9sh1LnTmytQx/nmGXN0ZgkFtqCPkZygQH5ylbbejz SHxQ== 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=kX5JWPu+b3jhpataTy7yFqhY31B1B509AiOwduiHSz0=; b=n82QR7Nh4qEgroZ0AB2gryl3Bn9MuFUTMIApi1eLmwnDqZZ/fuGza8Q9CaRptsqsoA xeK22dbt+VM8CANxcgbDMK60xb3zNVECSXxgTQuGycJCGienafVlPXEeYkQ6VQYfNZBW XUHCyWZE037lIsM7cnqGAkqvqZOsOHbHmy5aCka9+G0w8MOz/s2u3f2E074GHVS3cKXr sQwgnYXdMqStQWbPC34aLSKVzfpzXCa5Cw0waehjMWP2FmUvd5WAqlmb3ipKqYKkPXl3 Fn844dmEo1/1JLV1qEMoOK4280xyvv2Zbz5DWwYkhF+j8mawL8e0WhZc/LPORSsS/OxV Gkmg== 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 v6si1685566plp.296.2019.05.03.02.35.39; Fri, 03 May 2019 02:35:54 -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 S1727471AbfECJc7 (ORCPT + 99 others); Fri, 3 May 2019 05:32:59 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:3695 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727065AbfECJcx (ORCPT ); Fri, 3 May 2019 05:32:53 -0400 X-UUID: 83e55071fc694c3791f0629c516cc74e-20190503 X-UUID: 83e55071fc694c3791f0629c516cc74e-20190503 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1258667011; Fri, 03 May 2019 17:32:41 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 3 May 2019 17:32:39 +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; Fri, 3 May 2019 17:32:39 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Mark Brown , Matthias Brugger CC: Liam Girdwood , Mark Rutland , Eddie Huang , Sean Wang , Alessandro Zummo , Alexandre Belloni , Hsin-Hsiung Wang , , , , , , Subject: [PATCH v3 00/10] Add Support for MediaTek PMIC MT6358 Date: Fri, 3 May 2019 17:31:07 +0800 Message-ID: <20190503093117.54830-1-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 7D00067F9E396F22E551B149909C1757BD011A8E6CD7F1F19677A6571AAF39D12000:8 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 v2: - rewrite the description of MT6358 regulators. - refine some coding style in the dts for better code quality. - refine the suspend behavior of mfd driver. - some minor bug fix of mfd driver, like adding IRQCHIP_SKIP_SET_WAKE flag. - remove unused MT6358 register. - merge the same voltage table and remove unused chip id in the MT6358 regulator driver. 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 .../devicetree/bindings/mfd/mt6397.txt | 11 +- .../bindings/regulator/mt6358-regulator.txt | 358 +++++++++++ arch/arm64/boot/dts/mediatek/mt6358.dtsi | 358 +++++++++++ drivers/mfd/Makefile | 4 +- drivers/mfd/mt6358-irq.c | 229 +++++++ drivers/mfd/mt6397-core.c | 293 +++------ drivers/mfd/mt6397-irq.c | 214 +++++++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6358-regulator.c | 586 ++++++++++++++++++ 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, 2442 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 -- 2.18.0