Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1037480AbdDUMZe (ORCPT ); Fri, 21 Apr 2017 08:25:34 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:41320 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1036626AbdDUMZb (ORCPT ); Fri, 21 Apr 2017 08:25:31 -0400 Subject: Re: [PATCH v3] clk/axs10x: introduce AXS10X pll driver To: Vlad Zakharov , References: <1492775151-20059-1-git-send-email-vzakhar@synopsys.com> CC: , , Michael Turquette , Stephen Boyd , Mark Rutland From: Jose Abreu Message-ID: <55592751-9de4-af5a-792c-2209be535f44@synopsys.com> Date: Fri, 21 Apr 2017 13:25:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1492775151-20059-1-git-send-email-vzakhar@synopsys.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.19.99] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2028 Lines: 60 Hi Vlad, On 21-04-2017 12:45, Vlad Zakharov wrote: > AXS10X boards manages it's clocks using various PLLs. These PLL has same > dividers and corresponding control registers mapped to different addresses. > So we add one common driver for such PLLs. > > Each PLL on AXS10X board consist of three dividers: IDIV, FBDIV and > ODIV. Output clock value is managed using these dividers. > > We add pre-defined tables with supported rate values and appropriate > configurations of IDIV, FBDIV and ODIV for each value. > > As of today we add support for PLLs that generate clock for the > following devices: > * ARC core on AXC CPU tiles. > * ARC PGU on ARC SDP Mainboard. > and more to come later. > > Acked-by: Rob Herring > Signed-off-by: Vlad Zakharov > Signed-off-by: Jose Abreu > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Mark Rutland > --- > Changes v2..v3 > - replaced complex data structures with simple cfg tables > - replaced non-hw based provider and clk registration functions with hw-based > - fixed typos and minor code styling issues > > .../devicetree/bindings/clock/snps,pll-clock.txt | 28 ++ > MAINTAINERS | 6 + > drivers/clk/axs10x/Makefile | 1 + > drivers/clk/axs10x/pll_clock.c | 334 +++++++++++++++++++++ > 4 files changed, 369 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/snps,pll-clock.txt > create mode 100644 drivers/clk/axs10x/pll_clock.c > [snip] > > +SYNOPSYS ARC SDP clock driver > +M: Vlad Zakharov > +S: Supported > +F: drivers/clk/axs10x/* Acked-by: Jose Abreu Best regards, Jose Miguel Abreu > +F: Documentation/devicetree/bindings/clock/snps,pll-clock.txt > + > SYSTEM CONFIGURATION (SYSCON) > M: Lee Jones > M: Arnd Bergmann >