From patchwork Sun Jul 3 09:11:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587401 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9B68CCA473 for ; Sun, 3 Jul 2022 09:10:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231640AbiGCJKX (ORCPT ); Sun, 3 Jul 2022 05:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbiGCJKW (ORCPT ); Sun, 3 Jul 2022 05:10:22 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2045.outbound.protection.outlook.com [40.107.21.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B4A271A; Sun, 3 Jul 2022 02:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SENn7Rqwtt2LowfhpVBH+LLoenciUXugfcMQouVhWN/oJImVMUa713D3kKwFkq/2Qq2VakOOXY1lDHGKKvIZsmBm8zBNUIKg3tvnOVKL6tnhvp5/O4l9gdw0tmawBHzU1zv29MqvfPpEdXmdGnYiQ04OAUNZPVvAveBU7144bHzoH8o/UJynJb5iEqXojfxLQ7ibZl92oMcg3P78oXtVnsU6WsRGzVerMpCkCt+N3CKIl4IGKlv79uWQ2WT1h2eUHVwTvGpFk5EwJzYsj/4aHf7jX3VhMVbOBSBeIJYzDdrD5MHR+4o6IgHm5rgckVhV1oYpyUPZP1JjAVxFmDl0hA== 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=AU8LWmrwPaCR3Do8pD8tveFMkYcEpAVHChc309U7l/c=; b=YmWykxBrKJZ0PmHzD/VSbY9yPmFNN+lEuFDxXg5Q9BbZ+2x54XKockB+zw7pTwtt2LPbSE+MdadR+m585ig2U1vjvCqjmfId/XDeBDk7NhJ0D5puQF6q338ozfQIvAjImOZWuvOkc0MLsQ7NvWKRBKDnRdIkyUAWoeMJF/t8jFeuoMwo1W1Vi/sDKULYmtU1rw1wJF738GZ/zRRhWG1Sc4tj5XQGVsQNcX7uKZXZQyBj02jEVhQ+mJOMpu5Gkjfx63TRyBgTdZcXl+J7GQiCWpLr8O8VXUDYzYwgPFnDLzNfDHNYIgv4wk56XrW9DbkFEfc5u1S1gboMig40r9lPFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AU8LWmrwPaCR3Do8pD8tveFMkYcEpAVHChc309U7l/c=; b=jp8uTjZbR6KtkS0O5ueBcDow3hMgyz9OkKmY4IzqzWhTgLXGbfrQhHKuGmM9qqxdOAe6ymk53fYIOpl93h4Gh9l8IFchalI6Q/faSZIM77BfgMosYMTlJ4znc0qvyhcJ/Rvce7z/UfLZ4nOGurI/xk5ab9y5/XNnvsqZi4Plvvs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:06 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:06 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan , Rob Herring Subject: [PATCH V3 01/10] dt-bindings: interconnect: imx8m: Add bindings for imx8mp noc Date: Sun, 3 Jul 2022 17:11:23 +0800 Message-Id: <20220703091132.1412063-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7e8bb5f-b6db-4792-6e8e-08da5cd3d235 X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rPXyFAhWVRdttgpafrIMJVbNYLgP/V3hRL11IQF1dpMtYG/mteH121O5g2y2bjZJjWghwL4gZUwEGbhFu2veaiC6aKPqTngqdX4DQoWxMEVdO6tR//jVoN2/AbtCcgxjPe69QVbRRNJIGfin5z1LUUDmS1zJQ1N133spbKlZfLU1vh13YRY2haN2HUHhJd0QcZyEsgayeE2xsL7hZUxDoIYLCBwjKPhXSq6ZZxDyLHcXjwWC5jvyrCJMQ5n2dWqnnMsOCvy7ez44wLk7k3g3DV4HOgDuaZsLUWFHqHuew22MLRjBFidy7bzHrbGG9nuJEk0l2vP8fnY4HWShWrBObAAr+siBNo6EEY1mnykSes6vgXCU6X11mfiG9QkNzw0lVb1R3m7RCo9dSbSjVKDfTiw/8J1iBnb/SXJ1A8KBRiLmPnV54rDpofAgMlxWi8kdj769Xkqef+2NP7p4X75tRhr3mPjh8Bky9bcBnOgtzqOpet9Ec7fZ+dXM1UBwX9dKRTG7+P3CZBfiTrUWx+yg0Ai2vUi911iamvJK341BJDdUp4ypfn0x6OsL0BydrdXT+hQjP8NvTREn//g3XAUbfmqCyz1Y6vInB2ecHHOKMjWxvdDN/uX/ACCWUjRrIlJrGPZP8xmlgag771WVJZlsqU2C9Cpzr5NTumoOpjhdv5lD6Fvkqb4OBC9uZWbXP04XygYfp+GBMvasd3+Qnq+EH3/PPBN9+LCa5rXfKaiObezbE8YLsj0lU70niEwxorPW1/38Eh2QRzdOLfN/lqJqMP2foo88Y0afoCTTSIhS/1HW4BUQfvmhK3OLoEhQRZjNMc8XMu9j+aV8ojFtTiYR3Czh7PnCDp+A3CdeJfEqono= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(6666004)(2906002)(41300700001)(4744005)(316002)(7416002)(54906003)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(83380400001)(1076003)(6506007)(52116002)(26005)(2616005)(6512007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IWe7gzlcCjOhGPOEuN88nGvWJlaaPrKiVBrpgWzan+DzUjgTf0dOA5j/NFr83wPBzvfdz3g877qrrRRXvgh6SGKoglBMgb2Kjbfp9ysLuRJkwXmR0rX+QrtBR8D/SVZTnpQx7oUW3kXlddAFxzPMJnAdJgzfA5xIXBB2w6DEjk98Q81dba33mfIqTU2SBuR0uyEleqZFxerhjcIIIdsQnMDdIuvBzWrPWdgYk5RNjkAFEsV1Sg0ioHNd/PFR0+fgTbp8S5uba5+t3i/JOVAVngkLlKRgoD1L8r9hEtJ4Q0C5QSUSMYYP+EJw7e9tiElXU0ANrg1XDCRJM5sx1mgGvWCWgZoh81NloOHIx6LeYNVvo751qHJ7l+U7zfpRbfUO+to5VuVPztTQt/pKZAZ3SI7K3S40INpCCs3f+9nwsNE4+erROyZO0lJdP0beKcFtgrg+Os84Ihsr+vSe/C3Xr439AdmWWbgMHBuRvQCMm0YEaFAlhKP2yefTC2ee1XA+R+4q0ZBp6oMsw5icrV+CcslGjB4iA5VzKy+HShlSSCqqNfr67xi/vPDp1La+5jp8G8DKhRfpGQOqFNngQ+/1VJzm45aSKc5qVqF5Zc85npI7Jovi103Ozgoln6VMDCN1htqIncETazI/rskYA3WS8Xt6IaoO0YxtrP5xIgD1KH8WrRYk/+Ke8uqXQlle8YcTN/FI7TeNWBzu1Un/jAA2ogv3QrrtmXexd1/9/bp2V0l2c29YHjb9H27kMx8Knm0Sgcz4QbgHShNZ0t1xgW1Md/TWP2pVxQ1M010N7UfSRMBf/GsXfOm+iuC68IxxrqwuLgnvChfnEZbfKbdln+c7EDfpvdVLmsWGoPcHKs2kFhfkXUP2nwLtK0CWvQPh6RoCe4sk9ITFYEDiT6VF5TbBlmpEJ8bqnPB7IcJ9NS6CUjC6XisfYhLOqt4MYkJlN7e26XlFJOs+bwm6rYbrEApHHm9BoI9PtE7Thir32U4H+ujo8dL0t4oLOUMPMLOSzC6Vb4Jw9ui8Pcy6WwMb0+a3UiH5NtVYTugjxmUeK+7waiJiZ43OK0P28In8wj8CD/sMS0dNpTAid/H1/nbQWdAj5f2i0D3EM/NTIUeetO4iS0Sl3tb3YicGOdSydB2fGCtTRJJqPtdc4r8SyEWsjhyjROb4va8J186WQSu3kn2OwrzglMEILR2Ndxn9J1cxnqmJnDUmu4B1V6H6Pz1j3RHYeMf7qITfSjZhhamrAdJs/xOk6b6oVYIzVbfwp9v0uoDER9mLgXAma9gtbLiBprjPJqRf+tSia5+ZYcCBKmljeVxWQHiVGZNhkSytkasxNDH/+IKpvBwIfqhij6TTcMmLxtr77LMvtRpH2UwJty1y6GVsq881wVz8axhLd11SxXLwXz1dPHfadmW7WrTR8CWOPf6tt+7w51h6mfxQ6uHKXJwcdXt+lMXk9cMZAcsewgKsBR356ZNled5uBYuVGNNos3bjegchMTl1G0tPVRi8zc7BXYLcQnc3LhWo4XvFRitVb3IBMWZ2nHsL8fooUDyqWEmzdbdD0WIhzUBNz39s+RGcsHkHirIMcLTH3H/O3/B5 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7e8bb5f-b6db-4792-6e8e-08da5cd3d235 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:06.4667 (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: LmhhHuX+uoqnUZqK4CTrchQEYLJHsdXgn4DM6pg69QHwz+oZ63s6BwdnJ7sWUA/Xk2q3+7AheKaBHSkqjmYBqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan i.MX8MP features same NoC/NIC as i.MX8MM/N/Q, and use two compatible strings. Signed-off-by: Peng Fan Acked-by: Rob Herring --- .../devicetree/bindings/interconnect/fsl,imx8m-noc.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml b/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml index b8204ed22dd5..09c8948b5e25 100644 --- a/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml +++ b/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml @@ -26,14 +26,16 @@ properties: oneOf: - items: - enum: - - fsl,imx8mn-nic - fsl,imx8mm-nic + - fsl,imx8mn-nic + - fsl,imx8mp-nic - fsl,imx8mq-nic - const: fsl,imx8m-nic - items: - enum: - - fsl,imx8mn-noc - fsl,imx8mm-noc + - fsl,imx8mn-noc + - fsl,imx8mp-noc - fsl,imx8mq-noc - const: fsl,imx8m-noc - const: fsl,imx8m-nic From patchwork Sun Jul 3 09:11:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587400 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CE34CCA480 for ; Sun, 3 Jul 2022 09:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231816AbiGCJK3 (ORCPT ); Sun, 3 Jul 2022 05:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232106AbiGCJKZ (ORCPT ); Sun, 3 Jul 2022 05:10:25 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2045.outbound.protection.outlook.com [40.107.21.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DD9D271A; Sun, 3 Jul 2022 02:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JzO294bHuvB3ZZD8nG2W3GbDS8eQuHDN4/kzrSU0vSRifdZy47weMZd1RlcwUWM1mdgHb06uZWySLjgiiPQy5anY/0G+GjAioFTXES3fJiuUv/+pv+vKC08Z+l+Cumh57yohjIxxzXpwCiHsvIEndxb8PV8Jel1mde8lWOlNYLIzDxkm0f3Qja8dIPJ7rKOocJucrsFlvXyZbgT4sFWg4LCYkH9euQ8RDUxtzG9TO9tPRV1/pK0WvBwQCQMt69by1TC9TMrcUvfMCOA6A2JKIN+LpI9zjqtP9fe2Sd+qpB9z4G2rHWm1kOZRf/xWpbJOO+R4KshzzS7k4eZux0VXrQ== 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=8Kzdj8uDNBAbOohENvhCvhc4J2KIYtOKDIHWPEbOCNs=; b=d8/lBm/hkR3K/N3Z+3z1BjVFnb/HP4g4I7jetpfWKUvZEEXPjCVW1W6IGmDBLG6aer4lJiyaokSh+vyGCxCUMAXivJkJhoNEYgq7/zVdiIp9+CK9oT4O2ORAwPwmoTH/fKTk4w2L9XJiNQYqSkKvDXbeOTgPGmpmUuwyEP+f0onXCgs3XF0UW/OmHl7AzoNX7bk2SNazRrO6768+6k5zyxTX2meB+ccGz3uOvDcmWgCZfPTx5oG0ubmAlwCsUGUfed0aaDaPHwm2qDK8qUZjE9nesSRNRnZEQcRn7fNPucHcv0MDNcaskVaDutTINDuFwspTcBPwWftBFInxmBQrMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8Kzdj8uDNBAbOohENvhCvhc4J2KIYtOKDIHWPEbOCNs=; b=jJEZXMYP7wk/8gs1p13mNcEGyapfRFOuW1xeoSKWSouJG3qKFiLvhuEBTyiRtL7zHxKp4O6EweICT1XK74z8/qfdykGEDqpHcxTje303CNaNcn5eE/MlWvw/FkrvvSkVw8lQf2sljRXR8wzd5ukQKn3BqjCUr4nBxmsnH7Dojlk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:13 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:13 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan , Rob Herring Subject: [PATCH V3 02/10] dt-bindings: interconnect: add fsl,imx8mp.h Date: Sun, 3 Jul 2022 17:11:24 +0800 Message-Id: <20220703091132.1412063-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 86dc08e2-6510-40e2-0ebc-08da5cd3d688 X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sOJqDaC5VSgH0pAH69f9Cui1LtqZeGnyt9kLpwo+ftLI9HT4XuPUbKHrNvF5f8qqUdoX9v9jx9c8M7WvWjo7fCIeuD4/0SlBbHUSA+xfDnuFJ1M6ou5Uf6Z6zUfMxarmA0erVlVyDQNyBBNj7OVN94fhPPN6i/JJ9KnFHHyzmANSkjXzJFKfN5Klc2/X7qXj6f5snT/bib1IOsqp/1UUrqq53DruNTvr9IKsbb5X3aeKRlUv0LuJ/tySK5J41A3GamHry9Hkf8alDPuJEzSuq81DMF54bRNyM58EdPcGnbFzkbL1x+kbiYQGErVXvUcLSuMX/u8yKjvxGMGeSHq79zCNvLe3FLEElYCHNQow8JYmFjmRTQJn3PdHltzuVH/+fNKC+A6xxeqBfLL9V4z0knDYoQJjJBpTjotEQ/v3QjgCpHd7VjANQjVX6TJT9U248N9wyGsPw7cLwegcoK2KXgkueIfboN1Soj/5Nz4I0/vDuEtFhq1TE8rzUH70bhluidWNpBBRQrGIyRNrhz28THlNJ7A01lCQtsWHpNr036+Lz25/Cm+Dde6qm6XxRVsS2z9cblWd7NqeEygyH5DAbWul7wkoOZTYuhk4QTwZdTcCVfBZIFPH35/9wSzoliFwCjQqz/czgVI1FFf2MYzDnbz0nuaUGT/yw4xF0dyjB02WKDnQsTJ4nZYfbVXunx4NNiLxKOEJVWmzu2upPLSPal4Q7OkIJbSYtSL8VAMt0lD1oI7fmPfcDAITOu/kj6cZXmGjjqCMLBIk1U9Fs1GElU/kgwqhYvcbphj26d/BbSJVzurl8hVI5/tU84gtC+z9gYvnNbEnIOsadfULfmHf8g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(6666004)(2906002)(41300700001)(316002)(7416002)(54906003)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(1076003)(6506007)(52116002)(26005)(2616005)(6512007);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OHcY/J9PXfpGcvKyMQVJIzKA/nT5X2eQly/hDrTfgKyruMAAln64XU3vyPZlCPR0QTcDj+7d5fulW1hcLKKjHLl6DLKhsCTy2I/hfDYHz5fUYsPIMSNk6Yad6dUHiTep4l9TMohLklEyBCr13IfgOOtodNONk8tH14xi4DL0lhj1qOpM/b9DgeAdSZbhCODgLUQxBSTWYUJ/c6DFkRFbLHpnC/M7vttgK/3LCkVxPt6Ce2KczPcvEK8fK4w5q9NDarMI45f1LGORgRQAOYBOEREhBPaSQQxT4ATIWg8iOVvEfBNXAQZE0KzNwqFsuD3wlA0hod+MEHzoAPNMRU7/h3Ov0I0Wa1Ji+MbtxLUySIn3byATJ2aM+VBA1Q9PLYgliqcaZJnJDxJAv9yHnjhnM1Y+CpTgTmYssNrLbZSIYDJ0vCpqZrRu34i8/BBLSV3Fpj8K77UlRckjw7yKvcmKowYWffM2mZa+1WVkeSvvByNSkPyXizXPvyWpQt+ylfLBOsicbXPEkgYMfaEqwkmeEOpSQLWFk+4SBdj2rxBtsgLreeXWVI3sekAaNMC/nqYNMQqSYQxbYiELwoCl7OsN6YZze8P X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86dc08e2-6510-40e2-0ebc-08da5cd3d688 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:13.6254 (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: sfeOzVdrfyKk8dQHL0LbFfXzFkBi71xpFZf9JaQI526luQy+JyRXSrWVA2MJoyj8L7+ZaE9ijXNcAGMDIXEWgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add fsl,imx8mp.h for i.MX8MP Signed-off-by: Peng Fan Acked-by: Rob Herring --- include/dt-bindings/interconnect/fsl,imx8mp.h | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 include/dt-bindings/interconnect/fsl,imx8mp.h diff --git a/include/dt-bindings/interconnect/fsl,imx8mp.h b/include/dt-bindings/interconnect/fsl,imx8mp.h new file mode 100644 index 000000000000..7357d417529a --- /dev/null +++ b/include/dt-bindings/interconnect/fsl,imx8mp.h @@ -0,0 +1,59 @@ +/* SPDX-License-Identifier: GPL-2.0 OR MIT */ +/* + * Interconnect framework driver for i.MX SoC + * + * Copyright 2022 NXP + * Peng Fan + */ + +#ifndef __DT_BINDINGS_INTERCONNECT_IMX8MP_H +#define __DT_BINDINGS_INTERCONNECT_IMX8MP_H + +#define IMX8MP_ICN_NOC 0 +#define IMX8MP_ICN_MAIN 1 +#define IMX8MP_ICS_DRAM 2 +#define IMX8MP_ICS_OCRAM 3 +#define IMX8MP_ICM_A53 4 +#define IMX8MP_ICM_SUPERMIX 5 +#define IMX8MP_ICM_GIC 6 +#define IMX8MP_ICM_MLMIX 7 + +#define IMX8MP_ICN_AUDIO 8 +#define IMX8MP_ICM_DSP 9 +#define IMX8MP_ICM_SDMA2PER 10 +#define IMX8MP_ICM_SDMA2BURST 11 +#define IMX8MP_ICM_SDMA3PER 12 +#define IMX8MP_ICM_SDMA3BURST 13 +#define IMX8MP_ICM_EDMA 14 + +#define IMX8MP_ICN_GPU 15 +#define IMX8MP_ICM_GPU2D 16 +#define IMX8MP_ICM_GPU3D 17 + +#define IMX8MP_ICN_HDMI 18 +#define IMX8MP_ICM_HRV 19 +#define IMX8MP_ICM_LCDIF_HDMI 20 +#define IMX8MP_ICM_HDCP 21 + +#define IMX8MP_ICN_HSIO 22 +#define IMX8MP_ICM_NOC_PCIE 23 +#define IMX8MP_ICM_USB1 24 +#define IMX8MP_ICM_USB2 25 +#define IMX8MP_ICM_PCIE 26 + +#define IMX8MP_ICN_MEDIA 27 +#define IMX8MP_ICM_LCDIF_RD 28 +#define IMX8MP_ICM_LCDIF_WR 29 +#define IMX8MP_ICM_ISI0 30 +#define IMX8MP_ICM_ISI1 31 +#define IMX8MP_ICM_ISI2 32 +#define IMX8MP_ICM_ISP0 33 +#define IMX8MP_ICM_ISP1 34 +#define IMX8MP_ICM_DWE 35 + +#define IMX8MP_ICN_VIDEO 36 +#define IMX8MP_ICM_VPU_G1 37 +#define IMX8MP_ICM_VPU_G2 38 +#define IMX8MP_ICM_VPU_H1 39 + +#endif /* __DT_BINDINGS_INTERCONNECT_IMX8MP_H */ From patchwork Sun Jul 3 09:11:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587040 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BA1BCCA480 for ; Sun, 3 Jul 2022 09:10:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbiGCJKb (ORCPT ); Sun, 3 Jul 2022 05:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbiGCJK0 (ORCPT ); Sun, 3 Jul 2022 05:10:26 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2045.outbound.protection.outlook.com [40.107.21.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEBFA2723; Sun, 3 Jul 2022 02:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f1NHFQ7jdAUz04zi4+FGHiJ3RlqzBKXHvAAewR5G9+ERYQWn+xa1KiT8MCR9hLH8/sjYD7t/+Ylvx8P+iVVmKQwbJ6TnOCdfS2UnLRA44mJDXTOO+f+7lVnxduqT+FdQyzJUyy83HN5feXzXeEC/z9wHbNI3d1iytVv3gaVWIskiAURNP9DbLZIw3XOeU1ZxKpDtcBBWmldedCiXNO5SsEczRHtN4RMfKxB5+zXs3jg0+GthMrUZtsHjn/Tet+rBNUMZZ2R/flt8xBZWl3MOY57JW4QgYGRRfwS/54u+EMfzVB5rarxutW+U+IeDUEjqpkaaTsDab2YuPURjGuJR9w== 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=acQKgVJF7AArGjJMPl+670oOUbjqsjIozrJ1xFJ5NrI=; b=TpU/7K7n5PkklZa2/GmkNcDC4eXofVvEl4jmpgiEqJllg9NkGb4lkn6zazsAfBmpqQwakryT05+Al2EjXX/zQJNu8xicmti4cucC+jYWWxVhRfBHOriee93M50RlfxgCaqYHtcUQYPxjxD4NQuMnLg3kd49cFbKO8fCU52O/HGu1MhnuqNR31gWwUcQ8GkH7QpzWw3fX69cxpta+XRBZHiKPsIIBZSu6aYYzIm7d6W7Zfr6ZXy1ptJ+yDGI1v/7jUOzWzkkq0c/fTioJntJtN3miTia0tX8x2VB+Zz2D57o+Uk6x/cwTV9lEyFriNMNXoOwrdigMVokNH/ArohkXwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=acQKgVJF7AArGjJMPl+670oOUbjqsjIozrJ1xFJ5NrI=; b=eSC7WMgylA0rH2aUXuG5PiHyeB2Lho1v6cquCHcCueuQGXF0lgTAytJ6ZiJhRaoe4qBZ/D/etg4+l9ijDos9f89hXwZEog1lTyRaAhVjGPRfZESOEKVg6datfpnZ0DAskmS3a2TPT/di4KwbIgI6Mdip752PzKHou7tREPSwSoU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:20 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:20 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 03/10] interconnect: add device managed bulk API Date: Sun, 3 Jul 2022 17:11:25 +0800 Message-Id: <20220703091132.1412063-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 57dfa2a8-3984-4ffa-1f0f-08da5cd3daa7 X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5hJZoWQvEuxXsaEWs3ioCcVvOyolJkgLv+fIuRTJuLbXtrvum7TathQRQNHpmTnVkY3BbACnayCEx9xSKPuX3hTXoG7mCxUdlL0Ec1JWIF8TZ9InW4/uz2g5XFG4fJWaro3osA99W6m0UEdOFmsuXzmTc1nbqT/S+YV77HV0y6ZVzym3Oayusw60vkME1/S7rWYTet0jzlDJ/bcrQ9QAQTErnXJHnOMbE4EkzbphDVD/SgGqyqeGOVibAKu6M0bjxH7LoD5pZMDoc8T19j8v9zOda9v6FN/NtjCLd3xLrn+q0RvMw7DEzUCSOnKnMEzDu9kTiRh/r1s16Cqdr80nOlzF5z0z8ByWZoqRB4cAoPFSvINPpAp/0v89cXGiJ2Ghq0KGDyda5//t1/NLIni40k4K5GuT71EcmyHhIbmY9UZ+6/NJh+SJqtnUvzOGwoi5T5g1zwvmXkRLVuvWQbH1BvqCqj6uyMHbN5xOBqvBKObgdnKAK7AuD5Gcx1On3sMXU8hpv9EQfCV/bcjxKOQTeqHNhUIi8Zbd+ibiRwEliUjP1doY4qAjswq3V5IhF5lXjfgK/BAlJw7u4BaclAM4NFhN4i31pYMYYNY+nrADzgbTW2ob+KuttglMwk/rnPEfm8iYv91bcJlEVgTli+iDej9SyZGVhgWXP7OBppbou7cPxW7Mj9CGmCfhdodjAHqGrfmmeo3CvNzYcVwioaZbPMJaWpENTDZnTLbnDJQhjr1aOtfVs9/bJ8TG0zC6gGhPimssBJcYYDW7hvP0njnvOVv0inuvrLyaSB5rRH4kClPwDWh3qcLqphwmAPxSplxMeTV2WDXYUhed+Ra+csyMPQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(2906002)(41300700001)(316002)(7416002)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(83380400001)(1076003)(6506007)(52116002)(26005)(2616005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xCPvXWjIBoO8pXFrrjDkrlnDVnSPRZPuLabQF+EnSyuLShXgu7rSmXc9JfPqrHfPXybSUR/gnwyBm+qVPoiPLHMYkRoNWGLwd1TidE80unR3PL7EKkPYrC95BRvsgieonnN1uDSkq0UFTPsA+9OwsJSOmRtnP/SvzDaB1SM/L6saVfuvxAtPdyZig7VDLvyrfRM6+Ak0yfLKmFe1NGcvsMZEywE1y3LHft08INkM8UzbqubdW5ydmDikC1zF7etLX8ep0AiCqQ95TEsknASKVXtU1UFxDfUyVGWYtyzPQ2PRa9UXxwVo4IHAjD8+cNwrz6AYNGUZgMNErPqc2TIdX27ZyV17MhDQ9cYkzRZ9qVg2ODK7TpOR1XHVO4U8Iem4tSGUaAaPN9scPKdhbQIwloelTkisyOfecx0QYi49INQwUEvY8f2p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veLeX3KQwy2mw+ZsOM1Fm1vtNveB7674Tb9X9HCztv8f4JY4hAo6Bnh4wR3BrCjsXyM31UAnoYp7uDGOygw5PnxZ1adfp+e1zw0XgD0u8z2 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57dfa2a8-3984-4ffa-1f0f-08da5cd3daa7 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:20.5554 (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: yhqrfrsxSZBZa4CpbgOkrmAuXACdljYy6VBd0rLN9nup5j14QBrMfEjk1u/6OncPT/K6ZP/eUnIOGN7aP618vA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add device managed bulk API to simplify driver. Signed-off-by: Peng Fan --- drivers/interconnect/bulk.c | 42 ++++++++++++++++++++++++++++++++++++ include/linux/interconnect.h | 7 ++++++ 2 files changed, 49 insertions(+) diff --git a/drivers/interconnect/bulk.c b/drivers/interconnect/bulk.c index 448cc536aa79..8b1d8a412464 100644 --- a/drivers/interconnect/bulk.c +++ b/drivers/interconnect/bulk.c @@ -115,3 +115,45 @@ void icc_bulk_disable(int num_paths, const struct icc_bulk_data *paths) icc_disable(paths[num_paths].path); } EXPORT_SYMBOL_GPL(icc_bulk_disable); + +struct icc_bulk_devres { + struct icc_bulk_data *paths; + int num_paths; +}; + +static void devm_icc_bulk_release(struct device *dev, void *res) +{ + struct icc_bulk_devres *devres = res; + + icc_bulk_put(devres->num_paths, devres->paths); +} + +/** + * devm_of_icc_bulk_get() - resource managed of_icc_bulk_get + * @dev: the device requesting the path + * @num_paths: the number of icc_bulk_data + * @paths: the table with the paths we want to get + * + * Returns 0 on success or negative errno otherwise. + */ +int devm_of_icc_bulk_get(struct device *dev, int num_paths, struct icc_bulk_data *paths) +{ + struct icc_bulk_devres *devres; + int ret; + + devres = devres_alloc(devm_icc_bulk_release, sizeof(*devres), GFP_KERNEL); + if (!devres) + return -ENOMEM; + + ret = of_icc_bulk_get(dev, num_paths, paths); + if (!ret) { + devres->paths = paths; + devres->num_paths = num_paths; + devres_add(dev, devres); + } else { + devres_free(devres); + } + + return ret; +} +EXPORT_SYMBOL_GPL(devm_of_icc_bulk_get); diff --git a/include/linux/interconnect.h b/include/linux/interconnect.h index f685777b875e..2b0e784ba771 100644 --- a/include/linux/interconnect.h +++ b/include/linux/interconnect.h @@ -44,6 +44,7 @@ struct icc_path *icc_get(struct device *dev, const int src_id, const int dst_id); struct icc_path *of_icc_get(struct device *dev, const char *name); struct icc_path *devm_of_icc_get(struct device *dev, const char *name); +int devm_of_icc_bulk_get(struct device *dev, int num_paths, struct icc_bulk_data *paths); struct icc_path *of_icc_get_by_index(struct device *dev, int idx); void icc_put(struct icc_path *path); int icc_enable(struct icc_path *path); @@ -116,6 +117,12 @@ static inline int of_icc_bulk_get(struct device *dev, int num_paths, struct icc_ return 0; } +static inline int devm_of_icc_bulk_get(struct device *dev, int num_paths, + struct icc_bulk_data *paths) +{ + return 0; +} + static inline void icc_bulk_put(int num_paths, struct icc_bulk_data *paths) { } From patchwork Sun Jul 3 09:11:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587399 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAAF3CCA473 for ; Sun, 3 Jul 2022 09:10:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232385AbiGCJKh (ORCPT ); Sun, 3 Jul 2022 05:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232331AbiGCJKe (ORCPT ); Sun, 3 Jul 2022 05:10:34 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2069.outbound.protection.outlook.com [40.107.21.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939A36356; Sun, 3 Jul 2022 02:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MfOriI0oDpNxkUsTvvl1ez1GTGfqM3ajyfwraS17IbcOaZhwlShfS9BDrBQHG4aXWAsBAEVw3RgSv+JSsVUVfvSi4o+KePeU+CqnCG9P0t/68lDxSw7z0Xpy3+SmATT7P153nZJuYjHzDVfVHIaiyTT/t4jn5rrDqj/BMlH1UTWj+NkwJLSi0BVAqyt6oSMnzRGNY16hfWV5JLi3eG824M4fZZ6q4wznLB2KqI6M9ZgasCz+tOZF2yLiJc5+ZpUkWTk2Gvm5sPQBLT/LZOhEBjK8NuxWMzk2VPqs8Ht9LSQr5BFQhvAZRLrDxhnQbifDbdZh1L1o9I0Apg8Ch1ceWQ== 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=nnFrfn5UnzLFl40Nkg7G8mYn2FZ/F9QeYrn/MkSMNeA=; b=KGYkA5W9diOKjfGBe1p5VuxxuoKAU5OElxpZunzg3Pps3M+agvnTzWJeKQD6cqmXLPpJ8hTT2YJ62VDbvhNwtIE0+ORPGBo1zpR/3KW96ogCsiFUSfJnqa11AyYsXGde4koQGmUqi9DlNoQS1J7zSLsadDamjNrPB6bpDxvf2YSuMfHMn3ERVRtiKk2f8mna40TJRhHJyj7r7A9fwIJQy4RemsZAhw3IsLYCKnGhetV4e9J+9gaboMKVZB413K+ryP36UgMrsGc0mHQaEypiwQ2r8DPiNg3NQRbvorE8ee0xcPNsYsnyrMAqfpmyuujIaV3Z4KRdDdTLVK8a/lDvkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nnFrfn5UnzLFl40Nkg7G8mYn2FZ/F9QeYrn/MkSMNeA=; b=DH3KXzEhXP+Uzjz6qZ4yNikK+KtuSy5YuKRAsX/bA3JhpEooeiiknKdcpPbfku6wj1ffkQq17eFVzk3+zgreRvnNR6wP6gjeehIWtIzlTHIprEA92RZXjTSKhmYSH6e+CoJatW3JqrRcif3Mqhe50jfi5SqH9ojsowHOWPVDisc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:27 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:27 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 04/10] interconnect: imx: fix max_node_id Date: Sun, 3 Jul 2022 17:11:26 +0800 Message-Id: <20220703091132.1412063-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cb1db7bb-4b57-425c-7d86-08da5cd3deca X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TVcUtebjwJbbHwP7dxDk7mh4x8X5c/b1IAF3zTno/bp4ciexkPpHHSjmOTyTEbQzFgaA+M8yVUJoyI035WP3MtCHRUjPpCC7azdNoDFUQX/tygiVECHgH23zw6Sj8QIK/jrvz5ELMutiJ0Op4WCw0lsxhVyRZug1wzfkEqf8Hl3jxHvx0dYqbvSjR8osfOsbMVaup+Tr5Ao3q6EmALtr4oo8EZSQTfqZvbMH4hKao6z8ScTYnTQA4B5eKJjVs8slGjLVLsNI4lFSLIMmEVELqtULUldiSy5zeAHlp6n1trQt27/b5sheGPjMr809RGhY5l/u78Gv4mCzyq5lJLCetvpiJM19oPLege4EQoGJ+oyHVc/iOVsSJoSLCfbG39Zm/d/NRqSna8Oo0J/Q5dBSXKJyUZC9/diDffG/A2rdbqnWDCS8M1Udq2NpX/gQPI1xgue2NO2QrNshQjM8nhZ5zHtboOYRog+8pY+lesdkpGMsaLlZ5VOLSJyP5anK/tKzwRpHxBj5C6EV5GdB75beUiJb/SuPRZL/3Tk6oTmOAmRaDDOluu9OLLguk1sILhrxaXsu0Gk5LccOIZdT+GsHn4zOWvdqz9zaUCl7gbKNC0KmOcykGN2CNsXZea4/JKPLNPDgvhpGHsHjlmUGpyvt5q2Amgc5LOKdndqLIPnDLmM+e/IUOOCi/lhdLq2ygYyzXI6nIV9jBE1KsRGTHCpPZFtDDYwxvJEPJjmNN9xVfnP3b4paSryk7+x1EXOyrtNk1F9SWzazaBBJYpF8THfObhK5RI8/MDAuekkArB4cGNNfDqy/XeKuyCqzRX63/gDWR2Q5FucsqTrLo7OwTGRnwQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(2906002)(41300700001)(316002)(7416002)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(83380400001)(1076003)(6506007)(52116002)(26005)(2616005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 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YpsvDZMPfuBvRhjbplf25mX5mkznzgDomCLeZVRRDTXIwBI+JzeQ4Nl6MDMYHZOsov4o8O0rNp9OHc1pKcu0TUoJJoFK4AG6FYv9cbB/ZyKBvux9ZRu2RWTqkLaynPOj6a0RhbDvtYrcaALZNSbzIEY4Jz1cN67YmSQbBiLWQxQ1/oaWKIl2ninsiKxH/1dj6acYrZz+fAouA0vMULjCiGha7rr9BEpGlFYloOJpW6+AlpYHpbSqGLJq55Fdx552ho1vL4zRiP5vL/xmSVDpQpYcInSEEPKtsu2qzIoy7y7+LqJRCrIyTxzQuoRAR0vdOX/b9HluRhGoLb8huTg4Y41ks5XlQOTu+EZ48moVDRMbg6sV+MxvqwMQHciEieCPS2uKPEc+WjzTFkupvBqeBBzb0xIkYY3PqoV+aCd9gR+rVdpzg6db79Rcv5aiOKJZr75DcTud1IoFK47HQg3I3taZG1WGkeZCGZt8hdrYmrcgtiWk3LPctRO8yUeKI0Sqh2X2m77jmFyImoHW5QD3q8xT X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb1db7bb-4b57-425c-7d86-08da5cd3deca X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:27.4669 (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: gpOyMvmDcUMtT6BtT2TX9j68PM/I0rW89BsTZGUJUPo3crL1VGJIwykJ30aCYrcCeV1+eCdM98oTnquV2Q9tbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan max_node_id not equal to the ARRAY_SIZE of node array, need increase 1, otherwise xlate will fail for the last entry. And rename max_node_id to num_nodes to reflect the reality. Fixes: f0d8048525d7d("interconnect: Add imx core driver") Reviewed-by: Laurent Pinchart Signed-off-by: Peng Fan --- drivers/interconnect/imx/imx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index 249ca25d1d55..4406ec45fa90 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -234,16 +234,16 @@ int imx_icc_register(struct platform_device *pdev, struct device *dev = &pdev->dev; struct icc_onecell_data *data; struct icc_provider *provider; - int max_node_id; + int num_nodes; int ret; /* icc_onecell_data is indexed by node_id, unlike nodes param */ - max_node_id = get_max_node_id(nodes, nodes_count); - data = devm_kzalloc(dev, struct_size(data, nodes, max_node_id), + num_nodes = get_max_node_id(nodes, nodes_count) + 1; + data = devm_kzalloc(dev, struct_size(data, nodes, num_nodes), GFP_KERNEL); if (!data) return -ENOMEM; - data->num_nodes = max_node_id; + data->num_nodes = num_nodes; provider = devm_kzalloc(dev, sizeof(*provider), GFP_KERNEL); if (!provider) From patchwork Sun Jul 3 09:11:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587039 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6131DCCA480 for ; Sun, 3 Jul 2022 09:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232331AbiGCJKl (ORCPT ); Sun, 3 Jul 2022 05:10:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232416AbiGCJKk (ORCPT ); Sun, 3 Jul 2022 05:10:40 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2049.outbound.protection.outlook.com [40.107.21.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C18963B7; Sun, 3 Jul 2022 02:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nHflIwpFUGsLQUZA0LpORahXGMZY4MYq5C65a5Jloui3VehTTZ/xbaszxc16X1fwmMPtzNRfS6dqoyG7T2bcRtaMLj9oGw32xu7qnKHIqzDjdHvDZWR4V/k96yb6/b99yXdmOy0hCOgynZjfaDctnJ0LJpVrIm2MPXJgMlO5VUlL8bahMIg4UaGZk5pf129bcOi8SdCLmQpvVO8HwUl01MfRMABVY5gg5dyr7rLzSQ0OMT5OLtKaILyofh+DLKGqaXdsmC67rn0frphvCKtS3cKGuJnwmaNPQYsGc4U3v8y1334kVq5B+wS5FvL0BTS9mTiOHTQyWjqPoRjlQc3DbQ== 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=SsCBv03YMON/LGFRqdyaB7553gxFeYD3FG2+X/3brNs=; b=dZh8MPHNSNZ4Hxo4RymHF8DyZ/5ePNzQgyM+AQgce9OWJbv8KLb3/1WT6lojPbDaCcD1LsnABgJrGcfHm7lXdu4y4Eq02cGafZYDKYTvBzTKELtxHKhXZgQMZbsj1K58gT4KNYw23pzLgEUK8Ua7lZrzdCZIdqZsbGsMDTHVbhTX/2QkDFwYQzZdIS0CbmZK2T8O44WaPkt770QJX1qzEt+QdQf52fAykSUWXpTNiMJ4L6LjN1bE4n4E0EQnPUtN2MR5nS5PTy0fqpX5/K85pi4GFk/nIdG8nwGD9sBlpEHm85cYeiqmz9yvG2jtEjER35WC3rc7HA03jCoJkZ1xcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SsCBv03YMON/LGFRqdyaB7553gxFeYD3FG2+X/3brNs=; b=cIFj/QoJ+L4zlDQn8KjPHi3ixqESNjZFXctzVwiTyPFPSixQqIZEJav6HaZ4kANCiPo+NR8YN/MDxpyZL3sWZhYxFVVzPssYIATDfknN3H/WPzXSpML80ihWTvKEjyEl+p0az9n328qwasU7b+2wijdA4ukJ3p4iYXO+3lhoGaM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:34 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:34 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 05/10] interconnect: imx: set src node Date: Sun, 3 Jul 2022 17:11:27 +0800 Message-Id: <20220703091132.1412063-6-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92a5d24c-4c5b-424f-9ada-08da5cd3e2e7 X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 97NH1xBd8LNfUOiZlQvs05eVgrQ/BCdlL1Ofb0iK3J/1iy7qrdncAP4eipLVdKdejzmM71Q2M9q2douO4g0gHUoB7Sav/jeEkZ2oOVFGiHAia9SC+8LOqhiXKUzYOUC2FE8Swvq6j8+KVbUx2UJWHFWx1Nnqv7LznphJTzpLTtrwNKxwzBclsSE/HXnZLfEyPeq6/j1WjBd8/ZQEABV3ms1IwgRofZhhCmcFll8DU5AOrRLKaD4/LHlph7ChCUx+j2EKboio9+w3Ghzm8/NpQ4Bb7uzNHOEmimbmGJ4eIxKzZc0gec7yljEWB0E3Tyj7Qj+ajbVVIbKtUPyhmdJtR60sURzojYFPLOhJJIsBk1+Iu0YY1vXhL2FOgwqlD++FDmKnPOIARJA7BLPkLDZTZRI8F0cNr04h1eAKrWcajh7bRwkUEaVWH07hZq6h0hPS58s2IMPAfIjuMWTVFm5fsetenPoKkObUfEyRyZsqzA6dtDKG9EgIvzQqkF19cYa9SOJZy/mbr2QWsoN94r0FCr5aq9ZoCB6yRoAmCPgNBlzTp3uaM4xnGqz6uThyaLfZAEy7uLtdhM6DiDBK2tNH05yOaQOrHIZDjKJdzh6S0S0AncfB/zXLwYd8viZoKK0SotRZLKw1LY2mxueXDLvItz6zjZpGyfeRSOrfeUoOZSX6bzQJMIkM9ZG4o8JZeawvXKF4v+pwU+fNOT+JIukEv/ajkLyQQtspX8K/Yb8xJcDp4nY8wc+G+d5MeDhYRk/WZWqQavEOblL92dukwqrIak7Ft/mffpooQ90uYDyjO/af17ZNWlXKIZ4I4OSYw7FgN3IhDOAbP3Z64+FnGFIENw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(6666004)(2906002)(41300700001)(4744005)(316002)(7416002)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(1076003)(6506007)(52116002)(26005)(2616005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6VEtkbixxYHFGnrVWrL71m6XUuqsBEmvefoJgczDJWjtjx6pifFWkIt8BOIJIA2UXC0R4EIy3ldoHGkz/DhK8cZHb4jPzUJEeNPTHYFciy77w2BHozFHI33Z61N5Qs0qwA4Y0QHPrvW8qdIQmNKJQlM60bCQCUeHLhjGAXa9hEdMcZR+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Weudx2vNIrD9HLJdu6mlE3B2/lQEG7pHCO2XnV4eCCCV+0TaZmtmkLS5b4eTglHkiKG87K20d5DONNr7106g4FPJjZzyass7l0xjVMvbIo3n0+RYsNB6tJu+rfHRpXO0QKY8QgTrYtEEA0eH0MAQ+UtI5O4ActxExRbH4vUe8qKPvJm5u+vNy36XSNaFaDB9NYT+NCyGftpPY6lMSG6865VNcNe0vKbGJetirkHwptrtXJQmAgphm6bNplrSx7DxaTLabzVX0aRADkbGgy7wqle3HWRgrZdMl2h7opj49e0AT8IIkzKBgLcg7ULj/blxWtXdh8jDZbMHZ0VKhI4DFZniH/eZbKWvtOWh X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92a5d24c-4c5b-424f-9ada-08da5cd3e2e7 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:34.4467 (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: WvMLS/NgGI5Lytz8wu96gGahyfTK/UJ4elbs0goTJKXK2bKMJmYpK3ZE76TEH0OOLsTQVZ8ziOHZTh0Tmpn3Fg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan When set QoS for a icc path, only set dst icc node is not enough, also need to set src icc node. Signed-off-by: Peng Fan --- drivers/interconnect/imx/imx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index 4406ec45fa90..9b83f69945d8 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -61,6 +61,12 @@ static int imx_icc_node_set(struct icc_node *node) static int imx_icc_set(struct icc_node *src, struct icc_node *dst) { + int ret; + + ret = imx_icc_node_set(src); + if (ret) + return ret; + return imx_icc_node_set(dst); } From patchwork Sun Jul 3 09:11:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587398 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E6F9C433EF for ; Sun, 3 Jul 2022 09:10:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232539AbiGCJKy (ORCPT ); Sun, 3 Jul 2022 05:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232476AbiGCJKx (ORCPT ); Sun, 3 Jul 2022 05:10:53 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2056.outbound.protection.outlook.com [40.107.21.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468F56389; Sun, 3 Jul 2022 02:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gKtbHVc1RcQjeYslhXYySIbgBXaJ0GMZwOkxBOu+AkXvbXIXIgsrlY68ZigbIh2p+Mz3lFODijEX8BCYlxmmAWf8SfOks/eva7gQZD9nN3JgVTUu4XMnsuRiapvutGZiDdbdkrgh+6VJchjhHtVhyEE0hDcGuovR2p1RWiSztfsSBb399/6AUjdzFPFqHWifeBbiiDLnZYCCZzAQ8Ya0fP4z4kshsHGpEVWSLQf/Y5k0/zCx/lXyC+xSDgcRPifn1x5hi5VH/B73joYEcWbf6pXPDVa2GViOihYNdLnR66PsHH9i9nbPyx9fE+RJ+UBV3pkiYsBPxN2nfkuo3YyxvQ== 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=VMO9YkRud2Dgs7CFcVcpItGnH1I8/OM8YjyRzC2bGJ8=; b=mnScqJOpEBmwd+QvWNzFNJxQ5WHPCAKbQW06xp7l4aP+sU2yris+P5DeJhk4p0tHxxM0Q+yaMRHkzoyomM58V1WyuArqB0km1KTInCYfFs8bzLlbRY9Wqs8nAI+JnG5IxMvgs/mRnnqWigs58OgiN6NlSFzS22nZpV+s8dUyR3gO7hhm/uIll4yRkd8XXX1bKAcHy/5kjNNRtMj5PAwoWSoasB7cUvlRmH13pE77trQhTDKY5COzzCi6MfPybObbrZiaF7IAO+8E6iTypAkKZtW11ny7EzhRhRCl4JuvkMqCSinHW0y4/PZxLzJxuUASBc/y8Q6NhdgIhCQrWmiuEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VMO9YkRud2Dgs7CFcVcpItGnH1I8/OM8YjyRzC2bGJ8=; b=h2qElmqOLD2Nb6K8chOfNXK9oaG0s/87iXDzOfCNSRxBt3lI15sLsYrd7FkrvygT7amhwdoH9KglNoYUL/7qtpBne2SiK93Hx/xY/9pIq/xef6FMON+Q8bBbSMACgD3qp9Mpd8mbZRjxJCh98d8wKBaBFM1VgGbzLDA2M39unY0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:41 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:41 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 06/10] interconnect: imx: introduce imx_icc_provider Date: Sun, 3 Jul 2022 17:11:28 +0800 Message-Id: <20220703091132.1412063-7-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f048a12a-09f5-42de-fa26-08da5cd3e70e X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tA3+X4fK5+ddZr5AqZUXomgq4ePCoHEj/jxvT9hlTL88OH/23JdgT8d9j8qnVDOEDXlBdUXgo397SBqzy2y2p9jvpEG9fQGZrrIGw7lwCKmlg10kUIZKcMqhQCPMaqC6Wli5ItsEyaGfZPS005rr0L/4334r4toily65S1nFn+jBwKkyD5gUr/5HeLjFNuzum4h4OcjCN6RC6svyrriAm3tDRJE4Vq/GnjoakIaGyrmoM8v3B8WBHkGf4VeJL+1tEl4OkBQ4pqOEaNtbW0L86GDLUaDMhRkzL+Fpjs4kr2nDN3OTbQRlq1CDqSri5z8yCUSWRJuOQDDd3nNaj9euA5JgE5nBxiPZqMxpVTENJ5XMW+RYqI0O1JpXygNDQtirEaOPyWKaAOFlLLorsRLTCZgT8gCLPB5FWaz1XbZ50BcvCVdyhuCzDBwnFfqAGC86MfaXpbQ0ffskrBP9lB1OePOrgZT13PfkTtEDkn2FDVRCiFSftu/PzVn4kH7Lcw5fkAX4qNlxUSOtN55XC/pbcYVdnV7nOpkubKhxvHfPF8+q3BZkWTXciWcmwEi3owfCvI4ExP/RsQxo30dWIVPv9Hg6Mdc+wvf1L8EQU3rctXEqpc4LqhC7ydkxGsun7nc1GofJckc3t83fGnJZ8f8HKhdsz3ls/R3wANUkK3qP/rC2U7xFZe+CpSgBNLv1KzZqumRZTN4QCOSlIR12oLT6GMXmnBbJOh1QrP2LPnT8AdrJe64F90WhcYLBORmN1poTNGGCegvS58UaLUwWtDpfQJ2KFw4TTO1NAQs7s/xzc5Ubt6zNMhqAz5gHauSWT7285OUTwVYWYMW1tw0niBwk+A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(6666004)(2906002)(41300700001)(316002)(7416002)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(83380400001)(1076003)(6506007)(52116002)(26005)(2616005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LqoDlbbFP5pnVisS3PBAu92rRNltj2ryxL/jZJVJFnd8dXoP86TSFVQweN3h+1YVsyacRrHTKDYdxGjxhHTGlGWaTf2sU/3BGtDgjUM6YWvT1UAsZce8eCuH6K+IA7pNu/9VtnMFVzjW0z+jzx6N919LIUMuGlzLMr0G7C94aYGDPxmsgIYs62dtx3/3IeJ9CDBg5Nk4ddGgydwp8VC7wXCdsihslRja3NcpeS9DdPVoO2m5SvHyCCOg+1p1bIF4B+aozXvsLLij5TgrqEXLK5jnAdUnT3MJAbb0Y2M10v9En0MsQo6xWVuU1rcBuOaX8qcwasdl77zmAIKkbHPZRZDnI4EauznSIdmUPfmDE5eXQ+nilxBmxeCHa9bJbYsET1Rn3WOwpqoWeor/Ld5Vq2siRPpV3Bsk4D9ZOWNinZ5KCDmAaD5n6fHuXiUAimiDuJlJmYoOq1Tduf0/Pfg8qJfId1eXq3GQYdztTnjHl4JVdoTJ2A5eG20NDGS7FdBDBQtkKEv2P28/A/boHzMTKVNRmA3Tq30bjQpDfenvka5iqf46NTwEWF2flXLeYH58CJa6R2P7gjvIJlE6zCnpSG0iioluIBioi56uhx/aXdlTb2Iizra2ejGVJanuVfBZcnaY1k+kAkZoxJStxe6cUkCvC3seTZVc3Un1TxIl7ieD9+yfgEBKZ0cti/38k9mxXcu0SfQl+9enkTJkO1TI+CSDv/WrMxdXgH9vBYHWNmseT0HNLW3IL0NCZoXbXK/Gg0tGJcqDbOLeizjyTbnLnNZ+4dEE1sTRDydTizMQTdaDdz/TCV98cBpc+bjPEk1Ev0tL4miuR38XiWPTkyIzyj04xPMG0ne2XcZK10qIJAI7AW5puiv1n4aKeVYKJPjFHTU3VequZ5MhslFEqx4oN0XGjP9PA38WfCb8eW7eLWJcvgQPR4WFCGWlaFN0oPYozci1wHVyRyna73NYk9PBk8eBRs+3cSPrw/2jH0zVN3hJt9aXxA7sA4Fk4vle8v5OZLvNWAG3mv0Okco0J4ZC5MFhed9QbPmQPfJUSEoTHFi8W1o9w4/+w5B40hw8Rmwhu03v4hmcj4UcVZaaGgIuEzFi6OOiz9r9WKtPkYCZdBRLOaig5jHdzlXhEDEWo9axoQKCcw6Lz4Ve13PAwUAcj+d4CtqO0SzF6z7T/hOQMOAyuoqAwRFqgiK1OGAEgF8udHPWJpPwCmm50S4Q13W1NCZ0e+m2VcnBlIc4MnDocROjmUo+mCVdF60+wyBrrjhPmEDJSfv1UYtO8kdy8GAobRTAfKzE6qFmB9+GudRFM8k3BzXOQyqEO4duxAOQQDMW6Z8hTJdvGpt3X7fIqJEQyda/TNvhR+FdiEKpfdnAbBZFPO8YpzIhyJznZzmmd4isEo5hQAKAx6v6c84ZU3f0P76YIddWi3u7g3jYoAWjx9SE3UQJKaVPeGmDY5VyL4sVOOBW4EChkRDbp1TRR0XKTM8rpsX/Udsw0ple6y5jVj8kVjDCeuCSvqVvNnS9mzN5XlqidtsVKGm8nsnEuGQuxOjT+Yf4WHO70kMcO9Z4PjQm7pQwdaxgBkJ11LeDWHlN X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f048a12a-09f5-42de-fa26-08da5cd3e70e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:41.2906 (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: qLkaKWXbL6cZQivgbCHt9dCijpyoImfK1BI5ZloL1wfQa+z1nKdkzTmoJ4b+65WVXIeOSdDuiZjJaXkt/CABvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Introduce imx_icc_provider as a wrapper of icc_provider to add i.MX specific information. Signed-off-by: Peng Fan --- drivers/interconnect/imx/imx.c | 24 ++++++++++++++---------- drivers/interconnect/imx/imx.h | 6 ++++++ 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index 9b83f69945d8..1f16eedea21c 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -134,9 +134,10 @@ static int imx_icc_node_init_qos(struct icc_provider *provider, DEV_PM_QOS_MIN_FREQUENCY, 0); } -static struct icc_node *imx_icc_node_add(struct icc_provider *provider, +static struct icc_node *imx_icc_node_add(struct imx_icc_provider *imx_provider, const struct imx_icc_node_desc *node_desc) { + struct icc_provider *provider = &imx_provider->provider; struct device *dev = provider->dev; struct imx_icc_node *node_data; struct icc_node *node; @@ -184,10 +185,11 @@ static void imx_icc_unregister_nodes(struct icc_provider *provider) imx_icc_node_destroy(node); } -static int imx_icc_register_nodes(struct icc_provider *provider, +static int imx_icc_register_nodes(struct imx_icc_provider *imx_provider, const struct imx_icc_node_desc *descs, int count) { + struct icc_provider *provider = &imx_provider->provider; struct icc_onecell_data *provider_data = provider->data; int ret; int i; @@ -197,7 +199,7 @@ static int imx_icc_register_nodes(struct icc_provider *provider, const struct imx_icc_node_desc *node_desc = &descs[i]; size_t j; - node = imx_icc_node_add(provider, node_desc); + node = imx_icc_node_add(imx_provider, node_desc); if (IS_ERR(node)) { ret = dev_err_probe(provider->dev, PTR_ERR(node), "failed to add %s\n", node_desc->name); @@ -239,6 +241,7 @@ int imx_icc_register(struct platform_device *pdev, { struct device *dev = &pdev->dev; struct icc_onecell_data *data; + struct imx_icc_provider *imx_provider; struct icc_provider *provider; int num_nodes; int ret; @@ -251,16 +254,17 @@ int imx_icc_register(struct platform_device *pdev, return -ENOMEM; data->num_nodes = num_nodes; - provider = devm_kzalloc(dev, sizeof(*provider), GFP_KERNEL); - if (!provider) + imx_provider = devm_kzalloc(dev, sizeof(*imx_provider), GFP_KERNEL); + if (!imx_provider) return -ENOMEM; + provider = &imx_provider->provider; provider->set = imx_icc_set; provider->get_bw = imx_icc_get_bw; provider->aggregate = icc_std_aggregate; provider->xlate = of_icc_xlate_onecell; provider->data = data; provider->dev = dev->parent; - platform_set_drvdata(pdev, provider); + platform_set_drvdata(pdev, imx_provider); ret = icc_provider_add(provider); if (ret) { @@ -268,7 +272,7 @@ int imx_icc_register(struct platform_device *pdev, return ret; } - ret = imx_icc_register_nodes(provider, nodes, nodes_count); + ret = imx_icc_register_nodes(imx_provider, nodes, nodes_count); if (ret) goto provider_del; @@ -282,11 +286,11 @@ EXPORT_SYMBOL_GPL(imx_icc_register); int imx_icc_unregister(struct platform_device *pdev) { - struct icc_provider *provider = platform_get_drvdata(pdev); + struct imx_icc_provider *imx_provider = platform_get_drvdata(pdev); - imx_icc_unregister_nodes(provider); + imx_icc_unregister_nodes(&imx_provider->provider); - return icc_provider_del(provider); + return icc_provider_del(&imx_provider->provider); } EXPORT_SYMBOL_GPL(imx_icc_unregister); diff --git a/drivers/interconnect/imx/imx.h b/drivers/interconnect/imx/imx.h index 75da51076c68..0ad2c654c222 100644 --- a/drivers/interconnect/imx/imx.h +++ b/drivers/interconnect/imx/imx.h @@ -10,10 +10,16 @@ #ifndef __DRIVERS_INTERCONNECT_IMX_H #define __DRIVERS_INTERCONNECT_IMX_H +#include #include #define IMX_ICC_MAX_LINKS 4 +struct imx_icc_provider { + void __iomem *noc_base; + struct icc_provider provider; +}; + /* * struct imx_icc_node_adj - Describe a dynamic adjustable node */ From patchwork Sun Jul 3 09:11:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587038 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 882EBC43334 for ; Sun, 3 Jul 2022 09:10:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232516AbiGCJK5 (ORCPT ); Sun, 3 Jul 2022 05:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232462AbiGCJKy (ORCPT ); Sun, 3 Jul 2022 05:10:54 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2079.outbound.protection.outlook.com [40.107.21.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 652B163F3; Sun, 3 Jul 2022 02:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EVKAQFIK6PapyZGNNNgC0K6eZW8M/89CFucJVg3nEWluebFANcV/ghfEQv9UOn6bFRi4ia00O8ATZmTqze3SRB2CbSQmMdTvsbEfhQoRmfkb5GgXxsVCfDrc1g0f/IukRDxyQRWGemzHik5U2JwxinT5caIWSklR8v60qmUlaWv4gS/E7YmGsfQO4HjKQod2nrg3SB8KDmPvGY4/IonDy48pdhrfCYju0R4q7zsUTRNuovB1b5dPjSY7S4Q1kFEeXcBHLW7o+I9v3wpG+mwohZ0t30dv8aVWS3PfTLs8zIYgwMI2u2jXz1LRZx14qC4zCi5RhlZT1iQZ7WRpnkV/ng== 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=dWyzgB4lxvE+GkVHz5FxBusaeR3EUW16OkLZlY3dGMo=; b=mDYA+DnHjrZz9KFIOtnGgLuh/oUNd2ieOzvHZmPNW74ZyH6AaX0WkIJfWZ1n01h8j127hAyaBRmJNAKlRKVC7TahkK5VLKSHf9LODoTM93vQJVjhIPTIiL9A8f5pyfa2mhQFu5vLs+M7EyyP4zkOZTQg0EPK6Qwdpe6S11lXATJTI1hwm71IqP7fKB+ve8AKvFVxoAx04Y477EUUNvRUb37pzbtfEGV9e+KU3JG/MMXsZ3UKUYDMRLN1FWa5xryr06N31GkjW5z6VdfjJr57eUzHvY5jfeoadLvb3KxdTIcKCr6YmWeCTe/oD03l22+9EJ4C3lLcZq3QTMwjx9Nbvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dWyzgB4lxvE+GkVHz5FxBusaeR3EUW16OkLZlY3dGMo=; b=eCivvZfpJTjxx4fQ7MY2Nl3Z+5OHwQcrn8T5oWGXqqaUTF+oEjmT8L6lS6fwNhCA4xXWrMWLfjtq6iT9uojR27+odAYfHQFI2S+kGdHBflBevcr2MjoUsG9cf/yJ8kyZf7OTaXCs/1Dh1GQ4JRZ2cbTZKJJr/RFAOEO9TTuxK5o= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:48 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:48 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 07/10] interconnect: imx: configure NoC mode/prioriry/ext_control Date: Sun, 3 Jul 2022 17:11:29 +0800 Message-Id: <20220703091132.1412063-8-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1fc7a4e5-5b1c-4711-69a6-08da5cd3eb28 X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5pqH01g/6M4CoZ1yzbRMPYedfEgrPRaaB/nv9b8pHFVDjfij/GqVWkPUY7xQeYww9/vZmZROnIeayL3128gqw2MNOEDda09TWVhRP+vaknEHyo5Ar7rJxjoe+/bDTggsawNJYm7N4O4KFhb3nHqkdQvS4uYJqIXd70NmJF7cnXqmFMiuWWnDHnWRh7nCdMRWv/4WugC01f7IQdj9O2dOEtdd8TN0h7GtQDQyKsSFQbzzcMF0OaSe/J19NvsxzFLVZ9cYSfbEu7jnYXDKg8H4cXhU6d3Z9vGTbVN9yYcxr+unvzmqMpgJFfgR0dbXKdojY4Y1Lr1JufzpBHOWRdn2vrSMkNemIydrcoNJ2jY5Y0iSob+Ysdv2xaMulC7aVroo0As5V8bC9/nvsUzIqhOvCXH1z/BvavMBeIARo0TOvnB4ZlaSD4+dfNaXTMv/GQybSTIr4YjsQ1oT3qzYkem0PTtg8QMl1fUBHo+7nWoOfDYyQDWhRDdqq/lDV/aNMDnHAFTNabfUNuMLP+wxbjvpb4ddAAMrqVja+jLilZ35a/YLLJ1YLfjeLVvY/9WrRobZj6VJGuzz3DyH0Ffrm4hU8LzoPV8fwB11CW3M1P9PXipqAEJ4ybl/BATwdfrhgJDbvDEp5UwYfe61mGvMfCIxrbhP1TMQYKzxGK+BwtJUMO1iU+h5QMGyPFHwFXz6c4MLR/qIaZB9LGbAXXc1Tl8UITFja7WrDf2FqFa8c3B3HKEEJ6vIh/Tys4GobQapEILCE1eNW0PrIphSwOjShC9BPAqkzs46eUdwHotFGh4LyAKk+E4CSKm6RlcincatFzzBlXU0YLnNnr3PN9W34zQejQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(6666004)(2906002)(41300700001)(316002)(7416002)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(83380400001)(1076003)(6506007)(52116002)(26005)(2616005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d8i5RRhD2LPJv62iIQ7i/aiZGPPseLuoucPIYN03AXkhOI29kVg0AEf0IaTGKeI/77nopjgSK6SAuLoAw4bGnuxkhws9fX28rOXGJtSipPLjSZLC0Hj4PL2Z3xGxwXHdz7tRIIRdaxnOwQiyI8XYRbLRruL+6SQUoUxuAIOyFy/JxGnij+qhtHhZ6JmjWTxJdYaybjdCMo9JFMLIq5/sw0A5CWIeDwohZuBF2B4Y2TGYIZnN+J21aLVfsVUYoHUbvKhsVaI4lNdDpQJgDBRn1MlURRVp86gWJf9lb8DjnEsDZzxrQVIMvcx3RMsLVwuLL16ZX6aP0tMIxNCYL3cFV0a/cCxQRYVYYeEjvfr2wV/k04SyZdzuizXNV35+876vel6FH50MwHROEB1BIOoLAPkmfSraTlLU7434Gaduj4g0Q/zHnyVjWexLhOPMnuM0yfxcm7T2SGsoupNNp+l+GI2qRmv0jS6Tswxjtyoo6d8vqKrzxukM5ZXbqlw446DCpSAHVodSvsL7VQoPddAjYe5FuXHchK9FD617urNSShvYYs5z4nGYIXSKHZ2KIBQ/a6YbsE5ffCIJ76MMBcEiV7xq2g++qWqcYZrnO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5cd3eb28 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:48.3103 (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: 3/XgJnspLlqtxjrNNzI+qbYPMMhb5uCAOIkwhSOfTdqWndPBHOVHHLIUvFxD7lCYSY1K3ZVYPS/Q+j72Od6C0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Introduce imx_icc_noc_setting structure to describe a master port setting Pass imx_icc_noc_setting as a parameter from specific driver Set priority level, mode, ext control in imx_icc_node_set Signed-off-by: Peng Fan --- drivers/interconnect/imx/imx.c | 50 +++++++++++++++++++++++++++---- drivers/interconnect/imx/imx.h | 43 +++++++++++++++++++++++++- drivers/interconnect/imx/imx8mm.c | 2 +- drivers/interconnect/imx/imx8mn.c | 2 +- drivers/interconnect/imx/imx8mq.c | 2 +- 5 files changed, 90 insertions(+), 9 deletions(-) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index 1f16eedea21c..48ffd59953bf 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -21,8 +22,10 @@ /* private icc_node data */ struct imx_icc_node { const struct imx_icc_node_desc *desc; + const struct imx_icc_noc_setting *setting; struct device *qos_dev; struct dev_pm_qos_request qos_req; + struct imx_icc_provider *imx_provider; }; static int imx_icc_get_bw(struct icc_node *node, u32 *avg, u32 *peak) @@ -37,8 +40,30 @@ static int imx_icc_node_set(struct icc_node *node) { struct device *dev = node->provider->dev; struct imx_icc_node *node_data = node->data; + void __iomem *base; + u32 prio; u64 freq; + if (node_data->setting && node->peak_bw) { + base = node_data->setting->reg + node_data->imx_provider->noc_base; + if (node_data->setting->mode == IMX_NOC_MODE_FIXED) { + prio = node_data->setting->prio_level; + prio = PRIORITY_COMP_MARK | (prio << 8) | prio; + writel(prio, base + IMX_NOC_PRIO_REG); + writel(node_data->setting->mode, base + IMX_NOC_MODE_REG); + writel(node_data->setting->ext_control, base + IMX_NOC_EXT_CTL_REG); + dev_dbg(dev, "%s: mode: 0x%x, prio: 0x%x, ext_control: 0x%x\n", + node_data->desc->name, node_data->setting->mode, prio, + node_data->setting->ext_control); + } else if (node_data->setting->mode == IMX_NOC_MODE_UNCONFIGURED) { + dev_dbg(dev, "%s: mode not unconfigured\n", node_data->desc->name); + } else { + dev_info(dev, "%s: mode: %d not supported\n", + node_data->desc->name, node_data->setting->mode); + return -EOPNOTSUPP; + } + } + if (!node_data->qos_dev) return 0; @@ -135,7 +160,8 @@ static int imx_icc_node_init_qos(struct icc_provider *provider, } static struct icc_node *imx_icc_node_add(struct imx_icc_provider *imx_provider, - const struct imx_icc_node_desc *node_desc) + const struct imx_icc_node_desc *node_desc, + const struct imx_icc_noc_setting *setting) { struct icc_provider *provider = &imx_provider->provider; struct device *dev = provider->dev; @@ -164,6 +190,8 @@ static struct icc_node *imx_icc_node_add(struct imx_icc_provider *imx_provider, node->name = node_desc->name; node->data = node_data; node_data->desc = node_desc; + node_data->setting = setting; + node_data->imx_provider = imx_provider; icc_node_add(node, provider); if (node_desc->adj) { @@ -187,7 +215,8 @@ static void imx_icc_unregister_nodes(struct icc_provider *provider) static int imx_icc_register_nodes(struct imx_icc_provider *imx_provider, const struct imx_icc_node_desc *descs, - int count) + int count, + const struct imx_icc_noc_setting *settings) { struct icc_provider *provider = &imx_provider->provider; struct icc_onecell_data *provider_data = provider->data; @@ -199,7 +228,8 @@ static int imx_icc_register_nodes(struct imx_icc_provider *imx_provider, const struct imx_icc_node_desc *node_desc = &descs[i]; size_t j; - node = imx_icc_node_add(imx_provider, node_desc); + node = imx_icc_node_add(imx_provider, node_desc, + settings ? &settings[node_desc->id] : NULL); if (IS_ERR(node)) { ret = dev_err_probe(provider->dev, PTR_ERR(node), "failed to add %s\n", node_desc->name); @@ -237,7 +267,8 @@ static int get_max_node_id(struct imx_icc_node_desc *nodes, int nodes_count) } int imx_icc_register(struct platform_device *pdev, - struct imx_icc_node_desc *nodes, int nodes_count) + struct imx_icc_node_desc *nodes, int nodes_count, + struct imx_icc_noc_setting *settings) { struct device *dev = &pdev->dev; struct icc_onecell_data *data; @@ -266,13 +297,22 @@ int imx_icc_register(struct platform_device *pdev, provider->dev = dev->parent; platform_set_drvdata(pdev, imx_provider); + if (settings) { + imx_provider->noc_base = devm_of_iomap(dev, provider->dev->of_node, 0, NULL); + if (IS_ERR(imx_provider->noc_base)) { + ret = PTR_ERR(imx_provider->noc_base); + dev_err(dev, "Error mapping NoC: %d\n", ret); + return ret; + } + } + ret = icc_provider_add(provider); if (ret) { dev_err(dev, "error adding interconnect provider: %d\n", ret); return ret; } - ret = imx_icc_register_nodes(imx_provider, nodes, nodes_count); + ret = imx_icc_register_nodes(imx_provider, nodes, nodes_count, settings); if (ret) goto provider_del; diff --git a/drivers/interconnect/imx/imx.h b/drivers/interconnect/imx/imx.h index 0ad2c654c222..e0a2ee173ecd 100644 --- a/drivers/interconnect/imx/imx.h +++ b/drivers/interconnect/imx/imx.h @@ -15,6 +15,32 @@ #define IMX_ICC_MAX_LINKS 4 +/* + * High throughput priority level in Regulator mode + * Read Priority in Fixed/Limiter mode + */ +#define PRIORITY0_SHIFT 0 +/* + * Low throughput priority level in Regulator mode + * Write Priority in Fixed/Limiter mode + */ +#define PRIORITY1_SHIFT 8 +#define PRIORITY_MASK 0x7 + +#define PRIORITY_COMP_MARK BIT(31) /* Must set */ + +#define IMX_NOC_MODE_FIXED 0 +#define IMX_NOC_MODE_LIMITER 1 +#define IMX_NOC_MODE_BYPASS 2 +#define IMX_NOC_MODE_REGULATOR 3 +#define IMX_NOC_MODE_UNCONFIGURED 0xFF + +#define IMX_NOC_PRIO_REG 0x8 +#define IMX_NOC_MODE_REG 0xC +#define IMX_NOC_BANDWIDTH_REG 0x10 +#define IMX_NOC_SATURATION 0x14 +#define IMX_NOC_EXT_CTL_REG 0x18 + struct imx_icc_provider { void __iomem *noc_base; struct icc_provider provider; @@ -44,6 +70,20 @@ struct imx_icc_node_desc { const struct imx_icc_node_adj_desc *adj; }; +/* + * struct imx_icc_noc_setting - Describe an interconnect node setting + * @reg: register offset inside the NoC + * @prio_level: priority level + * @mode: functional mode + * @ext_control: external input control + */ +struct imx_icc_noc_setting { + u32 reg; + u32 prio_level; + u32 mode; + u32 ext_control; +}; + #define DEFINE_BUS_INTERCONNECT(_name, _id, _adj, ...) \ { \ .id = _id, \ @@ -61,7 +101,8 @@ struct imx_icc_node_desc { int imx_icc_register(struct platform_device *pdev, struct imx_icc_node_desc *nodes, - int nodes_count); + int nodes_count, + struct imx_icc_noc_setting *noc_settings); int imx_icc_unregister(struct platform_device *pdev); #endif /* __DRIVERS_INTERCONNECT_IMX_H */ diff --git a/drivers/interconnect/imx/imx8mm.c b/drivers/interconnect/imx/imx8mm.c index 1083490bb391..ae797412db96 100644 --- a/drivers/interconnect/imx/imx8mm.c +++ b/drivers/interconnect/imx/imx8mm.c @@ -83,7 +83,7 @@ static struct imx_icc_node_desc nodes[] = { static int imx8mm_icc_probe(struct platform_device *pdev) { - return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes)); + return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes), NULL); } static int imx8mm_icc_remove(struct platform_device *pdev) diff --git a/drivers/interconnect/imx/imx8mn.c b/drivers/interconnect/imx/imx8mn.c index ad97e55fd4e5..1ce94c5bdd8c 100644 --- a/drivers/interconnect/imx/imx8mn.c +++ b/drivers/interconnect/imx/imx8mn.c @@ -72,7 +72,7 @@ static struct imx_icc_node_desc nodes[] = { static int imx8mn_icc_probe(struct platform_device *pdev) { - return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes)); + return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes), NULL); } static int imx8mn_icc_remove(struct platform_device *pdev) diff --git a/drivers/interconnect/imx/imx8mq.c b/drivers/interconnect/imx/imx8mq.c index d7768d3c6d8a..7f00a0511c6e 100644 --- a/drivers/interconnect/imx/imx8mq.c +++ b/drivers/interconnect/imx/imx8mq.c @@ -82,7 +82,7 @@ static struct imx_icc_node_desc nodes[] = { static int imx8mq_icc_probe(struct platform_device *pdev) { - return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes)); + return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes), NULL); } static int imx8mq_icc_remove(struct platform_device *pdev) From patchwork Sun Jul 3 09:11:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587397 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8520AC43334 for ; Sun, 3 Jul 2022 09:11:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232625AbiGCJLG (ORCPT ); Sun, 3 Jul 2022 05:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232562AbiGCJLA (ORCPT ); Sun, 3 Jul 2022 05:11:00 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2066.outbound.protection.outlook.com [40.107.21.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E66CA6389; Sun, 3 Jul 2022 02:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Geo0+SVv6MmP11AEVuUi93vWh/jC9pSFiwfVhm/fDbHJruTDh2bRJD8Gh82ui9uVJHuHiJmafDGzE+D57fY77tShC7ma5Udyi9rB8yVsUW8AlGlAIN0sfgctNqLDI6wctoMYtCbKoGjcxJurH2mnanVFkzjnq1mCn5fSIl7oxy3eX356fz6zagdzMUZQFLKH/zigghPwGP24RTzoSi6eMQJaQUqGKQWExRop2IBNzo4kQ45TAqWCkxmN7EsXvSB/lxLU0rWsWVdEZydfVvN//Kyi4PZkGCFbMEGKkkhqaePbwgWzflv2LtdZKtEbNhXLA4Z3CqZ8g15D5/sIYqB21g== 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=m0gvyVhO8d6zKCc9sZBbin9+hFld36hUitEtcmitD1w=; b=flR06oZGAB72JkHpDkN7i52nwqrbCQXYDTJ06ChO2HzHDck6h2EW8EQLteHQJsB2M/okWMxrXIp4UNHyJZHrQAjDGsnqovdI89duIvS1wcNpKss39jAFUUdWcoUcQySOYv6Ou/Z6ntw0hLbJJJLuWSXM5N5vHA5JWLGwVqE/FqCsaJImIlvMVsoIlycVqLSnAECN0FljsgWErf9SYYElKxwciLhGAIQ6c+ib+s3B2GC29u/DvtPHyQqZL6tJSSO+ixA9atJWdCS+0QhE8RxZ/CjJYJ0nHHVWqxTsh507NKJV0Esg02jyYhnn5wPiuKWSXrRoVNjJGIGyWYXwrgXarg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m0gvyVhO8d6zKCc9sZBbin9+hFld36hUitEtcmitD1w=; b=h8YF9YODMmz0QnbnUV5qUWrf+l/XTK0HW+4Cg4vZiJLj9WqjBVUBbl2neEosaV1ABvBL6sRm/4wH395fB2ux1VhVZeEQeIyGU/xQodDqx2etOaZje302O+5Cr/bhlVqZJT2cnz3/A4BJIk9QkpgXUyPqm+RPdMFfWcHGWZT5uaw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:10:55 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:10:55 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 08/10] interconnect: imx: Add platform driver for imx8mp Date: Sun, 3 Jul 2022 17:11:30 +0800 Message-Id: <20220703091132.1412063-9-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 48d7e8cb-1c7c-4e6c-90d5-08da5cd3ef57 X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KNa1UHc7J+Xdig36n0UagH5soK+ZyT9/anwcCycPG1cvtyg2F022XoVzTJ8pSgFfOyv13gG5bylcgN2BWU/PuhsTlRGEtFJCnu1Vf5HB7slUEC5dvEq+W6zD46iP446v7bo+Mr/qi7GDnpSwshKmUHVfdH/53YQN6bdmsy2GFflU9HvttvuXxitkypDtWH4ATxcLxgtxDTmW2eqF7Amdvb3lpPyUBU9qMlkurZFp8pn0awwJQvyx5XiWS6aQfk1/GHdMyJFv0P93RxzTvkWVq9MJYIWjZnyiKvXADoq6r25J7Ohg/lUdZZIgptcZ9gUxK+6u3e7JEauDxnSwKzRwg4qD0iYbNshme+yKIiacHYam4RF+0brLsH0p1WL7n4xLCgw52zwaIN128GIphZbqNDi8FWlSlsIa+3n1pT6qckNV3S74GhQA6Kv3LZhX7gw2ZPRNA9jxz/ugk+eP++TwY94GBQGg9M12Is0brPWgdPa1yc1nG+JUvwukQ4z2+IyBY9WIXngsknrUcMPZhZ2/CWOIjEki4GujFB0x+QcjF1KTnCa6xZ+Ai4A4N8qkU1yfBIGh/FTKKScnlGSbYaZ8Eo04X+4FH8iBza7rNaAZMOhnkzYc7aAHjWGl+nmeyRfUJWQA3bJ2+vRfSIvO1hgn6kR/JsbqswpwGCZn9rVJ4m2g9pnlCerlDrMGhUViywrr5FEUr6DYht1uokgOk2PO+1JoCqi8b+RtSUFJYGTsJXQEI4X6xsolc3YcoMZmaJJYvTRl83mOJnGbAtnhwUuSaXbBPH5mEAFwHZQ9i3lCJeWpzZpKoJ8gAoCXUlOgQdJk0wWJTMNOUY5Q8JhOZXVMJXt8qzxMLjohP3PfcosQCyg= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(6666004)(2906002)(41300700001)(316002)(7416002)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(1076003)(6506007)(52116002)(26005)(2616005)(6512007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9Q9MXRXDwueYfh6JL0hfeAEEI2pntBG8btlASWMNQ8dllVt+7Td935WWiwztcCPIVxcKng+ZyaTF6GT+4w6KE5+meHrqpSTf1bZMLUMtQILGHi3pKnWIKVb1JJo+nBcID9wlLBpaoRGBTbNbx3GE1sxCKvPPu12QNU1LIIYTg3tjKGOTEQwqkwFxxyTn8nFuwIxH1cWnf/8lxx1NYKwTItU0Lfq3/CjH0WWowpRCWjG6AOqIvayQJHC8mlWzmRRjsIitlpEMIoUi85xkCpeAoBdnl/zJaQKv5vxXP9j/7MHFbw2O3aUpQ7Y2Tf2bIe4bd6PxxQnwn7JnzNi7i6EMfePisMsHyfv4FBPqE2jGmTc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75oWJGakGwsaq1li/kUxrkknI12er9INIxn4IO33xtO81SyZq7LWxKhdYTFovnZm4GWZbmmgitg1sxlZ/9svmm/S7iblkI4VuXEcUDFaT2jaoRk6k4A825BcIKU+ua3Lv1BBqz3LU+6v2uydEjwTEIbNLPxE1E X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48d7e8cb-1c7c-4e6c-90d5-08da5cd3ef57 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:10:55.2819 (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: G2KnPF8YPrZuZNfsQ0IXsFB1EcpY3zkCS7DOFqV5tZWSx6lIsWSNvkhlSTuimMYxQC6fdyfq6kD/UskHOzsV2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add a platform driver for the i.MX8MP SoC describing bus topology, based on internal documentation. Signed-off-by: Peng Fan --- drivers/interconnect/imx/Kconfig | 4 + drivers/interconnect/imx/Makefile | 2 + drivers/interconnect/imx/imx8mp.c | 259 ++++++++++++++++++++++++++++++ 3 files changed, 265 insertions(+) create mode 100644 drivers/interconnect/imx/imx8mp.c diff --git a/drivers/interconnect/imx/Kconfig b/drivers/interconnect/imx/Kconfig index be2928362bb7..c772552431f5 100644 --- a/drivers/interconnect/imx/Kconfig +++ b/drivers/interconnect/imx/Kconfig @@ -15,3 +15,7 @@ config INTERCONNECT_IMX8MN config INTERCONNECT_IMX8MQ tristate "i.MX8MQ interconnect driver" depends on INTERCONNECT_IMX + +config INTERCONNECT_IMX8MP + tristate "i.MX8MP interconnect driver" + depends on INTERCONNECT_IMX diff --git a/drivers/interconnect/imx/Makefile b/drivers/interconnect/imx/Makefile index 21fd5233754f..16d256cdeab4 100644 --- a/drivers/interconnect/imx/Makefile +++ b/drivers/interconnect/imx/Makefile @@ -2,8 +2,10 @@ imx-interconnect-objs := imx.o imx8mm-interconnect-objs := imx8mm.o imx8mq-interconnect-objs := imx8mq.o imx8mn-interconnect-objs := imx8mn.o +imx8mp-interconnect-objs := imx8mp.o obj-$(CONFIG_INTERCONNECT_IMX) += imx-interconnect.o obj-$(CONFIG_INTERCONNECT_IMX8MM) += imx8mm-interconnect.o obj-$(CONFIG_INTERCONNECT_IMX8MQ) += imx8mq-interconnect.o obj-$(CONFIG_INTERCONNECT_IMX8MN) += imx8mn-interconnect.o +obj-$(CONFIG_INTERCONNECT_IMX8MP) += imx8mp-interconnect.o diff --git a/drivers/interconnect/imx/imx8mp.c b/drivers/interconnect/imx/imx8mp.c new file mode 100644 index 000000000000..5f1c83ed157b --- /dev/null +++ b/drivers/interconnect/imx/imx8mp.c @@ -0,0 +1,259 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Interconnect framework driver for i.MX8MP SoC + * + * Copyright 2022 NXP + * Peng Fan + */ + +#include +#include +#include +#include + +#include "imx.h" + +static const struct imx_icc_node_adj_desc imx8mp_noc_adj = { + .bw_mul = 1, + .bw_div = 16, + .main_noc = true, +}; + +static struct imx_icc_noc_setting noc_setting_nodes[] = { + [IMX8MP_ICM_MLMIX] = { + .reg = 0x180, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_DSP] = { + .reg = 0x200, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_SDMA2PER] = { + .reg = 0x280, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 4, + }, + [IMX8MP_ICM_SDMA2BURST] = { + .reg = 0x300, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 4, + }, + [IMX8MP_ICM_SDMA3PER] = { + .reg = 0x380, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 4, + }, + [IMX8MP_ICM_SDMA3BURST] = { + .reg = 0x400, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 4, + }, + [IMX8MP_ICM_EDMA] = { + .reg = 0x480, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 4, + }, + [IMX8MP_ICM_GPU3D] = { + .reg = 0x500, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_GPU2D] = { + .reg = 0x580, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_HRV] = { + .reg = 0x600, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 2, + .ext_control = 1, + }, + [IMX8MP_ICM_LCDIF_HDMI] = { + .reg = 0x680, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 2, + .ext_control = 1, + }, + [IMX8MP_ICM_HDCP] = { + .reg = 0x700, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 5, + }, + [IMX8MP_ICM_NOC_PCIE] = { + .reg = 0x780, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_USB1] = { + .reg = 0x800, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_USB2] = { + .reg = 0x880, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_PCIE] = { + .reg = 0x900, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_LCDIF_RD] = { + .reg = 0x980, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 2, + .ext_control = 1, + }, + [IMX8MP_ICM_LCDIF_WR] = { + .reg = 0xa00, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 2, + .ext_control = 1, + }, + [IMX8MP_ICM_ISI0] = { + .reg = 0xa80, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 2, + .ext_control = 1, + }, + [IMX8MP_ICM_ISI1] = { + .reg = 0xb00, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 2, + .ext_control = 1, + }, + [IMX8MP_ICM_ISI2] = { + .reg = 0xb80, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 2, + .ext_control = 1, + }, + [IMX8MP_ICM_ISP0] = { + .reg = 0xc00, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 7, + }, + [IMX8MP_ICM_ISP1] = { + .reg = 0xc80, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 7, + }, + [IMX8MP_ICM_DWE] = { + .reg = 0xd00, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 7, + }, + [IMX8MP_ICM_VPU_G1] = { + .reg = 0xd80, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_VPU_G2] = { + .reg = 0xe00, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICM_VPU_H1] = { + .reg = 0xe80, + .mode = IMX_NOC_MODE_FIXED, + .prio_level = 3, + }, + [IMX8MP_ICN_MEDIA] = { + .mode = IMX_NOC_MODE_UNCONFIGURED, + }, + [IMX8MP_ICN_VIDEO] = { + .mode = IMX_NOC_MODE_UNCONFIGURED, + }, + [IMX8MP_ICN_AUDIO] = { + .mode = IMX_NOC_MODE_UNCONFIGURED, + }, + [IMX8MP_ICN_HDMI] = { + .mode = IMX_NOC_MODE_UNCONFIGURED, + }, + [IMX8MP_ICN_GPU] = { + .mode = IMX_NOC_MODE_UNCONFIGURED, + }, + [IMX8MP_ICN_HSIO] = { + .mode = IMX_NOC_MODE_UNCONFIGURED, + }, +}; + +/* Describe bus masters, slaves and connections between them */ +static struct imx_icc_node_desc nodes[] = { + DEFINE_BUS_INTERCONNECT("NOC", IMX8MP_ICN_NOC, &imx8mp_noc_adj, + IMX8MP_ICS_DRAM, IMX8MP_ICN_MAIN), + + DEFINE_BUS_SLAVE("OCRAM", IMX8MP_ICS_OCRAM, NULL), + DEFINE_BUS_SLAVE("DRAM", IMX8MP_ICS_DRAM, NULL), + DEFINE_BUS_MASTER("A53", IMX8MP_ICM_A53, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("SUPERMIX", IMX8MP_ICM_SUPERMIX, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("GIC", IMX8MP_ICM_GIC, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("MLMIX", IMX8MP_ICM_MLMIX, IMX8MP_ICN_NOC), + + DEFINE_BUS_INTERCONNECT("NOC_AUDIO", IMX8MP_ICN_AUDIO, NULL, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("DSP", IMX8MP_ICM_DSP, IMX8MP_ICN_AUDIO), + DEFINE_BUS_MASTER("SDMA2PER", IMX8MP_ICM_SDMA2PER, IMX8MP_ICN_AUDIO), + DEFINE_BUS_MASTER("SDMA2BURST", IMX8MP_ICM_SDMA2BURST, IMX8MP_ICN_AUDIO), + DEFINE_BUS_MASTER("SDMA3PER", IMX8MP_ICM_SDMA3PER, IMX8MP_ICN_AUDIO), + DEFINE_BUS_MASTER("SDMA3BURST", IMX8MP_ICM_SDMA3BURST, IMX8MP_ICN_AUDIO), + DEFINE_BUS_MASTER("EDMA", IMX8MP_ICM_EDMA, IMX8MP_ICN_AUDIO), + + DEFINE_BUS_INTERCONNECT("NOC_GPU", IMX8MP_ICN_GPU, NULL, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("GPU 2D", IMX8MP_ICM_GPU2D, IMX8MP_ICN_GPU), + DEFINE_BUS_MASTER("GPU 3D", IMX8MP_ICM_GPU3D, IMX8MP_ICN_GPU), + + DEFINE_BUS_INTERCONNECT("NOC_HDMI", IMX8MP_ICN_HDMI, NULL, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("HRV", IMX8MP_ICM_HRV, IMX8MP_ICN_HDMI), + DEFINE_BUS_MASTER("LCDIF_HDMI", IMX8MP_ICM_LCDIF_HDMI, IMX8MP_ICN_HDMI), + DEFINE_BUS_MASTER("HDCP", IMX8MP_ICM_HDCP, IMX8MP_ICN_HDMI), + + DEFINE_BUS_INTERCONNECT("NOC_HSIO", IMX8MP_ICN_HSIO, NULL, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("NOC_PCIE", IMX8MP_ICM_NOC_PCIE, IMX8MP_ICN_HSIO), + DEFINE_BUS_MASTER("USB1", IMX8MP_ICM_USB1, IMX8MP_ICN_HSIO), + DEFINE_BUS_MASTER("USB2", IMX8MP_ICM_USB2, IMX8MP_ICN_HSIO), + DEFINE_BUS_MASTER("PCIE", IMX8MP_ICM_PCIE, IMX8MP_ICN_HSIO), + + DEFINE_BUS_INTERCONNECT("NOC_MEDIA", IMX8MP_ICN_MEDIA, NULL, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("LCDIF_RD", IMX8MP_ICM_LCDIF_RD, IMX8MP_ICN_MEDIA), + DEFINE_BUS_MASTER("LCDIF_WR", IMX8MP_ICM_LCDIF_WR, IMX8MP_ICN_MEDIA), + DEFINE_BUS_MASTER("ISI0", IMX8MP_ICM_ISI0, IMX8MP_ICN_MEDIA), + DEFINE_BUS_MASTER("ISI1", IMX8MP_ICM_ISI1, IMX8MP_ICN_MEDIA), + DEFINE_BUS_MASTER("ISI2", IMX8MP_ICM_ISI2, IMX8MP_ICN_MEDIA), + DEFINE_BUS_MASTER("ISP0", IMX8MP_ICM_ISP0, IMX8MP_ICN_MEDIA), + DEFINE_BUS_MASTER("ISP1", IMX8MP_ICM_ISP1, IMX8MP_ICN_MEDIA), + DEFINE_BUS_MASTER("DWE", IMX8MP_ICM_DWE, IMX8MP_ICN_MEDIA), + + DEFINE_BUS_INTERCONNECT("NOC_VIDEO", IMX8MP_ICN_VIDEO, NULL, IMX8MP_ICN_NOC), + DEFINE_BUS_MASTER("VPU G1", IMX8MP_ICM_VPU_G1, IMX8MP_ICN_VIDEO), + DEFINE_BUS_MASTER("VPU G2", IMX8MP_ICM_VPU_G2, IMX8MP_ICN_VIDEO), + DEFINE_BUS_MASTER("VPU H1", IMX8MP_ICM_VPU_H1, IMX8MP_ICN_VIDEO), + DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MP_ICN_MAIN, NULL, + IMX8MP_ICN_NOC, IMX8MP_ICS_OCRAM), +}; + +static int imx8mp_icc_probe(struct platform_device *pdev) +{ + return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes), noc_setting_nodes); +} + +static int imx8mp_icc_remove(struct platform_device *pdev) +{ + return imx_icc_unregister(pdev); +} + +static struct platform_driver imx8mp_icc_driver = { + .probe = imx8mp_icc_probe, + .remove = imx8mp_icc_remove, + .driver = { + .name = "imx8mp-interconnect", + }, +}; + +module_platform_driver(imx8mp_icc_driver); +MODULE_AUTHOR("Peng Fan "); +MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:imx8mp-interconnect"); From patchwork Sun Jul 3 09:11:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587037 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF821C433EF for ; Sun, 3 Jul 2022 09:11:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232562AbiGCJLT (ORCPT ); Sun, 3 Jul 2022 05:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232599AbiGCJLK (ORCPT ); Sun, 3 Jul 2022 05:11:10 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2055.outbound.protection.outlook.com [40.107.21.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B5364F6; Sun, 3 Jul 2022 02:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Es7T1RqXDqTMROOcpVsjt5WrhxjYUkiOAITDbcEp2yxfdgxGUNiYug5twtZtXjFjH2kv2kFhIxLnnH8833ZHW9gu/uF5UclbI0Q5xOclPIgzz/JX2jwnH0RdjPNxmjARXbLMjj84Czirzn7siHQJnaX+yAiTniri/3OhVkwzsMpX5bF5sXcUK3UgWLUqbws3JeCM6RWWQPTxvJRgI1BkeAN9Jo3rD6PBjgmCOpRiSnih0zI6+tvEC2WWmYOvykksDNAnce1Ld/Nuq2RtcjCWpaghyREe8436/GSI8XbqcTve7REaRdlxSbdcTAyf6zq8/UBiMk4TgWfBmkm9/+hvYQ== 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=z+pLJ9cZ7TpcfkfgYkVBDnv0jlnVX+PnPWhI+VDC9i8=; b=h0pek6eNt/QpJtsrUltUtkMQlEJXdEWZzhSi5D5Dh9FdCTut79VsM2TqMN2B4l+RpEWkk98q5ylXmeN1iolFWID78gj/htaM5JlzqBG0ACRDUCOw9b8ebfpTXmfdh0PHMkvFqBNmRvKGwy2jju+VXOsPirlpSC0LQb6+eWcDZGyFoQCqktpv13c2tPal3DWv/4CS3N2ZFBupqWxDDCLsaS20qPk9DMquCiyhnFygYZabdQFuJhKz+IYo33V+b2GZKTg+RYyB/iObNctIOvGSUO5pcv3vJ89ebKuh33R9ZcH82I8FylYESw6HfI8Mpd+gjPPRtbeMCb14n8/RQTPBXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z+pLJ9cZ7TpcfkfgYkVBDnv0jlnVX+PnPWhI+VDC9i8=; b=dKq7GyZCXlEqOZASTWMYVKQ3srs5JdRdQNJUdP6CuTtP7ylgFAc8Dr1upLPlPY2jyszVG5g6NpE3G9fs45cAUaH0BHWNATymGJrLC7zzxPf7pwGMjxKUh37V8L60DkmQdEG8NUL9bUBCBML8xyJn7lbrIcyyWNUFMmxGL8zKiSI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB6165.eurprd04.prod.outlook.com (2603:10a6:20b:bb::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Sun, 3 Jul 2022 09:11:02 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:11:02 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 09/10] PM / devfreq: imx: Register i.MX8MP interconnect device Date: Sun, 3 Jul 2022 17:11:31 +0800 Message-Id: <20220703091132.1412063-10-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1b2b8ee-ba55-46ac-9e7f-08da5cd3f38f X-MS-TrafficTypeDiagnostic: AM6PR04MB6165:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qvhD0Mp/hXW3RrAV9ATvuUGUKXM8KWEfJvUU6ICB+9wWREQKnK/Z6QLm2SnAF6WieTFA/JIziSvvzpumS+rEuDYPwoWdKAoR2t3dwAYA1uFfaOhepesAcWZt1VWbbckB7gT/ZCAHshMJbb31Nq8FN2ZAampNpqV08mLh/Qp6/39mBiyUVmqFm14Ke+3qIh2SH5I3Hak+ut3iN5EgRAeJ+D6v+qHZf7tiiBbR6inv3TSV8rODfsMm7Mw2QKM6d1iFU0MLu0EgeHuNoTmAFRBTBbFByvuXChkaqkdHN1LExaROXpb9EM5WEjYa1oDqzfG2hSt42IOZaMmDzYKKZ234u4sMJMNV6F75XRDTwQpSQ5OmgBBUlLVgBm1pKL/6ezQ3x51qArCj/dF5mFoI5XOJykkV9aKy50c4jWVORVZtEqQb3KkALi5ch1cFTP/SC+Ciq1oopPm2DVCTirmMe469ICSw6A5LcwE3RQroPZa3/TCHuTRg/9D8vCnvRubaoaCjTWp4pcs4MLai8YYqSIx88ztxVjajg4RHH79hMqpqtoNPmJj4Njieq/VXv9ATW7Tlk/blg0ZHPvQG5wMmrGwhLhJ4gvfYguZPQ/34xTmb0B9fgsOJDLCTJw5Ht2VnpANGcTEdTn4Jzr71ChyWwvF0gz7UwFAvNfRbMUHbqM7YyDlyGOqKULEXTlpu6waS9hqKRoxWLu77bijgqX5h9MXEzLzQ+avcOHRoxSUnxfExy2why9DwAbCB62WOxUy9cf1D8TbVUL89bSOlKICSj/bk/gaUMR+LjoEkmxsInklwRvwQNzXaUSpeYt8+5UqiZsfxB3xBXZoKTO3A20rYAtelCQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(366004)(39860400002)(136003)(86362001)(921005)(38100700002)(38350700002)(5660300002)(6486002)(478600001)(8936002)(6666004)(2906002)(41300700001)(4744005)(316002)(7416002)(4326008)(8676002)(66476007)(66556008)(66946007)(186003)(1076003)(6506007)(52116002)(26005)(2616005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uAVHLILQN14VCSpNaef3U7sRUN3ud6olBh6Z637xvQ33noUMoUq/WMlEXdwh8jpJK/r/2LOxcp56j5L3qlvoz4abEneUQzdWUtIPc5y3Om4engl5hC7DA9XinjFiRI3mw8qOSByfJzZ4cVdl8ngZ0bhcBBTTAsxNiUMU9EezHmrgRMGIocUtJTd984PX7nwFKhnWwv8VzL8RDk9nG6A/ua2JUsdnk2AEYpXr3IfMcTpA23AUPv1QX5xFvhotPJv9BowOwNDuz8q8Hn+sg6WORD2dnO5NBSjH4iy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afZUFwVGHveu/F6OhlZGV55afJ98+3RjE3XHFw0s9xuVHBdJiUDEyapfmKic0zSM6r7t+4GqLtAaMZ5VWbjdaPQO7FRrFwRrq1wZDzZxGGZqG9zCs73dPIH3UXVtokD8tuuSvr7BwVGcTN801wRcSfzVFLzbWOJUhZsIkl4lbzyEVzU6PP7/L2RCAehmStiwSarsmVRSkGV9S2+y6UPIKYsRC7RQLzkT3RkP+5eQdo X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1b2b8ee-ba55-46ac-9e7f-08da5cd3f38f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:11:02.3782 (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: SPrelIPbtVxUYl2yvloGLiczmC80i191MccjG7MNABYjStVtXFbonHTJgNpIqljn9O2T2/G8dFUeb3Lvqz+v/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6165 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Same to i.MX8MM/N/Q, register i.MX8MP interconnect device to make i.MX8MP Interconnect driver work. Signed-off-by: Peng Fan --- drivers/devfreq/imx-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c index f87067fc574d..a727067980fb 100644 --- a/drivers/devfreq/imx-bus.c +++ b/drivers/devfreq/imx-bus.c @@ -145,6 +145,7 @@ static const struct of_device_id imx_bus_of_match[] = { { .compatible = "fsl,imx8mq-noc", .data = "imx8mq-interconnect", }, { .compatible = "fsl,imx8mm-noc", .data = "imx8mm-interconnect", }, { .compatible = "fsl,imx8mn-noc", .data = "imx8mn-interconnect", }, + { .compatible = "fsl,imx8mp-noc", .data = "imx8mp-interconnect", }, { .compatible = "fsl,imx8m-noc", }, { .compatible = "fsl,imx8m-nic", }, { /* sentinel */ }, From patchwork Sun Jul 3 09:11:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 587396 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25A61CCA473 for ; Sun, 3 Jul 2022 09:11:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232591AbiGCJLZ (ORCPT ); Sun, 3 Jul 2022 05:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232705AbiGCJLQ (ORCPT ); Sun, 3 Jul 2022 05:11:16 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80077.outbound.protection.outlook.com [40.107.8.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4405964FF; Sun, 3 Jul 2022 02:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MHaAPTSpRgipD9hvwE1vvBcNjDYF8EQ+MJ+muf/NTDJKzEaZ4SRGPBFEnjEIEjRN8IO6ykGbK6+5nr1k8LcRL3B5tR0GvZxkBI0qtGQBXuFEKIZOfUQT2Hqhgjrc9tMfnyDVz0JYoaQxsKPpxPOY8TMpvM9tDLLrLmLGEYL+LUYC/toK6N3TXgTerH5B7ywUIyLPo1T9JSX/82XU/7IyTORAPpw8pM/LRu13ViVBDTfLXM6r+vKmGVcCkb6grEDEbZ2jhiHVEl6UfBAXfwAAYukqO+dYScwb+yVyud6B4Ayhuo2P8r4MefwDMUBJR5eOfffDVi1RTLGygLS5jiqGcQ== 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=/kczbs4yhHEWJ4C5Hs3fCrHBXUSZ4VC57AFGmZuv0+w=; b=O9m3QvBA8E4zhavqZN4hbkc68RtpiHtaIbngVkMwomFo8AVRTMg9sSq0zsG+4Vmal0HpWEGE0g5DyL1xEhIAaQCY4wBg0Y77JbpV4irg+BHGA91SSZXEpDy1fvuNmzF1o+HmnFVk1RY+ayNfAaWFMCPodvjV+SgASD3k2p4Pi+AzTYWzJ+PXwup15R/YdewVy/mZTkgVgauZ7KCKJnbPa3T0znWL2xj3vJkbvSGBdc7eGOt5GhgP78mnNz6XzvuOHYFc3rTgkMQqHbLPLqHtd94T0y6lnawv4DwVtS8cIIxPq4YOgA5nJj6zclpFwIVNdgFU0sAx2/uWSbbsz1Cj1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/kczbs4yhHEWJ4C5Hs3fCrHBXUSZ4VC57AFGmZuv0+w=; b=Mi8xGtDrhp0bCT7iXGziFtZ3WyGvmF3Sp5Pjyiq8/VPQdu8oNNr4+Frb5uTHTW9c50wGfeTG1R02Ix3Zb7ps2cNRtA1LMXCKIf6dLg77OVe9as+FXVqpUBjOUhiwbOjV81KiYsMtxSwf2Y6Y4YScwdwGeLpVU+E+SKvsa95soi8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS8PR04MB7768.eurprd04.prod.outlook.com (2603:10a6:20b:2a4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.19; Sun, 3 Jul 2022 09:11:09 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::fdd4:8557:334b:180d%5]) with mapi id 15.20.5395.018; Sun, 3 Jul 2022 09:11:09 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, abel.vesa@nxp.com, abailon@baylibre.com, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, marex@denx.de, paul.elder@ideasonboard.com, Markus.Niebel@ew.tq-group.com, aford173@gmail.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, myungjoo.ham@samsung.com Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, abelvesa@kernel.org, Peng Fan Subject: [PATCH V3 10/10] arm64: dts: imx8mp: add NoC node Date: Sun, 3 Jul 2022 17:11:32 +0800 Message-Id: <20220703091132.1412063-11-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703091132.1412063-1-peng.fan@oss.nxp.com> References: <20220703091132.1412063-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR04CA0173.apcprd04.prod.outlook.com (2603:1096:4::35) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9c086b60-a48c-42a1-5127-08da5cd3f7bc X-MS-TrafficTypeDiagnostic: AS8PR04MB7768:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: drnzT30IA2/4kqQIXrwAplZyIOz2fk2iradF+8XSQwzqhMpHnYlplJTGD4246yejcsJEmg4Mr5/okE6eCk70Kea13uTaC0KXxhbIpam2qAX/H1k2IAiBdc8tFcVFYPRbPz+rAViXrIcGduXa9HVYsGBnGBCxrn3AP6kSh41CzXIizqL8+dSSlAudhobml0uq30aiu7OVBDXTr4iPeoWq66ClbixUeH8Ysze+44rJWdMGOv36X/AGZNM+iwmSwsE6qSkNUuNXykKjivcFytLPhJxhzK9cIlW3s9sNGVMP7/KxpQ0O71Wu67VQG7BO84aR2Flrt8M4+cCYeYsLBKImBnAa31ruDP35iOSPA6BMS/qfia9Xrwe7EHMvkrlIDDJi3vRyMSAS+nojt1KC+Yrj2T6g9GzdruV1xmgB8TU115fcnJYHg5gqOQBNEKKrxcsnT6XC4m92ZCO1qH+MurT7fljPKgewBXcvzXVgnNn42Dj9IPDh2bn59txwnICF7QOGQ9Tb74Gx+TKbBBphTRZAKSG7tlDbWAJxzw2rh/ffP7QK4getUJlqBWO+J5Wxql2OT46++XR1aGVcFVj+8u4cmZ+GMv+ZShSlOyd3eeUhhmIie9TlR3HMCppRCiOLNHwOb4jHCPECDsNWeVxMbO16ywxBZO2xITP0TTQNQ83t1S7ZlgIORPTbef+oXjMc/E+k6NK10fX02lA2UFAXGM438sc9cDw2mDaR/e/znMtB6jRPKBboOTBV1HTjXbv7NRgrohFexd8Q2ZBUfHPLwkZ3WfYOd6CHpIHh7O8kNLd/e6uN3QsNZFPuBDf+hMFc55t9R1adrLAQhpIQVZ1ltkxq/wGm6ObrhOohZ/NNWo/G5ac= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(136003)(376002)(39860400002)(366004)(396003)(478600001)(5660300002)(8936002)(7416002)(921005)(316002)(86362001)(6486002)(4326008)(8676002)(66476007)(66556008)(66946007)(83380400001)(2616005)(1076003)(186003)(6512007)(26005)(52116002)(2906002)(41300700001)(38100700002)(38350700002)(6506007)(6666004)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NQaMklNP6E8a1SMBt/ULS9esDdjM4NYL4PF1c+dZ1saDsmytA2bk61yYEiNLxqVmytQa8rP7HbogQCkPisGwX698EYf0+HdlhJb+ZnAVVSVXyCH1TOvAHAQNSwSrnaq0OReFwKoYE1ZedZ7FQMY2zK7NP4jBQ26E186xmCLROBNvgJH+K79QwyDIwzuiHCu9gdZEsiEMJmanoJUQkpj11+5XpxjG+0vXBQ67rigsf+H47Ny3JXECiOFIv94EEe5C+NlRRGsv4eOE4vn0QqWsM+PbBIbcamkQwM+0oLWQR24e/YKMtw5/SjZ9uOEhdfO4wNelDZ8BLCGMQsbSUZrNhHZYpvOFbsgytsTKHrAJY10tw5sl5u4bz0fDkGqzjybl1GBBOVdybMiR+gQe8acDWcdcRIiqgLxYPMaXNdlCZpagsfdsDaVt8eH6T85w8SgCTkH0dBTcDDGzOJYdEmjyGtmyBuwJ9S2uvZqqyXl4dUMNnhMZdrAVpeQEGV+50LipFFvzc3o6FIP1gYx/Lb3I4qdrXXYYHeNY2Qk1LRSTQM+qJ65rJ5hiiU/WSwyQXecGUpo+1ToHbU3IqkDfUX5Ro2xMd4vKt3JpQD8x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Tenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2022 09:11:09.3327 (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: 1H53xuwYPqkeJRIxdSuCeIsd79a84Z8rQpKal5Mlhv19FDTxqovqbSL7aYUrekjwxZxxESxA96J3/dIJMfWoUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7768 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add i.MX8MP NoC node to make the interconnect i.MX8MP driver could work. Currently dynamic frequency scaling of the i.MX8MP NoC has not been supported, only NoC initial settings are configured by interconnect driver. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index eb2d516278eb..13a2ee77d3c6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -1019,6 +1020,27 @@ eqos: ethernet@30bf0000 { }; }; + noc: interconnect@32700000 { + compatible = "fsl,imx8mp-noc", "fsl,imx8m-noc", "syscon"; + reg = <0x32700000 0x100000>; + clocks = <&clk IMX8MP_CLK_NOC>; + #interconnect-cells = <1>; + + operating-points-v2 = <&noc_opp_table>; + + noc_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200M { + opp-hz = /bits/ 64 <200000000>; + }; + + opp-1000M { + opp-hz = /bits/ 64 <1000000000>; + }; + }; + }; + aips4: bus@32c00000 { compatible = "fsl,aips-bus", "simple-bus"; reg = <0x32c00000 0x400000>;