From patchwork Sun Jul 9 17:39:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Barinov X-Patchwork-Id: 9831835 X-Patchwork-Delegate: sboyd@codeaurora.org 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 647BC60318 for ; Sun, 9 Jul 2017 17:40:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E386201BD for ; Sun, 9 Jul 2017 17:40:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4038727C0B; Sun, 9 Jul 2017 17:40:02 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 C0831201BD for ; Sun, 9 Jul 2017 17:40:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752317AbdGIRkB (ORCPT ); Sun, 9 Jul 2017 13:40:01 -0400 Received: from mail-yb0-f172.google.com ([209.85.213.172]:33120 "EHLO mail-yb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752454AbdGIRkA (ORCPT ); Sun, 9 Jul 2017 13:40:00 -0400 Received: by mail-yb0-f172.google.com with SMTP id 84so22305859ybe.0 for ; Sun, 09 Jul 2017 10:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=omZc59sm2zbYN/5X4kFlp1f17b0PvUgwwl7jPnd3suA=; b=XDOVvc4xwW/+TPhoPXseHvfd3Vkqk/mDJ41kS4l5JMx82WvGEzeCV6X5XVW4261hGU xfEJEMSIyMiOpCRDF7fUCKZ413RWpG6HxXjdVyEW99LPfnBIisI6G1LujIkSuWuyFx8B fRsr20DICj+4hQKeziKQBoKJQPq5f/NauKBjxljLSc72YA585HfLPDDoe9YxXxiWRiZ0 MOosYJM3eGiCs0v2G08vLsG2WFCGbDos4a/WvpExDKsrG3V9csOblcS3dR19FaLFfjFy wqrrrAGsPFTSt79vk9wivYCWiVaYKgKx5ctATtDat+Qk2iNtB+f7BLuoOTLMjw87nwTr IScw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=omZc59sm2zbYN/5X4kFlp1f17b0PvUgwwl7jPnd3suA=; b=mOC53E2roJcR0yVV1xzRr8Y9s1qpomP2egrtJNAze5GjMlrHc86B5vn5lQW2CCG47i C4gP9TWnq6VYwXWuFwvnR4UwT/74GnCvpCQ9eS4hMegmS6HaMGmpDHaAz31LW7hkTxhB LU4awsuYfF5kvm+YLazzttwJSAQshf/TpUYX6zlodN7vtrK9vmc1epz658+CB+yadvpS ITZCDX3n6SJx0Fo3tQ0JYcVHPKu1mkRf1kmJKC17xz1irgN2U3cPjSRfRa3KMHia7buG bg9OLUyEQC9R3aYdYstpsQU9TR8gJTocEHHcyszHq4OreVGlzhrqM7yY4uruYhKNcBtM EPcQ== X-Gm-Message-State: AIVw111WsHAgCzJWEOIIV35g6IY5474mAtr4rhBCSn+MkWyGxGKtG8ht hrUp/wdU7tQoqFat X-Received: by 10.37.54.31 with SMTP id d31mr11376028yba.165.1499621999170; Sun, 09 Jul 2017 10:39:59 -0700 (PDT) Received: from opad.hil-atlpchx.atl.wayport.net ([63.140.207.18]) by smtp.gmail.com with ESMTPSA id j186sm3800290ywf.43.2017.07.09.10.39.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Jul 2017 10:39:58 -0700 (PDT) From: Vladimir Barinov To: Marek Vasut , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Vladimir Barinov Subject: [PATCH v2 1/2] clk: vc5: Add support for IDT VersaClock 5P49V5925 Date: Sun, 9 Jul 2017 20:39:57 +0300 Message-Id: <1499621997-12965-1-git-send-email-vladimir.barinov@cogentembedded.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499621970-12925-1-git-send-email-vladimir.barinov@cogentembedded.com> References: <1499621970-12925-1-git-send-email-vladimir.barinov@cogentembedded.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Vladimir Barinov Update IDT VersaClock 5 driver to support 5P49V5925. This chip has only external clock input, four fractional dividers (FODs) and five clock outputs (four universal clock outputs and one reference clock output at OUT0_SELB_I2C). Signed-off-by: Vladimir Barinov Reviewed-by: Marek Vasut --- Changes in version 2: - rebased against patch: [V3,8/8] clk: vc5: Add support for IDT VersaClock 5P49V6901 drivers/clk/clk-versaclock5.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c index c894db2..1808a55 100644 --- a/drivers/clk/clk-versaclock5.c +++ b/drivers/clk/clk-versaclock5.c @@ -129,6 +129,7 @@ /* Supported IDT VC5 models. */ enum vc5_model { IDT_VC5_5P49V5923, + IDT_VC5_5P49V5925, IDT_VC5_5P49V5933, IDT_VC5_5P49V5935, IDT_VC6_5P49V6901, @@ -686,6 +687,7 @@ static int vc5_map_index_to_output(const enum vc5_model model, case IDT_VC5_5P49V5933: return (n == 0) ? 0 : 3; case IDT_VC5_5P49V5923: + case IDT_VC5_5P49V5925: case IDT_VC5_5P49V5935: case IDT_VC6_5P49V6901: default: @@ -911,6 +913,13 @@ static int vc5_remove(struct i2c_client *client) .flags = 0, }; +static const struct vc5_chip_info idt_5p49v5925_info = { + .model = IDT_VC5_5P49V5925, + .clk_fod_cnt = 4, + .clk_out_cnt = 5, + .flags = 0, +}; + static const struct vc5_chip_info idt_5p49v5933_info = { .model = IDT_VC5_5P49V5933, .clk_fod_cnt = 2, @@ -934,6 +943,7 @@ static int vc5_remove(struct i2c_client *client) static const struct i2c_device_id vc5_id[] = { { "5p49v5923", .driver_data = IDT_VC5_5P49V5923 }, + { "5p49v5925", .driver_data = IDT_VC5_5P49V5925 }, { "5p49v5933", .driver_data = IDT_VC5_5P49V5933 }, { "5p49v5935", .driver_data = IDT_VC5_5P49V5935 }, { "5p49v6901", .driver_data = IDT_VC6_5P49V6901 }, @@ -943,6 +953,7 @@ static int vc5_remove(struct i2c_client *client) static const struct of_device_id clk_vc5_of_match[] = { { .compatible = "idt,5p49v5923", .data = &idt_5p49v5923_info }, + { .compatible = "idt,5p49v5925", .data = &idt_5p49v5925_info }, { .compatible = "idt,5p49v5933", .data = &idt_5p49v5933_info }, { .compatible = "idt,5p49v5935", .data = &idt_5p49v5935_info }, { .compatible = "idt,5p49v6901", .data = &idt_5p49v6901_info },