From patchwork Wed Jul 25 20:41:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 10544673 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 61C5FA517 for ; Wed, 25 Jul 2018 20:42:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 501D12A9E1 for ; Wed, 25 Jul 2018 20:42:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40D262A9E0; Wed, 25 Jul 2018 20:42:04 +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 38A652A9D5 for ; Wed, 25 Jul 2018 20:42:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731407AbeGYVzR (ORCPT ); Wed, 25 Jul 2018 17:55:17 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43652 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730623AbeGYVzQ (ORCPT ); Wed, 25 Jul 2018 17:55:16 -0400 Received: by mail-pf1-f193.google.com with SMTP id j26-v6so2073139pfi.10 for ; Wed, 25 Jul 2018 13:41:55 -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=JJf34arOAOdJ3+OVtVFSYnxtBthW3De87WubXq4aSBM=; b=FH9tVR230JIhY+xJPstEpCshcmgbLyjdeEGJHNZVdcoBInhz0GaY4VbhI23VhvbHXX spZyO4ws5uMM6v1pnVe1TK85sqDkKcKZgyB7BK8oqtsMCJerqX4TMVoME9krWMZeqsTH Yg/x7ZhCYBOicps78xKhqFsZo4KvNL8dnnUMyYmYJgBWZa7bb6uLTqGvj6o2vsgKcMve a9rQmXFCFgMQ/TQ9dA3S8H1GnvB02xTtCaL4USNPXhvvYAHwKeJmO/x0nYHQ6QS0KTOC CO0lVI3ReHuleOlBmA2nXCH3rjCnnlL5GSro1dB8t0KZH1nVGFbtQXSZgSCWKmPtpH9x t4Pg== 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=JJf34arOAOdJ3+OVtVFSYnxtBthW3De87WubXq4aSBM=; b=NHMhWgZrtCAVUZEph8rF+V+c2OUrxhvJwqVYvCNgJPh7jRrxarfyh52I1u3uDdZYym uDdi1AJfX4cUU5MLqbsGklFH+wKv0QhaV88yM4Yew5wTljfF1fqBRMzxsYEcBCLiBX8L +hoiYNx/z5mYlkbqVD5SmRDhie68Y8NIGriXPI06QJjgwHM9rPvvKAImfsMAntdzUWNs FJbWavGheudSm5iG1jywBIV/Bqgmn5s8RvgoEDAsCcEYPXK7F6OlMqgsLaJX9hn85Z57 DBZu1zxLgynY3y//T0WEVF0PWGhaJwRtGVUeRO8fxEwuogjGPc9yKm3vBDenXOzTI2bX lUEQ== X-Gm-Message-State: AOUpUlFU5jodLcNRcep52Ucd2T7iNbH3ZCjPWyzGSlg6OabZra5J2xiF IhdD1zOCNRYaVIkiazisuSTzQE7L X-Google-Smtp-Source: AAOMgpddUcSaIchqr9GvbZIIqOpl/mzyiVhOjutmRsmtDk6D6uU+DWap/BEIrQsWjNdw9rjipYjOsg== X-Received: by 2002:a63:3d41:: with SMTP id k62-v6mr21949318pga.254.1532551315243; Wed, 25 Jul 2018 13:41:55 -0700 (PDT) Received: from localhost.localdomain (KD118155013174.ppp-bb.dion.ne.jp. [118.155.13.174]) by smtp.gmail.com with ESMTPSA id r11-v6sm22013598pgn.62.2018.07.25.13.41.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jul 2018 13:41:54 -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: Thu, 26 Jul 2018 05:41:40 +0900 Message-Id: <1532551300-14943-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 Acked-by: Geert Uytterhoeven --- 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 0a64b72..28dcbb6 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 {