From patchwork Tue Oct 20 09:56:47 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: 11846195 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9C33214B7 for ; Tue, 20 Oct 2020 09:57:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7048D22242 for ; Tue, 20 Oct 2020 09:57:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="NVTTB2dd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404899AbgJTJ5e (ORCPT ); Tue, 20 Oct 2020 05:57:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36248 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2404842AbgJTJ5d (ORCPT ); Tue, 20 Oct 2020 05:57:33 -0400 X-UUID: 84b68f903f7f4d7f980a327c9e2f2129-20201020 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=d/NOO1/ZvVrjHEZtoazU2Jh5NKFcbgFkHExmk+6HUCk=; b=NVTTB2ddjtLmuBLQJwAB147m+gIixhx+krjzHzIrNn4Jhq/Nlovx6VI2xKUVVh/n0RhWIye22NNhWWnWX9+6V5mYZQmAfalnLkf7S0jfSVcC6xHNP+ZfWpP8fgGuEQK81WbtrADv7RJ++oDEgL3t99sbjL3KYUxNw2KLJufwrKw=; X-UUID: 84b68f903f7f4d7f980a327c9e2f2129-20201020 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.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 1209825171; Tue, 20 Oct 2020 17:57:26 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 20 Oct 2020 17:57:24 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 20 Oct 2020 17:57:25 +0800 From: Hsin-Hsiung Wang To: Liam Girdwood , Mark Brown , Rob Herring , Matthias Brugger , Stephen Boyd CC: , , , , , , Hsin-Hsiung Wang Subject: [PATCH v2 0/3] Add support for MT6315 regulator Date: Tue, 20 Oct 2020 17:56:47 +0800 Message-ID: <1603187810-30481-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: linux-arm-msm@vger.kernel.org This patch series add support for MediaTek PMIC MT6315 regulator driver, which adds MT6315 related buck voltage data to the driver. changes since v1: - update binding document in DT schema format. - add mtk,combined-regulator properity to show the relationship of MT6315 bucks. - ignore the regulator registration of combined buck in probe. Hsin-Hsiung Wang (3): spmi: Add driver shutdown support dt-bindings: regulator: document binding for MT6315 regulator regulator: mt6315: Add support for MT6315 regulator .../regulator/mtk,mt6315-regulator.yaml | 88 +++++ drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6315-regulator.c | 364 ++++++++++++++++++ drivers/spmi/spmi.c | 9 + include/dt-bindings/regulator/mtk,mt6315.h | 17 + include/linux/regulator/mt6315-regulator.h | 37 ++ include/linux/spmi.h | 1 + 8 files changed, 527 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mtk,mt6315-regulator.yaml create mode 100644 drivers/regulator/mt6315-regulator.c create mode 100644 include/dt-bindings/regulator/mtk,mt6315.h create mode 100644 include/linux/regulator/mt6315-regulator.h