Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp338578rdb; Tue, 23 Jan 2024 00:50:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFp80nRpD9QcfBjS/lxx8YyCUOeobU85O4yLQDa6t8w4FVhClzMfc54OR6wR13vZSTYst2 X-Received: by 2002:a25:ef09:0:b0:db5:37c7:a0cb with SMTP id g9-20020a25ef09000000b00db537c7a0cbmr3235683ybd.11.1705999803468; Tue, 23 Jan 2024 00:50:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705999803; cv=pass; d=google.com; s=arc-20160816; b=qHWsLOT734TsaPlicuIdes2Li5uibzj08XBvMaqfsmfMPz9zAIpCB3on7vhCOFgkN4 z0+VczBmwf/rY2Cbc3KJLsZfw+19WOcGyz7N/lDUhR3uj2NyJJ7Fm4C7nj2rRGKxVGOO odXssRvN5M2CtOw1VmD/fxw+quN4YizMBKUaO22SLNMIsp27KMpWr4/HQFkJ0f6j+D4q GG5TaRGtUh+CRVjPX6fhBwGdfOhQ0IM0vD/Nqvn45l6r0jyGMNzycqe6Bh68j3RZ4yfH Ijrh2fca1rkFsKF5bxnQkQXamXj3vWFR6Dv5O2MEGiAE+f2L6kSulTGnVtZFjyxx0UM1 9Cbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=vm/MPj0U2TIUazaVL5R1RGZIbZ8xML8ylZ5KrE76Qn0=; fh=SlBuXn/3n8w9esX8oeH8qySx9qez1o58IJNbA2kYhQQ=; b=hFNpzX3x8fGb5ImMh3KmbHW+Ml9yjtwunHksAt5h4G110tdhcFXLSaVk/2uE2i+56Q 19z/amwQ5G4+rQPNPOCQnDNdOipBTlOnsIRAc022e85eEOmUk9BTwo1S7NNvyxEIKzCc aY6Nu/Bh7bP4hDje34SSPSgoBgK+qo9/cyOyqERh77HZ00mhTs+UzNHmZSr2EVoT/5UB mRL66hfnn7lydMqBKleOWwcZOsojNhmhKLeWGTH69G5oIKm4fp6qZAfHXHtKSnAYBs1g GWn5O28OOX4P9uq8k+0twarb5T8i3DxON6YrgQbkSOpOHjkdHTUnvNT4W+NtsN26dT4C 9FQg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X5xHQR+E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r24-20020a0cb298000000b006819bda6ad3si7156549qve.453.2024.01.23.00.50.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:50:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X5xHQR+E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F69A1C25B81 for ; Tue, 23 Jan 2024 08:50:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6BBC5822F; Tue, 23 Jan 2024 08:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X5xHQR+E" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C160857896; Tue, 23 Jan 2024 08:49:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705999767; cv=none; b=ZGPUDbtF90X7RZHEqJN7vQJXWNHaFtsuM5i/CAGrcwl93D0WIsVH+kQbbYcWt7GDcaRNKWi4S8Jeo8Z8tne58o9b7WguR5RjgkGZHfn4+jUajZue9rBvb529TO2YKxSinYEvp4eE4q/tbqv2Pf3EDKaNlry+G7c3JG+NeAmS2lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705999767; c=relaxed/simple; bh=1z0TD2HxnCY4ip8bo4pCWg3cQC9dj4FCVWWjokiXC0E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eNh0ltfT2rzVYZCOsueGVbQ7YVZkc4/fTHvw3+YXjhCfNSc6OLnwHxWLMry517vh53KnYFpJW0mDSQoNtYv+PAUt8HzXaFWmQBPZwldGhhbtd22EXZv4FjdeyUwgSFJhv+ghB9SJ3POb2YBHa54gp+396ElwCTI2+xgVnE27YwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X5xHQR+E; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 4B890C43609; Tue, 23 Jan 2024 08:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705999767; bh=1z0TD2HxnCY4ip8bo4pCWg3cQC9dj4FCVWWjokiXC0E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=X5xHQR+Ei+Af1S67Vs2ZDSISSw1LmSsfbizjy9OVRkn4ISqa7SqWnWDDIBZjfWxEh wdTU2m1Lc1GfZKG0tUu0LVZ2vs3qVbC8F/2OUZiH4155GYn7QIOUHScGb7uX6EGP0J ueJAMpPRDWqvgRdxdRlG6jVLuzY8EJgKNl6tpHftKgFyp/mpCdjJNc+tTXJ9DS4ldC S0XpBT33Ygm3ylEZ0vqRx1p4wRfngkO1OQ2HuV1zOtSZ6ZIPvUGvCQ3xh/Y2MJ+rOF zB0PUxJc394DJL3JplBzqwvdvXGrGpO0HzSLB1N9NfZ01h1Rr8TsN1zRFqxrkUxW/k eO+V1eNutKylA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 201D6C47258; Tue, 23 Jan 2024 08:49:27 +0000 (UTC) From: Fenglin Wu via B4 Relay Date: Tue, 23 Jan 2024 16:49:24 +0800 Subject: [PATCH v2 1/2] arm64: dts: qcom: sm8650-mtp: add PM8010 regulators Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240123-sm8650_pm8010_support-v2-1-52f517b20a1d@quicinc.com> References: <20240123-sm8650_pm8010_support-v2-0-52f517b20a1d@quicinc.com> In-Reply-To: <20240123-sm8650_pm8010_support-v2-0-52f517b20a1d@quicinc.com> To: kernel@quicinc.com, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_collinsd@quicinc.com, Fenglin Wu , Neil Armstrong X-Mailer: b4 0.13-dev-83828 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705999765; l=4167; i=quic_fenglinw@quicinc.com; s=20230725; h=from:subject:message-id; bh=wnrLBlakA+25sff7egCXfN/0ljBwsmb5q7P8MR4LEuo=; b=qNxpZlF/38+tu3RtLE78VSN/UW8ppSFANxcW5ywqw0JvOm26sSiM2/l5yqiw2qzuSciijZNTs C8bWSUV8l01Bne/QM40UX/sWWu1IXsXEANJ8L4lytjNsrJj5DibPvvT X-Developer-Key: i=quic_fenglinw@quicinc.com; a=ed25519; pk=hleIDz3Unk1zeiwwOnZUjoQVMMelRancDFXg927lNjI= X-Endpoint-Received: by B4 Relay for quic_fenglinw@quicinc.com/20230725 with auth_id=68 X-Original-From: Fenglin Wu Reply-To: From: Fenglin Wu Add PM8010 regulator device nodes for sm8650-mtp board. Reviewed-by: Neil Armstrong Signed-off-by: Fenglin Wu --- arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 118 ++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts index 9d916edb1c73..3791971efee6 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts @@ -428,6 +428,124 @@ vreg_l3i_1p2: ldo3 { RPMH_REGULATOR_MODE_HPM>; }; }; + + regulators-6 { + compatible = "qcom,pm8010-rpmh-regulators"; + qcom,pmic-id = "m"; + + vdd-l1-l2-supply = <&vreg_s1c_1p2>; + vdd-l3-l4-supply = <&vreg_bob2>; + vdd-l5-supply = <&vreg_s6c_1p8>; + vdd-l6-l7-supply = <&vreg_bob1>; + + vreg_l1m_1p1: ldo1 { + regulator-name = "vreg_l1m_1p1"; + regulator-min-microvolt = <1104000>; + regulator-max-microvolt = <1104000>; + regulator-initial-mode = ; + }; + + vreg_l2m_1p056: ldo2 { + regulator-name = "vreg_l2m_1p056"; + regulator-min-microvolt = <1056000>; + regulator-max-microvolt = <1056000>; + regulator-initial-mode = ; + }; + + vreg_l3m_2p8: ldo3 { + regulator-name = "vreg_l3m_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + + vreg_l4m_2p8: ldo4 { + regulator-name = "vreg_l4m_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + + vreg_l5m_1p8: ldo5 { + regulator-name = "vreg_l5m_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l6m_2p8: ldo6 { + regulator-name = "vreg_l6m_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + + vreg_l7m_2p96: ldo7 { + regulator-name = "vreg_l7m_2p96"; + regulator-min-microvolt = <2960000>; + regulator-max-microvolt = <2960000>; + regulator-initial-mode = ; + }; + }; + + regulators-7 { + compatible = "qcom,pm8010-rpmh-regulators"; + qcom,pmic-id = "n"; + + vdd-l1-l2-supply = <&vreg_s1c_1p2>; + vdd-l3-l4-supply = <&vreg_s6c_1p8>; + vdd-l5-l6-supply = <&vreg_bob2>; + vdd-l7-supply = <&vreg_bob1>; + + vreg_l1n_1p1: ldo1 { + regulator-name = "vreg_l1n_1p1"; + regulator-min-microvolt = <1104000>; + regulator-max-microvolt = <1104000>; + regulator-initial-mode = ; + }; + + vreg_l2n_1p056: ldo2 { + regulator-name = "vreg_l2n_1p056"; + regulator-min-microvolt = <1056000>; + regulator-max-microvolt = <1056000>; + regulator-initial-mode = ; + }; + + vreg_l3n_1p8: ldo3 { + regulator-name = "vreg_l3n_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l4n_1p8: ldo4 { + regulator-name = "vreg_l4n_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l5n_2p8: ldo5 { + regulator-name = "vreg_l5n_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + + vreg_l6n_2p8: ldo6 { + regulator-name = "vreg_l6n_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-initial-mode = ; + }; + + vreg_l7n_3p3: ldo7 { + regulator-name = "vreg_l7n_3p3"; + regulator-min-microvolt = <3304000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + }; }; &dispcc { -- 2.25.1