From patchwork Thu Nov 4 08:56:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 12602755 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 48580C433F5 for ; Thu, 4 Nov 2021 08:58:13 +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 18FC56112E for ; Thu, 4 Nov 2021 08:58:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 18FC56112E 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=nudEz7uIOo389oWYUK/YD2cn5BnfdBsIKmxQ6LYTRi0=; b=nUw0pWb1o9INc0 jByXFbE5pStfVUYOzw9muOCvPKstKBaP1IXCg8RT86WSIwEG/Y5yvOJbhbCwEF0+z4+cx0Zq/aBVP HdnFfwJm1E9rikB9UvnkTShwZzId3HsrcPBrcRvY2FVfLr+ix5n9t0g1qz/S1J29s9NolGnDczTXu 6P0G0Cs/h8hev5zgzS0frstB6RNvVzGQQjAh03d2eY8+k77zI1+pmVNSRmhJylb+zhEUqC1FDWLUo fUSUz/96H7To5+ki9f/kIeGQiJzWaDorFvtAiQsmWC5z7XiMjTdJdCMxYFlaRwplmNRDrZ8+Z4Nrr XUh5ZEleqTYWG+WwaUlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miYYF-008Nqc-RE; Thu, 04 Nov 2021 08:56:52 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miYYA-008Nox-0x for linux-arm-kernel@lists.infradead.org; Thu, 04 Nov 2021 08:56:47 +0000 Received: by mail-ed1-x52e.google.com with SMTP id ee33so18881866edb.8 for ; Thu, 04 Nov 2021 01:56:45 -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=pVKKVOY8NO+dksMBPuUmTHd9F3MhTNHBaA8ZGUBvIsE=; b=ePw9SbEQmydKhkGRQnzd5dMcFnGihRyF6TUTYBb78WBqUiqHD41qxHbHrKcmgCBXeE alBVmD/WqQeeOCR+/4mQd4kkPsa1s+EL40vOYlz1aVQg3GPl0foJTL7BNQxu+/gt9Ogq YI1nYZuqROuiJC+xKiAbZMhrV27Iqr1c2CPUyG5jgvVp/rRv/8yXjAXibkmlki/8nPzd 2RjcNg6ijW7hJdAZ6uS6GD7J8ZNo8EEM5xQH/tsZUKezKyPPgiQR3AouvP2MCiQgwuxB 4ZzzucqzsdrJl91h4wFVO1e0w7gYnbCw6b7AWc0BDmE9pgPhRrvVDWE942aoIRUI/mC8 1jaw== 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=pVKKVOY8NO+dksMBPuUmTHd9F3MhTNHBaA8ZGUBvIsE=; b=EO3U8vTnUd91dzhqhAuUqWn5AajlY4a0LvBuviz4IPtpSDgDlXSnp6kURjB2BlEahY L24px2W3D4kvo+a8T52NarZR2PHbnqwML6uqtKGXs5w68t37VWxPAE5pLbV3z7pNyXgq 25tOBvvaBT02uj/BTIqmXJNZg6OEu3SAiOw+5TUKMaZU8pSjkp7rwBhwb6gF3FAvuV2o HzUSuI59opLiBwMbawNH1TBBuW103s7qieYRGNr0pqzd8b1ZtX9fCpj1+LsI6tm/Ub8m 4i34pLxZCs9dvuJ7/1Y4178HelRKSxnvo/6QkYhapg+LQAFtvmwT3veu+K+hNwcTUCwG RyaQ== X-Gm-Message-State: AOAM53137vWV6V+etrzrABQKxZdKNdi07tCJf470BPXoVQ7lP9xxa9Iw Bu+fqZN7BCG8nkOEyD/HXApsYFzFQpQ= X-Google-Smtp-Source: ABdhPJwUmmZnpPOMtvLLQ4kgiyIKN0WRmq2IFjg3vGd3qXOTP5qbyWv6+FmKDXcF5hLdaxLibCDkxA== X-Received: by 2002:a17:907:6e1c:: with SMTP id sd28mr28734479ejc.28.1636016204095; Thu, 04 Nov 2021 01:56:44 -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 dt4sm2360756ejb.27.2021.11.04.01.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 01:56:43 -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 , Alice Guo , Peng Fan , Marek Vasut , Adam Ford , Frieder Schrempf , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] arm64: dts: imx8mm: Add NOC node Date: Thu, 4 Nov 2021 09:56:17 +0100 Message-Id: <20211104085620.6048-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-20211104_015646_103879_B438B30A X-CRM114-Status: GOOD ( 12.29 ) 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 - https://source.codeaurora.org/external/imx/linux-imx/tree/arch/ \ arm64/boot/dts/freescale/imx8mm.dtsi?h=lf-5.10.y Signed-off-by: Tommaso Merciai --- Changes since v1: - Fix noc_opp_table frequencies taking NXP bsp as reference - Add reference link to nxp imx8mm dtsi on commit body Changes since v2: - Add missing signed-off line 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..1bcc5e361ca3 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-150M { + opp-hz = /bits/ 64 <150000000>; + }; + + opp-375M { + opp-hz = /bits/ 64 <375000000>; + }; + + opp-750M { + opp-hz = /bits/ 64 <750000000>; + }; + }; + }; + aips2: bus@30400000 { compatible = "fsl,aips-bus", "simple-bus"; reg = <0x30400000 0x400000>;