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 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 0910CC636D3 for ; Tue, 31 Jan 2023 09:52:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 95A3085A2C; Tue, 31 Jan 2023 10:51:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1675158709; bh=18GryviDd8alr7RBLUJwbJ8olvPKOEJBzYDVOcT/9W0=; h=From:To:Subject:In-reply-to:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=PM3b+PoSRxulOyYRNCK0pajoOvHS6xqn3YWJFU39pnvp+RXwgKqC7M//KSHKDIEOP hJZdYuP0+iVaXtZxRUA6ixvNrTbcz4gvAWiCT343zzWW7GmGhunuRTGjX2Jje2oNp2 bCuLcNGtNKcpUpE5Z2/ZRr7dnNtehD0O0CNDC72b3OydXfdf4ZOygsBed4tly8U03x J7w/3F/2OFy3gLZyK9jOi3XgkufumDYtycow9TQ/hSzdJS4XzcqxvRh57uwyXqdgRI QGnppvgrf7uc/c2nx1oK8rK8GrXL+59qBbVcMKfxPOx/LWmz3DqCU30gc27xTzpbkj 2+dhyOs8m7c0Q== Received: by phobos.denx.de (Postfix, from userid 109) id 2B8F985A05; Tue, 31 Jan 2023 10:50:53 +0100 (CET) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9719B85A11 for ; Tue, 31 Jan 2023 10:50:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sbabic@denx.de Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4P5gJr3MByz1r1gC; Tue, 31 Jan 2023 10:50:20 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4P5gJr3GT6z1qqlR; Tue, 31 Jan 2023 10:50:20 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date" Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id Y4h-h27FbSHj; Tue, 31 Jan 2023 10:50:19 +0100 (CET) Received: from papero (host-88-217-136-221.customer.m-online.net [88.217.136.221]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 31 Jan 2023 10:50:19 +0100 (CET) From: sbabic@denx.de X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1721018 X-Patchwork-Delegate: sbabic@denx.de To: Fabio Estevam ,u-boot@lists.denx.de Subject: [PATCH 2/3] mx7: clock: Use 60MHz for the I2C clocks In-reply-to: <20230103131940.124870-2-festevam@denx.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Message-Id: <20230131095053.2B8F985A05@phobos.denx.de> Date: Tue, 31 Jan 2023 10:50:38 +0100 (CET) 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.6 at phobos.denx.de X-Virus-Status: Clean > When an I2C clock is enabled inside enable_i2c_clk() the clock rate is > configured as PLL_SYS_MAIN_120M_CLK / 2 = 60MHz. > Currently, the I2C clock is retrieved from I2C1_CLK_ROOT, which > may not be the one that was enabled. > As there is no clock driver for the imx7d, it is better to return 60MHz > for the I2C clock. > This provides a workaround for the imx7d-pico board, where I2C4 is > connected to the PMIC. > With this change, it is possible to convert the imx7d-pico board > to DM_I2C and DM_PMIC. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================