From patchwork Tue Oct 9 11:48:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 10632379 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 87100112B for ; Tue, 9 Oct 2018 11:49:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 795D828C4D for ; Tue, 9 Oct 2018 11:49:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DD1928C59; Tue, 9 Oct 2018 11:49:25 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B0CD328C4D for ; Tue, 9 Oct 2018 11:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc:Reply-To :List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Date:Message-ID:Subject:From:To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=RGpyEb2uZSaBMycjgDMRCDoTJcGsOy4Bm+FBv6b/ULw=; b=nrX5P9wYd46C+nqfNkXM1d5rCN d3+LgcFE6nkQYyr/J3RIi0utKasTYRLL8jUJamTJYTMDaqFNNXakQhicVcWn9rAYSHxNAzQDPe7YR DXPRoVEURXJtZ8xwpdS9roUmsuLl/ImbjuUCd1raco7P5sxKrABCqIX/8Vh3OXaTVhrvC9fGtpOgp LVY1+iV+XonHVMRpqYyol303gOMQovLoyOyBwAPORiPnImfqoh7ISAnc9+Gu5ErpwNUAW4dFWiSHY Ie8gseHlaH6lJBH/8Me1NooWCtg/BqoyS3j2v2SIMsF6KypZjxu2eKZloaOZWWyDevvaUehXacatH dEKi5+AA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9qVm-0004z7-Ir; Tue, 09 Oct 2018 11:49:14 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9qVh-0004yL-Me for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2018 11:49:11 +0000 Received: by mail-wm1-x341.google.com with SMTP id y11-v6so1544204wma.3 for ; Tue, 09 Oct 2018 04:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=reply-to:to:cc:from:subject:openpgp:autocrypt:message-id:date :user-agent:mime-version; bh=58A9vnfIE9WsHTpCVgSNwdww45fTf/hMwv34oLicmbU=; b=AfA3WnTgTZM+Uwxt4bFnsLtTPIZIoGLFjZAafKhpsD94nR2u0VHLJIW8+6o6LqE0YP O8wLOCrwR/dxGNFU/gONyBCBCAk+SLKByEQ3URdQ18xM5IxSk7eDQuQh0Lhkj48mv0Rj R4ctYJaoEly9CWbuZyZ685rLd53Dk/7Q4FIAEXXoOskv4zK+XBmfrSipqozKgUBDHzN9 G19MRPI2+/sBhORL689bYNIvucVvHLWtSEqe+M0WA+Bn8uXitZQI+EqSgO0E+CULRB5f FlQJY6OE+O7atlMdSMZY/A68tSf5MnzegvKF4+fbvgSkCLFjNqugHzRa5HK/4+xEeBv2 PtBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:to:cc:from:subject:openpgp:autocrypt :message-id:date:user-agent:mime-version; bh=58A9vnfIE9WsHTpCVgSNwdww45fTf/hMwv34oLicmbU=; b=B2NXuQZg9ro1hEN5FuyjvkSEEO1pJSSt48CT2XnF+i5S9G3RER05hm1/Xu3nbbrXpu xGyjlchZ87Bj63lexLHodTycHOoVEwjfBCqUYCq6rfaqmdSeHxnFL6bUVvwMy+6vjAdP 9o3RfjHX8brpc3A6CtWEt6QqUDFj1L+kBa/xJEATQZW98cJJMrvFL/E0+m/nagIdonbS Q0TxQKyTaH4HS+A4a1fT+Xf2dM/3R6ZAAY8HBTkhJyb9FXJtYsGWXCc14tUA8P+SpFLG Q0I2AUIMU9IbkVNJmAn5FiCrn4YSYCEcY2ThNIwe4c8qOVi2RzLGdKKAohkrZJDJUGPc COjw== X-Gm-Message-State: ABuFfohbqvuc4oS70p7urgNnclTFKoXtJdyzuLs4HaVVi3yl9TIn5pbb FdRgSdgWSAa1DZ0iHokfTjIXz6IPj83Cow== X-Google-Smtp-Source: ACcGV61FzreKWeEZAlB1mX+ySdHe71nmpFIsQXZe5ON2oVgoDkoUgbl2LsXiAjpD1G0Q9pxJQxyAjg== X-Received: by 2002:a1c:41c5:: with SMTP id o188-v6mr1813491wma.34.1539085736635; Tue, 09 Oct 2018 04:48:56 -0700 (PDT) Received: from [66.102.1.109] ([149.199.62.254]) by smtp.gmail.com with ESMTPSA id x186-v6sm28628459wmx.24.2018.10.09.04.48.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 04:48:55 -0700 (PDT) To: arm-soc From: Michal Simek Subject: [GIT PULL] arm64: zynqmp: Xilinx SoC CLK changes for v4.20 Openpgp: preference=signencrypt Autocrypt: addr=monstr@monstr.eu; prefer-encrypt=mutual; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4Ay/EMSoGbQouzhC69OQLWNH3rMQbBvrRbiMJbEZwARAQABzR9NaWNoYWwgU2lt ZWsgPG1vbnN0ckBtb25zdHIuZXU+wsGBBBMBAgArAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIe AQIXgAIZAQUCWq+GEgUJDuRkWQAKCRA3fH8h/j0fkW9/D/9IBoykgOWah2BakL43PoHAyEKb Wt3QxWZSgQjeV3pBys08uQDxByChT1ZW3wsb30GIQSTlzQ7juacoUosje1ygaLHR4xoFMAT9 L6F4YzZaPwW6aLI8pUJad63r50sWiGDN/UlhvPrHa3tinhReTEgSCoPCFg3TjjT4nI/NSxUS 5DAbL9qpJy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M/quyU e15Bi+DGHgDNeZuju4ZAiXKBVeyzM5DSpDogmdxNCWA7DF75od0uBFVgBvm7gPvW3hJQplw3 FzyOD4pzD6qcJizXBIT1TEH7wGEakKdn4Nb0xMiufDLPtGvS9ZOTL72xYPUAEQEAAcLBZQQY AQIADwIbDAUCWq+GZQUJDuRksQAKCRA3fH8h/j0fkfg6EACjlUQpjvO/rOASSebpxdxoBEcY ffebTPWHC2OMt9XIuVrNqsPVUnv1GQqCq0AtR3Sf9PULCb40yn3b0iwE+kLlCXcWWBBCy88v pKzYGeCGgOvjAdWr7SWxo8hEpxBQ44EqoppqB8bYvnNKvfCuX2UBnlhlNCYjiELJVpGn7H3+ Xd2Zr0brzNjl/DVpi6qmpKlXr7npAalv7hYMxRvQD+j5ee1H/89+cOyHUofjwAZ9t0pIwjzc gl3dX43sVVHYFZTWtnwIUMUC5aPfvi2jwqKcLsGwmdCXHtzULPEHoe33c298tozJG2qBzti+ DZ8rI7/5fNg84cDBM8zjGuU6YIpk0jjOQ+V5V5ees+7JprwswaqMDnaA2xDmDetSSGnrUbDu DzeuMMNmzm+BntDbHcJ0fSYutA/Da71Anwrw5WdcW2Iq3xAvcVq6RsIohw/eiAJxMcne3vmb j6nAfnQwzXJB0WCq0vE+CuCfdTt9RVL3Hgw/I7nskMU84bihrQ5lfJ2VU/vCucl2LebwOeWP HIic/FvF0oY3lecyr+v1jvS5FXJ6rCn3uwotd30azG5pKDtAkpRqW283+LueDVQ5P/Gwp5V1 9e6oMggSVn53IRVPB4MzTXVm/Q03c5YXPqgP4bPIF624HAPRnUxCWY1yrZuE4zNPG5dfY0PN RmzhqoTJlA== Message-ID: <86e1c3a5-c507-172c-534e-5ff0070044e8@monstr.eu> Date: Tue, 9 Oct 2018 13:48:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181009_044909_853346_510211C8 X-CRM114-Status: GOOD ( 20.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: monstr@monstr.eu Cc: Jolly Shah , Stephen Boyd , linux-arm Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, I know it is a little bit late but please consider pulling these soc clk changes to your tree. They are based on https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git/log/?h=zynq/firmware branch that's why please take this changes via arm-soc tree as was agreed with Olof. All patches were reviewed by appropriate maintainers. Thanks, Michal The following changes since commit e60f02ddb4d2e29b0eb30dbe55475822c4bf3818: firmware: xilinx: Add debugfs for query data API (2018-09-26 08:47:37 +0200) are available in the git repository at: https://github.com/Xilinx/linux-xlnx.git tags/zynqmp-soc-clk-for-v4.20 for you to fetch changes up to 3fde0e16d016ecb273f0fa404b5d56b947fc0576: drivers: clk: Add ZynqMP clock driver (2018-10-09 13:29:19 +0200) ---------------------------------------------------------------- arm64: zynqmp: SoC CLK changes for v4.20 This patchset adds CCF compliant clock driver for ZynqMP. Clock driver queries supported clock information from firmware and regiters pll and output clocks with CCF. ---------------------------------------------------------------- Jolly Shah (1): drivers: clk: Add ZynqMP clock driver Rajan Vaja (3): Documentation: xilinx: Add documentation for eemi APIs firmware: xilinx: Add zynqmp IOCTL API for device control dt-bindings: clock: Add bindings for ZynqMP clock driver Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt | 53 ++++++++++ Documentation/xilinx/eemi.txt | 67 +++++++++++++ drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/zynqmp/Kconfig | 10 ++ drivers/clk/zynqmp/Makefile | 4 + drivers/clk/zynqmp/clk-gate-zynqmp.c | 144 ++++++++++++++++++++++++++ drivers/clk/zynqmp/clk-mux-zynqmp.c | 141 ++++++++++++++++++++++++++ drivers/clk/zynqmp/clk-zynqmp.h | 68 +++++++++++++ drivers/clk/zynqmp/clkc.c | 716 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/clk/zynqmp/divider.c | 217 ++++++++++++++++++++++++++++++++++++++++ drivers/clk/zynqmp/pll.c | 335 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/firmware/xilinx/zynqmp.c | 42 ++++++++ include/dt-bindings/clock/xlnx,zynqmp-clk.h | 116 +++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 5 +- 15 files changed, 1919 insertions(+), 1 deletion(-) create mode 100644 Documentation/xilinx/eemi.txt create mode 100644 drivers/clk/zynqmp/Kconfig create mode 100644 drivers/clk/zynqmp/Makefile create mode 100644 drivers/clk/zynqmp/clk-gate-zynqmp.c create mode 100644 drivers/clk/zynqmp/clk-mux-zynqmp.c create mode 100644 drivers/clk/zynqmp/clk-zynqmp.h create mode 100644 drivers/clk/zynqmp/clkc.c create mode 100644 drivers/clk/zynqmp/divider.c create mode 100644 drivers/clk/zynqmp/pll.c create mode 100644 include/dt-bindings/clock/xlnx,zynqmp-clk.h