From patchwork Mon Nov 9 13:48:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tretter X-Patchwork-Id: 11891553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65EC2C4741F for ; Mon, 9 Nov 2020 13:48:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB7DF206B2 for ; Mon, 9 Nov 2020 13:48:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qOsBIBZj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB7DF206B2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=8SkTefAfQgyi5BCowrfFK71H1sNTHymk4/FrzaisFHA=; b=qOsBIBZjEo6NN9ue2MIxIkghuS ii2QjY4/Ac7rWtNsvjP2APlmsw8r7qs0pXruHhgnEW0Mo4iJrKdr6oopwZkygPjqPAx7brIRpvws2 jYknJT9xuOHMS/RkZGoo/vOYixYeCjpLG8xn8jMIyrGKUD/oTHWpvWa4ijT5zLmVRKTFPM4wbfNJA US4mHzvhUzvfgkVrmePOpMVPQOOAij1eQcPhWvDKaqtACzF6T9EWLQQ5WvoJQZ5I6f4F8/Cr/IRoB psyPvmYPhKGghoYQWQsINwTc6HbMCUSWKa6Wapu3jlXz6NYy0OwL1uN0ULQEVxs0sL1soLhy6WU46 nhTLfDoA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kc7X3-0006Ap-2Z; Mon, 09 Nov 2020 13:48:29 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kc7Wy-00068g-AR for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 13:48:25 +0000 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kc7Wu-0006rq-8x; Mon, 09 Nov 2020 14:48:21 +0100 Received: from mtr by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kc7Wt-00HSX6-Fd; Mon, 09 Nov 2020 14:48:19 +0100 From: Michael Tretter To: linux-arm-kernel@lists.infradead.org Date: Mon, 9 Nov 2020 14:48:14 +0100 Message-Id: <20201109134818.4159342-1-m.tretter@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::39 X-SA-Exim-Mail-From: mtr@pengutronix.de Subject: [PATCH v4 0/4] soc: xilinx: vcu: provide interfaces for other drivers X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_084824_415014_ADF4CFC6 X-CRM114-Status: GOOD ( 15.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dshah@xilinx.com, tejasp@xilinx.com, gregkh@linuxfoundation.org, Michael Tretter , rajanv@xilinx.com, michals@xilinx.com, kernel@pengutronix.de, rvisaval@xilinx.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, this is v4 of the series to expose the vcu-settings via syscon. This is necessary, because other drivers, e.g. the allegro-dvt driver, need to read the VCU settings as well. I dropped the patches that register the clock controller for now. The patch stack to rework the driver to properly provide the PLL and clock dividers grew to a level that justifies a separate series. The individual patches do not contain any changes compared to v3. Michael Changelog: v3 -> v4: - Drop patches that add a clock controller v2 -> v3: - drop unused xvcu_reset() function v1 -> v2: - drop custom select for syscon - unregister registered clocks on driver remove Michael Tretter (4): soc: xilinx: vcu: drop useless success message dt-bindings: soc: xlnx: extract xlnx, vcu-settings to separate binding soc: xilinx: vcu: use vcu-settings syscon registers soc: xilinx: vcu: add missing register NUM_CORE .../soc/xilinx/xlnx,vcu-settings.yaml | 34 +++++++ .../bindings/soc/xilinx/xlnx,vcu.txt | 9 +- drivers/soc/xilinx/Kconfig | 1 + drivers/soc/xilinx/xlnx_vcu.c | 96 +++++++++---------- include/linux/mfd/syscon/xlnx-vcu.h | 39 ++++++++ 5 files changed, 123 insertions(+), 56 deletions(-) create mode 100644 Documentation/devicetree/bindings/soc/xilinx/xlnx,vcu-settings.yaml create mode 100644 include/linux/mfd/syscon/xlnx-vcu.h