From patchwork Tue Jul 26 18:11:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 593492 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 D89A7C00140 for ; Tue, 26 Jul 2022 18:11:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239439AbiGZSLs (ORCPT ); Tue, 26 Jul 2022 14:11:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239372AbiGZSLn (ORCPT ); Tue, 26 Jul 2022 14:11:43 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656BF2529D; Tue, 26 Jul 2022 11:11:42 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id o13so3711171edc.0; Tue, 26 Jul 2022 11:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AAlmBW7+z94ckr1rUoxpohDIKELh8ni7cBJ4JtsF9yc=; b=V9ppXbuHujqUgPUfCqkeSD138OCFvbGM6EwsRrzkEX+uRamt7hi7vBoUjbxXtvdyRa iFvSgeeJa3sElbi6jAh+msOj1GBL+SyvHx6rf+sDu35a7v1mYR8Tp/wE0vlTzzgaHgOP Z1W2E3hcPbNPjkMMxs//aAEWgfNrNB/+UAQOvGrISIXn2YNTLXKfNvZGN9Pn8YiH8ZO8 VqU/VyyC8k3CSBUfOYRsYVEDw+5lEojPQ+blJCpyv7BOX/jdT3/TfPIWSrqvq+OZKPU4 zEwvokSuMgfzkCYfYzobluYcFwqOQ8Hz59oUxYhhzkJIz9GinWhIsHkTMoXrNyY2TKKb 3sDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AAlmBW7+z94ckr1rUoxpohDIKELh8ni7cBJ4JtsF9yc=; b=cY+i/HCjn0Eydne8QyvYk1zRRWDoiNak1QonZzWjdV2dONPgYqe+0IYso6CllZOxoF LGkBgjKBwd2yxeezTxU+QugdaN2xOqv2VEY3rGZr1JDVKPInaHJfhrz6CFPD4Z49ev0Y Iz+YYDgRxTPlkTBgK7LK342U0v6lVwl/CR17ZFpIea5V1fOpSgfzeJ5gHAzNv9CYEPmX sLVh3kqdZtpnYGOIocv8+q14iAudPVXnePxCJ18w1q2IYIGCtE2+5noWNT37sQ4NZ9Vj C+xk3kB7nH4zALxGN3Sdeb7BONfMzyNzPgbJ+eTLglIf7zaS5WsowCBM4toIuwqTSCvE bgwA== X-Gm-Message-State: AJIora9MI41KJfvQOTCQSSoTQ53jrYJ+7C9Z1hw6v97Jyowkr1NY07/t 3gaU3uLwLnfyzULt4YgUoKy8BV80P3kzPA== X-Google-Smtp-Source: AGRyM1um6X1xKZmJ73uosZwBjYlgYy6nIyDH5sCF71MHnaVzLsYSLJS1pPyx24CAKbSRDIsJVTqyKw== X-Received: by 2002:a05:6402:d05:b0:425:b5c8:faeb with SMTP id eb5-20020a0564020d0500b00425b5c8faebmr18745913edb.273.1658859100950; Tue, 26 Jul 2022 11:11:40 -0700 (PDT) Received: from localhost ([77.78.38.236]) by smtp.gmail.com with ESMTPSA id lb2-20020a170907784200b007246492658asm6790312ejc.117.2022.07.26.11.11.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jul 2022 11:11:40 -0700 (PDT) From: Iskren Chernev To: Bjorn Andersson , Mark Brown Cc: Adam Skladowski , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Liam Girdwood , Rob Herring , Robert Marko , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Iskren Chernev Subject: [PATCH v2 2/5] dt-bindings: regulator: Document the PM6125 RPM regulators Date: Tue, 26 Jul 2022 21:11:30 +0300 Message-Id: <20220726181133.3262695-3-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220726181133.3262695-1-iskren.chernev@gmail.com> References: <20220726181133.3262695-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the pm6125 compatible string and available regulators in the QCom SMD RPM regulator documentation. Signed-off-by: Iskren Chernev Signed-off-by: Adam Skladowski --- .../devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml | 4 ++++ 1 file changed, 4 insertions(+) -- 2.37.1 diff --git a/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml index c233461cc980..1122a3a17f56 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.yaml @@ -57,6 +57,9 @@ description: For pm660l s1, s2, s3, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, bob + For pm6125 s1, s2, s3, s4, s5, s6, s7, s8, l1, l2, l3, l5, l6, l7, l8, l9, + l10, l22, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24 + For pma8084, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, lvs1, lvs2, lvs3, lvs4, 5vs1 @@ -90,6 +93,7 @@ properties: - qcom,rpm-pm8998-regulators - qcom,rpm-pm660-regulators - qcom,rpm-pm660l-regulators + - qcom,rpm-pm6125-regulators - qcom,rpm-pma8084-regulators - qcom,rpm-pmi8994-regulators - qcom,rpm-pmi8998-regulators From patchwork Tue Jul 26 18:11:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iskren Chernev X-Patchwork-Id: 593491 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 EFED8C19F2D for ; Tue, 26 Jul 2022 18:11:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239737AbiGZSLu (ORCPT ); Tue, 26 Jul 2022 14:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239539AbiGZSLr (ORCPT ); Tue, 26 Jul 2022 14:11:47 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C242A723; Tue, 26 Jul 2022 11:11:46 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id oy13so27617184ejb.1; Tue, 26 Jul 2022 11:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=fDeC2/O0ScVBXWJxW1D+FsTv152EB1H0r+OvJHX10Vo=; b=Kk+q4Tfa55cHPQVU+mKj509kkOzr7DwZfj32S5g7TzeYPuMViJr4BApGbwihLxi6JZ gIzY4zYSVJod8Naa6cjsImC3bVBp3/AthguHHx7L5WkIrOtIKemJU96VFOuxVtkj0fRv oqW5aPzCYqqkuoCji+IPwLYs8Z5Nm9bEFXKKQPtkwc66ZHb7yIGZX1ucjeBhGNWhSUtR WnGvXY8vQYIX2g3kWdrwE+waJjer9m2E44bILq43iuyHipaepsK+MM5fEsfOqocsUYfm blncBDvXOyMsuv9l/9OZjoZUa4u0WoYqBRfrHo+NQoqXSb3QsRNo3Xf1HIh3ZiCPrLR4 w/yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=fDeC2/O0ScVBXWJxW1D+FsTv152EB1H0r+OvJHX10Vo=; b=BsByZT2VzaGiWVHkONDEZ9HR7TahtiWG2uqI1I6h1y3g9tZSx7awIk/jM2FluzPCJT sQbBxgRE2hN1hnLSPVPD5M3cfgE472UljdNGpxvYZELT1be1ujpwJTt5OWjcZa+kUmG9 HtAkTa7E/okbl8JIbKHsylXj3zWWFeVDGoPz9v1XtQ8lXFxCI0HHcKv1C2r8Y+hPEaDi spzfFk2pf82fNJoY3/38vOiRfYG6OH6x+kiqc92G10V0RXsl7VA/BZn5v9c6DUpWlY1k IKjgA2HFAK/pfEYkqXFwLq2+6EpyrpB+0gOJUhBGmAFu0zDee6TvuJrcOECkz9wUvrkL B+cA== X-Gm-Message-State: AJIora/nwyhRKzRevfRFDVrbmG2mJfQ8yU++OzvL7/iullsftK9HODWl GxGT/MC7MJG/jU7zGxxiEXY= X-Google-Smtp-Source: AGRyM1vpBg02hDbmXZ8IR/3/+q4y0Bv6e5Jz5SAbe6SqK6d9nM1zf2iedzqsFArrYOhkXD/CiInu1w== X-Received: by 2002:a17:906:8479:b0:72b:83cf:4cf3 with SMTP id hx25-20020a170906847900b0072b83cf4cf3mr14726660ejc.90.1658859104872; Tue, 26 Jul 2022 11:11:44 -0700 (PDT) Received: from localhost ([77.78.38.236]) by smtp.gmail.com with ESMTPSA id p9-20020a056402074900b00431962fe5d4sm8851511edy.77.2022.07.26.11.11.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jul 2022 11:11:44 -0700 (PDT) From: Iskren Chernev To: Bjorn Andersson , Mark Brown Cc: Adam Skladowski , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Liam Girdwood , Rob Herring , Robert Marko , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Iskren Chernev Subject: [PATCH v2 4/5] regulator: qcom_spmi: Add PM6125 PMIC support Date: Tue, 26 Jul 2022 21:11:32 +0300 Message-Id: <20220726181133.3262695-5-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220726181133.3262695-1-iskren.chernev@gmail.com> References: <20220726181133.3262695-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add pm6125 regulators and their sources in the QCom SPMI driver. Signed-off-by: Iskren Chernev Signed-off-by: Adam Skladowski --- drivers/regulator/qcom_spmi-regulator.c | 37 ++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) -- 2.37.1 diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index efb3f6fffb4f..ca19b4404ea9 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -1993,6 +1993,41 @@ static int spmi_regulator_of_parse(struct device_node *node, return 0; } +static const struct spmi_regulator_data pm6125_regulators[] = { + { "s1", 0x1400, "vdd_s1" }, + { "s2", 0x1700, "vdd_s2" }, + { "s3", 0x1a00, "vdd_s3" }, + { "s4", 0x1d00, "vdd_s4" }, + { "s5", 0x2000, "vdd_s5" }, + { "s6", 0x2300, "vdd_s6" }, + { "s7", 0x2600, "vdd_s7" }, + { "s8", 0x2900, "vdd_s8" }, + { "l1", 0x4000, "vdd_l1_l7_l17_l18" }, + { "l2", 0x4100, "vdd_l2_l3_l4" }, + { "l3", 0x4200, "vdd_l2_l3_l4" }, + { "l4", 0x4300, "vdd_l2_l3_l4" }, + { "l5", 0x4400, "vdd_l5_l15_l19_l20_l21_l22" }, + { "l6", 0x4500, "vdd_l6_l8" }, + { "l7", 0x4600, "vdd_l1_l7_l17_l18" }, + { "l8", 0x4700, "vdd_l6_l8" }, + { "l9", 0x4800, "vdd_l9_l11" }, + { "l10", 0x4900, "vdd_l10_l13_l14" }, + { "l11", 0x4a00, "vdd_l9_l11" }, + { "l12", 0x4b00, "vdd_l12_l16" }, + { "l13", 0x4c00, "vdd_l10_l13_l14" }, + { "l14", 0x4d00, "vdd_l10_l13_l14" }, + { "l15", 0x4e00, "vdd_l5_l15_l19_l20_l21_l22" }, + { "l16", 0x4f00, "vdd_l12_l16" }, + { "l17", 0x5000, "vdd_l1_l7_l17_l18" }, + { "l18", 0x5100, "vdd_l1_l7_l17_l18" }, + { "l19", 0x5200, "vdd_l5_l15_l19_l20_l21_l22" }, + { "l20", 0x5300, "vdd_l5_l15_l19_l20_l21_l22" }, + { "l21", 0x5400, "vdd_l5_l15_l19_l20_l21_l22" }, + { "l22", 0x5500, "vdd_l5_l15_l19_l20_l21_l22" }, + { "l23", 0x5600, "vdd_l23_l24" }, + { "l24", 0x5700, "vdd_l23_l24" }, +}; + static const struct spmi_regulator_data pm8941_regulators[] = { { "s1", 0x1400, "vdd_s1", }, { "s2", 0x1700, "vdd_s2", }, @@ -2245,7 +2280,6 @@ static const struct spmi_regulator_data pm660l_regulators[] = { { } }; - static const struct spmi_regulator_data pm8004_regulators[] = { { "s2", 0x1700, "vdd_s2", }, { "s5", 0x2000, "vdd_s5", }, @@ -2288,6 +2322,7 @@ static const struct spmi_regulator_data pms405_regulators[] = { }; static const struct of_device_id qcom_spmi_regulator_match[] = { + { .compatible = "qcom,pm6125-regulators", .data = &pm6125_regulators }, { .compatible = "qcom,pm8004-regulators", .data = &pm8004_regulators }, { .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators }, { .compatible = "qcom,pm8226-regulators", .data = &pm8226_regulators },