From patchwork Mon Oct 12 16:32:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 54803 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 868EC22DB6 for ; Mon, 12 Oct 2015 16:33:31 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf62017739wic.3 for ; Mon, 12 Oct 2015 09:33:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=uqjIEmzK9kRzfZ+ojOXkw2ZIXVj39WvqGCFe5FYYJo8=; b=FprMgt7JVuqfA5SECQfXhbjhXbm/jT/Fz+ogdOHvN81FBWqdRpDq0+R3bAloTixiYu 2IMNHWFE0YZHiu8qo7JRs4c7IFu50uG88iYoOQzxeoCipzvQssh2KdTDBW4N1PQil/5g OkUHKZRQleujc6SvUZryeFVmbk0acuoAa74CWjBgcN5b12oR8z7JZ3fVQjDKz79ffp9O Jia1zZUqP7PQw7VXC1XlGKEnM6K+U+G2+eqSgoZQztwwUcXGYXnWPmdcRvlpS1hojfQA ie3SyEcayJTgK72vXfpPjmacKC4o2EoazuLzqFwHc/wxEl5WNLVfyP572KBUEqlgbE48 xXow== X-Gm-Message-State: ALoCoQn5bNa1GWKZe3X+k1Qrjfa02gbkW8SJv/LYUrpCorGwGV2Ad1kIeWSG67EkaDPwon9OjTSM X-Received: by 10.180.10.135 with SMTP id i7mr3115331wib.2.1444667610892; Mon, 12 Oct 2015 09:33:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.82.3 with SMTP id g3ls559298lfb.10.gmail; Mon, 12 Oct 2015 09:33:30 -0700 (PDT) X-Received: by 10.25.20.167 with SMTP id 39mr8716427lfu.28.1444667610715; Mon, 12 Oct 2015 09:33:30 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id 18si11793814lfw.5.2015.10.12.09.33.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 09:33:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbcao8 with SMTP id ao8so148789681lbc.3 for ; Mon, 12 Oct 2015 09:33:30 -0700 (PDT) X-Received: by 10.25.77.133 with SMTP id a127mr8463321lfb.19.1444667610590; Mon, 12 Oct 2015 09:33:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1643519lbq; Mon, 12 Oct 2015 09:33:29 -0700 (PDT) X-Received: by 10.68.196.161 with SMTP id in1mr35223555pbc.127.1444667608546; Mon, 12 Oct 2015 09:33:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oo8si27253219pbc.101.2015.10.12.09.33.28; Mon, 12 Oct 2015 09:33:28 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbbJLQdY (ORCPT + 30 others); Mon, 12 Oct 2015 12:33:24 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:35329 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751722AbbJLQdV (ORCPT ); Mon, 12 Oct 2015 12:33:21 -0400 Received: by wicge5 with SMTP id ge5so157499422wic.0 for ; Mon, 12 Oct 2015 09:33:20 -0700 (PDT) X-Received: by 10.180.102.195 with SMTP id fq3mr15874626wib.7.1444667600145; Mon, 12 Oct 2015 09:33:20 -0700 (PDT) Received: from localhost.localdomain ([78.110.172.67]) by smtp.gmail.com with ESMTPSA id he3sm20749198wjc.48.2015.10.12.09.33.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 09:33:19 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Leo Yan , Bintian Wang , Yiping Xu , Haojian Zhuang , Wei Xu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 4/4] arm64: dts: add Hi6220's stub clock node Date: Tue, 13 Oct 2015 00:32:15 +0800 Message-Id: <1444667535-16948-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444667535-16948-1-git-send-email-leo.yan@linaro.org> References: <1444667535-16948-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable SRAM node and stub clock node for Hi6220; furthermore add the CPU's clock so it will be used by cpufreq-dt driver. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 76560fa..912671e 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -80,6 +80,17 @@ device_type = "cpu"; reg = <0x0 0x0>; enable-method = "psci"; + clocks = <&stub_clock 0>; + clock-latency = <0>; + operating-points = < + /* kHz */ + 1200000 0 + 960000 0 + 729000 0 + 432000 0 + 208000 0 + >; + #cooling-cells = <2>; /* min followed by max */ cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; }; @@ -167,6 +178,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>; @@ -191,6 +207,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>;