From patchwork Sat Jan 1 15:52:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12702101 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 8D928C433FE for ; Sat, 1 Jan 2022 15:55:10 +0000 (UTC) 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=aZQre8WqRrKALZXeSPg+dTRogaFeQmNV3RQWDN6quTw=; b=tG8ZDgo7FVJ85R chJOzVr+EedyCEc+3w1sBsjnuashTeQBGqgopXS/8KSEk00tPZeHvd6sM7X/irkAPAkgRtkkODu+l bNCh9AS3tV8X8wIGL+A6g+9aEIW23iAsQqab7Gb8EgU7MCAozdap7RK/4BDDh8jcRm3T8YCj4rUrq CyjhKRw7weZXa8ZeKqBfL/ZwMvRld4p7yHFsroT2aCpko4ZDQE0iNMKgmLyX93u+GS/322ZerPr+z kP/eVy6TNcGC1TwMcY6PQQT5CPo9xJAqXhH8uEKKnZ3Uk22a8/xXyWm19jO3kmx3o2DON/XFl3Oxg nr22O3iIjb8bfu0Z3uqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n3gh0-0079cY-8r; Sat, 01 Jan 2022 15:53:14 +0000 Received: from mail-eopbgr00084.outbound.protection.outlook.com ([40.107.0.84] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n3ggw-0079ax-Hv for linux-arm-kernel@lists.infradead.org; Sat, 01 Jan 2022 15:53:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iNUTxKzKxxim9S3JgCoStrG7zwbTlRK5zsJmdXhgBCv7Q4i0DyKZKIFHqbjLrefdOtUNKvR3mY3yO7HRUC6D8Xpq2aEXFxKbfu5izcui3HNGZ3qqf9AxFMZjxcVgnwzMwzQ1hefjd7oeFEOWnQ6dH+aEbwr+ks1jeSAnR23W/lgAie9W4ePbq0a9IjMS7Z+OFdoNg8jH/+yyvmn8vckyzoi6Y9x9ZIWhWSvxBvI9orsvNcoXohrVRjYp3mhYkY7SzV4G8BQPR4Rk4mq3wqQ927ESe6rom3gQJ+5TUfdKk6p2ahYCCZ/WXSDcCJ1CndvgZYSRvbsxcK9c80f8p3hMXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UgNjz+O8hwfEvWjFsZd2UP50SV2XuyTPksBEuhMMz9Q=; b=KbwZlwSYH6qT9cqAi2rhpa03nTR06MRZoELdmw/1f3JHqTsf9kiuHBektcVUXrNoy+AaCiuHL+DprdvO78b5tpqJux6Q1DeS8meXZAwpGeihZxQeJ/FQVtRct0pYKurzeI4vjp0dpdT6+/fIV4ngHa9ny56iIyo2ShKynH4Q8aO755jnBY7DIpAxcFENMaQvP+BnDGTKPlCmP67XCdjAbMv0kfpMcHi9YuSCm0xm7s+MJKM+mzh/8HqtkM9jrAHSPFa0flpkOhW8BWJNv9Z7bTi1AwBksr6AycP52ntDvbWZth38vvszhHeBtl2BcdUTNsPONRH5NyyCrNCMfIYrog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UgNjz+O8hwfEvWjFsZd2UP50SV2XuyTPksBEuhMMz9Q=; b=f+1R/ZNrFYVw/S8myYR+b26tsd1R4D0J73IajfKVFF3iOm/lubr3LzrvOfX7QGHq/C+5P0i19zVGtBvRwbG9yyN1RJ2pGo3HLydCeVGAJNJ+lAKYm4RoCYsj6HPDvdYpyYsxXTCsRjoRr2KYgDajSty+LQ1NFQuyhjvKJ+kIAwI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) by VE1PR04MB7471.eurprd04.prod.outlook.com (2603:10a6:800:1a7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14; Sat, 1 Jan 2022 15:53:01 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::4c4c:f2b2:addb:841]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::4c4c:f2b2:addb:841%6]) with mapi id 15.20.4844.015; Sat, 1 Jan 2022 15:53:01 +0000 From: Abel Vesa To: Georgi Djakov , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Pengutronix Kernel Team , NXP Linux Team , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List Subject: [PATCH 1/3] interconnect: imx: Switch from imx_icc_node_adj_desc to fsl, icc-id node assignment Date: Sat, 1 Jan 2022 17:52:43 +0200 Message-Id: <20220101155245.3139667-1-abel.vesa@nxp.com> X-Mailer: git-send-email 2.31.1 X-ClientProxiedBy: VI1PR09CA0084.eurprd09.prod.outlook.com (2603:10a6:802:29::28) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e3e9d053-ef78-47da-94e4-08d9cd3ec9c6 X-MS-TrafficTypeDiagnostic: VE1PR04MB7471:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:541; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BPtM06VuBGEOzekTb/TejEtve4Rqu3EJ5g7mVCgJW5ApBmHHyvaXWDXxbVwEku2FSnrlfZgiKaCGeU9ULAudTIARMCP2Sbv5D5KgpufKrFCm2LiSdRM6pvJNC99rA5ygAk7xO5ZEG997tvM9ltMryacSjvoMujYYyu1OC0GNUREVBC5WDhmBBg0fyPXJpg9ZckvjTKJeB6A6KBFa7x3NAjO5xRz1YSPiS2t1PfiHEwvQ3FIcgtV1eIr2acCaCaxvn6UlcvsS3TUB+btXUvGkeOLExy5f6eJROsrqCeYPbXeru8W8j3aXjo/vzIzWCQDZiFWnZYbL4uL6Ddx5OrTemcq3UM/A2ZnpUS1k75dHb7kq+wshR8DHmkZInObn7mf0tSKinMKvUfxU+FTVA62YuGHHenD12aBUVTskXRRvZqcdNldUV2d15ZUQypeJFnOdR1+vd328JATyCZz8GfOVd4ukBCbfvf/ftTYyJMHIXznm12Epog8st6vkmtCRzhIHNB0rEq9o79CqXnkDngfh/rRwAHKDvFz9tsGMamoedJjpJWyh2w6+fhSPq5MyUf9qJHeqy0R93rLo4wH8tqh0uIXryijNtP/4N7XdLm/GdWauFdI4C3YjLLr1drBDzmJ6mVw5bh+oBSTnpcuGnxrl4pQ2+hZwce8/vDt6PIq67hVGrqKRUbr2Wwt1d9hsmV5ZtNwHv+LZpoyqAEW90ayCGA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB4688.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66476007)(4326008)(66946007)(2616005)(52116002)(316002)(186003)(26005)(83380400001)(38350700002)(66556008)(38100700002)(5660300002)(1076003)(6666004)(110136005)(2906002)(36756003)(44832011)(8936002)(54906003)(508600001)(8676002)(86362001)(6506007)(6486002)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kVv/aAZbq3OwehEZgYx337qOsjhOvfDNkaG3M7SqW5W9vRhR+nQfZeS8vD8DzSK+xWIDZqOvNIP6kb7EK7sFeEKPyR8DB98eBXvpC1LymlAMjn0xZxWhMbG/BbTesDD3d675wNsodxapMxGC8G0XqnQH1lnyzs2ZD3DerO0jra1zPjTXfAJ8eAB+JveHy3dmUunYmawb1rnkCAHEWlg4f2dYUZesGWUL8ACAzMPfUswpgBSUBmXn6Ck8+g5mx+bAe3Bbpl07qTmp5P/Mvp458AfwnpnjhBTlY/KD/FjgcZfU7dGguoSoLNehbUwxdk96igVMdQEQEHkXa5A27nVQI1+XlFrc2+g04/gaHUVvy9yjuFszGCyVU71pGizZrlzbkR3S1agDd4QgFsKNDfEOIHOjgx11JbTwkr3NE8kRS4F/dThJLPBvk6094sjWY9woUtdhmF2Pxa5MN03jJQJ5YqSA8lx0ovLq/cpwN4vCxPEHJMnZ7tnNAvpt7hpx4rCGNmOlVmLwoE3wKChMD4/zBk/QRgwuXI2TGEv53WuyafM1txSQsuzyc1C3yeEiNnD7Kygc91j7ij2qG7v8DE+z2IH3K98QvOA/Gpi6tZ0nmw8vIa8DayYfUNvdwxhi3PctzPro5KgMHbW6i57sJwJ0F05FglU2GoMN/FcCeXmLRbhH0o22rcFg/9VL5FgdyfoIgZQj92yWCca3YEwxQb/6t1s4XPjSi9q+6/3cIFrgTk6T+Bnqn3esalQVrwG+1DXrBZ3FK8sZGRn10HLHCjhEJIf3WQlY8s7JhxNthmWCsUrJydi/Ep+Q8S21wEvaQc5hv6HIID5YnhybRomHoW2aINMrrxYoxI47guk+vD7Tll1O+Osez9gI5lahBB9S9O0cIxBU4F3F9DywtrZPNDdKwJR+1sg6tbSAuXYt6tsbV9pnzEDZH50vd/VcZhjKUFmAG7eJ8b4s35jSxovxCvjUeEbh7EW6CI7+u8v4PxqNelz09pu+EaZwB9H8/KzSv81pkci8xdNdYyxvWse8ah9ufxpgTbxl4eVNDkXXR2hzOoWoDsds9o3/9JiK7y7pMv5ZqIiao/YTAbKCTcJIAsD8fhQRNGd1mt3yFCm2SIcDxtkZTeRCJlVAqb7gNg2O7AeN4059liVbtolRtIsHpuD8nn3a3ThbiIiPxs3QW3Et7r2nsOaSvqz1rhCYZwcbQnXPOr9VjUU1s6C3XgRmdnfM/cRZ07POqiiszKT0Jenmzdtl3JKHc6YNFgtXcWlMbtPIzMUA06Otj5ZCcAfCoWiVThbyf7eDUc8Yj/25rwUGmjD04R3G+0xh6TMOIZ9ylgSlBemG/eNyPUup6OGswS0LMOeal51vDPYRijCCGcU1j6o7sm+xpXdQKjFxM92eRzYIf0HRmsLWZS8jl+4hHs0LGh/8i0v59YWflYdQ/E86xcztgbTlvLH+n2GbuSuXXt6/kEU7thyMAKlIC2JU89/yG3rEHCAv8g3Bpl6vf6HVlWJmToJXND8SAEPqpdfZNDtpMk3zJgM0yrMiwDcosoFJrp4bElZMu9fhwl00X/15uU/WCVnN56gDt6eML1DK5spDnqrNbMT2wF/cGqkyoDixlTqpDwmwf6HITqXARFZdvKo= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3e9d053-ef78-47da-94e4-08d9cd3ec9c6 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4688.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2022 15:53:01.1604 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +LNnFRSXpZSLIzDpJ+lppBcVmzltZSqRRWeQaptjrsboP2NaR4OKRbE27vPUy2bje5s2UXrD4uo2940M8eboFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7471 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220101_075310_643557_517150F4 X-CRM114-Status: GOOD ( 18.87 ) 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 In order to be able to have more than one NoCs in the interconnect net we need to decouple the NoC from the dram. So instead of using the imx_icc_node_adj_desc, we use the fsl,icc-id property that is in each NoC (or pl301) to the icc node (based on the id) to it. Along with all the NoC and pl301 nodes in the dts we will have a interconnect dedicated node. This node will be the actual device of the icc provider. Signed-off-by: Abel Vesa --- drivers/interconnect/imx/imx.c | 70 +++++++++++++++------------------- 1 file changed, 31 insertions(+), 39 deletions(-) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index c770951a909c..34bfc7936387 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -34,8 +34,8 @@ static int imx_icc_node_set(struct icc_node *node) if (!node_data->qos_dev) return 0; - freq = (node->avg_bw + node->peak_bw) * node_data->desc->adj->bw_mul; - do_div(freq, node_data->desc->adj->bw_div); + freq = max(node->avg_bw, node->peak_bw); + dev_dbg(dev, "node %s device %s avg_bw %ukBps peak_bw %ukBps min_freq %llukHz\n", node->name, dev_name(node_data->qos_dev), node->avg_bw, node->peak_bw, freq); @@ -79,41 +79,35 @@ static int imx_icc_node_init_qos(struct icc_provider *provider, struct icc_node *node) { struct imx_icc_node *node_data = node->data; - const struct imx_icc_node_adj_desc *adj = node_data->desc->adj; struct device *dev = provider->dev; - struct device_node *dn = NULL; struct platform_device *pdev; + struct device_node *np = NULL, *dn = NULL; + int idx; - if (adj->main_noc) { - node_data->qos_dev = dev; - dev_dbg(dev, "icc node %s[%d] is main noc itself\n", - node->name, node->id); - } else { - dn = of_parse_phandle(dev->of_node, adj->phandle_name, 0); - if (!dn) { - dev_warn(dev, "Failed to parse %s\n", - adj->phandle_name); - return -ENODEV; - } - /* Allow scaling to be disabled on a per-node basis */ - if (!of_device_is_available(dn)) { - dev_warn(dev, "Missing property %s, skip scaling %s\n", - adj->phandle_name, node->name); - of_node_put(dn); - return 0; - } + for_each_node_with_property(np, "fsl,icc-id") { + of_property_read_u32(np, "fsl,icc-id", &idx); + if (idx == node_data->desc->id) + dn = np; + } - pdev = of_find_device_by_node(dn); - of_node_put(dn); - if (!pdev) { - dev_warn(dev, "node %s[%d] missing device for %pOF\n", - node->name, node->id, dn); - return -EPROBE_DEFER; - } - node_data->qos_dev = &pdev->dev; - dev_dbg(dev, "node %s[%d] has device node %pOF\n", - node->name, node->id, dn); + if (!dn) + return 0; + + if (!of_device_is_available(dn)) { + dev_warn(dev, "%pOF is disabled\n", dn); + return 0; + } + + pdev = of_find_device_by_node(dn); + of_node_put(dn); + if (!pdev) { + dev_warn(dev, "node %s[%d] missing device for %pOF\n", + node->name, node->id, dn); + return -EPROBE_DEFER; } + node_data->qos_dev = &pdev->dev; + dev_dbg(dev, "node %s[%d] has device node %pOF\n", node->name, + node->id, dn); return dev_pm_qos_add_request(node_data->qos_dev, &node_data->qos_req, @@ -151,12 +145,10 @@ static struct icc_node *imx_icc_node_add(struct icc_provider *provider, node_data->desc = node_desc; icc_node_add(node, provider); - if (node_desc->adj) { - ret = imx_icc_node_init_qos(provider, node); - if (ret < 0) { - imx_icc_node_destroy(node); - return ERR_PTR(ret); - } + ret = imx_icc_node_init_qos(provider, node); + if (ret < 0) { + imx_icc_node_destroy(node); + return ERR_PTR(ret); } return node; @@ -244,7 +236,7 @@ int imx_icc_register(struct platform_device *pdev, provider->aggregate = icc_std_aggregate; provider->xlate = of_icc_xlate_onecell; provider->data = data; - provider->dev = dev->parent; + provider->dev = dev; platform_set_drvdata(pdev, provider); ret = icc_provider_add(provider); From patchwork Sat Jan 1 15:52:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12702099 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D2303C433F5 for ; Sat, 1 Jan 2022 15:55:05 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=ee8lBWJ0FFH5a7VWxk9gDUyt0Fuzh9ttETX+TQMbgg0=; b=ooPU3a/OW1Jblb aMv/5kXIsNFZ5SuqNiOzbdfVLiHCYVYP26ADP2fehuV/pzMN+feMcI0OutFEDO12Ocv7E2ybO0JMi uFfOE029OdtgJRftZqYDBNoUVDbi/xrTEuCsRkv/Rqb356Ii/kb2qtDkLTQcOaxtZN8NSi8fhPKk5 G+EePhhoNYLBh4QbFxMWdrkWNoISXTILTsWDnr7GVcSows6r9ED9lvG5e+JtMiok4nY6bHr1hjW01 CX/jKSjQDSbbUDhdy2aFrqzvzuX4UfOaFtKi77ym6fmecysUZYRFXVe8YPTfzhdWiw1VuG42kwGwu TiNZrVYs1TbtR6pAyRPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n3ghA-0079du-JL; Sat, 01 Jan 2022 15:53:24 +0000 Received: from mail-eopbgr00084.outbound.protection.outlook.com ([40.107.0.84] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n3ggy-0079ax-GV for linux-arm-kernel@lists.infradead.org; Sat, 01 Jan 2022 15:53:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SlwEpSK8ut59c7K3HTD75K5j2i/j4Pe/ONtcWysUiZxxdW8i0dDR0GIC2smG1WGkwxItUWGoqecT0UUNjgrpyoldxpHNoG2dxKe5NQo2QuBWxe+PwEc9P9aO0p03RMfIVwDQsxbM9WJT7EhgGYL+iKrV+CRzTI3lmgczv/85reBvT2l81vzjXfKkR4+oTMBJqhmT1wtgDUCezgX+PS/kJgDAtUanLw3Y1juu7oy4vQQH3WpJGvsMjfa3eg4kDMk6pVdEfyNnSk8fODSvgU6Rz7bIJFW03e9xWVYC70uMWmX21qsJ8+heflqubrGv/jcieRME3r+/hV5W+jtzZKaIcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mw7yRVtMw8ImJtrMwJWiIkn1XlzYpi4UXJ2tVA4J7Zg=; b=PpCTegxCbJXxhlVYRm6ecUlp1BOwcWZ4GC/LJNtKbzTVskdvsMeGh+maGh8EN+wzFRy8V7TSp/BKAObYxxyzqR8lx2fg+cVn9oCWWC/+GI9AIRJrFiL6kc+ySe08fv8pGPjiy+4mJYejOl7SqWMM4Jd0PZACHPIwpxCGMJUxVnoBBNFSqdOjHXHlf3YPfJedaNdysjdrRVqLWQwKlWsgToChENLSb0YAUktOUpfZaH4aa0GIYnWptULQoYQhYs8CZiPd4EHmkSSNk9npT+qXjA1EMZcFn7MXREmDed+0NPvR92GmJh3qfvsOeX9/DlHUl+KNnD6Kq1sr20f9fWD3Aw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mw7yRVtMw8ImJtrMwJWiIkn1XlzYpi4UXJ2tVA4J7Zg=; b=UyAMpf8g1Q1qOoUz3i1VytmpahMJ/i950AoqbR6PvgwGQeG9aIlvE9T6CPpvwpZnwVgDxLOAKDyblHl+6B5MrTlXd1YiNh6H7OqnPezyqTGWK3QoYZcBYJFvCQUnzNxoYZHH/AuWb2Ikwkflowc7FAmtbR8LZvWtdcuD5IXSX/g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) by VE1PR04MB7471.eurprd04.prod.outlook.com (2603:10a6:800:1a7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14; Sat, 1 Jan 2022 15:53:02 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::4c4c:f2b2:addb:841]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::4c4c:f2b2:addb:841%6]) with mapi id 15.20.4844.015; Sat, 1 Jan 2022 15:53:02 +0000 From: Abel Vesa To: Georgi Djakov , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Pengutronix Kernel Team , NXP Linux Team , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List Subject: [PATCH 2/3] interconnect: imx: Add imx_icc_get_bw and imx_icc_aggregate functions Date: Sat, 1 Jan 2022 17:52:44 +0200 Message-Id: <20220101155245.3139667-2-abel.vesa@nxp.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220101155245.3139667-1-abel.vesa@nxp.com> References: <20220101155245.3139667-1-abel.vesa@nxp.com> X-ClientProxiedBy: VI1PR09CA0084.eurprd09.prod.outlook.com (2603:10a6:802:29::28) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2404160-fdc1-417e-c241-08d9cd3eca60 X-MS-TrafficTypeDiagnostic: VE1PR04MB7471:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wd866x90x12QLAI/2rdoMb7x/KTk43/SrxvSjFRkNy2pbjyX/laD/YxYeNohyYl1/bvt6Xf/ynNjMBDd5oTtp9IzxoVDoqfsZnOyKiSMixLFFsDvc6M+0LdNtgc8PKdyAJgh/WRTTyz/X/YjuxSDDKhRFGE3xFFD29S7xAqDGqZiXZnf1xLSC1SEhutuNfb12LFhMtiKj+Y0iKb7DLrG4wQcY4mPCPm7z9NobGQeF75cSH9dSEPbqwv/O8iEil/vZ0EInCJEUd3a1vi877uxUy6qLtksxYmL4LQNijCv9IV/mo0Q9QBKOJRtAMMKanupAFCqZxoROw4kZvc5VsNxEDutZxYRfUnY7f1QtOjMtAXJW2uppb1EWkkXz739ja9XI8tnrh0gaABp79KeYDU3mnY7v/00HFyvo2ZuyavPZvCbZdWQNdZX7FrqU8VHmGTaoL2YwhyeUnz12u7AIoYu300GcsxQGnukvLeO57Sa9zOLMqy+5OjaPYY3hnp1lvKkZ7jcXSEKyvYHqgic/2PwKvHp143p17FDjJWsUpwd4bDfrRYUkntQH0RMCqyD10iHmMrLwt7AYP+3kAtbBCg9QM4PhNkNGjNVJ20LMMg8QveUy3kfpQdcan6iCgb0k9wJBZ+ZVtqhuv29MFVzGu0lRKzeFm2sdC/V+dLqdLVB5UTnb29kMijjUYul5Hr+a3eXSruqeKHooHywT3Z+Ob2r/A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB4688.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66476007)(4326008)(66946007)(2616005)(52116002)(316002)(186003)(26005)(83380400001)(38350700002)(66556008)(38100700002)(5660300002)(1076003)(6666004)(110136005)(2906002)(36756003)(44832011)(8936002)(54906003)(508600001)(8676002)(86362001)(6506007)(6486002)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +W5qBoW+rBEtbWVrydUPPQA0sSyYdBobER9uBydZvnhyd/OZjaOSYWdTHDr1gxVRRBjesF3yIb033psefSj8IkwwDbjAQF8MzIVS7DInle+tp0EtJ8OiYPVaUrEbEfkW4QrmvOFm15nOMvV9QbVJPHiSnzXLgdv8UP+zWTHF2gjYLrk1ywfawVRw2JrYX45dZzUJeCbti3QI3q007RypQiyZrX8umivB+M9V8uHiBmwhUz7nIZxIzEQII3ysRvprOe/Nc08bVmpeJ1Ny/DZlBeBZ0kaFBbtUm6PHrxZJJxTf9gJk0prf58pwOi634o5lKCGlv6EnlkZNG4w5o1D9qCg1h7VaToz4rQ2TiVDhkdGUIErNZaRMijxp/pPm6F8JLaaQr1Mis2Yxh7/4ELGhXRncs+a3XP0S9L9bFJYZFGp5UeZ3BljUd6ARvMGyAdu8CwslBJNorkN0L8dfB1lU5p6LsFYiqYSWztA7lTVEgd/ChdyigEZ9355A3HiPBxnz65KggL1l/ENuZDf4eKrzovDZFlNymKMn+6hqO0Wmou+93/voTnasPgw/fYab7SQpsVRiT49EWdkcRoKIq2DaAKqBXBVOQKSTNZzD4FnPwpHXUOxEM7wKImLgJvxq4GaA9A2MrO/kCOLllaahspDFb5xjGAH6Ts3gDRA4yIWYCUm/KIGJmp7Y49PvmAUU3sTGR7XgqUGptZVLHhaxAUAZ0MphKfur8MVIeK9PAH5rmJWe86KDibKeeUF8xn6V2OnWZEVuAjUuER4tNMcwn5umlTWNr98Y2f+0LyC0BbJl7QaPg1pwjN5eAO8E0YUWJxAb4CsUmZ9jBu5pLeTdrMNPy+TGEIZiux9aQ2XKpx2hvN0K/B5HtmqAWd6xPrNWBaxv0YJvV5SvpUBea0eheExQOx8tVFCn5mhjucQTzgimWeuyKFa51oWefQr66Yze+MZU8PlshGbp/ZHM+Uot/Nw2iOmX+gj43kLh42eWOXDm44Q0GoF+SH5w91PtLP66HENrCOJQTImiRlKpWoCEMmtBtFi4ceNOcLzUXeYz2GaZcs3iApz5VSDK+VTAenp2w7+MowVIUC/bBC+m30Q5rKzYWJvzTpVT6eBd+5LZJ73Gx/jnmZYSV5cZ6DjS5vAuzqC15jsgQJIcAmOWhEp6KUo96gHCJPUdXxjcCXDHfGE/R7lQqk03R+rmCFfqVCs4t4Fv0HnqO1YoxutTrvJ2Htjuih0vmDK8qkQoVvasi7yiwucpIjapUdu4Lc0ebZzb+C+3oxtYRMWiEPkj8Ur+wvoWVDgDyKUuxJ/A7qdTvg1FH22FzU9g+/fXawN/LPxxV9a0ZagnrSBN2WIA671BHtkaI8e4gRpXaeGTf34u3NIJ5Xkugg38juq+lJodwxDO0vNm269q3yMJeBpCVkWb+M1hBwDIOl9pewtz9dmDtV71g7NRNLZUX8w/D3ixvKeMmp1pseYv5+evlo2EQ64b2rSnUV9vigG5srRqPh7pNUsuwCgylSsi7PJILDwZQbH/7Fy/qGOQKcLHpVIlt+Ex4M+fb/t4WRQlxiN/VxSB6vxms89K03vV3ui9KrBfJiqsJ6fj7LTvd8V5gNdGuqzLuQDV3JBgTCqbj/4x5UaYZdTVY/w= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2404160-fdc1-417e-c241-08d9cd3eca60 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4688.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2022 15:53:02.0628 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZZ/l6eOi3nxF7K3/3k5sSPNaX8ed4KuEgxVx3Lk8BdxVWIpzMQHHNXVQHQfSxw8KW9aDnFY208+qWyg092r35Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7471 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220101_075312_573315_AE0730A7 X-CRM114-Status: GOOD ( 13.25 ) 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 The aggregate function will return whatever is the highest rate for that specific node. The imx_icc_get_bw sets the initial avg and peak to 0 in order to avoid setting them to INT_MAX by the interconnect core. Signed-off-by: Abel Vesa --- drivers/interconnect/imx/imx.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index 34bfc7936387..4d8a2a2d2608 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -25,6 +25,23 @@ struct imx_icc_node { struct dev_pm_qos_request qos_req; }; +static int imx_icc_get_bw(struct icc_node *node, u32 *avg, u32 *peak) +{ + *avg = 0; + *peak = 0; + + return 0; +} + +static int imx_icc_aggregate(struct icc_node *node, u32 tag, u32 avg_bw, + u32 peak_bw, u32 *agg_avg, u32 *agg_peak) +{ + *agg_avg = max(*agg_avg, avg_bw); + *agg_peak = max(*agg_peak, peak_bw); + + return 0; +} + static int imx_icc_node_set(struct icc_node *node) { struct device *dev = node->provider->dev; @@ -233,7 +250,8 @@ int imx_icc_register(struct platform_device *pdev, if (!provider) return -ENOMEM; provider->set = imx_icc_set; - provider->aggregate = icc_std_aggregate; + provider->get_bw = imx_icc_get_bw; + provider->aggregate = imx_icc_aggregate; provider->xlate = of_icc_xlate_onecell; provider->data = data; provider->dev = dev; From patchwork Sat Jan 1 15:52:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12702100 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1626BC433F5 for ; Sat, 1 Jan 2022 15:55:10 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=nE/8Fb1dOrLtMZUe4wJnmXjsLvQfhbczwQ6jAwv77a4=; b=CBqoFrAvK2l7rC Ok16vaCGKAyxBSwMHSIAxyu7qzhRMCv+qxdyTnAyLE+PHaDIie+fof4eonfqnLA1dehKvEcQJX8+i I2yoyLrS1vQxLTClQd054/VXH0MhOxJ82UDFyhvsrL+74sRTrGl6bV8yf7HCEH+r6ot7dx/7P8CNh pl+ng0sG/s1qxdC7aqi5C7M4RrWQJsmwOmxhbgGAxOxlmAnKVwOTf+DUmXmPech6q90qAx2nTyIi9 FDFXSVGCz+gjjgexdnISihnTW/LX+55SwtYw3mnFu+hrlokVnWi3euVB1JoDg0Q+nC5ZE06d0cC9B gP1vdM4el2Wlp8SG59Mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n3ghK-0079ey-0B; Sat, 01 Jan 2022 15:53:34 +0000 Received: from mail-eopbgr00084.outbound.protection.outlook.com ([40.107.0.84] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n3gh0-0079ax-6j for linux-arm-kernel@lists.infradead.org; Sat, 01 Jan 2022 15:53:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DFsSIrZaLAdEhQnHPdjfTTTXDXFW6bk2gcjB4IqYz5RXxAuERtJpGeQdO29k344QoRIJp3fQnFzoO3TSFOMYrz2i71frFyV1c+lIs2ANN+BNpCKm/tqMSqk7q01sml30TakR3pbHOzFbHWgqmejZUQmD8SNE+Sfvkzc3wdgA1RWk15ex/AKQLXq3HMAuWvcUAJx7vQmR6n1nXBzVvXH8Qi3iFw2/l8PDsU7zf/BaeX9xjP9UciG1abPc1G6gJVP8rVZkVcmq0Bsz+6Rvwehu0FQykRPZdUYWS7yXpc2FCPSCzwpMsq6MaqHbxqcE87UMSGyuhYTiJNj2I9iLoLAWaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rIXMJNtzVFmTiurCFGua+w9ifaFR4qAH3c8tTvpaYYw=; b=AV24J13tDfNTZKxCyQMnIaxZma0UTDNujDCOuK0y8k6BggC3I/QAjHbcwOxnUjjz2h3rMOrCPQvC8n7/V1NGgjOb5gdHhxsNGqbhLhpgw/+MxS8YrNvDmyNiS9/irSXbZkNYauFXPHnw+GJFnOCkp1GH2EDkMTjTtREosHea6uLPWrHImob0zkDEWjeWwvu8rOTcI2g/ggBF2FGgMBno6TXjO88vX0gvSr7ExZdIwKkZJG73lWnjh9+PgxwZfLYJbQydW7GaIn98mOcKF7PBYGVTFchEm755vbRLcJV9+6bupYb6bEurH2EtX3KxSNjOlc6y5EEjbH3dBiJXzZugXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rIXMJNtzVFmTiurCFGua+w9ifaFR4qAH3c8tTvpaYYw=; b=sa1wWLm2rW5VcwRxP5zwE70L9dGpg+AJyzBOY6OCUlCHXazQibaruAu/w46KU/otCpd2GJzLEywTUU06sog9ggRGRwEFkvKpfWW2zZ86XeGYZcnKTEEl8ekurP/So6csyljXXll6j4dJTzc7WcJj26/EUw8HUzpKj6PitIxaPOw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) by VE1PR04MB7471.eurprd04.prod.outlook.com (2603:10a6:800:1a7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14; Sat, 1 Jan 2022 15:53:02 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::4c4c:f2b2:addb:841]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::4c4c:f2b2:addb:841%6]) with mapi id 15.20.4844.015; Sat, 1 Jan 2022 15:53:02 +0000 From: Abel Vesa To: Georgi Djakov , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Pengutronix Kernel Team , NXP Linux Team , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List Subject: [PATCH 3/3] interconnect: imx8: Remove the imx_icc_node_adj_desc Date: Sat, 1 Jan 2022 17:52:45 +0200 Message-Id: <20220101155245.3139667-3-abel.vesa@nxp.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220101155245.3139667-1-abel.vesa@nxp.com> References: <20220101155245.3139667-1-abel.vesa@nxp.com> X-ClientProxiedBy: VI1PR09CA0084.eurprd09.prod.outlook.com (2603:10a6:802:29::28) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:6a::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 406f332d-0cfd-4a8f-a18d-08d9cd3ecafa X-MS-TrafficTypeDiagnostic: VE1PR04MB7471:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: haJN6/joP3vUQYz3PwnG7sDwVRBTPzvOcUoo9HVoXj8ojPbhknd+ps6WnN7pja1KWPTQWREIgQHA2hgV6rQdufZuyXfpm24Wx1yuDInTCn3jRmJrsYIUwerf8tEcrby8+10X3a6/zozwuEuNFwx2tygIYrHUrjp9gTFm4DkH/ERB3CM8GunzZiWfKB8CKKXg0kLyDhpYfzHeI96uhLIRnBay2v2AZNHugPDD4hFeFBoYxxvpdQnNyW/Ak96hU1v+Sz3EmAYuczc9KrpUCt/ODXvdWy6XINUodfQR2ZCbog3mb4WZQMP+4VAReq/ugwMFKM5Di7wuwqCUVCzVmu7nB7RRIULWKy1q4fWt8/qjVF7fpuYX/hXp+HfmHWaDPlLWlAi2pNAfE/8cT3/fBSftbnekCwD+attCVuSpvHUhSBBNl8u7eSC5QOFU/CR2gg+ctpaNCngMoZg7S44QMb5380a+ogIFK/5Lft3xEUpwQ+KqF+zsSpR3O8e9M9uGlaxbz4DHhuZSKCe1fMkhDpcHvQmZYr+s9iYrH8L1fJ8zbaZc5zZpHM/s2XFaRn/zmHdhgFvN5x+OzZyz42FLfWpi19y718raVaIJ6hRil1nuWCtf3QgP3do6uHrJ9NzJlhZOD8RJeh+XLpG+nemZ75keYA2QhafNPHpYFvalbnBPDHJbxjfNexsBusSwoDqcX2JOif7ZCO4GT0KUzO2nntOedg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB4688.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66476007)(4326008)(66946007)(2616005)(52116002)(316002)(186003)(26005)(83380400001)(38350700002)(66556008)(38100700002)(5660300002)(30864003)(1076003)(6666004)(110136005)(2906002)(36756003)(44832011)(8936002)(54906003)(508600001)(8676002)(86362001)(6506007)(6486002)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7a115do6g0vTLHa+UCVAqK8xnVi9+Mr3EatLkhJjxs5O93TGPu/8i93BqnvRjyfO3c2AfVGQNcHRghjMkLwNbnHeChYUmaSaBgGFLdnWoVSESXEo+U2CCyn1Imty7I/0j6qCQr1kWhGdZstAjlvQjcDVV0Yr/j9F3ya1y587fE0dUk0G14DzcZt5odvAeCVZ1/nj9YusFFIunt7j2+brAKObVM/LyNvwZsPguomN/kqoq6gFT9NsJcuEYnvN7AiUZisbyzA7lOJPDBcbK53EqaAtm6MhXXB2QmPK5gjbmLuyAdHsDPq/Nrc4YYtqPOGh5lWIGftOro3DtDtTYvOd92DugfOH0wkcrliOp3TT/0NaP/ryaeNtq2BHx6NrlEKDvRfiihnXSn/U40Uq0/EmvgaiqERLTmkR/D4I/B51dV0Dkkz5ltB8i9NJs3BNUdumPZeVscy9IHGNBF9NWKn44GjQI65eTqjl3umat4bluXUenRGZUmYsZ3owW5KdpAbJNQ5Fr2WLPvd4OJpWGk1Cc0p0sQ3MDrok3XXu4vU6XECcBy709n84i8OGPxeBOOy/PvB83wS1YJoHgjYWL/FGhSqWJwwSTJ2rF9BAqfa1ngpDGgj7nLiv/KzL+XNgGfRauP64kd3tbb/vjN6Kh4JgtxTa16EwZ6+H57SZ+lxgFD+wvMx135+nf+lJTihlQzTA6zZes8DJIYxfoNm7A9h9YEs2TRalMJcyuWe5IAXrlG+Yh3np9xA4zXep7L7jm6uliWx1T01DF28Syi777Timgs4T3+mo10/F3O64ddnTTJcnOPuh3VnGzL9WNKy9M546Os/qa/7fAH7+4VIaOUnBFJJf2lauF0O9V3Y5XWOR/FOxXaU+EUmxdEpaSqTWN1qTWMEf72+F9aRPoeuSkitEpKKanOA9f2B192jHNO4KF8QyYqi13zLM/JmRNqhX840g9TYcF+qnVH5ydi/NeI+DX6vM7iwh5ERjps8sN37kHHCOdBjqfvXiJDHa+TZRelALApKj09w/FconvIptVw5jNm+tu8dsX4BbbmpkelUlMc0ijx0w24yf/DfVS45DQ4Lb5hqlZrWGAoSANQYGyUTS6Yc3NrVYMEvtN2LIj+2u3oAub1HHj18kRFBFXvDMl9OTK3203NVRIpY4nW/WQKhKuXLIdC6q+8kPoPB8TJYnYCBNjCL70vsmIKgrVU3HbqBF14RE9Ymrf+5q8f392Xmq1VvM2VYZ6mqk9TeyI026vpgSCuIxnSNkwWv3iLIBmSuLcQYiGPP6OmBzzxsSs7maWa6lklIOZhZWuUjHX6OffqKeXdqT+XTOZIdVWmLBA/GJq4zOVtyZnVVlIEP190k/BMvVeJl2vIA1xgNS7DbcgbADBC9UGgeqz0k/dJZUye2kZfTfjqfcGLX8fHfCkJW0QcJ26wXDJpLwQdfGrmRcuIZOZ30dKJjOFKHorq3mz1+hppkzyjp5yilVOZmDQ6mAjevc3+6vLODgCzlNX6hsBpRc2vQytoWqQFwBel0NsO8WiEEWOmZ3A5s4KIiZcDBE0y9MKsiZp5UQrlVhXFNs/sOAArGXqHGlPRDtBkZQwph4/hTUbkRrnYhe571gNQyxfOdnCn3knb0DR4ycCeFgeNs= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 406f332d-0cfd-4a8f-a18d-08d9cd3ecafa X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4688.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2022 15:53:02.8154 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5P5NP37esJlCnse6SdCfxbWfWFnHBEA+6ZXRmdDLMhPI9uEw5TSKVD243wweNjMC5GL8XbBhQ+Wuti8PsONrlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7471 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220101_075314_281586_822D1333 X-CRM114-Status: GOOD ( 13.92 ) 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 Now that the imx generic interconnect doesn't use the imx_icc_node_adj_desc, we remove it from all the i.MX8M platform drivers. Signed-off-by: Abel Vesa --- drivers/interconnect/imx/imx.h | 19 ++++------------- drivers/interconnect/imx/imx8mm.c | 32 +++++++++------------------- drivers/interconnect/imx/imx8mn.c | 28 +++++++------------------ drivers/interconnect/imx/imx8mq.c | 35 ++++++++++--------------------- 4 files changed, 33 insertions(+), 81 deletions(-) diff --git a/drivers/interconnect/imx/imx.h b/drivers/interconnect/imx/imx.h index 75da51076c68..5c9f5138f6aa 100644 --- a/drivers/interconnect/imx/imx.h +++ b/drivers/interconnect/imx/imx.h @@ -14,15 +14,6 @@ #define IMX_ICC_MAX_LINKS 4 -/* - * struct imx_icc_node_adj - Describe a dynamic adjustable node - */ -struct imx_icc_node_adj_desc { - unsigned int bw_mul, bw_div; - const char *phandle_name; - bool main_noc; -}; - /* * struct imx_icc_node - Describe an interconnect node * @name: name of the node @@ -35,23 +26,21 @@ struct imx_icc_node_desc { u16 id; u16 links[IMX_ICC_MAX_LINKS]; u16 num_links; - const struct imx_icc_node_adj_desc *adj; }; -#define DEFINE_BUS_INTERCONNECT(_name, _id, _adj, ...) \ +#define DEFINE_BUS_INTERCONNECT(_name, _id, ...) \ { \ .id = _id, \ .name = _name, \ - .adj = _adj, \ .num_links = ARRAY_SIZE(((int[]){ __VA_ARGS__ })), \ .links = { __VA_ARGS__ }, \ } #define DEFINE_BUS_MASTER(_name, _id, _dest_id) \ - DEFINE_BUS_INTERCONNECT(_name, _id, NULL, _dest_id) + DEFINE_BUS_INTERCONNECT(_name, _id, _dest_id) -#define DEFINE_BUS_SLAVE(_name, _id, _adj) \ - DEFINE_BUS_INTERCONNECT(_name, _id, _adj) +#define DEFINE_BUS_SLAVE(_name, _id) \ + DEFINE_BUS_INTERCONNECT(_name, _id) int imx_icc_register(struct platform_device *pdev, struct imx_icc_node_desc *nodes, diff --git a/drivers/interconnect/imx/imx8mm.c b/drivers/interconnect/imx/imx8mm.c index 1083490bb391..0c16110bef9d 100644 --- a/drivers/interconnect/imx/imx8mm.c +++ b/drivers/interconnect/imx/imx8mm.c @@ -14,18 +14,6 @@ #include "imx.h" -static const struct imx_icc_node_adj_desc imx8mm_dram_adj = { - .bw_mul = 1, - .bw_div = 16, - .phandle_name = "fsl,ddrc", -}; - -static const struct imx_icc_node_adj_desc imx8mm_noc_adj = { - .bw_mul = 1, - .bw_div = 16, - .main_noc = true, -}; - /* * Describe bus masters, slaves and connections between them * @@ -33,43 +21,43 @@ static const struct imx_icc_node_adj_desc imx8mm_noc_adj = { * PL301 nics which are skipped/merged into PL301_MAIN */ static struct imx_icc_node_desc nodes[] = { - DEFINE_BUS_INTERCONNECT("NOC", IMX8MM_ICN_NOC, &imx8mm_noc_adj, + DEFINE_BUS_INTERCONNECT("NOC", IMX8MM_ICN_NOC, IMX8MM_ICS_DRAM, IMX8MM_ICN_MAIN), - DEFINE_BUS_SLAVE("DRAM", IMX8MM_ICS_DRAM, &imx8mm_dram_adj), - DEFINE_BUS_SLAVE("OCRAM", IMX8MM_ICS_OCRAM, NULL), + DEFINE_BUS_SLAVE("DRAM", IMX8MM_ICS_DRAM), + DEFINE_BUS_SLAVE("OCRAM", IMX8MM_ICS_OCRAM), DEFINE_BUS_MASTER("A53", IMX8MM_ICM_A53, IMX8MM_ICN_NOC), /* VPUMIX */ DEFINE_BUS_MASTER("VPU H1", IMX8MM_ICM_VPU_H1, IMX8MM_ICN_VIDEO), DEFINE_BUS_MASTER("VPU G1", IMX8MM_ICM_VPU_G1, IMX8MM_ICN_VIDEO), DEFINE_BUS_MASTER("VPU G2", IMX8MM_ICM_VPU_G2, IMX8MM_ICN_VIDEO), - DEFINE_BUS_INTERCONNECT("PL301_VIDEO", IMX8MM_ICN_VIDEO, NULL, IMX8MM_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_VIDEO", IMX8MM_ICN_VIDEO, IMX8MM_ICN_NOC), /* GPUMIX */ DEFINE_BUS_MASTER("GPU 2D", IMX8MM_ICM_GPU2D, IMX8MM_ICN_GPU), DEFINE_BUS_MASTER("GPU 3D", IMX8MM_ICM_GPU3D, IMX8MM_ICN_GPU), - DEFINE_BUS_INTERCONNECT("PL301_GPU", IMX8MM_ICN_GPU, NULL, IMX8MM_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_GPU", IMX8MM_ICN_GPU, IMX8MM_ICN_NOC), /* DISPLAYMIX */ DEFINE_BUS_MASTER("CSI", IMX8MM_ICM_CSI, IMX8MM_ICN_MIPI), DEFINE_BUS_MASTER("LCDIF", IMX8MM_ICM_LCDIF, IMX8MM_ICN_MIPI), - DEFINE_BUS_INTERCONNECT("PL301_MIPI", IMX8MM_ICN_MIPI, NULL, IMX8MM_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_MIPI", IMX8MM_ICN_MIPI, IMX8MM_ICN_NOC), /* HSIO */ DEFINE_BUS_MASTER("USB1", IMX8MM_ICM_USB1, IMX8MM_ICN_HSIO), DEFINE_BUS_MASTER("USB2", IMX8MM_ICM_USB2, IMX8MM_ICN_HSIO), DEFINE_BUS_MASTER("PCIE", IMX8MM_ICM_PCIE, IMX8MM_ICN_HSIO), - DEFINE_BUS_INTERCONNECT("PL301_HSIO", IMX8MM_ICN_HSIO, NULL, IMX8MM_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_HSIO", IMX8MM_ICN_HSIO, IMX8MM_ICN_NOC), /* Audio */ DEFINE_BUS_MASTER("SDMA2", IMX8MM_ICM_SDMA2, IMX8MM_ICN_AUDIO), DEFINE_BUS_MASTER("SDMA3", IMX8MM_ICM_SDMA3, IMX8MM_ICN_AUDIO), - DEFINE_BUS_INTERCONNECT("PL301_AUDIO", IMX8MM_ICN_AUDIO, NULL, IMX8MM_ICN_MAIN), + DEFINE_BUS_INTERCONNECT("PL301_AUDIO", IMX8MM_ICN_AUDIO, IMX8MM_ICN_MAIN), /* Ethernet */ DEFINE_BUS_MASTER("ENET", IMX8MM_ICM_ENET, IMX8MM_ICN_ENET), - DEFINE_BUS_INTERCONNECT("PL301_ENET", IMX8MM_ICN_ENET, NULL, IMX8MM_ICN_MAIN), + DEFINE_BUS_INTERCONNECT("PL301_ENET", IMX8MM_ICN_ENET, IMX8MM_ICN_MAIN), /* Other */ DEFINE_BUS_MASTER("SDMA1", IMX8MM_ICM_SDMA1, IMX8MM_ICN_MAIN), @@ -77,7 +65,7 @@ static struct imx_icc_node_desc nodes[] = { DEFINE_BUS_MASTER("USDHC1", IMX8MM_ICM_USDHC1, IMX8MM_ICN_MAIN), DEFINE_BUS_MASTER("USDHC2", IMX8MM_ICM_USDHC2, IMX8MM_ICN_MAIN), DEFINE_BUS_MASTER("USDHC3", IMX8MM_ICM_USDHC3, IMX8MM_ICN_MAIN), - DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MM_ICN_MAIN, NULL, + DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MM_ICN_MAIN, IMX8MM_ICN_NOC, IMX8MM_ICS_OCRAM), }; diff --git a/drivers/interconnect/imx/imx8mn.c b/drivers/interconnect/imx/imx8mn.c index ad97e55fd4e5..8d16bd5cf006 100644 --- a/drivers/interconnect/imx/imx8mn.c +++ b/drivers/interconnect/imx/imx8mn.c @@ -11,18 +11,6 @@ #include "imx.h" -static const struct imx_icc_node_adj_desc imx8mn_dram_adj = { - .bw_mul = 1, - .bw_div = 4, - .phandle_name = "fsl,ddrc", -}; - -static const struct imx_icc_node_adj_desc imx8mn_noc_adj = { - .bw_mul = 1, - .bw_div = 4, - .main_noc = true, -}; - /* * Describe bus masters, slaves and connections between them * @@ -30,23 +18,23 @@ static const struct imx_icc_node_adj_desc imx8mn_noc_adj = { * PL301 nics which are skipped/merged into PL301_MAIN */ static struct imx_icc_node_desc nodes[] = { - DEFINE_BUS_INTERCONNECT("NOC", IMX8MN_ICN_NOC, &imx8mn_noc_adj, + DEFINE_BUS_INTERCONNECT("NOC", IMX8MN_ICN_NOC, IMX8MN_ICS_DRAM, IMX8MN_ICN_MAIN), - DEFINE_BUS_SLAVE("DRAM", IMX8MN_ICS_DRAM, &imx8mn_dram_adj), - DEFINE_BUS_SLAVE("OCRAM", IMX8MN_ICS_OCRAM, NULL), + DEFINE_BUS_SLAVE("DRAM", IMX8MN_ICS_DRAM), + DEFINE_BUS_SLAVE("OCRAM", IMX8MN_ICS_OCRAM), DEFINE_BUS_MASTER("A53", IMX8MN_ICM_A53, IMX8MN_ICN_NOC), /* GPUMIX */ DEFINE_BUS_MASTER("GPU", IMX8MN_ICM_GPU, IMX8MN_ICN_GPU), - DEFINE_BUS_INTERCONNECT("PL301_GPU", IMX8MN_ICN_GPU, NULL, IMX8MN_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_GPU", IMX8MN_ICN_GPU, IMX8MN_ICN_NOC), /* DISPLAYMIX */ DEFINE_BUS_MASTER("CSI1", IMX8MN_ICM_CSI1, IMX8MN_ICN_MIPI), DEFINE_BUS_MASTER("CSI2", IMX8MN_ICM_CSI2, IMX8MN_ICN_MIPI), DEFINE_BUS_MASTER("ISI", IMX8MN_ICM_ISI, IMX8MN_ICN_MIPI), DEFINE_BUS_MASTER("LCDIF", IMX8MN_ICM_LCDIF, IMX8MN_ICN_MIPI), - DEFINE_BUS_INTERCONNECT("PL301_MIPI", IMX8MN_ICN_MIPI, NULL, IMX8MN_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_MIPI", IMX8MN_ICN_MIPI, IMX8MN_ICN_NOC), /* USB goes straight to NOC */ DEFINE_BUS_MASTER("USB", IMX8MN_ICM_USB, IMX8MN_ICN_NOC), @@ -54,11 +42,11 @@ static struct imx_icc_node_desc nodes[] = { /* Audio */ DEFINE_BUS_MASTER("SDMA2", IMX8MN_ICM_SDMA2, IMX8MN_ICN_AUDIO), DEFINE_BUS_MASTER("SDMA3", IMX8MN_ICM_SDMA3, IMX8MN_ICN_AUDIO), - DEFINE_BUS_INTERCONNECT("PL301_AUDIO", IMX8MN_ICN_AUDIO, NULL, IMX8MN_ICN_MAIN), + DEFINE_BUS_INTERCONNECT("PL301_AUDIO", IMX8MN_ICN_AUDIO, IMX8MN_ICN_MAIN), /* Ethernet */ DEFINE_BUS_MASTER("ENET", IMX8MN_ICM_ENET, IMX8MN_ICN_ENET), - DEFINE_BUS_INTERCONNECT("PL301_ENET", IMX8MN_ICN_ENET, NULL, IMX8MN_ICN_MAIN), + DEFINE_BUS_INTERCONNECT("PL301_ENET", IMX8MN_ICN_ENET, IMX8MN_ICN_MAIN), /* Other */ DEFINE_BUS_MASTER("SDMA1", IMX8MN_ICM_SDMA1, IMX8MN_ICN_MAIN), @@ -66,7 +54,7 @@ static struct imx_icc_node_desc nodes[] = { DEFINE_BUS_MASTER("USDHC1", IMX8MN_ICM_USDHC1, IMX8MN_ICN_MAIN), DEFINE_BUS_MASTER("USDHC2", IMX8MN_ICM_USDHC2, IMX8MN_ICN_MAIN), DEFINE_BUS_MASTER("USDHC3", IMX8MN_ICM_USDHC3, IMX8MN_ICN_MAIN), - DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MN_ICN_MAIN, NULL, + DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MN_ICN_MAIN IMX8MN_ICN_NOC, IMX8MN_ICS_OCRAM), }; diff --git a/drivers/interconnect/imx/imx8mq.c b/drivers/interconnect/imx/imx8mq.c index d7768d3c6d8a..b8c36d668946 100644 --- a/drivers/interconnect/imx/imx8mq.c +++ b/drivers/interconnect/imx/imx8mq.c @@ -12,18 +12,6 @@ #include "imx.h" -static const struct imx_icc_node_adj_desc imx8mq_dram_adj = { - .bw_mul = 1, - .bw_div = 4, - .phandle_name = "fsl,ddrc", -}; - -static const struct imx_icc_node_adj_desc imx8mq_noc_adj = { - .bw_mul = 1, - .bw_div = 4, - .main_noc = true, -}; - /* * Describe bus masters, slaves and connections between them * @@ -31,43 +19,42 @@ static const struct imx_icc_node_adj_desc imx8mq_noc_adj = { * PL301 nics which are skipped/merged into PL301_MAIN */ static struct imx_icc_node_desc nodes[] = { - DEFINE_BUS_INTERCONNECT("NOC", IMX8MQ_ICN_NOC, &imx8mq_noc_adj, - IMX8MQ_ICS_DRAM, IMX8MQ_ICN_MAIN), + DEFINE_BUS_INTERCONNECT("NOC", IMX8MQ_ICN_NOC, IMX8MQ_ICS_DRAM, IMX8MQ_ICN_MAIN), - DEFINE_BUS_SLAVE("DRAM", IMX8MQ_ICS_DRAM, &imx8mq_dram_adj), - DEFINE_BUS_SLAVE("OCRAM", IMX8MQ_ICS_OCRAM, NULL), + DEFINE_BUS_SLAVE("DRAM", IMX8MQ_ICS_DRAM), + DEFINE_BUS_SLAVE("OCRAM", IMX8MQ_ICS_OCRAM), DEFINE_BUS_MASTER("A53", IMX8MQ_ICM_A53, IMX8MQ_ICN_NOC), /* VPUMIX */ DEFINE_BUS_MASTER("VPU", IMX8MQ_ICM_VPU, IMX8MQ_ICN_VIDEO), - DEFINE_BUS_INTERCONNECT("PL301_VIDEO", IMX8MQ_ICN_VIDEO, NULL, IMX8MQ_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_VIDEO", IMX8MQ_ICN_VIDEO, IMX8MQ_ICN_NOC), /* GPUMIX */ DEFINE_BUS_MASTER("GPU", IMX8MQ_ICM_GPU, IMX8MQ_ICN_GPU), - DEFINE_BUS_INTERCONNECT("PL301_GPU", IMX8MQ_ICN_GPU, NULL, IMX8MQ_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_GPU", IMX8MQ_ICN_GPU, IMX8MQ_ICN_NOC), /* DISPMIX (only for DCSS) */ DEFINE_BUS_MASTER("DC", IMX8MQ_ICM_DCSS, IMX8MQ_ICN_DCSS), - DEFINE_BUS_INTERCONNECT("PL301_DC", IMX8MQ_ICN_DCSS, NULL, IMX8MQ_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_DC", IMX8MQ_ICN_DCSS, IMX8MQ_ICN_NOC), /* USBMIX */ DEFINE_BUS_MASTER("USB1", IMX8MQ_ICM_USB1, IMX8MQ_ICN_USB), DEFINE_BUS_MASTER("USB2", IMX8MQ_ICM_USB2, IMX8MQ_ICN_USB), - DEFINE_BUS_INTERCONNECT("PL301_USB", IMX8MQ_ICN_USB, NULL, IMX8MQ_ICN_NOC), + DEFINE_BUS_INTERCONNECT("PL301_USB", IMX8MQ_ICN_USB, IMX8MQ_ICN_NOC), /* PL301_DISPLAY (IPs other than DCSS, inside SUPERMIX) */ DEFINE_BUS_MASTER("CSI1", IMX8MQ_ICM_CSI1, IMX8MQ_ICN_DISPLAY), DEFINE_BUS_MASTER("CSI2", IMX8MQ_ICM_CSI2, IMX8MQ_ICN_DISPLAY), DEFINE_BUS_MASTER("LCDIF", IMX8MQ_ICM_LCDIF, IMX8MQ_ICN_DISPLAY), - DEFINE_BUS_INTERCONNECT("PL301_DISPLAY", IMX8MQ_ICN_DISPLAY, NULL, IMX8MQ_ICN_MAIN), + DEFINE_BUS_INTERCONNECT("PL301_DISPLAY", IMX8MQ_ICN_DISPLAY, IMX8MQ_ICN_MAIN), /* AUDIO */ DEFINE_BUS_MASTER("SDMA2", IMX8MQ_ICM_SDMA2, IMX8MQ_ICN_AUDIO), - DEFINE_BUS_INTERCONNECT("PL301_AUDIO", IMX8MQ_ICN_AUDIO, NULL, IMX8MQ_ICN_DISPLAY), + DEFINE_BUS_INTERCONNECT("PL301_AUDIO", IMX8MQ_ICN_AUDIO, IMX8MQ_ICN_DISPLAY), /* ENET */ DEFINE_BUS_MASTER("ENET", IMX8MQ_ICM_ENET, IMX8MQ_ICN_ENET), - DEFINE_BUS_INTERCONNECT("PL301_ENET", IMX8MQ_ICN_ENET, NULL, IMX8MQ_ICN_MAIN), + DEFINE_BUS_INTERCONNECT("PL301_ENET", IMX8MQ_ICN_ENET, IMX8MQ_ICN_MAIN), /* OTHER */ DEFINE_BUS_MASTER("SDMA1", IMX8MQ_ICM_SDMA1, IMX8MQ_ICN_MAIN), @@ -76,7 +63,7 @@ static struct imx_icc_node_desc nodes[] = { DEFINE_BUS_MASTER("USDHC2", IMX8MQ_ICM_USDHC2, IMX8MQ_ICN_MAIN), DEFINE_BUS_MASTER("PCIE1", IMX8MQ_ICM_PCIE1, IMX8MQ_ICN_MAIN), DEFINE_BUS_MASTER("PCIE2", IMX8MQ_ICM_PCIE2, IMX8MQ_ICN_MAIN), - DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MQ_ICN_MAIN, NULL, + DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MQ_ICN_MAIN, IMX8MQ_ICN_NOC, IMX8MQ_ICS_OCRAM), };