From patchwork Wed Dec 1 07:25:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5F21C433EF for ; Wed, 1 Dec 2021 07:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347366AbhLAH24 (ORCPT ); Wed, 1 Dec 2021 02:28:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347373AbhLAH2y (ORCPT ); Wed, 1 Dec 2021 02:28:54 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AFEBC061757; Tue, 30 Nov 2021 23:25:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 589E8CE1D67; Wed, 1 Dec 2021 07:25:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FB26C53FD3; Wed, 1 Dec 2021 07:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343528; bh=RPCOcElDh6GCMU7cQoyYSvQ2DST2lJDoZJ49UXUoXM4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GUBx4b9kxGrx2hliHuHMx/QfT0QkKikoyUoapBP3drbW3jaqL3vk4XEd0QKS2qun9 +JTv+wB3v/pOhOP/6V8mtqKDUV6BwawazX3sbefcR6a4l/z0UMnbyf++07ur+YxDGc 27is6KKQD6LlcEhCc9oKf7OC8RpP5rAi6epA1UMXCjjW31acvtMYrIF+S8D3DXPoSm Z3d+rVsKcm/AyLxlK+uWleKj8ArtefEku6z2lgJeqES6WoGbO4iZBRZ/Ef0kFdA/DA pfJUBYot3CN2akZZnSnk4ts3EX0IEGZBE50c2VSaJuLLKunPWVngTXI1RPPhUbr0UX FkAqFO9CznC1Q== From: Vinod Koul To: Mark Brown , Rob Herring Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Liam Girdwood , David Collins , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] regulator: qcom,rpmh: Add compatible for PM8450 Date: Wed, 1 Dec 2021 12:55:14 +0530 Message-Id: <20211201072515.3968843-2-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072515.3968843-1-vkoul@kernel.org> References: <20211201072515.3968843-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add compatible string for PM8450 used in SM8450 boards. Signed-off-by: Vinod Koul --- .../devicetree/bindings/regulator/qcom,rpmh-regulator.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml index b959504e0ea4..6c04f256d497 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml @@ -43,6 +43,7 @@ description: | For PM8150L, smps1 - smps8, ldo1 - ldo11, bob, flash, rgb For PM8350, smps1 - smps12, ldo1 - ldo10 For PM8350C, smps1 - smps10, ldo1 - ldo13, bob + For PM8450, smps1 - smps6, ldo1 - ldo4 For PM8998, smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2 For PMI8998, bob For PMR735A, smps1 - smps3, ldo1 - ldo7 @@ -62,6 +63,7 @@ properties: - qcom,pm8150l-rpmh-regulators - qcom,pm8350-rpmh-regulators - qcom,pm8350c-rpmh-regulators + - qcom,pm8450-rpmh-regulators - qcom,pm8998-rpmh-regulators - qcom,pmi8998-rpmh-regulators - qcom,pmm8155au-rpmh-regulators From patchwork Wed Dec 1 07:25:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12649289 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E81E5C433F5 for ; Wed, 1 Dec 2021 07:25:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241674AbhLAH3C (ORCPT ); Wed, 1 Dec 2021 02:29:02 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:56406 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347371AbhLAH2y (ORCPT ); Wed, 1 Dec 2021 02:28:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5F3D0B81DE0; Wed, 1 Dec 2021 07:25:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27070C53FCE; Wed, 1 Dec 2021 07:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638343532; bh=wnueZpn2aeaR5LqTiYSRzkTKFKIfl2LLkOyYv758vV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PpKhpsq/+B5M0mRb+ObB/3/hI+tm+xCkWG24r96jMb1g+kM0h26otvv9g8Ex06Gza 4FFOfmZtKPnp1z8DQ/FZ9ZoSoaXgRjrhvOPhHmW6tqv8tHj2daQHoxBGN9i+dDGuFt BotpD16yZscREOxz3pxqWHRWY2MZczE+eZZWinpHr0n3V86DpdK/WHhC0fz1VDrE89 l9vR74PBYSj2S06YdDdfHLUIupe/5PDSdQIAxVQQF5BjAk+GqBYXHkW6/n5aeNnBK/ 7y4MmnQeNZKpNKR7zYM0+fXjVCN8WWc5YVGZOQzSa1W/TyE3YCEOdQnmnwAkfiiitE hXbTqNLLbYg+A== From: Vinod Koul To: Mark Brown , Rob Herring Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Liam Girdwood , David Collins , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8450 regulators Date: Wed, 1 Dec 2021 12:55:15 +0530 Message-Id: <20211201072515.3968843-3-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211201072515.3968843-1-vkoul@kernel.org> References: <20211201072515.3968843-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the rpmh regulators found in PM8450 PMIC Signed-off-by: Vinod Koul Tested-by: Dmitry Baryshkov --- drivers/regulator/qcom-rpmh-regulator.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 12425f667c00..cea6d7413864 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -969,6 +969,20 @@ static const struct rpmh_vreg_init_data pm8350c_vreg_data[] = { {} }; +static const struct rpmh_vreg_init_data pm8450_vreg_data[] = { + RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps520, "vdd-s1"), + RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps520, "vdd-s2"), + RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps520, "vdd-s3"), + RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps520, "vdd-s4"), + RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps520, "vdd-s5"), + RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps520, "vdd-s6"), + RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"), + RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2"), + RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"), + RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo_lv, "vdd-l4"), + {} +}; + static const struct rpmh_vreg_init_data pm8009_vreg_data[] = { RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"), RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps515, "vdd-s2"), @@ -1213,6 +1227,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = { .compatible = "qcom,pm8350c-rpmh-regulators", .data = pm8350c_vreg_data, }, + { + .compatible = "qcom,pm8450-rpmh-regulators", + .data = pm8450_vreg_data, + }, { .compatible = "qcom,pm8998-rpmh-regulators", .data = pm8998_vreg_data,