From patchwork Tue Jul 25 08:08:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?S=C3=A9bastien_Szymanski?= X-Patchwork-Id: 1812302 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R9B7D0Qf5z1yXx for ; Tue, 25 Jul 2023 19:09:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B847A862C9; Tue, 25 Jul 2023 11:09:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=armadeus.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 0824E8689F; Tue, 25 Jul 2023 11:07:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from 4.mo584.mail-out.ovh.net (4.mo584.mail-out.ovh.net [178.32.98.131]) (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 117D98689F for ; Tue, 25 Jul 2023 11:06:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=armadeus.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sebastien.szymanski@armadeus.com Received: from director7.ghost.mail-out.ovh.net (unknown [10.109.156.62]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 76AE9265DA for ; Tue, 25 Jul 2023 08:09:24 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-4qszx (unknown [10.110.208.100]) by director7.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 8356D1FD86; Tue, 25 Jul 2023 08:09:23 +0000 (UTC) Received: from armadeus.com ([37.59.142.105]) by ghost-submission-6684bf9d7b-4qszx with ESMTPSA id 8Fe+GTODv2S7ODkA6AgW7A (envelope-from ); Tue, 25 Jul 2023 08:09:23 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-105G006a2fafcea-76da-4a02-8759-693d5efaac13, A2A62B8317AF7ADE30A548E36DF2B69896D5794A) smtp.auth=sebastien.szymanski@armadeus.com X-OVh-ClientIp: 92.148.253.243 From: =?utf-8?q?S=C3=A9bastien_Szymanski?= To: u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Lukasz Majewski , Sean Anderson , Ye Li , Alice Guo , =?utf-8?q?S=C3=A9bast?= =?utf-8?q?ien_Szymanski?= Subject: [PATCH 0/4] clk: imx: add i.MX93 CCF driver Date: Tue, 25 Jul 2023 10:08:52 +0200 Message-ID: <20230725080856.26567-1-sebastien.szymanski@armadeus.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 9454181521079069675 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrheelgdduvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpefurogsrghsthhivghnucfuiiihmhgrnhhskhhiuceoshgvsggrshhtihgvnhdrshiihihmrghnshhkihesrghrmhgruggvuhhsrdgtohhmqeenucggtffrrghtthgvrhhnpeffkeegtdfgudeiieffteetudethfehgeelueehtdduieeijefftdduiefhgeejveenucffohhmrghinhepphgrshhtvggsihhnrdgtohhmnecukfhppeduvdejrddtrddtrddupdelvddrudegkedrvdehfedrvdegfedpfeejrdehledrudegvddruddtheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehsvggsrghsthhivghnrdhsiiihmhgrnhhskhhisegrrhhmrgguvghushdrtghomheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepuhdqsghoohhtsehlihhsthhsrdguvghngidruggvpdfovfetjfhoshhtpehmohehkeegpdhmohguvgepshhmthhpohhuth 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.8 at phobos.denx.de X-Virus-Status: Clean This series adds i.MX93 CCF driver, modifed from Linux kernel 6.5-rc2 and adapted for U-Boot. Patches 2 and 3 come from NXP U-Boot. A boot log and a dump of the clock tree are available at the following URL: https://pastebin.com/7WbubSXK Alice Guo (1): arm: dts: imx93: add a per clock for LPUART1 Sébastien Szymanski (2): clk: imx: add i.MX93 CCF driver imx93_evk: defconfig: enable clock driver Ye Li (1): serial: lpuart: Enable IPG clock arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 23 ++ arch/arm/dts/imx93.dtsi | 4 +- board/freescale/imx93_evk/imx93_evk.c | 2 - configs/imx93_11x11_evk_defconfig | 2 + drivers/clk/imx/Kconfig | 18 ++ drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-composite-93.c | 142 +++++++++ drivers/clk/imx/clk-fracn-gppll.c | 382 +++++++++++++++++++++++ drivers/clk/imx/clk-gate-93.c | 148 +++++++++ drivers/clk/imx/clk-imx93.c | 343 ++++++++++++++++++++ drivers/clk/imx/clk.h | 42 +++ drivers/serial/serial_lpuart.c | 14 +- include/dt-bindings/clock/imx93-clock.h | 6 +- 13 files changed, 1122 insertions(+), 6 deletions(-) create mode 100644 drivers/clk/imx/clk-composite-93.c create mode 100644 drivers/clk/imx/clk-fracn-gppll.c create mode 100644 drivers/clk/imx/clk-gate-93.c create mode 100644 drivers/clk/imx/clk-imx93.c