From patchwork Tue Aug 14 14:12:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 10565667 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 156B213B4 for ; Tue, 14 Aug 2018 14:13:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08C832851D for ; Tue, 14 Aug 2018 14:13:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0D3B28A09; Tue, 14 Aug 2018 14:13:53 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 702FB2851D for ; Tue, 14 Aug 2018 14:13:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732049AbeHNRBN (ORCPT ); Tue, 14 Aug 2018 13:01:13 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:46851 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728458AbeHNRBN (ORCPT ); Tue, 14 Aug 2018 13:01:13 -0400 Received: by mail-pl0-f66.google.com with SMTP id t17-v6so8353201ply.13 for ; Tue, 14 Aug 2018 07:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=PHSODxWPLctPpYsUD96nATtW8yxh1iXHPpRRd7pJVqY=; b=GznMsO1jfMDgrDWedl34hXYF8jxapJNf8g6XjOrH9E+jkoihXCvYJ9qPiIUzXTRDhQ 5eHzg0WWpVDCPI8HkMbi1Hy1PN9Hw+aEhnCkdosQnPpq1GzV3oz7l8tU6lOL/5VM7F3P rhc/Ozn4T7eIiYgiUQ52nI/IlNjIeQGXeP3khQi/AaabmQxffcbH4wlPfBJnkLmIEYR4 1kDFmZfA4lVq4+1k0Du+gaU11oh4RntL7dQkCkArvMJvzn3YR2zEfbYqgWFLJVDJwMaq tN7XYiEnnoAFqomxALm/Fu3x0z+6PVnzAzIpT+reDrrN5dWXjL2ClanGI8XhsL5nkqxQ /vLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PHSODxWPLctPpYsUD96nATtW8yxh1iXHPpRRd7pJVqY=; b=ZELeLuKjG6dud8Loxd00joKt3h1A4bBRCg1Ki9xQa+84O8XKilCSENUoq0JGUyAus4 DuAjNa8zzKxP6wB8bdkd4BbXKSicoX7/q2iw5hAGTVS3Q2X2sNN0i6LGvZtzt9dZxTAW SVhnY4vcN5QG+2DCCMidKFLprtGqyG7LOdTNaMc2odrLv/skkq2+/+d4QVzu+Hbkry2o QdZ9g5UnmMCtJDimir8STDX85OSp9K8XRfEjsok3gpNQiQL3QPUsqfJCOypeerhvGqFw uOOpzwUJ8PsxWbgE2jMy49U7uIGINMSc4B93g1oD+jJk8LZ1fDm8KsbOOvU4bcErWOX0 9ybQ== X-Gm-Message-State: AOUpUlEqKlu3CJQGFPiyyikw43WcQ/kjgCkNZ+CLQfw0PlrhARppSoZE 8toJPK2WieipRR5VkML/KZJcYpui X-Google-Smtp-Source: AA+uWPw30HDMfkA3Bk9rK6/VMCH/sob+qQs83AwtnD4E/BwHtu9PSr9Cvr33+F+BFwgyeWLVO/TuLQ== X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr8028031plo.263.1534256031450; Tue, 14 Aug 2018 07:13:51 -0700 (PDT) Received: from macc.flets-east.jp (p7732116-ipngn36501marunouchi.tokyo.ocn.ne.jp. [114.158.79.116]) by smtp.gmail.com with ESMTPSA id g5-v6sm24371605pfh.63.2018.08.14.07.13.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 07:13:50 -0700 (PDT) From: Yoshihiro Kaneko To: linux-renesas-soc@vger.kernel.org Cc: Simon Horman , Magnus Damm , linux-arm-kernel@lists.infradead.org Subject: [PATCH/RFT] arm64: dts: renesas: r8a77965: Add OPPs table for cpu devices Date: Tue, 14 Aug 2018 23:12:41 +0900 Message-Id: <1534255961-23326-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dien Pham This patch adds OPPs table for CA57{0,1} cpu devices Signed-off-by: Dien Pham Signed-off-by: Takeshi Kihara Signed-off-by: Yoshihiro Kaneko Tested-by: Simon Horman Signed-off-by: Dien Pham Signed-off-by: Takeshi Kihara Signed-off-by: Yoshihiro Kaneko Tested-by: Simon Horman Signed-off-by: Simon Horman --- This patch is based on the devel branch of Simon Horman's renesas tree. arch/arm64/boot/dts/renesas/r8a77965.dtsi | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 52205be..c5fb35b 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -60,6 +60,46 @@ clock-frequency = <0>; }; + cluster0_opp: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp@500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <830000>; + clock-latency-ns = <300000>; + }; + opp@1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <830000>; + clock-latency-ns = <300000>; + }; + opp@1500000000 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <830000>; + clock-latency-ns = <300000>; + opp-suspend; + }; + opp@1600000000 { + opp-hz = /bits/ 64 <1600000000>; + opp-microvolt = <900000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + opp@1700000000 { + opp-hz = /bits/ 64 <1700000000>; + opp-microvolt = <900000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + opp@1800000000 { + opp-hz = /bits/ 64 <1800000000>; + opp-microvolt = <960000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -71,6 +111,8 @@ power-domains = <&sysc R8A77965_PD_CA57_CPU0>; next-level-cache = <&L2_CA57>; enable-method = "psci"; + clocks =<&cpg CPG_CORE R8A77965_CLK_Z>; + operating-points-v2 = <&cluster0_opp>; }; a57_1: cpu@1 { @@ -80,6 +122,8 @@ power-domains = <&sysc R8A77965_PD_CA57_CPU1>; next-level-cache = <&L2_CA57>; enable-method = "psci"; + clocks =<&cpg CPG_CORE R8A77965_CLK_Z>; + operating-points-v2 = <&cluster0_opp>; }; L2_CA57: cache-controller-0 {