From patchwork Wed Nov 3 13:53:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 12600829 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 90312C433EF for ; Wed, 3 Nov 2021 13:54:59 +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 63EE5610FD for ; Wed, 3 Nov 2021 13:54:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 63EE5610FD 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=4GsGTXcuxAbaNcCbqyq8Or0W46aK8V+jwnsr3ZsI4jE=; b=TCZGaAMwBn/NVd t5rCjO7wzAK44vjDBn/9brgROWcd+wMYuEhg6Tyh32NaXm/9r+xZkUwjmtWm+B97P+kyFd17rqgDv WRGF64/K+n9UHEgktekz9iRMI4ZwXS+RjNnvGfnRaPS4qlCIICDDDNtdGVxLYjkNqK0QPZODjy+i+ DJre2p0F41LZilFRtz8UYQ853mSpYynOR1+oDA3HKOvral3kymaTE0sNdr+GXOWQmeIvFQJSS62Tw FvkNlAyFB9xd7rXaG/OEagmQO2v5SKNN6aRpvjT9VCNOZDcSglkhvS9yyh+UXhPBKjP9nYHTMCSVu XExLpJksPAajuhbSzPhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miGhk-005MiJ-CR; Wed, 03 Nov 2021 13:53:28 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miGhh-005MhP-7A for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 13:53:26 +0000 Received: by mail-ed1-x533.google.com with SMTP id 5so9414108edw.7 for ; Wed, 03 Nov 2021 06:53:24 -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=dfUFmaE5TGftvuGL4qHxLuZZEptBzH+lcqE9KzsoXGM=; b=Jf1azWXHQGcZ+fZtVcffWmqE0TjjnOeYCBc6wWasWhsJPS+EyIlCb+E7Y2AVfH5ice J6OEjjELuwDgG1shxFq3RdyWucjescEqudtEDZBi6RbslrXYeluaIONomAzItMs50tZM R5ylYvz26n2YGNFk59UgnmDxpzF1yEKtQyYiEQ3vgNQzD2FM0VNcgSeV/zzgT0C/3bIL zVNfro6OK/cQz+Mp6Tas727z4AbqVHjfM+jaMREDMk0ypEcZtJ4WKrS3w8Xft0FuNT3t Bn5Ugdo9BQjKZBfFMoZb6FNo9DIjAov+k/NTsj5K4vlCJnZrE82g4iK7GcXRgCcoVcix H6ag== 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=dfUFmaE5TGftvuGL4qHxLuZZEptBzH+lcqE9KzsoXGM=; b=Ipxw8WGGTvoqYAM1HcoQoVEeHWZNuXs/8XTR0rkX24btUsDhQdP7RZuKis9Ce5z8NO kLji5CpJ5vA3od9vHWoon+bbLHBZRD0vILprsS2XNKJsewysoqGsUreodSd0jSymaozy nQg9LiR0Yv5XFi9gzu6AeJkqo/YdLHUdxAQcMC8DIMHEwX37TUbXsmc7lRgw0cmaFJLs X7ias0XhnSGfAytCqWQM4/Haf9Ygolu/0U99Jrf6LIQiPbftOLF8w8TD+6M6kB5xhJKh 2j+ikFSrEpezVGlpTW6plH1rxKG1lQtlQOIFXnjiiY/vJuVCyzlRvz97Zjk7O/RDkCDO 4RgA== X-Gm-Message-State: AOAM533LinR5RIG3/Yl9LIUNTp7yEJbQ6Z5xkmRn0eQxjgZ67l2p1A0r NjhWSmd0JDRfBQXgS15clAM= X-Google-Smtp-Source: ABdhPJw4gowrGcHdX8t8zp8CVWwIrlYyg4ac+gAgxzIynDCzNMXgKm9Rk1nbNF17m7KktWbyFJvCiA== X-Received: by 2002:a05:6402:438f:: with SMTP id o15mr197151edc.235.1635947597131; Wed, 03 Nov 2021 06:53:17 -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 g10sm1341017edr.56.2021.11.03.06.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 06:53:16 -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 , Frieder Schrempf , Alice Guo , Peng Fan , Adam Ford , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: imx8mm: Add NOC node Date: Wed, 3 Nov 2021 14:53:11 +0100 Message-Id: <20211103135313.6428-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_065325_294801_878EA065 X-CRM114-Status: GOOD ( 11.66 ) 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 --- Changes since v1: - Fix noc_opp_table frequencies taking NXP bsp as reference - Add reference link to nxp imx8mm dtsi on commit body 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>;