Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp286302pxb; Fri, 16 Apr 2021 05:48:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKCKhR/oV2NYfbVgV+x7e2a1yOJBTtMOuiThaggMaltu1tQb2eOQb6tUTRSkska99Xnk5b X-Received: by 2002:a62:b606:0:b029:222:7cab:5b1 with SMTP id j6-20020a62b6060000b02902227cab05b1mr7633507pff.32.1618577297245; Fri, 16 Apr 2021 05:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618577297; cv=none; d=google.com; s=arc-20160816; b=FwJ59G/2ZgSRnYLv3Eo3ABUgl8hY8ERzESASCi37mFwOOIntgm+g3bYbVMgGflWR1v l68p1AEnAc4wnyf+Y3mrS+0BAuvJaqUC4k7wjEKcxhp82OUolNMlS463eM7Hg5n/p7gm Tz6gbjP25JkPlMityE4eiv3ZZi9ybsbM5AeDqyURqKtJFx1F6pqOBys/+Hvs5JEzNsRD 930bJHUJUX3LRVBGWMkZHfzXggya4Dd6RCBYpY9OgcW2gSQsoDrTFW3BUT4XouNSjmBC A9yDVtBClSLWRRck0XVU3S5bO+Y4pTKnq8WPx/tkfBztLQmE2ggMH1JdkMMAtVdht4Wp 82wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=VABOpEc5RaH279+EdJakxXg4cxKIK972rL7IpX2xkJs=; b=hHHPtf3R+57AMc5yG9mHfqmM5FLDSDEz97lhZSiBvo8oFPKTPoHBXMZBfTMXetXtIM MAeNly7LwZ/ZHy1wZcj065+vIjOAA114bOKzOaHjE3xKNpKPhSpM7zVqoUbjpW2hyiNo sHiBSMoIWTssKF3mVSgCYaN+tpYz+m2WtUhivehoDGGyGX5FiltQnpQ/MzBkJGjFwSHF NSGc7xI6KTbK7cZx8HeMXkay7USuuvPeCjGkIwOr/wZGNEWuZf04je0Y9zGvOGgiOIlp WdbgNgO3ymOCSp/PUFnBVeH1ZyqNIhjQYy4FJ2Z+pWWGCh06Ct63s+/6fmf5IiZO8Zgk 9CrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=XApuP1a1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u76si6959567pgc.268.2021.04.16.05.48.05; Fri, 16 Apr 2021 05:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=XApuP1a1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243226AbhDPMGE (ORCPT + 99 others); Fri, 16 Apr 2021 08:06:04 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:39625 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243210AbhDPMFr (ORCPT ); Fri, 16 Apr 2021 08:05:47 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1618574722; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=VABOpEc5RaH279+EdJakxXg4cxKIK972rL7IpX2xkJs=; b=XApuP1a1MyZNw4EkhvPLU+SXcfHQmOpGsr1PKqE9/GsEPWEjxlI6ykL2bmIh7z5HLNrYgVNk X0YKGrjfx7dXCnd3q88hXqIhY8/GoKaPK4AYbD6vNLWzY/5toZa0ifieSJ/yA+NPPuSAwLYI C24hohJ0u7Ti7PdwywpCnyFg0RQ= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 60797d75c39407c327380ae5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 16 Apr 2021 12:05:09 GMT Sender: sibis=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 56A13C43463; Fri, 16 Apr 2021 12:05:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id EE8C6C433ED; Fri, 16 Apr 2021 12:05:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EE8C6C433ED Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, ulf.hansson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, swboyd@chromium.org Cc: rjw@rjwysocki.net, agross@kernel.org, ohad@wizery.com, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, rishabhb@codeaurora.org, sidgup@codeaurora.org, Sibi Sankar Subject: [PATCH 11/12] arm64: dts: qcom: sm8350: Use QMP binding to control load state Date: Fri, 16 Apr 2021 17:33:57 +0530 Message-Id: <1618574638-5117-12-git-send-email-sibis@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1618574638-5117-1-git-send-email-sibis@codeaurora.org> References: <1618574638-5117-1-git-send-email-sibis@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the Qualcomm Mailbox Protocol (QMP) binding to control the load state resources on SM8350 SoCs and drop deprecated power-domains exposed by AOSS QMP node. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index ed0b51bc03ea..ddbe932e4066 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include @@ -651,15 +650,16 @@ clocks = <&rpmhcc RPMH_CXO_CLK>; clock-names = "xo"; - power-domains = <&aoss_qmp AOSS_QMP_LS_MODEM>, - <&rpmhpd 0>, + power-domains = <&rpmhpd 0>, <&rpmhpd 12>; - power-domain-names = "load_state", "cx", "mss"; + power-domain-names = "cx", "mss"; interconnects = <&mc_virt 0 &mc_virt 1>; memory-region = <&pil_modem_mem>; + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_modem_out 0>; qcom,smem-state-names = "stop"; @@ -719,7 +719,6 @@ mboxes = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_QMP>; #clock-cells = <0>; - #power-domain-cells = <1>; }; spmi_bus: spmi@c440000 { @@ -1018,13 +1017,14 @@ clocks = <&rpmhcc RPMH_CXO_CLK>; clock-names = "xo"; - power-domains = <&aoss_qmp AOSS_QMP_LS_SLPI>, - <&rpmhpd 4>, + power-domains = <&rpmhpd 4>, <&rpmhpd 5>; - power-domain-names = "load_state", "lcx", "lmx"; + power-domain-names = "lcx", "lmx"; memory-region = <&pil_slpi_mem>; + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_slpi_out 0>; qcom,smem-state-names = "stop"; @@ -1058,15 +1058,16 @@ clocks = <&rpmhcc RPMH_CXO_CLK>; clock-names = "xo"; - power-domains = <&aoss_qmp AOSS_QMP_LS_CDSP>, - <&rpmhpd 0>, + power-domains = <&rpmhpd 0>, <&rpmhpd 10>; - power-domain-names = "load_state", "cx", "mxc"; + power-domain-names = "cx", "mxc"; interconnects = <&compute_noc 1 &mc_virt 1>; memory-region = <&pil_cdsp_mem>; + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_cdsp_out 0>; qcom,smem-state-names = "stop"; @@ -1292,13 +1293,14 @@ clocks = <&rpmhcc RPMH_CXO_CLK>; clock-names = "xo"; - power-domains = <&aoss_qmp AOSS_QMP_LS_LPASS>, - <&rpmhpd 4>, + power-domains = <&rpmhpd 4>, <&rpmhpd 5>; - power-domain-names = "load_state", "lcx", "lmx"; + power-domain-names = "lcx", "lmx"; memory-region = <&pil_adsp_mem>; + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_adsp_out 0>; qcom,smem-state-names = "stop"; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project