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 2AA21C433EF for ; Tue, 29 Mar 2022 13:52:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9F0483937; Tue, 29 Mar 2022 15:52:43 +0200 (CEST) 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="uYeqkt5B"; dkim=pass (1024-bit key) header.d=akkea.ca header.i=@akkea.ca header.b="OMSfGnEe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84FD883FDB; Tue, 29 Mar 2022 15:52:40 +0200 (CEST) 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 772D183B21 for ; Tue, 29 Mar 2022 15:52:35 +0200 (CEST) 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 63F484E200E; Tue, 29 Mar 2022 13:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1648561953; bh=zhjzIiM2vhrV69sJHypL4lOJceA7NJSuojoP8CFyLCg=; h=From:To:Cc:Subject:Date; b=uYeqkt5BkKRVo225v85Mauw1LlmGf4jOS0XbiCKsJ7QAsfvQABroA2jVt/tNgAPbr +HRaKRzoXHviG0IhYhCZ2oPZi9kX9UuvklmsHuqbzg61U1FoGbSwuy0OsLpL6ka+JN jzCuUug0oVv3FqBCMJLFPNkr5kSFM8p+KOPOx+Vw= 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 V_T0ayHV-nBu; Tue, 29 Mar 2022 13:52:32 +0000 (UTC) Received: from midas.localdomain (S0106788a2041785e.gv.shawcable.net [24.108.106.191]) by node.akkea.ca (Postfix) with ESMTPSA id 23C724E2003; Tue, 29 Mar 2022 13:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1648561952; bh=zhjzIiM2vhrV69sJHypL4lOJceA7NJSuojoP8CFyLCg=; h=From:To:Cc:Subject:Date; b=OMSfGnEerxiKjGlJv0Erwpj+rMaF6fc+fJS/9ZXLH0YtqqzeesSzj20UyJopQed7N u8V8zfR35CUcqARAhis0Il9Na070vFygoat9DX5LHuFtGlJHxkWavySdozZ+wIRlVc 6WjzJNH0zFEite0BzoZl588H8oyw1c6PGxED8q4c= From: Angus Ainslie To: u-boot@lists.denx.de, marex@denx.de, seanga2@gmail.com Cc: lukma@denx.de, sbabic@denx.de, festevam@gmail.com, kernel@puri.sm, uboot-imx@nxp.com, peng.fan@nxp.com, heiko.thiery@gmail.com, Angus Ainslie Subject: [PATCH v6 0/3] Add a clock driver for the imx8mq Date: Tue, 29 Mar 2022 06:52:21 -0700 Message-Id: <20220329135224.295780-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 v5 Added UART clocks Added video clocks Added DRAM clocks Changes since v4 Rebased onto [1] so patch 4 of 4 was dropped. Added CLK_COMPOSITE_CCF Fixed const* clock definitions Changes since v3: Fixed driver spelling Moved rate macros out of the header into the dot c 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 [1] https://patchwork.ozlabs.org/project/uboot/patch/20220320203446.740178-2-seanga2@gmail.com/ Angus Ainslie (3): dt-bindings: imx8mq-clock: add mainline definitions clk: imx8mq: Add a clock driver for the imx8mq clk: imx8m: reduce rate table duplication drivers/clk/imx/Kconfig | 18 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mm.c | 60 +-- drivers/clk/imx/clk-imx8mn.c | 60 +-- drivers/clk/imx/clk-imx8mp.c | 65 +-- drivers/clk/imx/clk-imx8mq.c | 505 +++++++++++++++++++++++ drivers/clk/imx/clk-pll14xx.c | 61 +++ drivers/clk/imx/clk.h | 4 + include/dt-bindings/clock/imx8mq-clock.h | 16 +- 9 files changed, 625 insertions(+), 166 deletions(-) create mode 100644 drivers/clk/imx/clk-imx8mq.c -- 2.25.1