Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16769183ybl; Wed, 1 Jan 2020 13:14:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzLTXUUgNk5E6nEKXMiyvRHD92B9bmwziLbgD57RZpgqJdSHfy/U3Hw0WvVHk6pDg/AFHqw X-Received: by 2002:a9d:6f07:: with SMTP id n7mr85474180otq.112.1577913249272; Wed, 01 Jan 2020 13:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577913249; cv=none; d=google.com; s=arc-20160816; b=tvb0FP91RDgTmInLZSxJ+qiiUAWX1V6SZK+f6ZhVeExpl3xIdztYwJIzm+dOaDcsN9 EfY+t8sBU/V9EF6QprM01egSEM4L3LWzgoW0SMLcY+SoE8TQ8VvlSX0T3/IisG9uGzof bGg1EEfB+V5IH/iPUfGjzv9fd1qfss+kIIz/yt50B+6u3odIzruS/dIdRUk5ho+CG249 A6KfqT56/0vjdLtyP6vqLC1g7YisXYwrAppHcpJPd3CXiP1zYpotpqtivYOBL/zb/bVx oznhkid+HiM+pSiBY8GDiAfy8R2JM9/7oQiKz1Pt14r8j334jcfBKbo9pQ2nlk3qWmZq tnHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=97LkHj455aBoVei3YqvNr8qA4L7Cfp/wwx2DG5D61uI=; b=LmnQwprYEdgBLtMav3T4V7ITHvQ/udq/VvAc9FVUA4VSLvBsDyISQhXUGhwFFq2aQK VQ+dD1Lf4/5lshpI3Ewz+TkzVuUfmpjrfidZo3xbO2H8zB1SJsFVP7h+/JvdqMV2UUlq 8oy+eYLp4j8BpzZH2ri98I4QwfjgRdKJpC6Nrscif8UOdxaKEa9kDpnXyT9/gFc7TSog xacbgiIZbE1ooHkEcEgwYbc1FplgX8kQXhfQh3SBXBFI4WifZ7BtZKeHuK/NeZnctmJ0 58aG6auiLn8AdsowNQV9uZOowpJwoq9JmuyKWxJS+RX2csabXpaCO4j0fPNj/vHWFCXw yomQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CUFUmxQA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si30488177otj.24.2020.01.01.13.13.57; Wed, 01 Jan 2020 13:14:09 -0800 (PST) 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=@linaro.org header.s=google header.b=CUFUmxQA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727290AbgAAVNT (ORCPT + 99 others); Wed, 1 Jan 2020 16:13:19 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:34510 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbgAAVNS (ORCPT ); Wed, 1 Jan 2020 16:13:18 -0500 Received: by mail-vs1-f67.google.com with SMTP id g15so24413201vsf.1 for ; Wed, 01 Jan 2020 13:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=97LkHj455aBoVei3YqvNr8qA4L7Cfp/wwx2DG5D61uI=; b=CUFUmxQACKGvhwByCAStYbtnmv89SNXEgymZ3fEtyZiukyaiueQk7B/DIe4RqsI2pA pk0Ptr1wugg1wvpCGga1ePARhRhInGpVx9BhMYDnYCj3Vt1/oW3fNX9HkLGYIvkqoPFj WAA8p8UlTigapmxp+FFJrdZ0H9BsVX/4slGiwCZlW1EtqqaFvXhBpP0xc2UE6hxPFXcP 0ZUHx4EltqfTlU+Lxekp+6pW4M9bL7yaaPYr+Sjm2TfZ+K3X/1QqrVklA53DZQkbzx6x +hhCbn6JujW9ieBaSP8oUryYXaNtWsQgIGxbifk+0KgCbakNIjwJNlVLG7WCuC05vFw6 bYHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=97LkHj455aBoVei3YqvNr8qA4L7Cfp/wwx2DG5D61uI=; b=seAAbHoiiZeKq7g3YC/Tsxp9Xn9HZ1chksgig4H1WolRGw9Bx5y2gSbSKx+qShak8W kA0FpyjRGDA0Mx3zFVRAkGq/Rvgbgs8uzjP5d0f16nX1Xo6E2rPFxi0kodzHrq67pluj 7Je8SMSM5Nhc3BaF4wS5OXzIRXYKUXUrt86NxZzqBPVUfTZC5CBY0FxHPNQOelrByIUU e2gwZQayf+sEvpdPESCDQ2TwJz5IFccQz+qabcEbgornoGeFRIodxqGW3FXYBNldPH4X pWbUiluL1PUpgKSfntlskwkOHtL7B+y/IhpkwFGe7RD/M8xc19LWa9PL+rlF35GbjJZM lJmA== X-Gm-Message-State: APjAAAUX9+LcdLHNVX2M9rs1JtUdb+YWdrdgFOP76Q4HA77ss3pA9fUX 7GoagQyrPrChfAdaAlC1oUqV+hDqZJu8xyMZjvYo/1F2VSI= X-Received: by 2002:a05:6102:d4:: with SMTP id u20mr32348868vsp.27.1577913197555; Wed, 01 Jan 2020 13:13:17 -0800 (PST) MIME-Version: 1.0 References: <20191219120633.20723-1-sibis@codeaurora.org> In-Reply-To: <20191219120633.20723-1-sibis@codeaurora.org> From: Amit Kucheria Date: Thu, 2 Jan 2020 02:43:06 +0530 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sm8150: Add cpufreq HW device node To: Sibi Sankar Cc: Bjorn Andersson , Andy Gross , Rob Herring , Mark Rutland , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 19, 2019 at 5:36 PM Sibi Sankar wrote: > > Add cpufreq HW device node to scale 4-Silver/3-Gold/1-Gold+ cores > on SM8150 SoCs. > > Signed-off-by: Sibi Sankar Reviewed-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/sm8150.dtsi | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > index 694be3c001a68..bad77e539cb1d 100644 > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > @@ -45,6 +45,7 @@ > reg = <0x0 0x0>; > enable-method = "psci"; > next-level-cache = <&L2_0>; > + qcom,freq-domain = <&cpufreq_hw 0>; > L2_0: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -60,6 +61,7 @@ > reg = <0x0 0x100>; > enable-method = "psci"; > next-level-cache = <&L2_100>; > + qcom,freq-domain = <&cpufreq_hw 0>; > L2_100: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -73,6 +75,7 @@ > reg = <0x0 0x200>; > enable-method = "psci"; > next-level-cache = <&L2_200>; > + qcom,freq-domain = <&cpufreq_hw 0>; > L2_200: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -85,6 +88,7 @@ > reg = <0x0 0x300>; > enable-method = "psci"; > next-level-cache = <&L2_300>; > + qcom,freq-domain = <&cpufreq_hw 0>; > L2_300: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -97,6 +101,7 @@ > reg = <0x0 0x400>; > enable-method = "psci"; > next-level-cache = <&L2_400>; > + qcom,freq-domain = <&cpufreq_hw 1>; > L2_400: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -109,6 +114,7 @@ > reg = <0x0 0x500>; > enable-method = "psci"; > next-level-cache = <&L2_500>; > + qcom,freq-domain = <&cpufreq_hw 1>; > L2_500: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -121,6 +127,7 @@ > reg = <0x0 0x600>; > enable-method = "psci"; > next-level-cache = <&L2_600>; > + qcom,freq-domain = <&cpufreq_hw 1>; > L2_600: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -133,6 +140,7 @@ > reg = <0x0 0x700>; > enable-method = "psci"; > next-level-cache = <&L2_700>; > + qcom,freq-domain = <&cpufreq_hw 2>; > L2_700: l2-cache { > compatible = "cache"; > next-level-cache = <&L3_0>; > @@ -834,6 +842,19 @@ > }; > }; > }; > + > + cpufreq_hw: cpufreq@18323000 { > + compatible = "qcom,cpufreq-hw"; > + reg = <0 0x18323000 0 0x1400>, <0 0x18325800 0 0x1400>, > + <0 0x18327800 0 0x1400>; > + reg-names = "freq-domain0", "freq-domain1", > + "freq-domain2"; > + > + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>; > + clock-names = "xo", "alternate"; > + > + #freq-domain-cells = <1>; > + }; > }; > > timer { > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project