From patchwork Fri Aug 11 15:36:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9896219 X-Patchwork-Delegate: rjw@sisk.pl 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 8DEDA60236 for ; Fri, 11 Aug 2017 15:37:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AD4128B77 for ; Fri, 11 Aug 2017 15:37:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F8F828C58; Fri, 11 Aug 2017 15:37:09 +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_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable 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 080D528C56 for ; Fri, 11 Aug 2017 15:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752703AbdHKPhG (ORCPT ); Fri, 11 Aug 2017 11:37:06 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:52799 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752631AbdHKPhE (ORCPT ); Fri, 11 Aug 2017 11:37:04 -0400 Received: from penelope.horms.nl (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPA id 05AB325AD76; Sat, 12 Aug 2017 01:37:02 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1502465822; bh=o4aemyeVZcOyH3nSfR4e+D6bcGVXgHylfyw2uZS+MQg=; h=From:To:Cc:Subject:Date:From; b=QP3N6I3Y8PfXigbCX+ywPPxjikAKCx2YcfpRLKJD/kpAxTnvHgqSwikxvt1khhTAY 3m2J1BiEQ+aM4aPkuU9MJAM5zylmDqgAUYGatwML9C9kDiWsLCKpLlQcdsoWXpKM6z ZX2EzCErHYBnkjwhy/aB2yTQrrPEOJin3gq8T+pQ= Received: by penelope.horms.nl (Postfix, from userid 7100) id 2F796E20AFD; Fri, 11 Aug 2017 17:36:59 +0200 (CEST) From: Simon Horman To: "Rafael J. Wysocki" Cc: Viresh Kumar , Magnus Damm , linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Khiem Nguyen , Simon Horman Subject: [PATCH] cpufreq: dt: Add r8a7796 support to to use generic cpufreq driver Date: Fri, 11 Aug 2017 17:36:57 +0200 Message-Id: <1502465817-19804-1-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.1.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Khiem Nguyen This patch adds the r8a7796 support the generic cpufreq driver by adding an appropriate compat string. This is in keeping with support for other Renesas ARM and arm64 based SoCs. Signed-off-by: Khiem Nguyen [simon: new changelog] Signed-off-by: Simon Horman Acked-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) This is a follow-up for a similar change that has already been accepted for the r8a7795. I have provided an integration branch that includes with this patch, those DTS updates that make use of opp-v2 bindings that depend on this change, and Renesas clock updates also depended on by the DTS changes. The result is working CPUFreq for the r8a7796 (R-Car M3-W). https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git topic/r8a7796-cpufreq A description of steps taken to lightly exercise the same feature for the r88a7795 the above can be found at the link below. The results are the same for the r8a7796 with the exception that it has two active CPU cores rather than four. http://elinux.org/Tests:R-CAR-GEN3-CPUFreq diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index bcee384b3251..233e18ad3948 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -68,6 +68,7 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "renesas,r8a7793", }, { .compatible = "renesas,r8a7794", }, { .compatible = "renesas,r8a7795", }, + { .compatible = "renesas,r8a7796", }, { .compatible = "renesas,sh73a0", }, { .compatible = "rockchip,rk2928", },