From patchwork Fri Dec 15 15:14:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10115333 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.web.codeaurora.org (Postfix) with ESMTP id C3C8B60231 for ; Fri, 15 Dec 2017 15:15:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B246629EB8 for ; Fri, 15 Dec 2017 15:15:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A601929F0A; Fri, 15 Dec 2017 15:15:03 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 5901429EB8 for ; Fri, 15 Dec 2017 15:15:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756702AbdLOPPD (ORCPT ); Fri, 15 Dec 2017 10:15:03 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:44345 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756692AbdLOPPC (ORCPT ); Fri, 15 Dec 2017 10:15:02 -0500 Received: by mail-wm0-f65.google.com with SMTP id t8so18084636wmc.3 for ; Fri, 15 Dec 2017 07:15:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=O9GOMNwrO4xllmpgznrGlUNcR4DgJYdFO9hnsh8y5IA=; b=aEk8QOECeJNQPYWys0WB3bHjqUC/ZY1SJGHHP3Js33kUNL9AZwGel71shk5cCwev92 W+gTVWyJTlmV8aW3eKs0/v7ZD1opfgvheUOZ5sx+03aXdJk2Fc6j0He90yNHwIwIJkI5 ZtJZthglOWlR4iRh3Octp8q1H37t6WddOtEE5dT0ox2iijCcPzA1Eij9CdVcyldB2doi Ex6hpJkEUEL/9FUxc0ORNriqRMDmss58VuBcfnbo/EnGaMzLSInpdYUvVtV55v+r+TJU JUA4Xj5ye5BkNfEujucsHOEdj2r2T6PA9wB72vKhwYZnDT0rw+xYvChNxa2seML+GIcH V2rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=O9GOMNwrO4xllmpgznrGlUNcR4DgJYdFO9hnsh8y5IA=; b=Nsl1Uhb5s4ylIk+3oybAUrVPpmvP+AnWv7wqUgNP32n9Eg612WwRL2Br3NssGutHSl Qcg3MP22WCeYAnZPZNRxmZ3HJV4FoUXjVeEP7eUHm/23oz+OWX6zw0sCuT+5UFh+eUDG oEqy49ZTadCWEHh5WNmtL95TSoiWlT0ZQ7wbqZbJLkYoFlB3/WlnKcDnihLlPRAClEuv lUjjcyBNldDg476rgjtb0YOGYpBZ4BsqWsdJ7p/4Z9gt+yMJblnNeMeNDHVK3bMSl+Op Vi1OfdppYSb9cAV6FjbbtQwj5ofF0kTQ/6foJwv4MULngN+TjdHRS5HL7xv8T//mH36X edmQ== X-Gm-Message-State: AKGB3mKHOK7p0EyVwtLHeblRNtDdnd6FDTwaSpmwPQKf7cba/up+Cgig mFEghK0MS+gIr2zHY2VY5qfyx5k= X-Google-Smtp-Source: ACJfBouMHtX4lXHVqOYHbZ0CYROUYMwCfdHHpCJSYX5KSXtdbuUXde+ngEFRvxjkESQHOQOgEj1S3g== X-Received: by 10.28.84.19 with SMTP id i19mr4995031wmb.62.1513350900868; Fri, 15 Dec 2017 07:15:00 -0800 (PST) Received: from groucho.site (ipbcc3b865.dynamic.kabel-deutschland.de. [188.195.184.101]) by smtp.gmail.com with ESMTPSA id 56sm8406567wrx.73.2017.12.15.07.14.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Dec 2017 07:15:00 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, magnus.damm@gmail.com, geert@linux-m68k.org, Gaku Inami , Takeshi Kihara , Hien Dang , Ulrich Hecht Subject: [PATCH 4/4] arm64: dts: r8a7796: Add DEVFREQ support for GSX Date: Fri, 15 Dec 2017 16:14:50 +0100 Message-Id: <1513350890-2446-5-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513350890-2446-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1513350890-2446-1-git-send-email-ulrich.hecht+renesas@gmail.com> 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: Gaku Inami This patch supports GSX frequency scaling using devfreq. Includes update of the OPP tables for GSX because the typical voltage of VDD_DVFS (power optimized) was updated to 0.83V by R-Car Gen3 EC Rev0.54E specification. Signed-off-by: Gaku Inami Signed-off-by: Takeshi Kihara Signed-off-by: Hien Dang Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index d3264e7..fb30390 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi @@ -166,6 +166,27 @@ }; }; + gsx_opp_table: gsx_opp_table { + compatible = "operating-points-v2"; + + opp@200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <830000>; + }; + opp@300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <830000>; + }; + opp@400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <830000>; + }; + opp@600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <830000>; + }; + }; + extal_clk: extal { compatible = "fixed-clock"; #clock-cells = <0>; @@ -2246,6 +2267,7 @@ reg = <0 0xfd000000 0 0x3ffff>; interrupts = ; clocks = <&cpg CPG_MOD 112>; + operating-points-v2 = <&gsx_opp_table>; power-domains = <&sysc R8A7796_PD_3DG_B>; };