Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1085246lqs; Wed, 6 Mar 2024 06:04:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6ocqytAfv7x0KK2wwz3pxkJzDckJ6sDawuch4ED81d0eU/bZbC0E3NFzm3lCBtdKA6cO75HqCTNoB/+5feZacwRtTT6Ug/WyLCZQWSw== X-Google-Smtp-Source: AGHT+IG3O5kwpbi7ej8nnEfgX201n3e+RQQO3KMcawQvgG7jDifB7CvT4m0U56L+Bnju/6PTgVwD X-Received: by 2002:a17:906:eb16:b0:a45:3ad3:1f93 with SMTP id mb22-20020a170906eb1600b00a453ad31f93mr5746206ejb.44.1709733876577; Wed, 06 Mar 2024 06:04:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709733876; cv=pass; d=google.com; s=arc-20160816; b=DGgrIfVMpU1kdzK7y0oK9Wxaw3tH1bBlWuyfBxBuM+gVtBzoICkrVnJFGLxKq3OpHd 4/dn45B/ZOnVi44ssObap587SVxCvSJZVE2pJXNMRD3eOTelTkpZuf+b7EQXTUVnJI7A 3+pIHJyl5Rmtsz0ZLGMbg9RtgIg+8x069ZvHPhoMnBUPWTJdBK+1w0UUN13aWT6E2mcQ dSC+6ywbzPVSkJSq0w7m9f42UP2Ut1EY8E0Y1G1AQny7rI6Xmdon5kzKfE155QrSbZ3+ w+tKJU5M+tg3M0BHOL+5oqcePf/RBNRQwOookub0FJ/p5tc4OaNINxIq2OZjzjBbuAry 5aLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=RIjSqkiZgaKl63PlydTXpVCXM2OQiWXLaAr0dhysM7M=; fh=ArhBUpgT7osDSb11aMGl7uoZuHgrbUMcZ74fJl8jIoM=; b=MOxHp+XlM+Cih99zfARTlntdZUtGa5ZfSV62pwsxqYQs5LAQCcvRI83XlOoTtH8H3V jTnW6CDuAkeOMQEXu7FSoCukfNqHhKg9CS/aWXFiCYsFj8R7M7xM3pX4pYqtVt9XL9Ph 7HUV0P5QK79KwRE+r89thHJjF0z8tgbOAg7OZPJXFlwKqF3ko7RAIY4lBcbclA0wAb0x dSW9mrvszbJsTNfXuFqMXQY7zWG/Z6XJNY01+3UtNJCE6S2bUoKeDhR6yNb+OflhyqD2 y8KETJGI7KJWCEaQ2PCexzT6JxBQK1JoUs9SL1vYR1zX/9OW/JvCmCrDL0vIjPmrw7+F AyIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-94011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gu25-20020a170906f29900b00a45b4ecab9dsi811298ejb.868.2024.03.06.06.04.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 06:04:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-94011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn 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 502561F217DF for ; Wed, 6 Mar 2024 14:04:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8DF413340F; Wed, 6 Mar 2024 14:03:58 +0000 (UTC) Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) (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 50501131744; Wed, 6 Mar 2024 14:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709733838; cv=none; b=CvKm+57hx+wR4JTfkWAYsW8wZu3MxgP/2rQF+QWVYBlzeBrd9h9EKwq5CBiG4PtmSa5XLxqN/sIFOfcctOnDpU1dn38be7uNr/gLzi6O0Ubdsr2VOiOJAdW82SdmvjcMXR+GqzYi40G2R1seOvOe+SSq5bHNdE8wOBbayw86bPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709733838; c=relaxed/simple; bh=xKQOj2T9nY6SOFD0j6UREJDyWRK8UkNbWFDbeMnD2TU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=op/PODs3kILYG7cLpje4UiG40ugehxs6MB4aEy53vXJiFPN58bn/4ZfcKqPiHXonYRDM4XW61buZD5udrJsVHXQNS8D5in5uyJ7e9J1+eVSRwJG36ooUWYcDOKD77fNnJlNulkuCRRLk/8MyyhDOyeLN+rzvxh5ljypkYOq4AYM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [IPV6:240e:3b3:2c01:4970:eaac:ef59:d8ae:5dc6]) by smtp.qiye.163.com (Hmail) with ESMTPA id 8AF727E0130; Wed, 6 Mar 2024 22:03:37 +0800 (CST) From: Chukun Pan To: Bjorn Andersson Cc: Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH v2 3/4] arm64: dts: qcom: ipq6018: move mp5496 regulator outside soc dtsi Date: Wed, 6 Mar 2024 22:03:05 +0800 Message-Id: <20240306140306.876188-4-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240306140306.876188-1-amadeus@jmu.edu.cn> References: <20240306140306.876188-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDTk4fVh5PHx9IT01MGB8eT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUlPSx5BSBlIQUkYS0pBT0JMS0EeGhoYQR4dTkJBH0MaHkFOHxhNWVdZFhoPEhUdFF lBWU9LSFVKTEpPTENVSktLVUpCS0tZBg++ X-HM-Tid: 0a8e1413ada803a2kunm8af727e0130 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MjI6ITo5OTMWOUMYTUhNCRI9 IhhPFA1VSlVKTEtCTEhIQ0pDS09JVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUlP Sx5BSBlIQUkYS0pBT0JMS0EeGhoYQR4dTkJBH0MaHkFOHxhNWVdZCAFZQU9NSUI3Bg++ Some IPQ60xx SoCs don't have the mp5496 pmic chips. The mp5496 pmic is not part of the ipq60xx SoC, and the mp5496 node is the same for devices with pmic, so create a common dtsi. Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts | 1 + arch/arm64/boot/dts/qcom/ipq6018-mp5496.dtsi | 29 ++++++++++++++++++++ arch/arm64/boot/dts/qcom/ipq6018.dtsi | 14 ---------- 3 files changed, 30 insertions(+), 14 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/ipq6018-mp5496.dtsi diff --git a/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts b/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts index f5f4827c0e17..8331890e529e 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts +++ b/arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts @@ -8,6 +8,7 @@ /dts-v1/; #include "ipq6018.dtsi" +#include "ipq6018-mp5496.dtsi" / { model = "Qualcomm Technologies, Inc. IPQ6018/AP-CP01-C1"; diff --git a/arch/arm64/boot/dts/qcom/ipq6018-mp5496.dtsi b/arch/arm64/boot/dts/qcom/ipq6018-mp5496.dtsi new file mode 100644 index 000000000000..841fd757bee7 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/ipq6018-mp5496.dtsi @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +&rpm_requests { + regulators { + compatible = "qcom,rpm-mp5496-regulators"; + + ipq6018_s2: s2 { + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <1062500>; + regulator-always-on; + }; + }; +}; + +&CPU0 { + cpu-supply = <&ipq6018_s2>; +}; + +&CPU1 { + cpu-supply = <&ipq6018_s2>; +}; + +&CPU2 { + cpu-supply = <&ipq6018_s2>; +}; + +&CPU3 { + cpu-supply = <&ipq6018_s2>; +}; diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 064b5706a289..823b87fdcefd 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -43,7 +43,6 @@ CPU0: cpu@0 { clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; clock-names = "cpu"; operating-points-v2 = <&cpu_opp_table>; - cpu-supply = <&ipq6018_s2>; #cooling-cells = <2>; }; @@ -56,7 +55,6 @@ CPU1: cpu@1 { clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; clock-names = "cpu"; operating-points-v2 = <&cpu_opp_table>; - cpu-supply = <&ipq6018_s2>; #cooling-cells = <2>; }; @@ -69,7 +67,6 @@ CPU2: cpu@2 { clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; clock-names = "cpu"; operating-points-v2 = <&cpu_opp_table>; - cpu-supply = <&ipq6018_s2>; #cooling-cells = <2>; }; @@ -82,7 +79,6 @@ CPU3: cpu@3 { clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; clock-names = "cpu"; operating-points-v2 = <&cpu_opp_table>; - cpu-supply = <&ipq6018_s2>; #cooling-cells = <2>; }; @@ -184,16 +180,6 @@ glink-edge { rpm_requests: rpm-requests { compatible = "qcom,rpm-ipq6018"; qcom,glink-channels = "rpm_requests"; - - regulators { - compatible = "qcom,rpm-mp5496-regulators"; - - ipq6018_s2: s2 { - regulator-min-microvolt = <725000>; - regulator-max-microvolt = <1062500>; - regulator-always-on; - }; - }; }; }; }; -- 2.25.1