Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 837E5C433F5 for ; Mon, 14 Mar 2022 18:22:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B949383A65; Mon, 14 Mar 2022 19:22:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=akkea.ca header.i=@akkea.ca header.b="pS6+enB9"; dkim=pass (1024-bit key) header.d=akkea.ca header.i=@akkea.ca header.b="AG+FUMz2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A9C1883B90; Mon, 14 Mar 2022 19:22:28 +0100 (CET) Received: from node.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7651D837C7 for ; Mon, 14 Mar 2022 19:22:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angus@akkea.ca Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 8FD4E4E2006; Mon, 14 Mar 2022 18:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1647282142; bh=TjI15AtvxvRDQUd3qSqT8n8i+dJGaWqMLISDgD8190k=; h=From:To:Cc:Subject:Date; b=pS6+enB9XhyILiRH6mNyrPTpIj1XkPozqxpzPu0aWq9CXWL5Nv+uWxQTaJlYV40Eq sq7csJBnrqQyxKfoyCc7Vr/cg//ESBKUGMKgT/5/2jgyXSs2/xioJsIJAZftppTa0w AYRe0Qfd+wl2hPldTmrg7pCBrImhqAILZ+aVuIQY= Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L_FvHPmZVSVk; Mon, 14 Mar 2022 18:22:21 +0000 (UTC) Received: from midas.localdomain (S0106788a2041785e.gv.shawcable.net [24.108.106.191]) by node.akkea.ca (Postfix) with ESMTPSA id 0B2864E2003; Mon, 14 Mar 2022 18:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1647282141; bh=TjI15AtvxvRDQUd3qSqT8n8i+dJGaWqMLISDgD8190k=; h=From:To:Cc:Subject:Date; b=AG+FUMz2Ekfo3nBgYbBNGIYk54Uz2qyPclIujp00Ug/eIVuoymgwl5Wi/sAZDnLb1 1d8oSMeZ2YfolL4ov7Ja65AfUrJRr4r2qSxn7qF5K4CsdH/7o6PmQM4IWCbuMpuVHZ NkoMCsUKgBDn+G1YgBmfoPSjwtQHRGgYGTzXYSaI= From: Angus Ainslie To: u-boot@lists.denx.de, Marek Vasut Cc: lukma@denx.de, seanga2@gmail.com, sbabic@denx.de, festevam@gmail.com, kernel@puri.sm, uboot-imx@nxp.com, Angus Ainslie Subject: [PATCH v3 0/4] Add a clock driver for the imx8mq Date: Mon, 14 Mar 2022 11:22:07 -0700 Message-Id: <20220314182211.948406-1-angus@akkea.ca> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This is a DM clock driver for the imx8mq based on the linux kernel driver and the u-boot imx8mm clock driver. It also removes some code duplication in the imx8m[nmp] clock drivers. Changes since v2: Added kernel commit IDs Re-factored rate table code to remove duplication Remove duplicate code by creating a common clk-imx8m Changes since v1: More verbose clock driver description Added forgotten dt-bindings Synced PLL frequencies with mainline kernel Angus Ainslie (4): dt-bindings: imx8mq-clock: add mainline definitions clk: imx8mq: Add a clock driver for the imx8mq clk: imx8m: reduce rate table duplication clk: imx8m: remove code duplication drivers/clk/imx/Kconfig | 16 + drivers/clk/imx/Makefile | 8 +- drivers/clk/imx/clk-imx8m.c | 108 ++++++ drivers/clk/imx/clk-imx8m.h | 12 + drivers/clk/imx/clk-imx8mm.c | 149 +------- drivers/clk/imx/clk-imx8mn.c | 149 +------- drivers/clk/imx/clk-imx8mp.c | 156 +------- drivers/clk/imx/clk-imx8mq.c | 441 +++++++++++++++++++++++ drivers/clk/imx/clk-pll14xx.c | 44 +++ drivers/clk/imx/clk.h | 21 ++ include/dt-bindings/clock/imx8mq-clock.h | 16 +- 11 files changed, 688 insertions(+), 432 deletions(-) create mode 100644 drivers/clk/imx/clk-imx8m.c create mode 100644 drivers/clk/imx/clk-imx8m.h create mode 100644 drivers/clk/imx/clk-imx8mq.c -- 2.25.1