Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5002705pxj; Tue, 25 May 2021 23:53:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznF+f7kCXM3LgqSNdx6K0dJyf4KrxgoqWb+8DsNWY+6Hp8QM5xcUU1SFa9jEkaY/tzIF9z X-Received: by 2002:a05:6402:60a:: with SMTP id n10mr9378294edv.241.1622012038157; Tue, 25 May 2021 23:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622012038; cv=none; d=google.com; s=arc-20160816; b=nUPeQxuxJ8tLrb7+PFqPJSfWn1JkXqQ/QGwXvzIU3T2hgtxqITX2hnlMv0OyPzMRdY ht4HXteXPVyyzM5NsoLM57heF1/eOdIeR/OfW3cLGULU9J1DNSEcTeGZYMK+8rTL7/uL tGiDbv/pzKKMlR6P6ihZGFwR5iF1aiWy9FQmM8yDXAR/xNwv0QHKh0FxlL/+/l6tYNod B3CsZoisMygDQkXm2J7YPCUIXEC9ayhaQSBh18nir23QrLP37SPedL0y3FTqZmopFmqw j5tJP3btan2C6w/qk3MYszbXKxiIgS3KP5JBn1YrPXa+8oEa3u5OTTkDtsJTSK4g9nqh y3dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=jIHNvguH/DMdephD5jP8q34sUlYLQoV+SA1nKMgvwS8=; b=s6XOLBQ912u4zvvVXNwiUJdgGCQCzMNQQ+tNMcIwuQiJ+9UJFr/veMYXgIqJs/yGTZ 5BxHMXjPqPYaU9rQPayeUGYeeOif3JQVGpoUheDJbnI8U3pJS1grrvCFMfibz2HvKare nertSgbvAk3vPFb5cDZXvuBiZlKeL/7w9I69/2SU8ynMzPmYYiUrAPRuNOxkMUccWwmd F5/TA4m9nq8AjZDVS9IpB7FUjLGpFft9BLmit1SSl1ZxVMlPyFPMD7eURoBoeMWdbJKp wCwBgfcY0rpOiSu7su0TD4dTAT6wDi3ptCj8cJNVtaiegaohiNesztoS6eFvvWM8OTja iWNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si18300766edi.75.2021.05.25.23.53.34; Tue, 25 May 2021 23:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232931AbhEZGxw (ORCPT + 99 others); Wed, 26 May 2021 02:53:52 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40870 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232850AbhEZGxs (ORCPT ); Wed, 26 May 2021 02:53:48 -0400 X-UUID: de3cbdd2a4f3418eba2329d6ee8cbd53-20210526 X-UUID: de3cbdd2a4f3418eba2329d6ee8cbd53-20210526 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 327790574; Wed, 26 May 2021 14:52:13 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 26 May 2021 14:52:12 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 May 2021 14:52:11 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Liam Girdwood , Mark Brown , Eddie Huang , Alessandro Zummo , Alexandre Belloni , Fei Shao CC: Sean Wang , Hsin-Hsiung Wang , Yuchen Huang , , , , , , , Subject: [PATCH v8 0/8] Add Support for MediaTek PMIC MT6359 Date: Wed, 26 May 2021 14:51:59 +0800 Message-ID: <1622011927-359-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset includes refactoring interrupt and adding support to MT6359 PMIC. MT6359 is the primary PMIC for MT6779 and probably other SOCs. The series[1] sent by Wen will continue to upstream in this patchset afterwards. This patchset is based on the pmic wrapper patchset[2]. [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=306579 [2] https://patchwork.kernel.org/project/linux-mediatek/list/?series=447127 changes since v7: - rebase to Linux 5.13. Hsin-Hsiung Wang (6): mfd: mt6358: refine interrupt code rtc: mt6397: refine RTC_TC_MTH dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC dt-bindings: regulator: Add document for MT6359 regulator mfd: Add support for the MediaTek MT6359 PMIC regulator: mt6359: Add support for MT6359P regulator Wen Su (2): regulator: mt6359: Add support for MT6359 regulator arm64: dts: mt6359: add PMIC MT6359 related nodes Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + .../bindings/regulator/mt6359-regulator.yaml | 385 ++++++++ arch/arm64/boot/dts/mediatek/mt6359.dtsi | 298 ++++++ arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 1 + drivers/mfd/mt6358-irq.c | 89 +- drivers/mfd/mt6397-core.c | 24 + drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6359-regulator.c | 1036 ++++++++++++++++++++ drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6358/core.h | 8 +- include/linux/mfd/mt6359/core.h | 133 +++ include/linux/mfd/mt6359/registers.h | 529 ++++++++++ include/linux/mfd/mt6359p/registers.h | 249 +++++ include/linux/mfd/mt6397/core.h | 1 + include/linux/mfd/mt6397/rtc.h | 1 + include/linux/regulator/mt6359-regulator.h | 59 ++ 17 files changed, 2793 insertions(+), 33 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/mt6359-regulator.yaml create mode 100644 arch/arm64/boot/dts/mediatek/mt6359.dtsi create mode 100644 drivers/regulator/mt6359-regulator.c create mode 100644 include/linux/mfd/mt6359/core.h create mode 100644 include/linux/mfd/mt6359/registers.h create mode 100644 include/linux/mfd/mt6359p/registers.h create mode 100644 include/linux/regulator/mt6359-regulator.h -- 2.6.4