From patchwork Mon Aug 3 01:13:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 51823 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 57BE5229FD for ; Mon, 3 Aug 2015 01:15:56 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf23891349wic.1 for ; Sun, 02 Aug 2015 18:15:55 -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:cc: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=FGmR6XLWCmP5i2XnzlcEKS0ZZtBrHkap1qkeot2N5Sk=; b=KjNDp0zfrRjaWyMXx+6+SAdvBedlVdL5LR6p70CxIEaGDd39MOv2c99S8Qy/EVE3YZ WL/RX094UBu1VJGgoeyh2Iww+F+qeotO+DctYjkvVjNU/7fCVPMLT2r2NGWP78GYGYSF eyv+kxxwlvkpTesxKrpSbH66vfvNCEOmDkNTDUZZhbMrrESmoFlMKvMADC2hD5eYKGZn /SO+2iHSWuq9ZeUI7r0bx/Kgyi3W3KYJI/3a0yKG13rnfjwnjcWZP5vW8zzNSY4mr9m9 qYfGLEZgxbEBKzrVepRlfRz36VCj+SV//Hhvc6H9B+N6jl1WT6bJhvYit2DCJ3f470Yz QPaQ== X-Gm-Message-State: ALoCoQmYDIT6bxSO51F5UzVRDGLeT/WUnhXKm9LK72NEXaxc9a4BCVAmaiATzXogzT4pORrRyqAf X-Received: by 10.180.83.33 with SMTP id n1mr5004157wiy.4.1438564555697; Sun, 02 Aug 2015 18:15:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.73 with SMTP id y9ls437009lay.18.gmail; Sun, 02 Aug 2015 18:15:55 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr14351003lbb.36.1438564555038; Sun, 02 Aug 2015 18:15:55 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id lc7si10625710lac.95.2015.08.02.18.15.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Aug 2015 18:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by labpt2 with SMTP id pt2so5623532lab.0 for ; Sun, 02 Aug 2015 18:15:54 -0700 (PDT) X-Received: by 10.112.185.100 with SMTP id fb4mr14396912lbc.79.1438564554600; Sun, 02 Aug 2015 18:15:54 -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.7.198 with SMTP id l6csp1597301lba; Sun, 2 Aug 2015 18:15:53 -0700 (PDT) X-Received: by 10.66.140.98 with SMTP id rf2mr31249617pab.138.1438564551902; Sun, 02 Aug 2015 18:15:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kv6si10017447pbc.247.2015.08.02.18.15.50; Sun, 02 Aug 2015 18:15:51 -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 S1752703AbbHCBPo (ORCPT + 28 others); Sun, 2 Aug 2015 21:15:44 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:34519 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752672AbbHCBPi (ORCPT ); Sun, 2 Aug 2015 21:15:38 -0400 Received: by pacan13 with SMTP id an13so77677831pac.1 for ; Sun, 02 Aug 2015 18:15:38 -0700 (PDT) X-Received: by 10.68.136.234 with SMTP id qd10mr18655564pbb.162.1438564538184; Sun, 02 Aug 2015 18:15:38 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by smtp.gmail.com with ESMTPSA id pd10sm15416289pdb.66.2015.08.02.18.15.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Aug 2015 18:15:37 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Wei Xu , Haojian Zhuang , Bintian Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Guodong Xu , Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , sunzhaosheng@hisilicon.com, victor.lixin@hisilicon.com Cc: Leo Yan Subject: [PATCH v3 5/5] arm64: dts: add Hi6220's stub clock node Date: Mon, 3 Aug 2015 09:13:38 +0800 Message-Id: <1438564418-15948-6-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438564418-15948-1-git-send-email-leo.yan@linaro.org> References: <1438564418-15948-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.215.41 as permitted sender) smtp.mail=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 b42a9b7..94b8310 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -57,6 +57,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 */ }; cpu1: cpu@1 { @@ -136,6 +147,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>; @@ -160,6 +176,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>;