From patchwork Fri Dec 8 00:44:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 751702 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Xk/EcsOz" Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E430510DE for ; Thu, 7 Dec 2023 16:44:23 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2ca00dffc23so18066701fa.2 for ; Thu, 07 Dec 2023 16:44:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701996262; x=1702601062; darn=vger.kernel.org; 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=Ofurekj2GsV9pEulhYImkibXZVuPtz//iePjOLcLr1Y=; b=Xk/EcsOzmwLaWyUXy8IOqAO/7ENgqfkiovtHGfgplXx/MJAzTveSl0JOz4Ne0/dW+5 i7rNCZHEMx11uYys4pAqWpLb/WqZJKdKkNo3NhN21KzBZtJ75MuP8TZKPHyWTaaKk9Zt fx7hwzdL8oCX2ugkthdS6yet0zedJlohSXb4ldGvbYxG+GwkE/OWPGKTfMurZSdgYoME dszWZvwXztkNugvL71IKpqUQzqxOVp7tCMWjpDzL7LD4TzjzXNgHRN2dBpqkfRvWzcFE 1nLlv0JM7MSfJqq4iWI/bSKHdWI9fn7GyIh1LHn1a5OIk787oF9O/p70/LD7kjfyeviT qf3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701996262; x=1702601062; 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=Ofurekj2GsV9pEulhYImkibXZVuPtz//iePjOLcLr1Y=; b=tyPyI+CY5SJtxwtZYI3QkomVF5faVWFZL8XeuK/oxZL9dC0IF0EtaElbvydSAsgrOW s6iEC3JAPba0pSTOpQkyFPawa8y7F4AXMtIn/iHIC0GefGxxt606eVgvrUV0mIW/su3i Csb1Ugj/s35knGpbXn1g4B0Fcp19Ux7aGr5OP4rFD4HS/A+ChdeWCHgt+n3jJnRRvk+l c/dfaDEXMkgFALEE8aJsdm3Q+nw4gyOFg8YlWE92/zvSgg/JQl6LMqVNpfvcZDOPgdNO zXiqq+I3WtoqAFc4AgiXe6eKj3hE91OwzDbJcuJ44f0LAo8zaiNUXcwtu+COcOurg673 NnlQ== X-Gm-Message-State: AOJu0YwIJ/t9xA3fm/rwHEod82RP8UmGHcT5DeJ4RaqmGFJJnLEmdxoW K32UTicvZ0TiQoZe0i4VS/+lhw== X-Google-Smtp-Source: AGHT+IEBki9ttzCfRNVVwIMSzeAndy7rLC9U4cqS870qRJL6yRAoMlY2KMPJWYfS5uxq8AePiNMjuQ== X-Received: by 2002:a2e:700b:0:b0:2ca:3591:6667 with SMTP id l11-20020a2e700b000000b002ca35916667mr724880ljc.82.1701996262324; Thu, 07 Dec 2023 16:44:22 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id d1-20020a2eb041000000b002c9f2c7cdecsm82645ljl.22.2023.12.07.16.44.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 16:44:21 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 06/11] ARM: dts: qcom: apq8064: declare SAW2 regulators Date: Fri, 8 Dec 2023 03:44:12 +0300 Message-Id: <20231208004417.3393299-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231208004417.3393299-1-dmitry.baryshkov@linaro.org> References: <20231208004417.3393299-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom/qcom-apq8064.dtsi | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi index 6832030c2c88..44c65ebf6c73 100644 --- a/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-apq8064.dtsi @@ -368,25 +368,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 {