From patchwork Sat Apr 4 16:15:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11474403 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E9B381 for ; Sat, 4 Apr 2020 16:15:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04AA8206F8 for ; Sat, 4 Apr 2020 16:15:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PITs6j2o" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbgDDQPy (ORCPT ); Sat, 4 Apr 2020 12:15:54 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:34508 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbgDDQPy (ORCPT ); Sat, 4 Apr 2020 12:15:54 -0400 Received: by mail-qt1-f194.google.com with SMTP id 14so8943018qtp.1; Sat, 04 Apr 2020 09:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GET/abLarLGWrJ/MA6cxRPWMhupz6y/cS44XtSN8P1Q=; b=PITs6j2oMJ94bhpMMf1H3BqUuhd7dJBQ7tNZLaOPASETEFGlBsTBTvv/VjpX1wljdc TI4OpRHn3OdDW+HvlYeEV8MahPpuRgBpGyHi/nQHlxWvZIGN+IPpEPC9rtkfA283KBcs 6Kc5IK4H5qLdfrQDvViuKJg/KnUjEKnXewzzh3Xq8MgLA5iV8GgJzHORhBAdrGibo6VU EXVBlEoxnXSykLuS/AH/rAqCeE2Q+clyju7NH2zRT/CpkNtJ5l7IicQL1/x3qQAtFABM FLhA4MBj7ClvkGg6UDeNq3+seAh4kFvnmPlVg5Q1RCb4P1brviqg+bhnzWJe19o7ZWKD IrmQ== 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:mime-version :content-transfer-encoding; bh=GET/abLarLGWrJ/MA6cxRPWMhupz6y/cS44XtSN8P1Q=; b=Ks12LQ8I8zkRUtB2wy20rrPEKk8fo/HNojNyHlaHh+ZBVgSGE4jz21ueBvFxwVMa73 hybR+1aSr4BxFSZ0M9S4R777TDANonjwnUGwg5Hk9268+Hnz467lUam+CuPttSYnN9Az wKRRBkrO3pcAIPF/VmDjrgePzRc+gCcuZknMlbIUdNjQq3OltCMWRXLW91LJK/mjUCz3 OftJILaP768cIZdtLEA8N7R7Xm2LhNy/oVNP0tMczVFlEK+111qsZ/exqP5CEXyf0LcH 6zGhFbPhU+DdQJpRdevTeYzcXMb5OGqSt+69kbGLSzVGQBRn1wWJX5tQMS+Zg/LSYsNR ETAA== X-Gm-Message-State: AGi0PuYEWiHlLfVKC2hqa4TSEibWiIBCuMFxqFEg6TwehWZiObJYw1SJ Tpi/QyERJ8xp8Om2h2qgf3VJ7RQm1eQ= X-Google-Smtp-Source: APiQypIqmrIQsN+B5vp2y+ZGCzobEJI6V/qWweRvWnzLs0lYY//84LnNyNJvfLEqHbKDxIZNGFwMOQ== X-Received: by 2002:aed:208e:: with SMTP id 14mr13326211qtb.335.1586016950961; Sat, 04 Apr 2020 09:15:50 -0700 (PDT) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id n67sm9213534qte.79.2020.04.04.09.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Apr 2020 09:15:50 -0700 (PDT) From: Adam Ford To: linux-clk@vger.kernel.org Cc: aford@beaconembedded.com, charles.stevens@logicpd.com, Adam Ford , Michael Turquette , Stephen Boyd , Rob Herring , Marek Vasut , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] clk: vc5: Add support for IDT VersaClock 5P49V6965 Date: Sat, 4 Apr 2020 11:15:35 -0500 Message-Id: <20200404161537.2312297-1-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Update IDT VersaClock 5 driver to support 5P49V6965. Signed-off-by: Adam Ford diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c index 24fef51fbcb5..fa96659f8023 --- a/drivers/clk/clk-versaclock5.c +++ b/drivers/clk/clk-versaclock5.c @@ -124,6 +124,7 @@ enum vc5_model { IDT_VC5_5P49V5933, IDT_VC5_5P49V5935, IDT_VC6_5P49V6901, + IDT_VC6_5P49V6965, }; /* Structure to describe features of a particular VC5 model */ @@ -683,6 +684,7 @@ static int vc5_map_index_to_output(const enum vc5_model model, case IDT_VC5_5P49V5925: case IDT_VC5_5P49V5935: case IDT_VC6_5P49V6901: + case IDT_VC6_5P49V6965: default: return n; } @@ -956,12 +958,20 @@ static const struct vc5_chip_info idt_5p49v6901_info = { .flags = VC5_HAS_PFD_FREQ_DBL, }; +static const struct vc5_chip_info idt_5p49v6965_info = { + .model = IDT_VC6_5P49V6965, + .clk_fod_cnt = 4, + .clk_out_cnt = 5, + .flags = 0, +}; + 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 }, + { "5p49v6965", .driver_data = IDT_VC6_5P49V6965 }, { } }; MODULE_DEVICE_TABLE(i2c, vc5_id); @@ -972,6 +982,7 @@ static const struct of_device_id clk_vc5_of_match[] = { { .compatible = "idt,5p49v5933", .data = &idt_5p49v5933_info }, { .compatible = "idt,5p49v5935", .data = &idt_5p49v5935_info }, { .compatible = "idt,5p49v6901", .data = &idt_5p49v6901_info }, + { .compatible = "idt,5p49v6965", .data = &idt_5p49v6965_info }, { }, }; MODULE_DEVICE_TABLE(of, clk_vc5_of_match); From patchwork Sat Apr 4 16:15:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11474405 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5236581 for ; Sat, 4 Apr 2020 16:15:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 31B162071C for ; Sat, 4 Apr 2020 16:15:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E97Soa8D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726352AbgDDQP4 (ORCPT ); Sat, 4 Apr 2020 12:15:56 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43210 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726331AbgDDQP4 (ORCPT ); Sat, 4 Apr 2020 12:15:56 -0400 Received: by mail-qk1-f194.google.com with SMTP id o10so11475793qki.10; Sat, 04 Apr 2020 09:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=h517eIrXfumVfl/Ir6NGKlk9+2KSVqM6SBkwQdKGP1E=; b=E97Soa8DpIZZlQFbHSK7gIU5zfy9IaRAzThGzVwS3zKqrwPQk0gW9VfOSdaijxQ685 JlhYBxEfwbeqvw5V8ZW9b8GsrjSmn9qEdXs7iBTcD4sImnC72K1nR8LTunxNs2GsF4sw bkv3zaSakehfFDMAscKPYF4wnDrATu79zrNrptTP4suBzP3VkNLkzPU5hoKrA4vu8Y4Q hMHKZMvgNhcfbsBXliM/89GmRYaEN6EXDW7322O2lOaZEZTXSVXM4qEt1hVqqCRceP6t JtrgVdrFweKSUKiVbxYoL4EwGasp3yL7h1KBDTrZFDb3eChi18UyfPvWGAG2+aC8NCKN pzbw== 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:mime-version:content-transfer-encoding; bh=h517eIrXfumVfl/Ir6NGKlk9+2KSVqM6SBkwQdKGP1E=; b=GF0GrASYQ7ry/UCRKzjJ6hakufODFSAnXFLk28UoUUiSKGA1AUJEPeRSdRTldGUx/j X8gGJJCvfDRFNqeqtcHzMrKGlhxnzs0THH7BvCcM8Qgw9Ewv8pLcExIkTcRwfYpZa8vS kGqsdDttH6cM/GBPeG1Z/VvCBRIlNl4aCYVOrxr8CAHsV9oUQKGnTcQxOqZpGYaAkfzU qoHxoXZJTkGUZAcS+JKQU8pz8ECVR9N2HZ0LI6y11sK2JkUtJNoQWRAdRVgkW+dFS4cQ t9R93sV22IBzrMqpSg+ElmOFxdivcwgB/O1snrmezCFQvQRF6peGohq3yyJOPfGUwD8B Lnpg== X-Gm-Message-State: AGi0PubZoSM0ZsYIC9gn7ZGsNXHya5PDVQYBO+l+/GY/uBrEk3y/t9Jh xiGzlkc5pLnj/nZMqNA7bLalSHpDzCo= X-Google-Smtp-Source: APiQypLXz4aA51rzNXQUddjVESGHlr5mqRv9glbZgOLOSdip/bhk4+yp0bFLL48u/SiwcAkjCLBKIw== X-Received: by 2002:ae9:dd83:: with SMTP id r125mr14520880qkf.105.1586016953017; Sat, 04 Apr 2020 09:15:53 -0700 (PDT) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id n67sm9213534qte.79.2020.04.04.09.15.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Apr 2020 09:15:52 -0700 (PDT) From: Adam Ford To: linux-clk@vger.kernel.org Cc: aford@beaconembedded.com, charles.stevens@logicpd.com, Adam Ford , Michael Turquette , Stephen Boyd , Rob Herring , Marek Vasut , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt: Add bindings for IDT VersaClock 5P49V5925 Date: Sat, 4 Apr 2020 11:15:36 -0500 Message-Id: <20200404161537.2312297-2-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200404161537.2312297-1-aford173@gmail.com> References: <20200404161537.2312297-1-aford173@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org IDT VersaClock 5 5P49V6965 has 5 clock outputs, 4 fractional dividers. Signed-off-by: Adam Ford Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/clock/idt,versaclock5.txt b/Documentation/devicetree/bindings/clock/idt,versaclock5.txt index 05a245c9df08..bcff681a4bd0 100644 --- a/Documentation/devicetree/bindings/clock/idt,versaclock5.txt +++ b/Documentation/devicetree/bindings/clock/idt,versaclock5.txt @@ -12,6 +12,7 @@ Required properties: "idt,5p49v5933" "idt,5p49v5935" "idt,5p49v6901" + "idt,5p49v6965" - reg: i2c device address, shall be 0x68 or 0x6a. - #clock-cells: from common clock binding; shall be set to 1. - clocks: from common clock binding; list of parent clock handles,