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: 586956 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 72BE7C43334 for ; Sun, 3 Jul 2022 09:10:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231648AbiGCJKX (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: devicetree@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: 586955 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 DB9D6C43334 for ; Sun, 3 Jul 2022 09:10:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232206AbiGCJK0 (ORCPT ); Sun, 3 Jul 2022 05:10:26 -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); DI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cY/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: devicetree@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: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: 586954 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 73605C433EF for ; Sun, 3 Jul 2022 09:10:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232327AbiGCJKh (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 X-MS-Exchange-AntiSpam-MessageData-0: +ymVHW+P+uZPSqE+Lb8tbYczr2V0J53UBPzABhCb1GimliEXUWmrIKXfzjjR2N/7doxIuFyFTfx3iOIban8zE6EcLfzLeCw867hkkZPx3QJsjJBN1t19y/vMcjFyndBbCbnM8nVhCUh9c2UunVp/m0z7Q5Uk5zABrKgus8RMIbduXhDpw4ZfPw2VlNjIFqxrZ0pM/YBa2DuGQ2RpXdakcsTM2HisPqWbE393oydVOdlES3N54hDuIFFwSI6gC1UnYFgpItRFJ6Q9ap/mmcBiJM9m7MR1+GWVyr8Ndq5tjcT2qv+mC/ZYKZb9Y88F0tK7allfvc/7U4nlxfb6L0Q4D25ElUkAD+k8xyrcSTXPVUeSVv77rB4Zr9lfecyYAuJp96Ps0iV4AofxY0Pvm9roywyeplE23l8xtABjOubUoS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JZr75DcTud1IoFK47HQg3I3taZG1WGkeZCGZt8hdrYmrcgtiWk3LPctRO8yUeKI0Sqh2X2m77jmFyImoHW5QD3q8xT 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: devicetree@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: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: 586953 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 E2EC6C43334 for ; Sun, 3 Jul 2022 09:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232537AbiGCJKy (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/aXdlTb2I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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: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: devicetree@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: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: 586952 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 4DA1DC433EF for ; Sun, 3 Jul 2022 09:11:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232627AbiGCJLG (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/7MHFbw2O3aUpQ7Y2Tf2bIe4bd6PxxQnwn7JnzNi7i6EMfePisMsHyfv4FBPqE2jGmTcnYBzvz80pgY3aOGW7yJl+EdtLMznc/tqwxgMCD+loyMnFLWZvvLHhI6nlaqbduMuCWRJfWm8aQQPlVCKdxuYcJv/b4p75aXsCtYyrOfATJZ9KW+6wGBKpUeu9Nx1qyQKlHD8bYTefqSjIOB/VDC4e/3mO9849RRzN3MItLX21Jif2w76tVgcXkfiSGfBjN3Q1CtrlPYCty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e8cb-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: devicetree@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: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: 586951 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 16417C43334 for ; Sun, 3 Jul 2022 09:11:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232636AbiGCJLZ (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+gQe8acDWcdcRIiqgLxYPMaXNdlCZpagsfdsDaVt8eH6T85w8SgCTkH0dBTcDDGzOJY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T+QOrUpBoob5MEZ5hijdlxNivzMZyZ1dyIBqowF+U7+2lCVtU+RErieRw9G94ImqU4WPZx X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c086b60-a48c-42a1-5127-08da5cd3f7bc 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: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: devicetree@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>;