From patchwork Fri Aug 4 13:18:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9881251 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 07112602B8 for ; Fri, 4 Aug 2017 13:18:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05F762864A for ; Fri, 4 Aug 2017 13:18:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF1E428760; Fri, 4 Aug 2017 13:18:23 +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 AB00D2864A for ; Fri, 4 Aug 2017 13:18:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752856AbdHDNSV (ORCPT ); Fri, 4 Aug 2017 09:18:21 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:38384 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460AbdHDNSU (ORCPT ); Fri, 4 Aug 2017 09:18:20 -0400 Received: from penelope.horms.nl (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPA id F2EBD25BE51; Fri, 4 Aug 2017 23:18:17 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1501852698; bh=x2zPubnuHXluH+X4KBfXE0hrqnqeDOU7mMOYpQ68p8c=; h=From:To:Cc:Subject:Date:From; b=XxJB5lgcVGrbbOql/E7jqva/BXphBwmorFdiN7wg7csvlBYvPhN8jaqAyDZP7h8P6 my3HzE3Z9ntcJTCRCYWUeWJLN7lU4iAsT7SPyM0KE5mpQXKZy9NjdDDJuJxNBhYwqN Y0Wb3NwpnvbSWnGzk2zcPAL3pgeza3PTZX/VA9FE= Received: by penelope.horms.nl (Postfix, from userid 7100) id 2BB4FE2126F; Fri, 4 Aug 2017 15:18:13 +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 Subject: [PATCH] cpufreq: rcar: Add support for R8A7795 SoC Date: Fri, 4 Aug 2017 15:18:00 +0200 Message-Id: <1501852680-21127-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 After the commit "a399dc9fc50 cpufreq: shmobile: Use generic platdev driver", will use cpufreq-dt-platdev driver to enable cpufreq-dt support. Hence, follow the implementation to support new R8A7795 SoC. Signed-off-by: Khiem Nguyen Signed-off-by: Simon Horman Acked-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) This is identical to a patch posted by Khiem last year. At the time it was asked if using opp-v2 was the preferred approach. https://patchwork.kernel.org/patch/9054011/ An inspection of the current upstream kernel code seems to indicate that adding a binding as this patch does is compatibile with using opp-v2 and I plan to post DTS patches separately which make use of the opp-v2 bindings - they depend on this driver change to work. I have provided an integration patch with this patch, those DTS changes, and Renesas clock updates also depended on by the DTS changes. The result is working CPUFreq for the r8a7795 (R-Car H3) ES1.0. If this work is acceptable I plan to follow up with patches to enable CPUFreq on the r8a7796 (R-Car M3-W). https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git topic/r8a7795-cpufreq A description of steps taken to lightly exercise the above can be found here: 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 096aea7fcb67..13b72f3c420b 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -67,6 +67,7 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "renesas,r8a7792", }, { .compatible = "renesas,r8a7793", }, { .compatible = "renesas,r8a7794", }, + { .compatible = "renesas,r8a7795", }, { .compatible = "renesas,sh73a0", }, { .compatible = "rockchip,rk2928", },