Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4244085pxv; Mon, 19 Jul 2021 21:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXhzbgOzUbKOm63ufZBDbJnUjbfNGOFFWgRJmSx/upBv0QX/jn3o8AGetwVe8r+9kN4wyp X-Received: by 2002:a92:ab0a:: with SMTP id v10mr4594150ilh.17.1626756486592; Mon, 19 Jul 2021 21:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626756486; cv=none; d=google.com; s=arc-20160816; b=WpsCnCgFKjD05mrAkAcEsXQ01r61xx568DZo9HBm481i/iipFK72ZStHMe/og0hbAK Pw8CUKmoZ9NGdUuv8LpSd79LBuHXTHA76T6n9n3hkP4oLFj7Iv5YZpsKeUR4Qd56LZn/ erc1MUOO8+Ue4mCgq+u7vThIqJIjh3cUmoqnC/iaS371+jIB07sdwb2GR8GVDwcGMxsA FjNlaHuP+ATpkBIXzY89L6ykZlHcDf6FT5qASwCjxppcHskdvgCG5SJ3/rBRhatHLWwf tg5EBGrj06WROjZQW1j8j8+XOSrXJV9hrtGwlQ4LcGBmt8giNXFXRJ0SjA9f09qdq/u3 oZ5g== 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=0cGHSf4w6f35/gl8CYDaCMeuHs1WtR2t5FEDzVtodVo=; b=mQD+qwPisXF2BwyxU4CcEvqtBjb+7eLlx8E7yVFiRyrw2MrCok/WGmWSIPyJPGhSRD p8/kL0qftsNOPmE7EIuiG759HqovefXiBP1fQbPodBGXIBB5rcz7jGiD+S4FdrLoak11 sswpxJJlyzC8aI0TSCPPMn85Z3xVoTrbv9Txc5ZOvQLC0Oc13d/M2gcH1neV4tZccN8q OMUZ/HEa3nUTo05a8omNxrd0E7oT18gWB+xtR31Dq+EegRjaDy1In6ZN/T6aueWYJ7ho Ak7IF9zr+2f9VRVLUmEs9u/Y70LYOxsHQVCjum/hHWbKvlm6XXpBFJNIAMOd18eSb3CS HP3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=U6Ir3AQM; 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 g9si23067948ilb.126.2021.07.19.21.47.55; Mon, 19 Jul 2021 21:48:06 -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=U6Ir3AQM; 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 S1349323AbhGTEDh (ORCPT + 99 others); Tue, 20 Jul 2021 00:03:37 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:39002 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348209AbhGTD6Y (ORCPT ); Mon, 19 Jul 2021 23:58:24 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1626755930; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=0cGHSf4w6f35/gl8CYDaCMeuHs1WtR2t5FEDzVtodVo=; b=U6Ir3AQMrYjD99/22eO6NOOQcEztzIu2FN3s4HaaPmFka/iU48xod5H9NQN9xrZvwTGskKeS IfxzlKsGnP7jE9OOMVsIMNx0qLWjUadkRGMp96DPfa09Rk51uBmTBJPTYp/tKhnaBDf3AUw+ ggbg83G2mBauXX47EEjmSCZjRtk= 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-n01.prod.us-west-2.postgun.com with SMTP id 60f65346fcf9fe7b78d8c4f1 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 20 Jul 2021 04:38:30 GMT Sender: sibis=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D719FC4338A; Tue, 20 Jul 2021 04:38:30 +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 7D083C433D3; Tue, 20 Jul 2021 04:38:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7D083C433D3 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: mka@chromium.org, swboyd@chromium.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: ulf.hansson@linaro.org, rjw@rjwysocki.net, agross@kernel.org, ohad@wizery.com, mathieu.poirier@linaro.org, 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 v4 10/13] arm64: dts: qcom: sm8350: Use QMP property to control load state Date: Tue, 20 Jul 2021 10:06:44 +0530 Message-Id: <1626755807-11865-11-git-send-email-sibis@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626755807-11865-1-git-send-email-sibis@codeaurora.org> References: <1626755807-11865-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) property to control the load state resources on SM8350 SoCs and drop deprecated power-domains exposed by AOSS QMP node. Signed-off-by: Sibi Sankar Reviewed-by: Stephen Boyd --- 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 0d16392bb976..2d78a55f33c2 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -703,15 +702,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 MASTER_LLCC &mc_virt SLAVE_EBI1>; memory-region = <&pil_modem_mem>; + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_modem_out 0>; qcom,smem-state-names = "stop"; @@ -771,7 +771,6 @@ mboxes = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_GLINK_QMP>; #clock-cells = <0>; - #power-domain-cells = <1>; }; spmi_bus: spmi@c440000 { @@ -1070,13 +1069,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"; @@ -1110,15 +1110,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 MASTER_CDSP_PROC &mc_virt SLAVE_EBI1>; memory-region = <&pil_cdsp_mem>; + qcom,qmp = <&aoss_qmp>; + qcom,smem-states = <&smp2p_cdsp_out 0>; qcom,smem-state-names = "stop"; @@ -1344,13 +1345,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