From patchwork Fri Nov 2 19:25:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10666043 X-Patchwork-Delegate: geert@linux-m68k.org 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 0D26F17D4 for ; Fri, 2 Nov 2018 19:25:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0B482BECD for ; Fri, 2 Nov 2018 19:25:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E50FE2BEFF; Fri, 2 Nov 2018 19:25:58 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 6FA332BECD for ; Fri, 2 Nov 2018 19:25:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726185AbeKCEeV (ORCPT ); Sat, 3 Nov 2018 00:34:21 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:44842 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbeKCEeV (ORCPT ); Sat, 3 Nov 2018 00:34:21 -0400 Received: by mail-lf1-f68.google.com with SMTP id m18-v6so2051875lfl.11 for ; Fri, 02 Nov 2018 12:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:references:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9ZDr4t8auOL2s2l0/vokJ3YO2nhpAkuEA8w+w0p37gA=; b=P2mbbIE4N3HeF7JH46UEpqnR1N6jGHf2eklojliWUxZcVfPPAx8xSOAnbsAJeJcQHZ m8Q6ukwOqQ70Q5nlTcIRD0LFtQUk02AGDW7uIUeyie6/mUw0Kf07k9Kg39JYs+urary2 NhOsHEJHZ3B6R4VDCFty8ZSUYaG0aABX95nDIx6xIw4H4cRf0QzqZoelP7V7bUofYpk4 pj4RO27xAjOiq5/9Ay5xq1cUg6tXoms9lKXniL0LGNJuf25+dnD4TUZb2KXwRdNBNj2W yGT2TxNV2pGQ6kjWExrV58M4EKXFZRvmksJvz05Xa9O2lnNCf2gFY6TOvqh0aKD8o4Bc bi7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=9ZDr4t8auOL2s2l0/vokJ3YO2nhpAkuEA8w+w0p37gA=; b=KZT123gMdlcEtNNEeB0//2upiCpqWUyADbqU5r/chw4kK+yu4AOXGvnQJkGa5rAZym iv8AsSt8Su+8Ns2l0GVt4rLHpU0FqJU6QvFIgPKRiRBfe1qaYtZ+vfavx1dMzPJiidP4 QOjrpPyvUJpRykHqfK+49y/6+h019NWdr7aFJRgFDhwY+2eLWbNq7VBmXfvmG9JbBPSn oD1mQX8z3w5rWv7U7Oe7Eai58hhn/SzS3WLc6G7zOzkLnOCbfxC5GAHhbddYZ4okUQYE 0/cNZfLwT+ZSfVYUUO3zA7i2cHARXs0A4TI6XC58hJCskzk3T/vTDUpdHpnqbmGhRiRu xtTg== X-Gm-Message-State: AGRZ1gJOZFpjvhOBGUS1AlinU6ZjKD7uGtJQgHVvLfDizLbMiC3I5Ubw dT1SeVrdzsQXEwlfcBh7scdiyg== X-Google-Smtp-Source: AJdET5eBH3gyLqeUjsk/DnHcjn4su7b/n+4inELK9tQ/04J3a64EkTpbo99ikQHW0xkjlzXG09x13w== X-Received: by 2002:a19:9209:: with SMTP id u9-v6mr7958299lfd.26.1541186756074; Fri, 02 Nov 2018 12:25:56 -0700 (PDT) Received: from wasted.cogentembedded.com ([94.72.11.11]) by smtp.gmail.com with ESMTPSA id c22sm5242680lfd.88.2018.11.02.12.25.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 12:25:55 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH] clk: renesas: r8a77970: add RPC clock To: "linux-renesas-soc@vger.kernel.org" , Michael Turquette , Stephen Boyd , Geert Uytterhoeven , linux-clk@vger.kernel.org References: <5b7895ac-11c1-ac2d-837b-56726bc6226a@cogentembedded.com> Organization: Cogent Embedded Message-ID: <5a5c65f1-d446-9445-4e2a-579f57f00abf@cogentembedded.com> Date: Fri, 2 Nov 2018 22:25:54 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <5b7895ac-11c1-ac2d-837b-56726bc6226a@cogentembedded.com> Content-Language: en-MW 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 On R-Car V3M (R8A77970), the RPC/RPCD2 clocks are output by the common divider. Describe them, as well as the RPC-IF module clock. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- This patch is against the 'clk-renesas' branch of Geert Uytterhoeven's 'renesas-drivers.git' repo. drivers/clk/renesas/r8a77970-cpg-mssr.c | 4 ++++ 1 file changed, 4 insertions(+) Index: renesas/drivers/clk/renesas/r8a77970-cpg-mssr.c =================================================================== --- renesas.orig/drivers/clk/renesas/r8a77970-cpg-mssr.c +++ renesas/drivers/clk/renesas/r8a77970-cpg-mssr.c @@ -94,6 +94,9 @@ static const struct cpg_core_clk r8a7797 CLK_PLL1_DIV2), DEF_BASE("sd0", R8A77970_CLK_SD0, CLK_TYPE_R8A77970_SD0, CLK_PLL1_DIV2), + DEF_FIXED("rpc", R8A77970_CLK_RPC, CLK_PLL1_DIV2, 5, 1), + DEF_FIXED("rpcd2", R8A77970_CLK_RPCD2, CLK_PLL1_DIV2, 10, 1), + DEF_FIXED("cl", R8A77970_CLK_CL, CLK_PLL1_DIV2, 48, 1), DEF_FIXED("cp", R8A77970_CLK_CP, CLK_EXTAL, 2, 1), @@ -155,6 +158,7 @@ static const struct mssr_mod_clk r8a7797 DEF_MOD("gpio1", 911, R8A77970_CLK_CP), DEF_MOD("gpio0", 912, R8A77970_CLK_CP), DEF_MOD("can-fd", 914, R8A77970_CLK_S2D2), + DEF_MOD("rpc-if", 917, R8A77970_CLK_RPC), DEF_MOD("i2c4", 927, R8A77970_CLK_S2D2), DEF_MOD("i2c3", 928, R8A77970_CLK_S2D2), DEF_MOD("i2c2", 929, R8A77970_CLK_S2D2),