From patchwork Wed Nov 3 12:43:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 12600763 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA07CC433EF for ; Wed, 3 Nov 2021 12:45:05 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 76496610A8 for ; Wed, 3 Nov 2021 12:45:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 76496610A8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=BUOn+gYBayEUDYZ2HqAgM7etu8lRl3HqhrXOLif+EjA=; b=vFoAgICJyFh3kn MSsrm2eTOKQimrzBrmZ4sOTm046J3lwlnMjGt1UOaWWBazH0uXmID3fzzbwlg/RLLnr2RMOULvyWI WRwS1uVHQbb7y07z/IVAGgMql5N3QSmSgeA2J2k38bNzX0wVwN7cP4IZ/9C/KG6r2sDrdoOoVw8+G 0NjMrFEJyg3b8PkydYOf333JiHtK1VminhDS/+1q9Aczg/sLmLDgvOh7vWYzGyjqxXLAsdpqAR9+O nroIWo9toeahpeQn8nD1kkUt6b/IcaOpfzV/eonWlti+j+RW4qEH42Wn6NRBfoUH0J7XKq53ssrJg C/RmbRCWtgRuQ5O/Oy9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miFcD-005E3f-0t; Wed, 03 Nov 2021 12:43:41 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miFc8-005E2W-U4 for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 12:43:38 +0000 Received: by mail-ed1-x52a.google.com with SMTP id j21so8654578edt.11 for ; Wed, 03 Nov 2021 05:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ey+fmLtSC3uA15+54mAlN3+tzxLtFpUl71/u/YpV0Hw=; b=jh7UPCWDOBlGo8Kf5bYTauwH5U0iGi94Muyfdy69Sy7kl+dE/oU0Z1dbLeDaXGycTj 1D63K3nxDdlxEMiYSyRLJmwPqfF80h3ERqQ0XWc9W5CUmqW84EIhlHX+TCxy9keZq4FX gbWBXoFsx9iV3N0ACOs6VvGVPg/0K7GYENveonTxMVZNQwgGNrkROeNGREvfKyaqwR4G cGUNxs7TutuklCzr8clJJLM/I2rmwW1Cc0gJ9pNBNy0HFMFAqMRFctHOzctOevH5p49o vGhikcaJ+rJEBhk+FwkhmLrSSNq7gaVQm1TsMSHCuJVjNQ9UMgg4NoYOV1Kuq6umD4UV s2EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ey+fmLtSC3uA15+54mAlN3+tzxLtFpUl71/u/YpV0Hw=; b=y05FCq7LVBTpiPB3jgGq0dfVbncR/AZfNG9/w+1mA0UiP4dXSWSNlRAWhldvB5yIxm ReBBvwItBWpK8eWVecPUBqc8+xE1RqXiAqVVDarbKPXC6H1g/H6Al26yoq3dPlYkvUO9 EwEqjESg4fPHxr/a97jDcKbP9ZgJh1aZ71HG+DI7pxg29dIliCbVff/iCDOfmoB8h6PE ErXO2esWd+nxPfJsaADq9hqdRJ07VQ6GyU0G6HfrLcDbULhzmSRsxAh/wX8cTfRM4AIE 30oKKkYfXSQfpT56/irUD6Fjiar96WA5Mgu8ONHcUhCcufQus/eRiWcDvz5mtpc17GWj iBnQ== X-Gm-Message-State: AOAM532TiSI/h11ZpEz8asFdepYuvUOyG8pSs8G8XNbAIPGJW3nzo883 NVQJpax/0NdjBtYopujiCK4= X-Google-Smtp-Source: ABdhPJw0qOYJliPBxMwJVO0Dogvbir+w/I0cZJInh/6RvAaQWlYXkfBBJWHDEALgAHnLKVQqPAHrGA== X-Received: by 2002:a50:9ee3:: with SMTP id a90mr54603729edf.224.1635943415520; Wed, 03 Nov 2021 05:43:35 -0700 (PDT) Received: from tom-desktop.station (net-188-153-110-208.cust.vodafonedsl.it. [188.153.110.208]) by smtp.gmail.com with ESMTPSA id lb12sm1097829ejc.28.2021.11.03.05.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 05:43:34 -0700 (PDT) From: Tommaso Merciai To: Cc: tomm.merciai@gmail.com, Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , Joakim Zhang , Krzysztof Kozlowski , Frieder Schrempf , Peng Fan , Alice Guo , Adam Ford , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mm: Add NOC node Date: Wed, 3 Nov 2021 13:43:28 +0100 Message-Id: <20211103124329.171124-1-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211103_054336_988506_B1961B08 X-CRM114-Status: GOOD ( 11.27 ) 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 Add support for dynamic frequency scaling of the main NOC configuration on imx8mm. References: - i.MX 8M Mini Applications Processor RM, Rev. 3, 11/2020 - f18e6d573b80 arm64: dts: imx8mq: Add NOC node - 912b9dacf3f0 arm64: dts: imx8mq: increase NOC clock to 800 MHz --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index c2f3f118f82e..c5f64abcecff 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -719,6 +719,31 @@ pgc_mipi: power-domain@11 { }; }; + noc: interconnect@32700000 { + compatible = "fsl,imx8mm-noc", "fsl,imx8m-noc"; + reg = <0x32700000 0x100000>; + clocks = <&clk IMX8MM_CLK_NOC>; + fsl,ddrc = <&ddrc>; + #interconnect-cells = <1>; + operating-points-v2 = <&noc_opp_table>; + + noc_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-133M { + opp-hz = /bits/ 64 <133333333>; + }; + + opp-400M { + opp-hz = /bits/ 64 <400000000>; + }; + + opp-800M { + opp-hz = /bits/ 64 <800000000>; + }; + }; + }; + aips2: bus@30400000 { compatible = "fsl,aips-bus", "simple-bus"; reg = <0x30400000 0x400000>;