From patchwork Wed Sep 26 07:14:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 974877 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qfksuj+q"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="HdJ8tYhB"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42Kq3F2tpgz9s55 for ; Wed, 26 Sep 2018 17:15:37 +1000 (AEST) 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=ZM31Yvo+NxWOcqap33fc6CUJcf6iINeALFUtQaxET9E=; b=qfksuj+qbvBX7AOxSonCF7TdJ/ mkyEfDt/kMlc5xX3BFbqivP3MTiYzOgICHO0Uza7cOtgD06QUUY0umiP1MLQEKnEnnNBQcJO+dlA8 ZfZqfnftv+WIx7wDO5gN9OVW+rQrZgXR+KarWIWotxa/BDuYaGqx/ccOMM2m/C1mcZoe9GiB8aOCt FuHDmaPGWCwmxf7BmbW/TQU8skOSaImJAzd3wT89ZTVNQqjhkEAJuVw+RTexox3ov7qQ2KzIxNUJE 2bf/Woo1u91jnBF9S+HS7mu8JR9a3qUcJnq8lMqDmXXABEKMdUvTrPi1gpwt7QOsQlwKI83i43izW UDFipUFw==; 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 1g542j-0002aj-Fz; Wed, 26 Sep 2018 07:15:29 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g542I-0002QE-N2 for linux-arm-kernel@lists.infradead.org; Wed, 26 Sep 2018 07:15:04 +0000 Received: by mail-wr1-x443.google.com with SMTP id v16-v6so25791495wro.11 for ; Wed, 26 Sep 2018 00:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=reply-to:cc:to:from:subject:openpgp:autocrypt:message-id:date :user-agent:mime-version; bh=aolp/yV8d8toU6BK6tr6rGv0g6ehh3MOKpQ3uASrADE=; b=HdJ8tYhB8yIh+alrCyWE3ycFbzqT1w/iPUPR1Bf/pM3krG35FTrtxP6oxE42Fycys0 Ua1OAa4F7raTf95Yak9w4JpnNe4nXFCJ0mh1S1Pgq8rJQBcgnrzl4ORjqrJks8yKgG31 urGi/yKNu4T6UBIknrdDjOPKUzkQ7xz9itvkml7/PmTWYWwhjd/ERs2sjF2pZJdlotyu m92s3y4A9Ax/MSf+iLIwfPZDqJnjz+qzla29X8zLeZ3SQzoCMmX3vJue6BR3nvasS1em zHNF4YgFsHjDHOEovhKVJ60tM/TpzeZFLuCGjA9l0yJsXAbVpucI2vngpDITYB1IypM/ b/Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:cc:to:from:subject:openpgp:autocrypt :message-id:date:user-agent:mime-version; bh=aolp/yV8d8toU6BK6tr6rGv0g6ehh3MOKpQ3uASrADE=; b=NOHIxPAEbTWnm1TayzW173xEQWC2zFgCQ5hP52/ntiEmN+TNN2ROFLYcJ9+2T4YnPT KMIaLD65Kuw24NCAosfj/ALy39w6nwxxzVU85TgNyU/c65sNa+OZoLR40CWswOpl5GAl JuzCpxGtpHa4Yhxqc6cHJTFEL0q28BD/QuhO6x7PoTvYzHj7DsptL068UfF43XBWLmDT Fq+fjJ5QlM+WatBzxUDBf6cDPSq3QeqsOR88n8cpfJUhzsnDP8shqfa55Mi9GeRwta0A zqQf0MMJMPH/Gu+uGkahHRt4FII55y4NJ8aBZ4XmylOgr2jtfVOGgxnDaPyjXMraBmEd OB/g== X-Gm-Message-State: ABuFfog0ylAK1cHd0dq/THef0JvNZEhOtG7oKcp7tHgwUrcdGMznCrJ3 lkg6Kl13/zy6kCFFLXYNPkiiCQ== X-Google-Smtp-Source: ACcGV620kZG27WZPb0kLs8VxRb/SnEKUpWyE7mllRYfZmKYdWdI6mrF+m4sRpuTdQ8xbD6fefYwozw== X-Received: by 2002:adf:ae5a:: with SMTP id u26-v6mr3944789wrd.246.1537946070167; Wed, 26 Sep 2018 00:14:30 -0700 (PDT) Received: from [74.125.71.108] ([149.199.62.254]) by smtp.gmail.com with ESMTPSA id s26-v6sm3370786wmh.11.2018.09.26.00.14.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 00:14:29 -0700 (PDT) To: arm-soc From: Michal Simek Subject: [GIT PULL] arm64: zynqmp: Xilinx SoC changes for v4.20 v2 Openpgp: preference=signencrypt Autocrypt: addr=monstr@monstr.eu; prefer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xNCWA7DF75od0uBFVgBvm7gPvW3hJQplw3 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: Date: Wed, 26 Sep 2018 09:14:16 +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-20180926_001502_863749_57B5B406 X-CRM114-Status: GOOD ( 18.37 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:443 listed in] [list.dnswl.org] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: monstr@monstr.eu Cc: Jolly Shah , linux-arm Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi, Based on discussion with Olof I am sending this pull request You can find out more information about content in a tag below. Thanks, Michal The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at: https://github.com/Xilinx/linux-xlnx.git tags/zynqmp-soc-for-v4.20-v2 for you to fetch changes up to e60f02ddb4d2e29b0eb30dbe55475822c4bf3818: firmware: xilinx: Add debugfs for query data API (2018-09-26 08:47:37 +0200) ---------------------------------------------------------------- arm64: zynqmp: SoC changes for v4.20 - Adding firmware API for SoC with debugfs interface Firmware driver communicates to Platform Management Unit (PMU) by using SMC instructions routed to Arm Trusted Firmware (ATF). Initial version adds support for base firmware driver with query and clock APIs. EEMI spec is available here: https://www.xilinx.com/support/documentation/user_guides/ug1200-eemi-api.pdf ---------------------------------------------------------------- Rajan Vaja (6): dt-bindings: firmware: Add bindings for ZynqMP firmware firmware: xilinx: Add Zynqmp firmware driver firmware: xilinx: Add query data API firmware: xilinx: Add clock APIs firmware: xilinx: Add debugfs interface firmware: xilinx: Add debugfs for query data API Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt | 29 ++++++++ arch/arm64/Kconfig.platforms | 1 + drivers/firmware/Kconfig | 1 + drivers/firmware/Makefile | 1 + drivers/firmware/xilinx/Kconfig | 23 ++++++ drivers/firmware/xilinx/Makefile | 5 ++ drivers/firmware/xilinx/zynqmp-debug.c | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/firmware/xilinx/zynqmp-debug.h | 24 ++++++ drivers/firmware/xilinx/zynqmp.c | 523 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 113 ++++++++++++++++++++++++++++ 10 files changed, 970 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt create mode 100644 drivers/firmware/xilinx/Kconfig create mode 100644 drivers/firmware/xilinx/Makefile create mode 100644 drivers/firmware/xilinx/zynqmp-debug.c create mode 100644 drivers/firmware/xilinx/zynqmp-debug.h create mode 100644 drivers/firmware/xilinx/zynqmp.c create mode 100644 include/linux/firmware/xlnx-zynqmp.h