From patchwork Sun Nov 13 18:07:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13041691 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 70D4DC4332F for ; Sun, 13 Nov 2022 18:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3KT5OFEsmCO3omJMTDjqINXxvuE+TBx9R5ShX2Lmeyc=; b=RXWcZnisyfwgPq ftjOz6uihBITaHXHfcucaUCmLN24UOjKnX4TttRNPLX13pFXQNh1LhyYluQblvyiFNO93QGKtxP8C pDdDocaYsGhA6rMd9AJzggwlGuRBcD23ijVViW8ieUGQMrmllmc24OBpjoEUF1EpgNo3yyj0kk9jE 358Y/emY/8R5b6yBTS7d4/m5jXGuCqyDJAmfTvci7A7RKkcPzeTD4qMw8dAXWIZjNwhAO4IjuN73h pQ/PYPRuBwkar5joF7ub39Sht+G+1gaX28YTWQinXtX4eO8rykzpjfPC+GNP/0qwOVEFA/XTwV9BR 6dYFVlKUCXPrGuoNFwHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouHPR-00Cpvy-B8; Sun, 13 Nov 2022 18:08:45 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouHOC-00CpJt-GM for linux-arm-kernel@lists.infradead.org; Sun, 13 Nov 2022 18:07:29 +0000 Received: by mail-ej1-x62b.google.com with SMTP id f5so23397893ejc.5 for ; Sun, 13 Nov 2022 10:07:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cY/YbaT2oocFTRi9rozmezD/+VGVGVIO+2TePf2+ldU=; b=esSz1VqzMydOCCFAmDZxkV0kwBvkxmYqkNmOgqtT9gI1r4dR8rfXmP6enOyg4A/JY2 vCpeDHv8mYQuBNGa8I65cL078SO/A85DJ/bAOgckxPuCrXKjRiCwYTvQoK5LmgA8RZDE ksqr8tP6iWhZZKy/u4tm0KIKLLbhSftEiVYHI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cY/YbaT2oocFTRi9rozmezD/+VGVGVIO+2TePf2+ldU=; b=tg2wl/gZyLVWtc8sPe5yysUdb5kIQJqveZxZ6nS7lO1cj/7iaSLzyRuKHnkC0qLzzS JpejIufaKub13s5X3WPJt2DxSiEvIKmydN+0beW2EUgERXNtEjKb99IEuil73jyfO4LJ +QZ4zjvnJEiaKnMrVv0rjk1wYTFyGdftzYe0OnW31nQl0Kj/jE7fPdZwwpnOAl89fDa+ R6ylZQbtsX5zL+lGvA3kVHMZxjHTYisYjJO8KNYrzasZxI9N91xuX78K435Ysy63gACD QjSwoFp5C+nlOltuWAnOnc8YNM3t+3NJp2OEyq7olSZ2k1d38LrYeaMZfSX2PbDsj4v5 HrdA== X-Gm-Message-State: ANoB5pmJ+3VRSvUijLi4sX9gZ4NDkZ0FdQ0KdYQo8YYZaCf0mDDNKjQD sMRSFIC1llUR0qH3iqTvbHwHug== X-Google-Smtp-Source: AA0mqf7Bql1t8/TVOsxUzpgGr0R8sIbEv22SFH08QOqWO+33J71bOOMHJuA9UzrWPzMGXae6h7zqIA== X-Received: by 2002:a17:906:9f09:b0:7ae:ea7:2139 with SMTP id fy9-20020a1709069f0900b007ae0ea72139mr8127573ejc.319.1668362844166; Sun, 13 Nov 2022 10:07:24 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-40-103-33.business.telecomitalia.it. [79.40.103.33]) by smtp.gmail.com with ESMTPSA id n11-20020a170906118b00b007a8de84ce36sm3171058eja.206.2022.11.13.10.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 10:07:23 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Dario Binacchi , Abel Vesa , Anson Huang , Fabio Estevam , Michael Turquette , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 5/5] clk: imx8mn: fix imx8mn_enet_phy_sels clocks list Date: Sun, 13 Nov 2022 19:07:10 +0100 Message-Id: <20221113180710.1625410-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221113180710.1625410-1-dario.binacchi@amarulasolutions.com> References: <20221113180710.1625410-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221113_100728_566279_1CA6C6EC X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org According to the "Clock Root" table of the reference manual (document IMX8MNRM Rev 2, 07/2022): Clock Root offset Source Select (CCM_TARGET_ROOTn[MUX]) ... ... ... ENET_PHY_REF_CLK_ROOT 0xAA80 000 - 24M_REF_CLK 001 - SYSTEM_PLL2_DIV20 010 - SYSTEM_PLL2_DIV8 011 - SYSTEM_PLL2_DIV5 100 - SYSTEM_PLL2_DIV2 101 - AUDIO_PLL1_CLK 110 - VIDEO_PLL_CLK 111 - AUDIO_PLL2_CLK ... ... ... while the imx8mn_enet_phy_sels list didn't contained audio_pll1_out for source select bits 101b. Fixes: 96d6392b54dbb ("clk: imx: Add support for i.MX8MN clock driver") Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-imx8mn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 37128c35198d..2afea905f7f3 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -140,8 +140,8 @@ static const char * const imx8mn_enet_timer_sels[] = {"osc_24m", "sys_pll2_100m" "clk_ext4", "video_pll_out", }; static const char * const imx8mn_enet_phy_sels[] = {"osc_24m", "sys_pll2_50m", "sys_pll2_125m", - "sys_pll2_200m", "sys_pll2_500m", "video_pll_out", - "audio_pll2_out", }; + "sys_pll2_200m", "sys_pll2_500m", "audio_pll1_out", + "video_pll_out", "audio_pll2_out", }; static const char * const imx8mn_nand_sels[] = {"osc_24m", "sys_pll2_500m", "audio_pll1_out", "sys_pll1_400m", "audio_pll2_out", "sys_pll3_out",