Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4400370imm; Mon, 18 Jun 2018 14:25:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI9hhFxFtxM66i++qwz9Oh8GN/QHp8cE7PpwwEhxZh3rcIFpnT6l58k5a8N3sCnX7qi/5f+ X-Received: by 2002:a62:84e:: with SMTP id c75-v6mr15261024pfd.35.1529357114807; Mon, 18 Jun 2018 14:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529357114; cv=none; d=google.com; s=arc-20160816; b=dhknPdzlSoKxYCkfQbgeO8XHwt8b6i0xQFk7U85++7FSCg4NeqMJ59l0PD+ZnnWFFE uOKvA/E2Lpc1cyPmOSGVVc4OdtgSe7ZZVbgOnjQXqZZX2HDkB5W1CTnyi/6I8/TvFIc0 vo1xMxhJYLanmoKZFp4TNGzxOkTsDSTjIL24HkqVDaigJ/6ChwigNCHdZB+m5ijXfm1u QtsSa+VJXBg0Gn0xZu3pdf5YlWdqm4HVf4s6ijhcC45uVp3S+JOqjLw0QZjs2+kZBoQh ZuCaXljixBCEt8xN7O8Ry9vzVarFnYbWZ3d+WNW83y0f9HIwu/HIT7Us7ulLoTvVlx8a O9mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=Oxc5tNKVWCgC+vrmg+G5c8um9CiThPGatUr3u4hMrPA=; b=bOK/Kr+bXODecciRjV+FtMkHpPgurgFsPx7pCm1+cwY4kVvRECnYarbFzxqP6qkPNj hUbTqJfhwPHvrsRwNdGL67c/vfS8BJlcfC2mj+QTO8jIGfVwCpudsLplDw7zE59jwLYy x82jmgpEo0A3dF6hhZHYff4c/RqQ+pFnPUeabv43Y/rnJNVeQFnzL0b7IRq3YcWq0328 L21YBuN/Lhm6UTeeU7ltoMV8U6MKalJSU9kfVQuZrSo5amXWK5GuZiUreAzZEMpiaL8P SCxi6JiGL4Tp3g1hvXzpZY/NBzysmBs7E1RCfY6dGBA/Tb+vhIYi1tk0Utcj/1ZpFJtT ywew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fPglJkVN; dkim=pass header.i=@codeaurora.org header.s=default header.b=fPglJkVN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12-v6si13163123pgs.601.2018.06.18.14.24.57; Mon, 18 Jun 2018 14:25:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fPglJkVN; dkim=pass header.i=@codeaurora.org header.s=default header.b=fPglJkVN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936966AbeFRVYT (ORCPT + 99 others); Mon, 18 Jun 2018 17:24:19 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60182 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936232AbeFRVYR (ORCPT ); Mon, 18 Jun 2018 17:24:17 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B23B860558; Mon, 18 Jun 2018 21:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529357056; bh=k8Aa+JERFUSGJRXFe+h6zWHRfDxH2Xn+LZyZQQyk2l4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fPglJkVNGrc5b/z5JKIlh6Bak28fRE54Fe9F+Cr12ZQf+HvlIjdwZB+U4I8VfFykq v7lHI8Hlkzd/1u53hQ6v6YR038QLMivJmFmxAP87HVSSs75cS6Z+yyzzshAVSoC5L1 ngjVQ5lZpnm3QWtIZWK+PKDOT+b9BQC9ylzcqLtE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BA91360558; Mon, 18 Jun 2018 21:24:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529357056; bh=k8Aa+JERFUSGJRXFe+h6zWHRfDxH2Xn+LZyZQQyk2l4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fPglJkVNGrc5b/z5JKIlh6Bak28fRE54Fe9F+Cr12ZQf+HvlIjdwZB+U4I8VfFykq v7lHI8Hlkzd/1u53hQ6v6YR038QLMivJmFmxAP87HVSSs75cS6Z+yyzzshAVSoC5L1 ngjVQ5lZpnm3QWtIZWK+PKDOT+b9BQC9ylzcqLtE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BA91360558 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Mon, 18 Jun 2018 15:24:14 -0600 From: Lina Iyer To: Douglas Anderson Cc: andy.gross@linaro.org, sboyd@kernel.org, tdas@codeaurora.org, rplsssn@codeaurora.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , David Brown , Will Deacon , Mark Rutland , linux-soc@vger.kernel.org, Catalin Marinas , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] arm64: dts: sdm845: Add rpmh-rsc node Message-ID: <20180618212414.GI21724@codeaurora.org> References: <20180618205616.102750-1-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180618205616.102750-1-dianders@chromium.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18 2018 at 14:56 -0600, Douglas Anderson wrote: >This adds the rpmh-rsc node to sdm845 based on the examples in the >bindings. > >Signed-off-by: Douglas Anderson >--- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > >diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi >index cd308b84bed7..19b006293d3b 100644 >--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi >+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi >@@ -7,6 +7,7 @@ > > #include > #include >+#include > > / { > interrupt-parent = <&intc>; >@@ -984,6 +985,24 @@ > #mbox-cells = <1>; > }; > >+ apps_rsc: rsc@179c0000 { >+ label = "apps_rsc"; >+ compatible = "qcom,rpmh-rsc"; >+ reg = <0x179c0000 0x10000>, >+ <0x179d0000 0x10000>, >+ <0x179e0000 0x10000>; >+ reg-names = "drv-0", "drv-1", "drv-2"; >+ interrupts = , >+ , >+ ; >+ qcom,tcs-offset = <0xd00>; >+ qcom,drv-id = <2>; >+ qcom,tcs-config = , >+ , >+ , >+ ; Sorry, my example had this incorrect order and I just noticed this. We will need to fix the example as well. The first TCS should be ACTIVE_TCS, then followed by SLEEP_TCS and WAKE_TCS. This order is important and should match what is set in the firmware. qcom,tcs-config = , , , ; While the above configuration would work for now, it would fail, when we enable system low power modes, which would use TCSes 2-7 for sleep and wake set transitions from the firmware. Thanks, Lina >+ }; >+ > intc: interrupt-controller@17a00000 { > compatible = "arm,gic-v3"; > #address-cells = <1>; >-- >2.18.0.rc1.244.gcf134e6275-goog >