From patchwork Fri Dec 2 05:52:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9457875 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8F98560515 for ; Fri, 2 Dec 2016 05:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 807DF2818B for ; Fri, 2 Dec 2016 05:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7505C28505; Fri, 2 Dec 2016 05:55:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1A9D42818B for ; Fri, 2 Dec 2016 05:55:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cCgmi-0000cI-J9; Fri, 02 Dec 2016 05:53:24 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cCgme-0000Xz-RF for linux-arm-kernel@lists.infradead.org; Fri, 02 Dec 2016 05:53:21 +0000 Received: by mail-pf0-x231.google.com with SMTP id d2so50779522pfd.0 for ; Thu, 01 Dec 2016 21:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=2kPQErCXdT05ttBmT3hEyiQfqEjK6645X/h/+fsOeUU=; b=jaYyq42+YnOSWiqrEScxgrMT9El20ohjSmLexPV8axoZoMXcWVHPr/O/0MjqpmP/R6 mecMlp9p7uNCcdNRZ27buSk/fYut8idwEEBMCVVF6d6k4VcmUdWebDV5ctFJCb1MJ1RJ hRK9RkYZov3yvbYPWr6fgZTwWanZ1MPAaZsNs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2kPQErCXdT05ttBmT3hEyiQfqEjK6645X/h/+fsOeUU=; b=dFSfsQCjxJzVgTm/6+WPSf5XJDI+T4zJekcapBMygFdoKywCud8aBzlcvETEFp4VQ6 JYc3XLrdpPmWRmBq3fyR0ygh78yaC1b1Au/71hXSSzsBfClDc5eld/eLiZlz4j/9ypXL /K3lr2+PmJYlAHjJz5CpFpIG/ehO0dRgo/iwNmoffRjqVpVli3rC0xpLzzRwhCfVcIrw dyE3yjV5yGOzSnIf4AB6IhHirxTzzgkMjI7M3qFEx6SXXACild5Z3Jyq2V4ZXxgaQuro nyidPFZhrAUcOa4A27pLCPmY22bAegAcgz4hBM9EPMd7FA+oTktA4HrF1pR7Vbg9inC9 1deg== X-Gm-Message-State: AKaTC02+NeHXcFdlVCUbKpVK67q+pX6OVgsn9apW7U3tW6dNzOxSkcyo/x7McM6x2mR/c7iC X-Received: by 10.98.70.74 with SMTP id t71mr43467598pfa.47.1480657977522; Thu, 01 Dec 2016 21:52:57 -0800 (PST) Received: from localhost.localdomain ([104.237.91.245]) by smtp.gmail.com with ESMTPSA id w17sm4181428pgm.18.2016.12.01.21.52.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 21:52:56 -0800 (PST) From: Baoyou Xie To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, shawnguo@kernel.org, jun.nie@linaro.org Subject: [PATCH v2] arm64: dts: zx: support cpu-freq for zx296718 Date: Fri, 2 Dec 2016 13:52:36 +0800 Message-Id: <1480657956-8140-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161201_215321_008453_331B442A X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, xie.baoyou@zte.com.cn, linux-kernel@vger.kernel.org, chen.chaokai@zte.com.cn, wang.qiang01@zte.com.cn, baoyou.xie@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the CPU clock phandle in CPU's node and uses operating-points-v2 to register operating points. So it can be used by cpufreq-dt driver. Signed-off-by: Baoyou Xie Acked-by: Viresh Kumar Reviewed-by: Jun Nie --- arch/arm64/boot/dts/zte/zx296718.dtsi | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/zte/zx296718.dtsi b/arch/arm64/boot/dts/zte/zx296718.dtsi index 7a1aed7..b44d1d1 100644 --- a/arch/arm64/boot/dts/zte/zx296718.dtsi +++ b/arch/arm64/boot/dts/zte/zx296718.dtsi @@ -44,6 +44,7 @@ #include #include #include +#include / { compatible = "zte,zx296718"; @@ -81,6 +82,8 @@ compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; + clocks = <&topcrm A53_GATE>; + operating-points-v2 = <&cluster0_opp>; }; cpu1: cpu@1 { @@ -88,6 +91,8 @@ compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x1>; enable-method = "psci"; + clocks = <&topcrm A53_GATE>; + operating-points-v2 = <&cluster0_opp>; }; cpu2: cpu@2 { @@ -95,6 +100,8 @@ compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x2>; enable-method = "psci"; + clocks = <&topcrm A53_GATE>; + operating-points-v2 = <&cluster0_opp>; }; cpu3: cpu@3 { @@ -102,6 +109,38 @@ compatible = "arm,cortex-a53","arm,armv8"; reg = <0x0 0x3>; enable-method = "psci"; + clocks = <&topcrm A53_GATE>; + operating-points-v2 = <&cluster0_opp>; + }; + }; + + cluster0_opp: opp-table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp@500000000 { + opp-hz = /bits/ 64 <500000000>; + clock-latency-ns = <500000>; + }; + + opp@648000000 { + opp-hz = /bits/ 64 <648000000>; + clock-latency-ns = <500000>; + }; + + opp@800000000 { + opp-hz = /bits/ 64 <800000000>; + clock-latency-ns = <500000>; + }; + + opp@1000000000 { + opp-hz = /bits/ 64 <1000000000>; + clock-latency-ns = <500000>; + }; + + opp@1188000000 { + opp-hz = /bits/ 64 <1188000000>; + clock-latency-ns = <500000>; }; };