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 4024FC77B7A for ; Wed, 7 Jun 2023 12:07:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7B5AB86075; Wed, 7 Jun 2023 14:07:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.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 3B49E85FF6; Wed, 7 Jun 2023 14:06:59 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (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 577D386041 for ; Wed, 7 Jun 2023 14:06:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.int.toradex.com ([194.191.254.210]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lx9Jv-1q4yDD2Phx-016hPe; Wed, 07 Jun 2023 14:06:50 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Bryan Brattlof , Marcel Ziswiler , Dave Gerlach , Suman Anna , Tom Rini , Vignesh Raghavendra Subject: [PATCH v1 2/3] arm: mach-k3: am62: fix 2nd mux option of clkout0 Date: Wed, 7 Jun 2023 14:06:38 +0200 Message-Id: <20230607120639.82087-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230607120639.82087-1-marcel@ziswiler.com> References: <20230607120639.82087-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:HYUyTGtR9mxbUtWA1S7xBsWCW5Qaxz+7drwd1cU+ax9sWaoIVsd FTYpw067hFMV5bzanCQbq5iHFpx+GekzUjIKBwgG/ZS22B8OcI+hHn24SeiSUFSkypxSmWQ XOux0sMvKcP5PKDXEOf+Hzxj8wY22eEBnAmbmZSD6hYh4/CYMTsNfcsliRcbiexdXOa/fN1 Fd4/RC6myygtY1LGek11w== UI-OutboundReport: notjunk:1;M01:P0:+f6hK9kU8zM=;sM4s3ZOTOlt1bzCxuNsPhxBJC41 PTUg3ENaGflreGZuaMDh6N9+Qv3aYn24icOqscltod9pc5X/XKonaBpfJHml/66XWlsC9YgAK cgxgeH/Rp9kTH8PpQE0d60D/lHgjFC3oxGRZ7HsEycXBjMOQUmjn3nkxCSQM29OZ9/+p0b/NO wwVT/PKAYKYrNWB+duLiW++dHw9WwiCrat2E6Er4seJ//rqhbQ17mOEVlCF24JSRXZ5UiCJL9 Pjrys4DvcSNBmwQGXuyJGgDxjSJa1pNsrJ0BlQUlNkxBDEUU8mm56x5Rc/ScsVSSjU/DuWxZM 4rg8V0N51825ebJkl43a2NDdKZvVBedpBvqt8A6Oac4yeHVi0L2zsZWCKD4UGfUc+5NVpg88f DNlZGkx6y91s0vfE12/B0yHJ3ZZ94g7m7PGYgYA9rL0SMFjhfWErOl/JopDhS2DjthDSvRrBL yEm0/wNpqW4zX3hP1ipilDGOzfA6PFNIHHJ71jB43O5hO+qFc6G+Rw9rIWX2kZLyhKKnwvsq0 u0vpYi27rVJTyfpvHn352mCDENel3HPd2hMkzxyqQtxFOoTLR/e/SeA3uPPssWAWDjBnwV8/t Wc6rOYS8iatsOXC7yC312k0rBX8HlhxS3Gyz4l+IAr8XYmyBVv44DdyBwPIfS+6/WrUZnKcIZ A+7Gg2sZ7qYTrykxx2aaXRrn2zopk6FsyqqsV7ITlw== 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 From: Marcel Ziswiler Fix second mux option of clkout0 which should really be DEV_BOARD0_CLKOUT0_IN_PARENT_HSDIV4_16FFT_MAIN_2_HSDIVOUT1_CLK10 rather than twice the same according to [1]. [1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/clocks.html#clocks-for-board0-device Signed-off-by: Marcel Ziswiler --- arch/arm/mach-k3/am62x/clk-data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-k3/am62x/clk-data.c b/arch/arm/mach-k3/am62x/clk-data.c index c0881778fe7..d7bfed0e031 100644 --- a/arch/arm/mach-k3/am62x/clk-data.c +++ b/arch/arm/mach-k3/am62x/clk-data.c @@ -57,7 +57,7 @@ static const char * const sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk_parents[] = { static const char * const clkout0_ctrl_out0_parents[] = { "hsdiv4_16fft_main_2_hsdivout1_clk", - "hsdiv4_16fft_main_2_hsdivout1_clk", + "hsdiv4_16fft_main_2_hsdivout1_clk10", }; static const char * const clk_32k_rc_sel_out0_parents[] = { @@ -195,6 +195,7 @@ static const struct clk_data clk_list[] = { CLK_DIV("hsdiv4_16fft_main_1_hsdivout1_clk", "pllfracf_ssmod_16fft_main_1_foutvcop_clk", 0x681084, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_main_1_hsdivout2_clk", "pllfracf_ssmod_16fft_main_1_foutvcop_clk", 0x681088, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_main_2_hsdivout1_clk", "pllfracf_ssmod_16fft_main_2_foutvcop_clk", 0x682084, 0, 7, 0, 0), + CLK_DIV("hsdiv4_16fft_main_2_hsdivout1_clk10", "pllfracf_ssmod_16fft_main_2_foutvcop_clk", 0x682084, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_main_2_hsdivout2_clk", "pllfracf_ssmod_16fft_main_2_foutvcop_clk", 0x682088, 0, 7, 0, 0), CLK_DIV("hsdiv4_16fft_mcu_0_hsdivout0_clk", "pllfracf_ssmod_16fft_mcu_0_foutvcop_clk", 0x4040080, 0, 7, 0, 0), CLK_MUX_PLLCTRL("sam62_pll_ctrl_wrap_main_0_sysclkout_clk", sam62_pll_ctrl_wrap_main_0_sysclkout_clk_parents, 2, 0x410000, 0), @@ -313,7 +314,7 @@ static const struct dev_clk soc_dev_clk_data[] = { DEV_CLK(146, 5, "sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk"), DEV_CLK(157, 20, "clkout0_ctrl_out0"), DEV_CLK(157, 21, "hsdiv4_16fft_main_2_hsdivout1_clk"), - DEV_CLK(157, 22, "hsdiv4_16fft_main_2_hsdivout1_clk"), + DEV_CLK(157, 22, "hsdiv4_16fft_main_2_hsdivout1_clk10"), DEV_CLK(157, 24, "sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk"), DEV_CLK(157, 25, "board_0_ddr0_ck0_out"), DEV_CLK(157, 40, "mshsi2c_main_0_porscl"), -- 2.36.1