Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4422606A31A for ; Wed, 2 Dec 2026 10:27:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=TAQ8rHHU; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=ZnqUkMyN Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 71D9840794; Wed, 2 Dec 2026 10:27:33 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id jyylhuCIJz90; Wed, 2 Dec 2026 10:27:32 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org B15DE407C4 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796207252; b=EalFVOSkW3o0abcOQdMGNe+wflpQEE6B0Ypn/XXtm3jeK0dU8iOwLuChTovBFyuTb6Yu SR4AtmCCHZb0c98Ml/8VC9ow3kEmAZxcqxk+GUM2izOPChpVazBuFZFZSXUrdjcuZE5hu Geq4vUETgE/weRcNhWu3A5d0czRQvK/8Kvi5i8JsiYz0JMkGFpmEtK5tUeLXt/i1Jg6Xm hrQMfkdUqwlaNny2k9T1CQTDdz8TR/L0ISJUS27LZHbsoU/fAMfD4dJK+IUvz7qID0RK8 GB7j9XLGYoGkkIYjqUrYih/NZ+JLY+tFmiqU35ULb01ftj0axQDyS0EJnHX218AJANA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796207252; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=tOdq42dAypeCTxCHACL0dix6t1pQ+mD1zFhRve1EJPo=; b=YwWAYn+rzcG5d08yQ9yRHun30W76wTfUHyhMlZI6CgEJZsETB3l+IaTH246L1EsGjIJZ Cvrvx1s/oy9sff3mAuHKskrVaRDX0yGSy3Rn0Xs5pBqYaVHpKMEaMzXwwhga1R3foMDNh ODwqouXtv7xe74Qjxv0wOD3PZi1eyVrjli46+CU/nlAZb1jfXx4AG/wGmCUeznLwSQhWA F1C84Upq+rMfaQm2ydKKWVS8neTMiffqcKGB9oHgN1Z8couaNYVoSZi6RmjDdAVTBqPJV sjddzJl02SYn5R4uwUhUDKeRNxw+6p5AG9zursNQnuqwjzKU6UGKIdmrwLtQbJqNhsg== ARC-Authentication-Results: i=1; smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796207252; bh=tOdq42dAypeCTxCHACL0dix6t1pQ+mD1zFhRve1EJPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=TAQ8rHHUL+QkfIVS1kuN8Zk0aTP/U8RmFk5sp8axDzFf6OWYH8xG0ey/jBgVu2X4V yup7nkhzfcqgvRHEDbhQraF8SlK/3XHEIqRIUUcFofeFJ5qfFrwdZHYdGzz4AsOeRn 8eZV5uEQcX/qZg3Jxi2DCCGteVOWYdh3WL/b7MYYoVISOqK6Nja5hcw70D4QoxpK4/ 7D3K7ipoJ7ohd6GeQBedFb8ZF/Dova2KU1LW2OvoquQ4rxOiYVNi7Mays2ueI2S1QW YTrkqqd4P/XjERH/S+jZoRTlsbUO6As8xeUn6ItwW8WCMMdenbs7wyr/g4paGzgz2U iMjruXoystxOQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id B15DE407C4; Wed, 2 Dec 2026 10:27:32 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id E8772765 for ; Wed, 2 Dec 2026 10:27:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id CB5CD40466 for ; Wed, 2 Dec 2026 10:27:30 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Kxir52y-HFRq for ; Wed, 2 Dec 2026 10:27:30 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org C885A40179 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::32a" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::32a; helo=mail-wm1-x32a.google.com; envelope-from=dario.binacchi@amarulasolutions.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=ZnqUkMyN Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by smtp2.osuosl.org (Postfix) with ESMTPS id C885A40179 for ; Wed, 2 Dec 2026 10:27:29 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4a214c5c4c0so122762575e9.3 for ; Wed, 02 Dec 2026 02:27:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1796207248; x=1796812048; darn=lists.u-boot-project.org; 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:content-type; bh=tOdq42dAypeCTxCHACL0dix6t1pQ+mD1zFhRve1EJPo=; b=ZnqUkMyN5vjcKIepIpr9Ju1OAq1iqW7PQ51MxCMe4POcMpucJKzac/LkbXL/Zgh1Bw VbS9/4HmGWjw+84+AmN77+PtZnfu4ytzaNK63k1KzKD1C154hMgHZT6mUJ4vprRre1O8 u6J1TI+U7WCWXkN01TMkpL9eVlqsmBYVphdc8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207248; x=1796812048; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=tOdq42dAypeCTxCHACL0dix6t1pQ+mD1zFhRve1EJPo=; b=WYa7s5UjQwuukKe0RWh8RBQGgDwRpwGYjDxXGkefkNDZfHoRG0RxA9vwo8k/D6mM6/ aKbfodq6ToFqFZ9vvig8I+taVzU1G2T1amZHIDFLzGgd7e//j7DExW4KDvFmK6TSz5Qr h7wuZ4vbYwrZZI/DH9rqOcm1pAsKlbjvNG0dljrHt7ZCw2vNtBc05Vs+Gk0GW08TqzOa jzkQcawYcFukj9XfJu8OMBIWpB4+qK5eniezGmBWPpnArBvxR8miYYC2N/wI5X7xs1DH Weq5kd0hDZ18SJgj7mjqS6DTGDLIWnZr3vqvP9Z9uDPmKgkROx9buws2lPa7331s/3Rs YxIw== X-Gm-Message-State: APuU4Z9OCCGYy/jS0BqiD2WdpJPmvCSu0ZszKQ1PDWhukJge/ZRYAOIo KTcW448JW//iiF401ISM2ZT7nhDVd7VepQjCOv0pUEP+CiLCn/xI+P2ihzSTiwijx5u8cKQ8HnT /ZPPA X-Gm-Gg: AZFdTZfaysIEd7awzsLspB2qZWPdJo167cHEpQMJ6FWLUerQRaZcE2eB/dptqhFhlBn hhB99DQMvThRNKMPVjT3O9EgvRI43qBWROF3PGd2UYKnkT0c3QX+H00k/eth4w31caot3GqjLD6 rttYuOUEwaZZB3xuexLyYqEvTYZSOLkKdi6o34te8uUVkMynQUxt0SwG3q2HaxOm8jh1IdThwYx Ob+fd4kCSuih5cnBPDxJstERY1MXP7s9zqxisawx4bfXVluL1+us8493M3OLG5HSHUvDjZdEbxK NRtpG79EocGlfpdLxp4jfFCm15gZzpea2Ndq3oKoqriNmxSOVifEc1ncwjE5iMGKeANF4oYUQKE +3zKA47P6X8bQsSxTabtd1X+Oc55Qc8TrjpD2KLN7FnUM7G8fduNupn5w32taWgqBSeu+4v2F6f c0mVDoXfcW7Q3vNMLClBKRKScbcVC5kqZzmvO+xQVZrzMPNGffb6p3JHKOYeV04eOj8QmnGYH8u 6ErPOBC4GczyCnF8Bk1K9pjgKsfcP4iXJbBbeLk5TKA4KOzo4FjR1tVrDlMaejMCW0DnEQpaJCt nQvjYNNHVxPhuIjPH9Kpg21oTgE5Wh/fsGhglo79+B36b0xzsr9mPAiO50/Qn/L6nhmcp4/N8Ny l5LmfkoSNCxMJRP85NL4rVw== X-Received: by 2002:a05:600c:4e0e:b0:4a1:da58:1ee with SMTP id 5b1f17b1804b1-4bb88938dc9mr830150385e9.31.1796207247685; Wed, 02 Dec 2026 02:27:27 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:6962:3ebc:7df:e6bf]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbbaeb1e4csm366823865e9.13.2026.12.02.02.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:27:27 -0800 (PST) From: Dario Binacchi To: u-boot@lists.u-boot-project.org Cc: Heiko Schocher , linux-amarula@amarulasolutions.com, Peng Fan , simon.holesch@bshg.com, Marek Vasut , Valeriy.Yatsenko@bshg.com, Leonhard Hesse , michael@amarulasolutions.com, Miquel Raynal , Dario Binacchi , Fabio Estevam , Lukasz Majewski , "NXP i.MX U-Boot Team" , Stefano Babic , Tom Rini Subject: [PATCH v3 02/26] clk: imx8mn: register the main_axi, noc and gic clocks as critical Date: Wed, 2 Dec 2026 11:26:13 +0100 Message-ID: <20261202102716.572884-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261202102716.572884-1-dario.binacchi@amarulasolutions.com> References: <20261202102716.572884-1-dario.binacchi@amarulasolutions.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Michael Trimarchi The main_axi, noc and gic clocks feed the system interconnect and the interrupt controller, and must never be gated. Register them as critical, as Linux does, so that their parent PLLs are kept running. Their parents are not changed. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Say in the commit message that the parents are not changed Changes in v2: - Reword subject and commit message to describe the change - Fix the coding style of the new clocks drivers/clk/imx/clk-imx8mn.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 2dfa860bf375..56d44192e35e 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -29,10 +29,19 @@ static const char * const imx8mn_a53_sels[] = {"osc_24m", "arm_pll_out", "sys_pl "sys_pll2_1000m", "sys_pll1_800m", "sys_pll1_400m", "audio_pll1_out", "sys_pll3_out", }; +static const char * const imx8mn_noc_sels[] = {"osc_24m", "sys_pll1_800m", "sys_pll3_out", + "sys_pll2_1000m", "sys_pll2_500m", "audio_pll1_out", + "video_pll_out", "audio_pll2_out", }; + static const char * const imx8mn_ahb_sels[] = {"osc_24m", "sys_pll1_133m", "sys_pll1_800m", "sys_pll1_400m", "sys_pll2_125m", "sys_pll3_out", "audio_pll1_out", "video_pll_out", }; +static const char * const imx8mn_main_axi_sels[] = {"osc_24m", "sys_pll2_333m", "sys_pll1_800m", + "sys_pll2_250m", "sys_pll2_1000m", + "audio_pll1_out", "video_pll_out", + "sys_pll1_100m", }; + static const char * const imx8mn_enet_axi_sels[] = {"osc_24m", "sys_pll1_266m", "sys_pll1_800m", "sys_pll2_250m", "sys_pll2_200m", "audio_pll1_out", "video_pll_out", "sys_pll3_out", }; @@ -67,6 +76,10 @@ static const char * const imx8mn_usdhc2_sels[] = {"osc_24m", "sys_pll1_400m", "s "sys_pll2_500m", "sys_pll3_out", "sys_pll1_266m", "audio_pll2_out", "sys_pll1_100m", }; +static const char * const imx8mn_gic_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll1_40m", + "sys_pll2_100m", "sys_pll1_800m", "clk_ext2", + "clk_ext4", "audio_pll2_out", }; + #if CONFIG_IS_ENABLED(DM_SPI) static const char * const imx8mn_ecspi1_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll1_40m", "sys_pll1_160m", "sys_pll1_800m", "sys_pll3_out", @@ -302,6 +315,11 @@ static int imx8mn_clk_probe(struct udevice *dev) clk_dm(IMX8MN_CLK_IPG_ROOT, imx_clk_divider2(dev, "ipg_root", "ahb", base + 0x9080, 0, 1)); + /* BUS */ + clk_dm(IMX8MN_CLK_MAIN_AXI, + imx8m_clk_composite_critical(dev, "main_axi", + imx8mn_main_axi_sels, + base + 0x8800)); clk_dm(IMX8MN_CLK_ENET_AXI, imx8m_clk_composite(dev, "enet_axi", imx8mn_enet_axi_sels, base + 0x8880)); @@ -311,6 +329,9 @@ static int imx8mn_clk_probe(struct udevice *dev) base + 0x8900)); clk_dm(IMX8MN_CLK_USB_BUS, imx8m_clk_composite(dev, "usb_bus", imx8mn_usb_bus_sels, base + 0x8b80)); + clk_dm(IMX8MN_CLK_NOC, + imx8m_clk_composite_critical(dev, "noc", imx8mn_noc_sels, + base + 0x8d00)); /* IP */ clk_dm(IMX8MN_CLK_USDHC1, @@ -422,6 +443,10 @@ static int imx8mn_clk_probe(struct udevice *dev) imx_clk_gate4(dev, "pwm4_root_clk", "pwm4", base + 0x42b0, 0)); #endif + clk_dm(IMX8MN_CLK_GIC, + imx8m_clk_composite_critical(dev, "gic", imx8mn_gic_sels, + base + 0xb200)); + #if CONFIG_IS_ENABLED(DM_SPI) clk_dm(IMX8MN_CLK_ECSPI1, imx8m_clk_composite(dev, "ecspi1", imx8mn_ecspi1_sels, base + 0xb280)); -- 2.43.0