Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1644852rdb; Thu, 25 Jan 2024 01:42:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOaVbQ5pnlF/AvEE5EGBOH9Uumng+nga/y+BilQxG+XXtvu3KOwzSOJtt50BGypUfrV0+Y X-Received: by 2002:a19:7019:0:b0:510:183e:1bd2 with SMTP id h25-20020a197019000000b00510183e1bd2mr285004lfc.122.1706175775021; Thu, 25 Jan 2024 01:42:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706175774; cv=pass; d=google.com; s=arc-20160816; b=XgYQ5v9AEdDnooNZ7ABL+X19mLLORBxQE+CIgMyN9peCvE+esdrjvFBsmfOshLXsk9 uBi7dMHEVyBsbK9Yb8xOzC28RtIfJfZJ1SziJMvaPk164FHMYv5doB4pEZ4uUplV+Llc IObSgDmh55LLMko5r3gQeKaKGyT1dw6d9rpK+MMIqE/16ejqWcjsOWMQ6ptuadfjY7b6 zKqGqUgPkB5T0Cy9Kzss995xaOUCHV6Ib/BIbE5LdUsD4quUB5NmobYea+vrckbk0daV E1cJOjut8ZNRvSGcB5em1Vt211B9YTwHADmVZ9AJyRfYryTf3xvnSSeV5lSmTYokaft5 vP8g== 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=T/Xi3Y7tiSoJfoVimvzrMNqGimCbtFLiWc/WR/X9lZ4=; fh=yLtJGdNWaKfJazfcyLGMgbxhx9PUyTFMjR/n3Xd3A5k=; b=fuf6DA4i1B1usLY/h2RrvKL0MT6UQKhHv4MZkCkkEICxsAyXnm6NB2PUYRDdJheTy2 qds1YAEj/uIF+YwZs6wpI6+PA4Rm+Hm9x/E/8TbxXIe494qLtdzH3X7uTqWM86apD75p 3vbUuhj4x7ynLEImeFz1kG/5Am8OAzZyASxpoS2OY6dc1uSDkHZ8BF1CWsDHPnUzTwSy 1baYJl/tsTF1F5qy5gu3vwP6UVwOs/5NyRJKEl0eaw4ADHoQnyq+Mgdb0/SUc2eVbFmB 3PQG0XrGBQGEX2e0I/T/lY4OF1vv7jLe4RGBXVoAPjcHJOZ18nHO+kYZjpU9PI/GzFSx Jyag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ovksOdtA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z11-20020a056402274b00b0055c8f2a85d0si2612488edd.513.2024.01.25.01.42.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:42:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ovksOdtA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38273-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4311C1F2E123 for ; Thu, 25 Jan 2024 09:34:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB0EC1CF95; Thu, 25 Jan 2024 09:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ovksOdtA" 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 BAEFB1C6BE; Thu, 25 Jan 2024 09:31:21 +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=1706175081; cv=none; b=n4tW6yFxfqHjBXYC5RGxZWEoI4BLHw8+/AxJGFB4WTXe0C0uPJ5IEkX1eAPQ0gxvR8GteKXqyndXoZ39jN8L4e3wSnE+tCJCSSE8DYp6wfF7L0gUbpzcV7wsQS5hr1e6xcclO19uW1Vy7s9S9b4o2HGWwwDeI+cvh3PgKVlkIRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706175081; c=relaxed/simple; bh=zKAon4rhCDLxrAShb2I1lmfyDlokHotqCogBLSlxoaI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ivk8a6DvYtm0NiQ7x28CoFsl7mnUJXwQfvQAmc/DpT9eqiE5HGeNT+4pIN6U/7CvtCWE94gp0vTIteddlqBibm/GS0ZPhVA6GDz/gHVGuwdnJGhnfUMc69HeTTOA3kddpqGket5yinTj1KtJbSPzLwltKv7TnrMj1em0Cz2jIkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ovksOdtA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 4CBDBC433F1; Thu, 25 Jan 2024 09:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706175081; bh=zKAon4rhCDLxrAShb2I1lmfyDlokHotqCogBLSlxoaI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ovksOdtA/mLfMGT0ZYCaKr/aPxhzoYbCx5TU5i1GjqULQaaJ5VmttLfDqtpZHHUiE MR0GOxYD3OjD6TuN9DHJM2IgRZxl6DUXRPo4bsC8RG+6nGb8ctfQp1Bdt1aE1ZXpDt 8kElrD0HN1gjpzaOl3JMSi6d8Vq/mZinF1fk3iDVF99N06M6+CjWEgf95e7lF1tKVF O8vPjrLX7SocMwvvVIOq+hRoGCB6ojEttVTlRf9RICoYpRd9LgEbH5lAPb1tXd2of7 IXuohtljNEaRprEMBM/x4X0tvyHUhVmxtsmS2d2zvhtMuHwpUhVDXGZYcjTFLPYrMc 0GhblCGqnzXDw== 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 22C29C47258; Thu, 25 Jan 2024 09:31:21 +0000 (UTC) From: Fenglin Wu via B4 Relay Date: Thu, 25 Jan 2024 17:31:16 +0800 Subject: [PATCH v3 2/2] arm64: dts: qcom: sm8650-qrd: 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: <20240125-sm8650_pm8010_support-v3-2-2f291242a7c4@quicinc.com> References: <20240125-sm8650_pm8010_support-v3-0-2f291242a7c4@quicinc.com> In-Reply-To: <20240125-sm8650_pm8010_support-v3-0-2f291242a7c4@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 X-Mailer: b4 0.13-dev-83828 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706175079; l=4668; i=quic_fenglinw@quicinc.com; s=20230725; h=from:subject:message-id; bh=tB1NmHqD8nUjJXF8aywAhtmMrcFxquNbzFe/xKtf690=; b=oPOr5MqkKEKxzvCt/RvCLa7xz2dVi2lNZBFFwbJ6xREv8ywm0D29FUjNAvlxlo44Exy6nms8P MQeYiw5UzSkCjxT2d0J2W3zOq1yRQkJq1aLW99KUh51J43M7hrrIDFO 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-qrd board. Signed-off-by: Fenglin Wu --- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 132 ++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts index 592a67a47c78..294fb3f37af1 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts @@ -436,6 +436,138 @@ 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-supply = <&vreg_bob1>; + vdd-l7-supply = <&vreg_bob1>; + + vreg_l1m_1p1: ldo1 { + regulator-name = "vreg_l1m_1p1"; + regulator-min-microvolt = <1104000>; + regulator-max-microvolt = <1104000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l2m_1p056: ldo2 { + regulator-name = "vreg_l2m_1p056"; + regulator-min-microvolt = <1056000>; + regulator-max-microvolt = <1056000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + 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-supply = <&vreg_bob2>; + vdd-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 = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l2n_1p056: ldo2 { + regulator-name = "vreg_l2n_1p056"; + regulator-min-microvolt = <1056000>; + regulator-max-microvolt = <1056000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + 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