From patchwork Mon Jun 12 05:39:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 691750 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 EA327C8300C for ; Mon, 12 Jun 2023 05:40:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235893AbjFLFkJ (ORCPT ); Mon, 12 Jun 2023 01:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235845AbjFLFju (ORCPT ); Mon, 12 Jun 2023 01:39:50 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5362610F7 for ; Sun, 11 Jun 2023 22:39:38 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f642a24555so4544520e87.3 for ; Sun, 11 Jun 2023 22:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686548376; x=1689140376; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6PALwgyHQ+TieQGPmUm7gjgazS+uJ8oClOdkRzim+GA=; b=WQ76T6AYO9iXreicPvFvTy8FGnJ5tlrR7zDNET/6ri723/Su8VflS/Ya1fq3VXZIyv PF2kCf5QUbyhkmHcqMlfxzh+G8NwJMyO0FbiKqZXYBZm3IxbRoGY6fs15ZWAmdf5f5BL 25m6veF+v2wBl5QA9bMu/cP6AXahqqKyslExU5EdJf6Qj9tWd6vswiHhvVTdS481Y+Ct gcPt/DMtrNOoSkU08ajqZMYuR59esp6YOPaD8tpJOEeQ/29rWJGWa8oYa4Vgddne+4V3 cOxk2QUS90j5H3VnVpONsq8IE1SRyJTfd+DY/VF08Qv7jIbtZPakplgYZozcdUN0QJgG 5fZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686548376; x=1689140376; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6PALwgyHQ+TieQGPmUm7gjgazS+uJ8oClOdkRzim+GA=; b=Uo2DzS0XtL5V/rEGqzcj2EOB9JSVXFYlDBQDFMVkARwD3Nog2f264lrqSQl+HqOJ2s YGKJzc7DeN5qNGx/sHtHG3LWOHYxm2N+jNzsK8affDWMAe+gVUKR/gtw4N3AFAy0W3kz fXTydPWQBq17s2t2iODrxzXIyppyan1XgGncBYHlVE/Ln7hcHcFWAcEzhsG8ABt5YlNP bo8HQYhVvtFFW7xIruDijMgk9qD3aTnOM4yX+VMAHlGuyHaDSuCtJdNcd0t/QQ5JR57J nvbGKxYNqZN7B3HNSD7SKBBagGruVLmAjZkrMFlQGo25q7Q4BPql+poQ+g4iiySo7+ON bz6Q== X-Gm-Message-State: AC+VfDyiOGN+6yJtTzEiPSnUi7aHfmAOvz85051bYOthg+V6fwnkOZMK lr/cR1E9dIxAd4N9fIzc94ONpg== X-Google-Smtp-Source: ACHHUZ70K7TIUhk3aWrow/GwcxAggY7k2lj2rDnC8KHQGKNXbohL/WhmjzvxUc2avAPBm2O4jSKpKQ== X-Received: by 2002:a05:6512:614:b0:4f4:aea9:2a2f with SMTP id b20-20020a056512061400b004f4aea92a2fmr4023869lfe.57.1686548376642; Sun, 11 Jun 2023 22:39:36 -0700 (PDT) Received: from eriador.lan (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id n6-20020a195506000000b004f38260f196sm1324125lfe.218.2023.06.11.22.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jun 2023 22:39:36 -0700 (PDT) From: Dmitry Baryshkov To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , Viresh Kumar , Nishanth Menon , Stephen Boyd , Michael Turquette , "Rafael J. Wysocki" Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, Christian Marangi Subject: [PATCH 13/18] ARM: dts: qcom: apq8064: declare SAW2 regulators Date: Mon, 12 Jun 2023 08:39:17 +0300 Message-Id: <20230612053922.3284394-14-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612053922.3284394-1-dmitry.baryshkov@linaro.org> References: <20230612053922.3284394-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The SAW2 (SPM and AVS Wrapper) among other things is yet another way to handle CPU-related PMIC regulators. Provide a way to control voltage of these regulators. Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-apq8064.dtsi | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 471eeca6a589..1eb6d752ebae 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -425,25 +425,41 @@ acc3: clock-controller@20b8000 { saw0: power-manager@2089000 { compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; reg = <0x02089000 0x1000>, <0x02009000 0x1000>; - regulator; + + saw0_vreg: regulator { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + }; }; saw1: power-manager@2099000 { compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; reg = <0x02099000 0x1000>, <0x02009000 0x1000>; - regulator; + + saw1_vreg: regulator { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + }; }; saw2: power-manager@20a9000 { compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; reg = <0x020a9000 0x1000>, <0x02009000 0x1000>; - regulator; + + saw2_vreg: regulator { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + }; }; saw3: power-manager@20b9000 { compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; reg = <0x020b9000 0x1000>, <0x02009000 0x1000>; - regulator; + + saw3_vreg: regulator { + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + }; }; sps_sic_non_secure: sps-sic-non-secure@12100000 {