From patchwork Tue Apr 2 12:40:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 10881529 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 50D5F13B5 for ; Tue, 2 Apr 2019 12:40:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C180286CD for ; Tue, 2 Apr 2019 12:40:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D8EE28717; Tue, 2 Apr 2019 12:40:23 +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,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 A537C286CD for ; Tue, 2 Apr 2019 12:40:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729162AbfDBMkW (ORCPT ); Tue, 2 Apr 2019 08:40:22 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:38589 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfDBMkW (ORCPT ); Tue, 2 Apr 2019 08:40:22 -0400 X-Originating-IP: 109.213.83.19 Received: from localhost (alyon-652-1-60-19.w109-213.abo.wanadoo.fr [109.213.83.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id DD120240004; Tue, 2 Apr 2019 12:40:18 +0000 (UTC) From: Alexandre Belloni To: Stephen Boyd Cc: Nicolas Ferre , Claudiu Beznea , Michael Turquette , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH v2 00/10] Date: Tue, 2 Apr 2019 14:40:06 +0200 Message-Id: <20190402124016.20558-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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 This series add support for the sam9x60 clocks handled by the PMC. The first four patches are preparatory patches to handle register layout and offset differences. Then, a driver for the new interface for PLLs is added and the final patch is the driver for the sam9x60 PMC. changes in v2: - rebased on v5.1-rc1 - changed the PLL_ACR handling to conform to the datasheet errata Alexandre Belloni (7): clk: at91: allow configuring peripheral PCR layout clk: at91: allow configuring generated PCR layout clk: at91: usb: Add sam9x60 support clk: at91: master: Add sam9x60 support clk: at91: add sam9x60 PLL driver dt-bindings: clk: at91: add bindings for SAM9X60 pmc clk: at91: add sam9x60 pmc driver Claudiu Beznea (3): clk: at91: sckc: add support to specify registers bit offsets clk: at91: sckc: add support for SAM9X60 dt-bindings: clk: at91: add bindings for SAM9X60's slow clock controller .../devicetree/bindings/clock/at91-clock.txt | 6 +- drivers/clk/at91/Makefile | 2 + drivers/clk/at91/at91sam9x5.c | 9 + drivers/clk/at91/clk-generated.c | 48 +-- drivers/clk/at91/clk-master.c | 8 +- drivers/clk/at91/clk-peripheral.c | 46 +-- drivers/clk/at91/clk-sam9x60-pll.c | 330 ++++++++++++++++++ drivers/clk/at91/clk-usb.c | 33 +- drivers/clk/at91/dt-compat.c | 12 +- drivers/clk/at91/pmc.h | 23 ++ drivers/clk/at91/sam9x60.c | 307 ++++++++++++++++ drivers/clk/at91/sama5d2.c | 10 + drivers/clk/at91/sama5d4.c | 8 + drivers/clk/at91/sckc.c | 142 ++++++-- include/linux/clk/at91_pmc.h | 12 +- 15 files changed, 895 insertions(+), 101 deletions(-) create mode 100644 drivers/clk/at91/clk-sam9x60-pll.c create mode 100644 drivers/clk/at91/sam9x60.c