From patchwork Fri Jul 7 01:57:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Barinov X-Patchwork-Id: 9829353 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 E942E602F0 for ; Fri, 7 Jul 2017 01:58:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 628B726E3E for ; Fri, 7 Jul 2017 01:58:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 573D428582; Fri, 7 Jul 2017 01:58:04 +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=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 F2E7026E3E for ; Fri, 7 Jul 2017 01:58:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753285AbdGGB5y (ORCPT ); Thu, 6 Jul 2017 21:57:54 -0400 Received: from mail-yb0-f170.google.com ([209.85.213.170]:35053 "EHLO mail-yb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209AbdGGB5x (ORCPT ); Thu, 6 Jul 2017 21:57:53 -0400 Received: by mail-yb0-f170.google.com with SMTP id p207so6359132yba.2 for ; Thu, 06 Jul 2017 18:57:52 -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=hK/wbqQr7Pa3YIbBIXT+Ooz/lAJXTr3o6BSz40jghDc=; b=iqM27dYV5FL/fBjhxKwCCp4G/D1pJynZHbfTAMeZXAmZqmXyy/PBV+eAanRe6D+7at ESlpeQribBLsE68JZ7ae2/d9rh3Bnd3MPk/RJmxPcw84+/20oKydBPwYvPpeKxT+iaHn ANLCenbA3Lkfr1e7d+oi2VSym/kbAuRjJstHVDoH0movQy4bXBHyIcmKS5tRB2VyWfsx 68tQBrmdpEPW831ZVF/yAiSm2IeGQXLkWl2Z2W9wlF+CrsjEshO6yoYW4cpZZbxR26dP 6k41QJ1B8A5YhStqGSNrQ7Ok8qYjzTeGtxQrwhY47cBa9vgf84ee6zM/z1Hd+UmZc+YL B+bw== 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=hK/wbqQr7Pa3YIbBIXT+Ooz/lAJXTr3o6BSz40jghDc=; b=G+0dF78lI/tsYzqIOW+cvymJOpL+6WJRjJI1Xdt6Uz65yp4LjmrkxrOSAHJpPZmzpE YIuiOKFkPU9lsTDu2/NP7aYdiW7sKnbuUkiJNv8VY1xyLsuX3iTEmq2peQiD5C7bSele G19RIC1V45ZplJqFltjPk6VWsx6yjepep9qqP4PAIYmfSyUAQgpsqQBu1T7NuxNSkJE8 vglRI4R+Tyw5mc4UqppBzmj+1OgtWAe0hqiOY1ybdHNnf8FgZluZRWEA4F/DOrf/gTqt 3myawhcg1zN/WVzIge70gK+2CTOcuLXPr9EZB088v5TR1A1J9jMD/awQZSucMQNO47Ka 0+fQ== X-Gm-Message-State: AIVw112UF+GBIxUHM8vva4GxZIwOC7xQgev3Pk+cP5rV4TYEC9Bxjh9d 6PRCQ5npwClSi7Ra X-Received: by 10.37.212.69 with SMTP id m66mr2564477ybf.182.1499392672233; Thu, 06 Jul 2017 18:57:52 -0700 (PDT) Received: from opad.hil-atlpchx.atl.wayport.net ([63.140.207.18]) by smtp.gmail.com with ESMTPSA id c9sm873452ywk.20.2017.07.06.18.57.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 18:57:51 -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, Vladimir Barinov Subject: [PATCH 1/2] clk: vc5: Add support for IDT VersaClock 5P49V5925 Date: Fri, 7 Jul 2017 04:57:48 +0300 Message-Id: <1499392668-9062-1-git-send-email-vladimir.barinov@cogentembedded.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499392623-9011-1-git-send-email-vladimir.barinov@cogentembedded.com> References: <1499392623-9011-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 --- 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 ea7d552..88b749d 100644 --- a/drivers/clk/clk-versaclock5.c +++ b/drivers/clk/clk-versaclock5.c @@ -126,6 +126,7 @@ /* Supported IDT VC5 models. */ enum vc5_model { IDT_VC5_5P49V5923, + IDT_VC5_5P49V5925, IDT_VC5_5P49V5933, IDT_VC5_5P49V5935, }; @@ -595,6 +596,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: default: return n; @@ -785,6 +787,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, @@ -801,6 +810,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 }, { } @@ -809,6 +819,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 }, { },