From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 C6C59C74A21 for ; Wed, 10 Jul 2019 13:45:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A022320651 for ; Wed, 10 Jul 2019 13:45:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ha8Jmc1t" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A022320651 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=U/SGYphgF6q0LuvN5+WWVMjkGhGKeBN6k9A4PcWtikA=; b=ha8Jmc1t9pysHg bOii03GMe503/I1ZnlGpiAA57YrRgExda5fHh+/sWV5lEM1fMh2yq23/2Hsyx7mscF4R1oWvomu6S eWLMyeiWNn3xJqR5uov3rP21+uvR0HF9uynhkbiaQKnbTj/fk3xMRC58MXB5fvNjzvFNH8EyQgHCs WSDyuilI3cfomnNpwkmEEc7LRSQxQH9hSPHkbbH6VSyeWAXUAy6pzqfNYFex6i9oxztiBtOfaeLxU gUPbFBQtfLRWKVbEKdY0tPA9jAXNOVc/XUZu8lz2YJ2/7sZtfl2PuOaUj5vj9N0MtdWfM3DUb3YpY s5Yw7G7+7igX7mYkRauw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hlCut-0003pZ-Gm; Wed, 10 Jul 2019 13:45:51 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hlCtT-0001ws-KX for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2019 13:44:37 +0000 X-Originating-IP: 92.137.69.152 Received: from localhost (alyon-656-1-672-152.w92-137.abo.wanadoo.fr [92.137.69.152]) (Authenticated sender: gregory.clement@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 3A60CFF81A; Wed, 10 Jul 2019 13:44:09 +0000 (UTC) From: Gregory CLEMENT To: Stephen Boyd , Mike Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/6] Add CPU clock support for Armada 7K/8K Date: Wed, 10 Jul 2019 15:43:40 +0200 Message-Id: <20190710134346.30239-1-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190710_064425_646474_65CC5C04 X-CRM114-Status: GOOD ( 17.48 ) 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: devicetree@vger.kernel.org, Jason Cooper , Andrew Lunn , Antoine Tenart , Gregory CLEMENT , Maxime Chevallier , Rob Herring , Thomas Petazzoni , =?UTF-8?q?Miqu=C3=A8l=20Raynal?= , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, This is the seventh version of a series allowing to manage the cpu clock for Armada 7K/8K. For these SoCs, the CPUs share the same clock by cluster, so actually the clock management is done at cluster level. As for the other Armada 7K/8K clocks it is possible to have multiple AP so here again we need to have unique name: the purpose of the second patch is to share a common code which will be used in 3 drivers. The last 2 patch enable the driver at dt and platform level and will be applied through the mvebu subsystem. Changelog v6->v7: - Update binding documentation for the AP clock to mention that they expose reference clocks for the cluster to make distinction with the cluster clocks themselves exposed by the cpu clock. - Add precision on the number of parent clock in the binding documentation. - Also fix the example by using the reg address in the node name. Changelog v5->v6: - Restraint the reg property for the child node to not overlap the other node. - Give a specific compatible to ap_syscon1. Changelog v4->v5: - As requested by the device tree maintainer make the reg property mandatory - Updated the device tree files accordingly with the new binding Changelog v3->v4: - Rebased on v5.1-rc1 - Mention in the binding that a reg property can be used to make the device tree maintainer happy in the hope that there will be finally a review on this patch blocking the whole series. Changelog v2->v3: - Add back the first patch documenting the binding Changelog v1->v2: - Header cleanup - Use unsigned int instead of it for cluster member of the ap_cpu_clk struct - Use clk_hw instead of clk - Use regmap_read_poll_timeout - Use for_each_of_cpu_node - Remove unnecessary WARN_ON() - Remove headers from armada_ap_cp_helper.h - Few other minor cleanup Gregory CLEMENT (6): dt-bindings: ap806: add the cluster clock node in the syscon file clk: mvebu: add helper file for Armada AP and CP clocks clk: mvebu: add CPU clock driver for Armada 7K/8K clk: mvebu: ap806: Fix clock name for the cluster arm64: marvell: enable the Armada 7K/8K CPU clk driver arm64: dts: marvell: Add cpu clock node on Armada 7K/8K .../arm/marvell/ap806-system-controller.txt | 31 ++- arch/arm64/Kconfig.platforms | 1 + .../boot/dts/marvell/armada-ap806-quad.dtsi | 4 + arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 7 + drivers/clk/mvebu/Kconfig | 8 + drivers/clk/mvebu/Makefile | 2 + drivers/clk/mvebu/ap-cpu-clk.c | 259 ++++++++++++++++++ drivers/clk/mvebu/ap806-system-controller.c | 24 +- drivers/clk/mvebu/armada_ap_cp_helper.c | 30 ++ drivers/clk/mvebu/armada_ap_cp_helper.h | 11 + drivers/clk/mvebu/cp110-system-controller.c | 32 +-- 11 files changed, 365 insertions(+), 44 deletions(-) create mode 100644 drivers/clk/mvebu/ap-cpu-clk.c create mode 100644 drivers/clk/mvebu/armada_ap_cp_helper.c create mode 100644 drivers/clk/mvebu/armada_ap_cp_helper.h -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel