From patchwork Wed Dec 23 12:13:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Hsiung Wang X-Patchwork-Id: 352069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1403C43381 for ; Wed, 23 Dec 2020 12:15:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C7A22246B for ; Wed, 23 Dec 2020 12:15:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728641AbgLWMOy (ORCPT ); Wed, 23 Dec 2020 07:14:54 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:37591 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728330AbgLWMOw (ORCPT ); Wed, 23 Dec 2020 07:14:52 -0500 X-UUID: cf142bb577984ca19cedf7ebae6db2b2-20201223 X-UUID: cf142bb577984ca19cedf7ebae6db2b2-20201223 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 75795305; Wed, 23 Dec 2020 20:14:09 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 23 Dec 2020 20:13:46 +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, 23 Dec 2020 20:13:45 +0800 From: Hsin-Hsiung Wang To: Liam Girdwood , Mark Brown , Rob Herring , Matthias Brugger , CC: Hsin-Hsiung Wang , , , , , , Subject: [PATCH v3 0/3] Add support for MT6315 regulator Date: Wed, 23 Dec 2020 20:13:41 +0800 Message-ID: <1608725624-30594-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch series adds support for MediaTek PMIC MT6315 regulator driver, which adds MT6315 related buck voltage data to the driver. This series is based on below patch[1]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/commit/?h=char-misc-next&id=d40c2d4ed62df64ce603c208bceff25245380157 changes since v2: - fix the error of binding document. - refine the mt6315 regulator for better code quality. - add mt6315 regulator node into mt8192-evb.dts. Hsin-Hsiung Wang (3): dt-bindings: regulator: document binding for MT6315 regulator regulator: mt6315: Add support for MT6315 regulator arm64: dts: mt8192: add mt6315 regulator nodes .../bindings/regulator/mt6315-regulator.yaml | 71 +++++ arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 46 +++ drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6315-regulator.c | 298 ++++++++++++++++++ include/linux/regulator/mt6315-regulator.h | 45 +++ 6 files changed, 471 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml create mode 100644 drivers/regulator/mt6315-regulator.c create mode 100644 include/linux/regulator/mt6315-regulator.h