From patchwork Mon Feb 1 13:34:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 60921 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3084664lbb; Mon, 1 Feb 2016 05:35:38 -0800 (PST) X-Received: by 10.66.235.162 with SMTP id un2mr37959752pac.17.1454333737980; Mon, 01 Feb 2016 05:35:37 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ey12si24357317pac.203.2016.02.01.05.35.36; Mon, 01 Feb 2016 05:35:37 -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; 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; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932820AbcBANfc (ORCPT + 30 others); Mon, 1 Feb 2016 08:35:32 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36619 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932758AbcBANf1 (ORCPT ); Mon, 1 Feb 2016 08:35:27 -0500 Received: by mail-pa0-f46.google.com with SMTP id yy13so82268777pab.3 for ; Mon, 01 Feb 2016 05:35:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=HROyP7DDrE4o5z/QZ1l4ILUQsAAHOTqWe2yeMUvjAQY=; b=kpsb08NeoBzawnECNLqrOrRmsMVrrhMqIanpG8dNQWR2xZ3N7a8N4mLcS9ujUlNqHb 36Wp+BgG+1jk4y1tAr/kDLysormwhJpU22rm7XLYOcgqMeRSHVeemXGkd28btegdBA51 8df0G2VfQzN/ISePSlg+rGuu9iFP6lAiucjJg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=HROyP7DDrE4o5z/QZ1l4ILUQsAAHOTqWe2yeMUvjAQY=; b=FtAcyD9IzuQRF3DGMWYzdSxzCyN08N37GT0ChgE7vIHFJeMInhhjMnFkBm8nr8eCHa mdn4IZUsTQAucjebU516gp3HKlk4yqzQx5LmeNvG19o9BsrFCrma0cY2qHsmyEFu8S4o nmxpxN3lLk8QLE1vfoOnOFUu93CtTvo6yHBnV+YaIrGT+JC1EP8I+XTS+QXvMuKZ8m/F 2e/rjAwdaCKIddRLO/sW2ux2dpZz1jzdzKWd1ZOPsoi8lWwaBCoR1iZD6Z/LNWQUN19P Nac5XzF+N52ZagivG3DCekjSlL8s2mL8xhGj0xgOq0wUSWKoE2XiflZIefqG8Wsx81WA IH7A== X-Gm-Message-State: AG10YOTC4cngw+XJz5+AlGyuze/vDkeSqgF8T8jxcq4WqN1FA7UWcYRdc0nSmGelehjLBmEm X-Received: by 10.66.191.195 with SMTP id ha3mr38750534pac.58.1454333726560; Mon, 01 Feb 2016 05:35:26 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id r87sm4653060pfa.61.2016.02.01.05.35.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Feb 2016 05:35:24 -0800 (PST) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Leo Yan , Arnd Bergmann , Wei Xu , Tyler Baker , Sudeep Holla , Chen Feng , Bintian Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Haojian Zhuang Subject: [PATCH v5 4/4] arm64: dts: add Hi6220's stub clock node Date: Mon, 1 Feb 2016 21:34:47 +0800 Message-Id: <1454333687-20421-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454333687-20421-1-git-send-email-leo.yan@linaro.org> References: <1454333687-20421-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable SRAM node and stub clock node for Hi6220, which will use mailbox channel 0 for CPU's frequency change. Furthermore, add the CPU clock phandle in CPU's node and using operating-points-v2 to register operating points. So can be used by cpufreq-dt driver. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index be3d962..d46820a 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -81,6 +81,11 @@ device_type = "cpu"; reg = <0x0 0x0>; enable-method = "psci"; + clocks = <&stub_clock 0>; + operating-points-v2 = <&cpu_opp_table>; + cooling-min-level = <4>; + cooling-max-level = <0>; + #cooling-cells = <2>; /* min followed by max */ cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -89,6 +94,7 @@ device_type = "cpu"; reg = <0x0 0x1>; enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -97,6 +103,7 @@ device_type = "cpu"; reg = <0x0 0x2>; enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -105,6 +112,7 @@ device_type = "cpu"; reg = <0x0 0x3>; enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -113,6 +121,7 @@ device_type = "cpu"; reg = <0x0 0x100>; enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -121,6 +130,7 @@ device_type = "cpu"; reg = <0x0 0x101>; enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -129,6 +139,7 @@ device_type = "cpu"; reg = <0x0 0x102>; enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -137,10 +148,42 @@ device_type = "cpu"; reg = <0x0 0x103>; enable-method = "psci"; + operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; }; + cpu_opp_table: cpu_opp_table { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <208000000>; + opp-microvolt = <1040000>; + clock-latency-ns = <500000>; + }; + opp01 { + opp-hz = /bits/ 64 <432000000>; + opp-microvolt = <1040000>; + clock-latency-ns = <500000>; + }; + opp02 { + opp-hz = /bits/ 64 <729000000>; + opp-microvolt = <1090000>; + clock-latency-ns = <500000>; + }; + opp03 { + opp-hz = /bits/ 64 <960000000>; + opp-microvolt = <1180000>; + clock-latency-ns = <500000>; + }; + opp04 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1330000>; + clock-latency-ns = <500000>; + }; + }; + gic: interrupt-controller@f6801000 { compatible = "arm,gic-400"; reg = <0x0 0xf6801000 0 0x1000>, /* GICD */ @@ -168,6 +211,11 @@ #size-cells = <2>; ranges; + sram: sram@fff80000 { + compatible = "hisilicon,hi6220-sramctrl", "syscon"; + reg = <0x0 0xfff80000 0x0 0x12000>; + }; + ao_ctrl: ao_ctrl@f7800000 { compatible = "hisilicon,hi6220-aoctrl", "syscon"; reg = <0x0 0xf7800000 0x0 0x2000>; @@ -193,6 +241,13 @@ #clock-cells = <1>; }; + stub_clock: stub_clock { + compatible = "hisilicon,hi6220-stub-clk"; + hisilicon,hi6220-clk-sram = <&sram>; + #clock-cells = <1>; + mboxes = <&mailbox 1>; + }; + uart0: uart@f8015000 { /* console */ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xf8015000 0x0 0x1000>;