From patchwork Fri Aug 25 21:45:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717260 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 F0952EE49BA for ; Fri, 25 Aug 2023 21:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231545AbjHYVqW (ORCPT ); Fri, 25 Aug 2023 17:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbjHYVqL (ORCPT ); Fri, 25 Aug 2023 17:46:11 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 188E9271F for ; Fri, 25 Aug 2023 14:45:55 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2bb8a12e819so20931521fa.1 for ; Fri, 25 Aug 2023 14:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692999953; x=1693604753; 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=pHKlZ8/4vaMktrF5hqTmRR8yv61d2HdxgXhZLjedCzc=; b=sjKPXzlfM2nvbwNPq0Bv5uXVuMAUSG11WG1WylCgUXINWrQmznp7Eq5PP1Zd3cg56b 4eUmsCeZiO29oxXPzXT3WB6kg8lR1M5FqgArLvhGbmjun1oqk4F1EO43N/xODw7xtP6Z arZVw8Muj7GPiYbJGEfb8SSFWiL1euTchQZJTLdfHlqTo7BpZllhb3QBjHNsJaid7X7/ /45S84JnFBSyS/9R1TU0Jss7jL+UXTLCssRJaXRswrFzNqqPXpuUj6VD0S2edYeQESSy 9kHOiu9rqLQJhh4F15bHkfQIiDA2GK1nQ6i9LC3bFqXZvU3vUk69PTV/kXObIk+nqB1x +cMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692999953; x=1693604753; 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=pHKlZ8/4vaMktrF5hqTmRR8yv61d2HdxgXhZLjedCzc=; b=Dgif5Yv4ri6bQBUJKkBW/pPpGBy9AK3oSQ2k+JfUV4tg0+MhfCPm6JXfDA+QilUhZ1 giajW5UoZnh3ZrT4DuaCHrNoFVewgNkfO1rEyu5Pr/4zpnYGtZNXUH/DSHnX2AF0nsUp jCmDNSgxyFQcRgun5yGeJIGmrWJeT5ZS9FzjA5qTzIb6WhLYGhB09gIAFheGJBvf8f2S G2nMaGjYi6w59pA1JXg+2FBWMIbXjUa8ashKoKAQt0WZOQjmV3y0HuWlrV8RfXilf03B pMTVLrgbXZDyh46Af7GzjtsPZ6WnCjSw4LpCOJBgtKMaCYf7pUScb/4C894z27sP6XJN tr0w== X-Gm-Message-State: AOJu0YzrbKdwCtm2y47w0lqApmF5rLRo1XmcybS+1hhs6TUrnVrT+szY MT5Wrq01txDzKcVZ4t0mszQZ/w== X-Google-Smtp-Source: AGHT+IFGP147b15BsApx3z8nN+KUd5VqFrpAFFx+WqmwseVKgBMozVfi+jQFD+0P/EaZWolV35vS+g== X-Received: by 2002:a05:651c:cf:b0:2bc:bdbd:1542 with SMTP id 15-20020a05651c00cf00b002bcbdbd1542mr12191190ljr.11.1692999953418; Fri, 25 Aug 2023 14:45:53 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f26-20020a2e6a1a000000b002b94327308asm486819ljc.133.2023.08.25.14.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 14:45:52 -0700 (PDT) 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 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators Date: Sat, 26 Aug 2023 00:45:50 +0300 Message-Id: <20230825214550.1650938-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230825214550.1650938-1-dmitry.baryshkov@linaro.org> References: <20230825214550.1650938-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The SM8350 HDK uses pmr735a to supply some of the voltages (e.g. to WiFi/BT chip). Declare corresponding regulators together with voltage boundaries. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 75 +++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index 69870f69fe4f..30ff85250505 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -321,6 +321,81 @@ vreg_l10c_1p2: ldo10 { regulator-initial-mode = ; }; }; + + regulators-2 { + compatible = "qcom,pmr735a-rpmh-regulators"; + qcom,pmic-id = "e"; + + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + + vdd-l1-l2-supply = <&vreg_s2e_0p85>; + vdd-l3-supply = <&vreg_s1e_1p25>; + vdd-l4-supply = <&vreg_s1c_1p86>; + vdd-l5-l6-supply = <&vreg_s1c_1p86>; + vdd-l7-bob-supply = <&vreg_bob>; + + vreg_s1e_1p25: smps1 { + regulator-name = "vreg_s1e_1p25"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1280000>; + }; + + vreg_s2e_0p85: smps2 { + regulator-name = "vreg_s2e_0p85"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <976000>; + }; + + vreg_s3e_2p20: smps3 { + regulator-name = "vreg_s3e_2p20"; + regulator-min-microvolt = <2200000>; + regulator-max-microvolt = <2352000>; + }; + + vreg_l1e_0p9: ldo1 { + regulator-name = "vreg_l1e_0p9"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <912000>; + }; + + vreg_l2e_1p2: ldo2 { + regulator-name = "vreg_l2e_0p8"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + vreg_l3e_1p2: ldo3 { + regulator-name = "vreg_l3e_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + vreg_l4e_1p7: ldo4 { + regulator-name = "vreg_l4e_1p7"; + regulator-min-microvolt = <1776000>; + regulator-max-microvolt = <1872000>; + }; + + vreg_l5e_0p8: ldo5 { + regulator-name = "vreg_l5e_0p8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + }; + + vreg_l6e_0p8: ldo6 { + regulator-name = "vreg_l6e_0p8"; + regulator-min-microvolt = <480000>; + regulator-max-microvolt = <904000>; + }; + + vreg_l7e_2p8: ldo7 { + regulator-name = "vreg_l7e_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + }; }; &cdsp {