From patchwork Tue Dec 4 19:52:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10712573 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 DF94C13AF for ; Tue, 4 Dec 2018 19:52:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2E052C617 for ; Tue, 4 Dec 2018 19:52:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6FC92C6B5; Tue, 4 Dec 2018 19:52:46 +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 6950D2C6AD for ; Tue, 4 Dec 2018 19:52:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725942AbeLDTwp (ORCPT ); Tue, 4 Dec 2018 14:52:45 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37498 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeLDTwp (ORCPT ); Tue, 4 Dec 2018 14:52:45 -0500 Received: by mail-lf1-f65.google.com with SMTP id p17so12929688lfh.4 for ; Tue, 04 Dec 2018 11:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:references:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=clxCSVOoVrDQ6qklc+2R2m+J9+4S5VWMRbJpGgKyiPk=; b=MvFEvWx8sjwC0FvUXh5GQmoBMLPKgImsEHqD9C+YdK8Br0wXbvjCMp+uzdotzx+ihB rensIZlEUdaxIMhoQumQkTKB4Zhfo/k/MOTOOmPiIq5rtRq0TIrKZnXlrZ1ZsgUqiKNc G8CT8hPEoso2S77fgdYdiu0FZIruoDpQYxOoizklcu0rBHMA+VuKEteKapm27OrVxjbf SbRJT1LjOEXeb06eRZuwfjYBs2KnCpIhmUGoRGsCfIWo2OZdWhFbHAU8LE/dQA/U+Ebt ztnZ4r35EPDveKFS/2jN0g/IavLEMuv0Jo2vj6/6Y+vwZIqydyROAJ9CCEdKIwvN1zoO gO4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=clxCSVOoVrDQ6qklc+2R2m+J9+4S5VWMRbJpGgKyiPk=; b=TrRkZg4Cu64+SZc2A6tvUtnyl054Bvcqy023aVEa4wQzRAGLX2HIDdGOkVUSIc0M24 hIPubEoERwWzJv9RM5Ku8vGUCsZ9ZuJyeCFo+cEK6W4HS52XPc9OGMON5CLEBgUa8r+5 PXxXFo6WVKAH8UfZfJsbWOW5WfA8eHlbzGnU6HN1tiL8vK06WBEnjgs0jwv6VYfOp+V3 jmuiYDjHG5uCH0MrFZwjxVfK2SgDzNwUp9w4aLOr5BpoadeBlYylVWzjQ4/biR60xPfF +sFI0eHoOrbwOEVVg36HJiMehZcRmVcI6U6wSIOzEE+QxKLQdBLXg/8km3I53309HSmT vDYw== X-Gm-Message-State: AA+aEWbisgRwGcM8l+cECAQj/KE9DjLDrPulbIy2UWtlE91KRIjaBJiW DVDFfXUGlRfhqAtGAF+AJC4CLg== X-Google-Smtp-Source: AFSGD/VM30q90y5ngsyXhBLDUPsRmUeIwknWyokVYB5iFfXZpkRzJrJJqE4eha4yH5gwX8vRpuoe9w== X-Received: by 2002:a19:d242:: with SMTP id j63mr13502219lfg.26.1543953163368; Tue, 04 Dec 2018 11:52:43 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.250]) by smtp.gmail.com with ESMTPSA id g70-v6sm3374047ljg.92.2018.12.04.11.52.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 11:52:42 -0800 (PST) Subject: [PATCH v2 4/4] clk: renesas: r8a77980-cpg-mssr: add RPC clocks From: Sergei Shtylyov To: linux-renesas-soc@vger.kernel.org, Michael Turquette , Stephen Boyd , Geert Uytterhoeven , linux-clk@vger.kernel.org References: Organization: Cogent Embedded Message-ID: Date: Tue, 4 Dec 2018 22:52:41 +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: 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 Describe the RPCSRC internal clock and the RPC[D2] clocks derived from it, as well as the RPC-IF module clock, in the R-Car V3H (R8A77980) CPG/MSSR driver. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- Changes in version 2: - moved the RPCSRC clock support to the R-Car gen3 CPG patch adding the RPC clocks; - rewrote the patch description. drivers/clk/renesas/r8a77980-cpg-mssr.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: renesas-drivers/drivers/clk/renesas/r8a77980-cpg-mssr.c =================================================================== --- renesas-drivers.orig/drivers/clk/renesas/r8a77980-cpg-mssr.c +++ renesas-drivers/drivers/clk/renesas/r8a77980-cpg-mssr.c @@ -41,6 +41,7 @@ enum clk_ids { CLK_S2, CLK_S3, CLK_SDSRC, + CLK_RPCSRC, CLK_OCO, /* Module Clocks */ @@ -65,8 +66,14 @@ static const struct cpg_core_clk r8a7798 DEF_FIXED(".s2", CLK_S2, CLK_PLL1_DIV2, 4, 1), DEF_FIXED(".s3", CLK_S3, CLK_PLL1_DIV2, 6, 1), DEF_FIXED(".sdsrc", CLK_SDSRC, CLK_PLL1_DIV2, 2, 1), + DEF_BASE(".rpcsrc", CLK_RPCSRC, CLK_TYPE_GEN3_RPCSRC, CLK_PLL1), DEF_RATE(".oco", CLK_OCO, 32768), + DEF_BASE("rpc", R8A77980_CLK_RPC, CLK_TYPE_GEN3_RPC, + CLK_RPCSRC), + DEF_BASE("rpcd2", R8A77980_CLK_RPCD2, CLK_TYPE_GEN3_RPCD2, + R8A77980_CLK_RPC), + /* Core Clock Outputs */ DEF_FIXED("ztr", R8A77980_CLK_ZTR, CLK_PLL1_DIV2, 6, 1), DEF_FIXED("ztrd2", R8A77980_CLK_ZTRD2, CLK_PLL1_DIV2, 12, 1), @@ -164,6 +171,7 @@ static const struct mssr_mod_clk r8a7798 DEF_MOD("gpio1", 911, R8A77980_CLK_CP), DEF_MOD("gpio0", 912, R8A77980_CLK_CP), DEF_MOD("can-fd", 914, R8A77980_CLK_S3D2), + DEF_MOD("rpc-if", 917, R8A77980_CLK_RPC), DEF_MOD("i2c4", 927, R8A77980_CLK_S0D6), DEF_MOD("i2c3", 928, R8A77980_CLK_S0D6), DEF_MOD("i2c2", 929, R8A77980_CLK_S3D2),