Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp258134pxu; Thu, 7 Jan 2021 04:21:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwinJvVhEyWlZ9P82Ea1xsQXszq6sXc/lYgaLY520AHhbmHKgAmrxi/UOTEUejcYmmUaOVI X-Received: by 2002:a17:906:f0c9:: with SMTP id dk9mr6175031ejb.51.1610022061760; Thu, 07 Jan 2021 04:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610022061; cv=none; d=google.com; s=arc-20160816; b=YAoCq4361xjL4h5GrFg5Up35y5nB4iPJBQrG1sX3mUBnzKboC7bmER3ASPoHh9m3hd WKXxQpjVCATLv+UNWfEkHXtjwMAOADH2oq7GuZyGjtbJezoD8hpHa+NuPStOs+fZrWgP 3aHRo0qfo7jBiLXUI7WreR2B58GoBvKYf9Hi2cxNhQdNFw+K3UKeNbcxR38JjzxuoQh4 tg0lCTU4A2bjtQzVdXB7fbgtq0P1ppv42hoQ90Z0/C17HVUSMn5j4M7olVSpzxGDtECe qOm8yMaVr04QWHfcJToRgApjK1ewRXnEkIHVmi/jypcsa/MgzNqmmURtvVGUlTqgtkd9 cthA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from; bh=LXt+nCmW9WpXdNshkQM52az2d3/mcVhhV6N+Fqc0Vxs=; b=ckj3623YArConTOHOcjYjz4h0v584dCuwNtKSB05poKefx//+k3axdfSK1MUMXHKGm UKhhTGenUbvhoj8KGXkh/UL0JXx8pk0wmA1SwA1gxtpWqYJE1riIUMsa8nKNmRAXmlKY n2Ho2UgEIQKeAdKA86XPP+RKW5lgmrznf8L+rYazZGCPFZcVFFg4M+g1jvcjs7wwTT0p BWctwmBPCWImPiLgGlpsCZwod7n3GyhZr0rauSpgP6Efl/rKKwaKtJ4JiKEYh2AjtnkA JuyRO9smYh5YyxBsq1ZoAeeRU+fjYA4aShv916r7S9eiimXgTAbOL35vce3JLNT9Z7DE Pajw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si2221441ede.192.2021.01.07.04.20.38; Thu, 07 Jan 2021 04:21:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727910AbhAGMTH (ORCPT + 99 others); Thu, 7 Jan 2021 07:19:07 -0500 Received: from comms.puri.sm ([159.203.221.185]:43920 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbhAGMTH (ORCPT ); Thu, 7 Jan 2021 07:19:07 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id A5CB3E20F7; Thu, 7 Jan 2021 04:18:26 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vacq4ajD9Ilv; Thu, 7 Jan 2021 04:18:25 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, georgi.djakov@linaro.org, cdleonard@gmail.com, gregkh@linuxfoundation.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Leonard Crestez , Martin Kepplinger Subject: [PATCH v4 1/5] arm64: dts: imx8mq: Add NOC node Date: Thu, 7 Jan 2021 13:17:50 +0100 Message-Id: <20210107121754.3295-2-martin.kepplinger@puri.sm> In-Reply-To: <20210107121754.3295-1-martin.kepplinger@puri.sm> References: <20210107121754.3295-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leonard Crestez Add initial support for dynamic frequency scaling of the main NOC on imx8mq. Make DDRC the parent of the NOC (using passive governor) so that the main NOC is automatically scaled together with DDRC by default. Support for proactive scaling via interconnect will come on top. Signed-off-by: Leonard Crestez Signed-off-by: Martin Kepplinger Acked-by: Georgi Djakov --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index a841a023e8e0..dbe480a76aa1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1158,6 +1158,30 @@ }; }; + noc: interconnect@32700000 { + compatible = "fsl,imx8mq-noc", "fsl,imx8m-noc"; + reg = <0x32700000 0x100000>; + clocks = <&clk IMX8MQ_CLK_NOC>; + fsl,ddrc = <&ddrc>; + 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>; + }; + }; + }; + bus@32c00000 { /* AIPS4 */ compatible = "fsl,aips-bus", "simple-bus"; reg = <0x32c00000 0x400000>; -- 2.20.1