Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp295235rdb; Mon, 22 Jan 2024 22:43:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/P/SDZLPeLWDbvi8y6czGCwqZK+LP55Wj429UGJqXsrKayeXst+tYoMc8Ul37TY2s3WGf X-Received: by 2002:a05:6830:3494:b0:6dd:ecab:299e with SMTP id c20-20020a056830349400b006ddecab299emr6846829otu.51.1705992234808; Mon, 22 Jan 2024 22:43:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705992234; cv=pass; d=google.com; s=arc-20160816; b=sYkowGi9RiQB9V/kH+m4XF7+6aRW4tCBZGjFXC6H97rLgVWbg2xOrmyALTsgmGCTlS aG0uwuu9FUgpqT15YjUned5b7WaJq8Yh4/sfgZqWzIf8r6CQDOnJipkdjS283RejGa6R pVOgFNF1q0FVr3m0Tf7vsy7p8xouOPg1SK6Sy+d5NrIq8ySnxpauQijI3i8pUjTXNgMz EBXx2gQiVXhOAa1FJT2TKHF+cp6X7Tt3p8nKfWqO0cqBC0k4bo3lKMCsrUfvk9X/0MH4 Fi92jTe+RT72MhgjATS55OXjoM8b4RUX6IIeQf/j347lETLH73mkSV2PWJmyDR+TLCIA jSrw== 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=Tmef7MHqHymjnMtE+UQIdv5nlBMii+1r0yqxaHcv5oQ=; fh=yLtJGdNWaKfJazfcyLGMgbxhx9PUyTFMjR/n3Xd3A5k=; b=c9LR8kwg8V4Txp5OLBzIN4wTcOqaOxyl7crNipNS5NRWXwowApYJaDEoZFocl58DDS OaXBKIfsrRB3JlnqZLxSMs6A7FhGkmQFV35RfgHAPRjOc9+FA0nnHMLMhIvcVQdecwcK tt/b+P4zRmgeSkbq55EdStlcMVhueOuBkJE+vWAzCxbR+PSsynP+sc0yjRmYuHTjpL4q 4Ud3khh3efsoHVrN6Fj5CmJEG4M+svBXYSRdZX0UBk3bN1av64HftmgSUH+cgT+g6FCB xKIQuTCP8KMtyKpctlcZPoAXYMvaskutPc0+fqWb6w8rjOCjowt7B9WOOtNRYSu4Cmzy EwqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LuqiZ4Vx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c20-20020a631c14000000b005d3dbde454dsi131843pgc.294.2024.01.22.22.43.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 22:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LuqiZ4Vx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34801-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9545FB20DB9 for ; Tue, 23 Jan 2024 06:43:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE39052F8F; Tue, 23 Jan 2024 06:43:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LuqiZ4Vx" 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 093BC5025F; Tue, 23 Jan 2024 06:43:18 +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=1705992199; cv=none; b=syhvu6vPQGgLEbM/xu2gaqs15piFIlDToYeoi88ATUCIzeUXFBH7NKq0FEp7xZeToQd7xSet1jPt7Ppt4eK2sT6X4qYcZ+b/1uN37oOnG3NiWruWL/GtPkXHUm3oXuhuNZbzsoX+1sIHSV/u1Z8kgwCrDGMliSTLAJ37aOG7L+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705992199; c=relaxed/simple; bh=LgOMeRNvvfI8V6uporG7N90vxquiLAsMEyAXBPhg8QU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RhhXcNftJJs8Cm67e7oPwG0tq9MS2mnNRIPV/Pu+KNbqSIF9IsDeBRFG3+hzxSZ7adHD8+Q5t6LuLPSFuTh3lVLeLsFnNSxwEqcxbLmjiha5DaxdYH7UHQ+VUUV+Nq3zpeNfgFBFfB2H23nRry2DYh7P96YWR1i9Gpq4+qAbxxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LuqiZ4Vx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id BB0CDC433C7; Tue, 23 Jan 2024 06:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705992198; bh=LgOMeRNvvfI8V6uporG7N90vxquiLAsMEyAXBPhg8QU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LuqiZ4VxFegSwkRHiXoF1aDEJTvPUiQr0raZHmnVia+G5wQAOEbSfkohXeeRi/uoL 2HDd0RfmFNg76Ay8UH+7M6UkuUFP831/sS68UkRTd59lcoGO9nSIWh5K+SlihUm37I E3Sq8Va98/8dV99Pr0WZ8IkPuaBgyWRJM65xKs4qos7y0ieykEARxY9i0SdJOLHP70 xdnwpgBdFydfj5IfnUlMmefSy9yyVoa4TPSfgzRojn551BjvYG+2UVMSud8XwCMVbu vebWMar9FeP8dYBV71ZiesUV1zoQcyvCYu9rZALUCgXRmU0CiEwcI0t++EQ5l8b41y O65We05Yu19kA== 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 9AD7DC47DDB; Tue, 23 Jan 2024 06:43:18 +0000 (UTC) From: Fenglin Wu via B4 Relay Date: Tue, 23 Jan 2024 14:42:23 +0800 Subject: [PATCH 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-v1-1-dec2224d5740@quicinc.com> References: <20240123-sm8650_pm8010_support-v1-0-dec2224d5740@quicinc.com> In-Reply-To: <20240123-sm8650_pm8010_support-v1-0-dec2224d5740@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=1705992197; l=4110; i=quic_fenglinw@quicinc.com; s=20230725; h=from:subject:message-id; bh=l3ciU5iTwo8blY95GC+Dkvk60UkOaXfi4/HNikaPzTw=; b=ZbngVRAR5+WinykY2mKIhX0oRiLGQmB4xU28k7Z9LF+C2GuOGOu+iJSAQrGtci0eQu7DODsCJ bINfYQIFFjMBj4LfOPPptjHtmAOhuprrCjms4h4OabSNf2umxZa41V6 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. 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