Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp2043385pxb; Mon, 13 Sep 2021 10:40:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxly0DvMQs9EfR/59RlV7ReknmOxQ3s12WASMEQoTnSp0wubj4MLQF8tUyfM3KdpEgZQ34e X-Received: by 2002:a17:906:4093:: with SMTP id u19mr13764975ejj.110.1631554840016; Mon, 13 Sep 2021 10:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631554840; cv=none; d=google.com; s=arc-20160816; b=tbr2Z877F4q7x5G5LLZBVrwZ97Rfpr18Hi6dVJ8ezxrTq7e/Km/ymghAmP1l4oJqWL 58VnAwrDqKeWqpdC/XeKZ41Od0HOq8+Wz3WURQlcTUkldlHyzU67KMk/AZ4TTwfR4sQy 2E0WGOD7fPlF4cm6rJARWqscbPQ3iZCDpRqfuImqncPzQ6buSYA8YQ3MhdQtykknRyoO O9lJ/sp377XGfnIcZfiNA/lleGkKj7WizVlo6O3/n9XAS3g7Qa/ZjXu6aqOOHXQQvdYz tJNQlttrWoZshj5FJxAfgh0adXlVd9L3mXm9AiByT+NILgJcpccQpZK/GM21+Wl5HnZ/ SFfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=mEFXm+yQ60ATcmKxQyt1n+1c/eLM7uPK3BBxwCbFivU=; b=c/G4Ct4iHchtdhKNFgIbvlWLy1HgSGkJz+E6nWdLdp/phAqnETFdFuKSG0I0azepO5 XUSIzPcBo8Rl/kHlbwZ3xoxYGOlKPHuqyCio20VAUraNxzlpQth55qEDvhbCrinmGTkQ jReH24cFfoUD++J9ejlgaXbXeP6gkT4mONOX851QNd4LR38ymt+bDothTCDymubzPEYp bKo25w1f1tUTTT1Ee6LhbqgvCpgKFJoTpuhpNV96Kyi6CCgGoFI5G0cEfJYis6Cdqikm MJTeF98JJdKRrJ0bDYsmZX8Qx4DY9UPYHAoCt2n3DsWD4CcVFZ2E4mcxP6mRXbUTxW9a +XLQ== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si8364732ejo.29.2021.09.13.10.40.14; Mon, 13 Sep 2021 10:40:39 -0700 (PDT) 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243757AbhIMRjk (ORCPT + 99 others); Mon, 13 Sep 2021 13:39:40 -0400 Received: from inva021.nxp.com ([92.121.34.21]:58644 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242897AbhIMRjj (ORCPT ); Mon, 13 Sep 2021 13:39:39 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 60EB22005D8; Mon, 13 Sep 2021 19:38:22 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 530CD2005AC; Mon, 13 Sep 2021 19:38:22 +0200 (CEST) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 812EA20363; Mon, 13 Sep 2021 19:38:21 +0200 (CEST) From: Abel Vesa To: Rob Herring , Dong Aisheng , Shawn Guo , Sascha Hauer , Fabio Estevam , "catalin.marinas@arm.com" , Will Deacon , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Adrian Hunter , Ulf Hansson , Ahmad Fatoum Cc: Pengutronix Kernel Team , linux-serial@vger.kernel.org, NXP Linux Team , Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Abel Vesa Subject: [RFC 00/19] Add interconnect and devfreq support for i.MX8MQ Date: Mon, 13 Sep 2021 20:37:55 +0300 Message-Id: <1631554694-9599-1-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In vendor tree there is something called busfreq but it is non-upstreamable. This approach with interconnect+devfreq gives us the same functionality by using already upstream and mature subsystems. This series is more of a proof-of-concept. Abel Vesa (19): dt-bindings: interconnect: imx8mq: Add missing pl301 and SAI ids devfreq: imx-bus: Switch governor to powersave devfreq: imx-bus: Decouple imx-bus from icc made devfreq: imx8m-ddrc: Change governor to powersave devfreq: imx8m-ddrc: Use the opps acquired from EL3 devfreq: imx8m-ddrc: Add late system sleep PM ops interconnect: imx: Switch from imx_icc_node_adj_desc to fsl,icc-id node assignment interconnect: imx8: Remove the imx_icc_node_adj_desc interconnect: imx8mq: Add the pl301_per_m and pl301_wakeup nodes and subnodes interconnect: imx8mq: Add of_match_table interconnect: imx: Add imx_icc_get_bw and imx_icc_aggregate functions arm64: dts: imx8mq: Add fsl,icc-id property to ddrc node arm64: dts: imx8mq: Add fsl,icc-id to noc node arm64: dts: imx8mq: Add all pl301 nodes arm64: dts: imx8mq: Add the interconnect node arm64: dts: imx8mq: Add interconnect properties to icc consumer nodes net: ethernet: fec_main: Add interconnect support mmc: sdhci-esdhc-imx: Add interconnect support arm64: defconfig: Add necessary configs for icc+devfreq on i.MX8MQ arch/arm64/boot/dts/freescale/imx8mq.dtsi | 222 +++++++++++++++++++++- arch/arm64/configs/defconfig | 9 +- drivers/devfreq/imx-bus.c | 42 +--- drivers/devfreq/imx8m-ddrc.c | 78 +++----- drivers/interconnect/imx/imx.c | 92 +++++---- drivers/interconnect/imx/imx.h | 19 +- drivers/interconnect/imx/imx8mm.c | 32 +--- drivers/interconnect/imx/imx8mn.c | 28 +-- drivers/interconnect/imx/imx8mq.c | 59 +++--- drivers/mmc/host/sdhci-esdhc-imx.c | 27 +++ drivers/net/ethernet/freescale/fec.h | 3 + drivers/net/ethernet/freescale/fec_main.c | 19 ++ include/dt-bindings/interconnect/imx8mq.h | 9 + 13 files changed, 422 insertions(+), 217 deletions(-) -- 2.31.1