From patchwork Wed Jun 1 09:45: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: 578025 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 F3B73C433FE for ; Wed, 1 Jun 2022 09:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351247AbiFAJoG (ORCPT ); Wed, 1 Jun 2022 05:44:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351258AbiFAJoE (ORCPT ); Wed, 1 Jun 2022 05:44:04 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2063.outbound.protection.outlook.com [40.107.21.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 374D75D644; Wed, 1 Jun 2022 02:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ePpmYCL/qqk8NQHc0BUm2jJD3KCwYEfBMG/8Pi+t9mnvmoRasqC7FbRq5MCLqYT0RpjddMVnQO57z+52GDzsmay+23gjqoe68YMQkvnIXiQJRbvDjDNAGZGsNh/TlRcYioSzlemDKs9yR1YjiHjMLT7iKDOZIYybnQrOme1VNRueuAULad/Qf66D0HLvIorhKX5sSp26DrUFf9T4/7rQr3G3xDeQWJVOhW5GGRLZ9Mg5xm/38i3KCNgPMWMvIkwIelqVk2TLdBizyJCwfcj5NTU6KWTnH7ebdVbnF/SekSiX0XCQNJJRnNMof4mtrKfJ8g7/XuEUhY7JDU00BLoTIg== 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=j3GtQEdqSC7fqVLi8+8T3VB7jQ44T5LvbhD8ODbmjeY=; b=dPeta4sQc8O/BtkhwQlugtXwyJON/FA/XIOKIlvjJgehO7s6o3oLKwzmpA+bqj2i+YCjLVjQ0fN5UZzCVBxl1HAhprjCKYVBAQbiRqPHF3aaghEQjeUDyazZLkFvQtQsEiE4AD8zJPNZd/aSiCyFTQhZE4pDgGbrVt3NBV8P2lDD7jORFWDc2TO7VhXo9LJ39aljh4V4rtus14DpdEHlwQrVAqROhxjL09GS8lowCPcgXrNkIjH4jiG/rATBv/oFTVvvduQYXuutN910y59c8F6Z4T1XpDbY3b3rplh4p/PP3k3EHuEFl1Q3A0lHd7J9yTdB9yBUSgBESYtzb1GQBg== 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=j3GtQEdqSC7fqVLi8+8T3VB7jQ44T5LvbhD8ODbmjeY=; b=QSfheY1Zc3YSh7c7Y0cIF1NnI6ICUT9S9xLhHkXWCON/yxEg4Wyjwhxo5IXhZQ+tbGAieT4Pml/hMcfxrY0+VMYkk3unEncAznoyYrFfMaGVhbOTgoWSkwwceNRCKv08EuhqlV2W9IyvW8ZetjLgoSUnNpdM/uvJox+8nYukWiU= 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 AS4PR04MB9507.eurprd04.prod.outlook.com (2603:10a6:20b:4ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Wed, 1 Jun 2022 09:44:00 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:44:00 +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 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, Peng Fan Subject: [PATCH 1/8] dt-bindings: soc: imx: add interconnect property for i.MX8MP media blk ctrl Date: Wed, 1 Jun 2022 17:45:30 +0800 Message-Id: <20220601094537.3390127-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094537.3390127-1-peng.fan@oss.nxp.com> References: <20220601094537.3390127-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) 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: c39cdfdc-a6dd-4593-0147-08da43b34116 X-MS-TrafficTypeDiagnostic: AS4PR04MB9507:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r9zn/imkQdXEqsWrM3E5IP0URLH9B63db8zp7R9/DXbIKYv8NN915cIrRthRtCs56K8OdDRREHoI+Yr1jppVcuTA5qsY9LrLD2fknShv19nH+jCYBYUslOH7RcVrY0uvyWvW7dCH7z53+M4SS1wTzdk2/kZCKNVbeZ2Wyw4barmaLyPe2sExK7yg/YD1swxLtpM709DhlnQQhGGTDyAULc++DRZnYOdYYI7GnfiAzdvLifWckyqXCaexc9l34CfVi0QPQiPHX1xRhuihhFreRVbuIo4xNkRvShd61NttaNNxb+RvV1rL9VVzqKuL0ismdn+zisuGXr0FaI6ATPXZ2DMZxR/7WNnq/AiGHkcEHfR9RVO3X9wg5X+IVH+IDuwTcxWkvFpAnY+7IxbSJ7KbMW9/aXrgLvEYlCUAfXIXCoROik32l/KEVhdsbyh0dWcWEGuoEPWoelD5G4LhhrykuJ86Fh8F/rpKzoDGyI/2Zd9HhGSToKNzYzW6a6ZFKTF8dLRl62VaD5tDgkQShUqZ0AyB2YO2i1LqJwa92dADYJo9RxUyGGBmSPQcYzKZFAsWcdWBFfPG7onI6mY762gBoSZ8736lAIv7BPJPud2G/41R+gOunpBNJdAu4GsT2235s95ESkBFJhw1hg8dEp2cuhCx2IVEyetLsChO0SjOiSzEj7VOktue7Wb1SC+XiNcsnEa+HI5OuEVEpEnrbHtAXQ9WAn1aZaEtftyVwrXLXH8= 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:(13230001)(4636009)(366004)(8936002)(508600001)(921005)(6512007)(4744005)(6486002)(86362001)(5660300002)(52116002)(38350700002)(38100700002)(7416002)(6666004)(4326008)(66476007)(8676002)(66946007)(66556008)(26005)(6506007)(316002)(186003)(1076003)(2616005)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4hAXqoy4BTWsMlXKkaaGj82McPbkP8Fkk41EwHeUcUlqFd2J80goICp6dunp9buex/8IeBmwkRPxvBvHv9AjAXgsOqePV92dG0k7+uykS/wIXz9qaxjH/Vmd5DRlw9+8UlsJs3C7yfY+xsxLEj0lp91s4n2nzDYnOjTLoOmIZWt2CqcDiMWy79kvkGmgECyLdnu+7oBSh1DsTnljv4CnMWzShE40/W/HzaykoMdSXw+ztPMWOBOnkZonA6T/ZYfp861nAyJ5IKK8lV5LiY1jwIRfz5hFtsSm70ji0U8HfvoRRVr/JdX0dj7BnQGtz6sbiIbTMFqM0VgZ2ypV+PamYzcGKrJ952ldh02UmJOjTYcPI670YonGioJQQlkG+hK20EJdRVr4d8aMSZo0o7zIJ/qrwO5Bd41BREiYAwHZsyvAbh59szLpd5zVXTQNdr9YjMRP1eO5n0zZhVBKuVvfKg/82hBkmalvjwb9QNIGmQAIn2JFNfPLotz2npvswI+MV/h2+GEygOJMNJfJ3nIBoTkBlJuKSgT92cvpf+T9TnVR4vLyVAdbdkG8mfKJPifFYtaS2+lI59f9DjdX1TFiT/4InzsTPt9K6A3eKqa20lAwiSE+7/1wLTqIp1fn50X51+Tv9mU3wMe7rc4gtO1IRPLX0i+GPMby2AIXXlEE+YFWmzU4T+OP6zq7aK7yl29ppiO+Wk18tv/MVUE6MndF7LvXzNhjVkVDdR2H2UrUVJ+ueRfvqVCR01uJLSjqN0bf3rO2+WVqqhBks6aF1pQ/kw4nugrno5FF5kow7+2ae/B2S2agpAEa43AYCuthdNAvPXdBWVevPpxEjEL8gWSu6mGln8x1oqcmlykkQJRAggqhr6IzcdYnOszYRKsktse6Z/g3UnpoWS0aNSI10s04wp3jV5TDFL+JLz+hktxiOXrq3VTOUmkBLlKv3kzoj5dtTFLInpcvHu86GNDIpWZk9jaQPzis8drK4nCPEHiH6o5/h7Tw7uJiTUlfcO3V3tevNA1pwhFKnhDtJ9hky9Hgz+81kI1cMESQurzEdqHoq9Ok7wbYiQcnXAL/WELj4A+WbxbXllDE464BaXpf+36f/zVMo5e/BFmIKnrsmqx5TZnMrqZgD8JwgUxPB4UdYQl0Q6hyyeCfYDq5iOT7rcG9GWPY2Rfjb3qwrR432qZoEnEsYVIyVajHodU0oeUeOTVr4c1oWhlfRzw7r2MLktewqA10r8Gcw7JkBezibBNPrXzTLkn7alN+3vK/ZOpCjSWW0mJoHC10rsZOgyiDpMN68udyYpy02YUkfrlE2gnGHEZ9UwJjgTlrYIWt748eQecX8BRJkyRhGRbk5B6sYL/40I4r3We+RKEEaa11+FJBov4Qvq2SbH/JNkgA8zoND9TS3rIOVCZkOeXCxWo+yepayNxPeNowVIpCDsROVa32KrjTh763+dUcmz4h0Enmfb32XmzcKjLx6DgOdC+wo6LJwCRM5m2BRdjo5wTwLtM5cfDo/43vuRzvkqDtpXBupabBo7eSlL8t0YC7UCSfDHgcF4ZHDZCZS7pEtffGa6C+LM66teqZzj7AvK3NqR1zlVb6g1LBDjbNWnVx2hDnPX8/C12HVkpdCXSq3Hxvta1PqAcxGXX7Macw1Bp5DAoXfSYpC7TF9dMazoMEeHrqNrC8fkfO5BGyBk24Zn3kBbKH4zucjxHI9FGAbwk2QXt3x4bRjLNyyRg603+zIeD7iheCqQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c39cdfdc-a6dd-4593-0147-08da43b34116 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:44:00.2451 (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: obKWqi2uR101FZ/oLfB7ZpHCRkuIouS45/aZwBHRFel+Q3npPxLm2LvQFJasega6U0Hp1TwExsLJZxJXrfHNKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9507 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add interconnect property for i.MX8MP mediamix blk ctrl Signed-off-by: Peng Fan Acked-by: Krzysztof Kozlowski --- .../soc/imx/fsl,imx8mp-media-blk-ctrl.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml index 21d3ee486295..706bef39b87e 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-media-blk-ctrl.yaml @@ -64,6 +64,20 @@ properties: - const: isp - const: phy + interconnects: + maxItems: 8 + + interconnect-names: + items: + - const: lcdif-rd + - const: lcdif-wr + - const: isi0 + - const: isi1 + - const: isi2 + - const: isp0 + - const: isp1 + - const: dwe + required: - compatible - reg From patchwork Wed Jun 1 09:45: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: 578369 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 8B011C433EF for ; Wed, 1 Jun 2022 09:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351295AbiFAJoL (ORCPT ); Wed, 1 Jun 2022 05:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351258AbiFAJoK (ORCPT ); Wed, 1 Jun 2022 05:44:10 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2043.outbound.protection.outlook.com [40.107.21.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04EB45AEFF; Wed, 1 Jun 2022 02:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CB6E0+Py5mVPLYMRgM/YuX6vi9tdsBrZ47NF5Yi/SFyKh5KyY85CrjaPltx7hcxsxOYKNIrNVHdlWzostdXYFZmy+vDgGRT45SJvvTl28XnctWay+07vA+fIIL8pGLZVcQCbKPVoupYBrtIv0zJnV8vtdARc4nih8qEspMdHRsYDK0C8qr8r5UW+5p6aUv2ESnbKawO3CTVrPd6INfQc8Tyh16uW9onNf5wRqwy8BH2ul6kQwujPHGEO5cK3IhjTw707OMYdu8N56kQo8T6OFokSFsRzIzCULRmTCvVO5U5+Qs65cjvyFpJIWyvDgEvovG0HMDprDbvcdbAu6DqbUw== 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=LZI7qG5/515drLM7ZES47yjJNZpw9esD1lytih0Cg6s=; b=jdxxgNDEF4NjhIeCBwOlUzblL8qaRMlAFb48YOqLPMHVW1XFso8/jBgM8VdWvFDBwd/8Ku+LFCGNMp4Wp54lbR+TYKpiEO1qqBkjzlSxo3Jyffl3TI5/Qqlu8ot9RM03RFdrMWa5TTy5X+BIP88swH5hT2NhXXTfcc/8/yXoHrBVN4+0gI0PestzQ7gw+yIDio3E2TnNSOtOjwN77KYEoV2ZmRcYUx9zYZI5LKgXZDH1y7sf3AzslSsOhJRIMtj6wuXjHc/heS2PWrUPLBpBlfJYrFpkk07vDCAnMiParnAKp3kY99IJNNNt2xPIrFgBx9/eNdcSrjpweTfjgYkmlg== 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=LZI7qG5/515drLM7ZES47yjJNZpw9esD1lytih0Cg6s=; b=cqJM3+0BblI25BGjzVtO4Dkl2aHDix2ZWXt9xh1/3VFQanFenGkvk1jreuqdzpG6C7gTfXDO0ctiCdUnmSelDGz7lXuq2MhHiA0Q2kzsIxyNIP3s3PKuKWK8YwD7K4MSTW8rBpdM8aWfk++WpoxHGu2DTitQ86hWtCmscYwP/B8= 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 AS4PR04MB9507.eurprd04.prod.outlook.com (2603:10a6:20b:4ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Wed, 1 Jun 2022 09:44:06 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:44: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 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, Peng Fan Subject: [PATCH 2/8] dt-bindings: soc: imx: add interconnect property for i.MX8MP hdmi blk ctrl Date: Wed, 1 Jun 2022 17:45:31 +0800 Message-Id: <20220601094537.3390127-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094537.3390127-1-peng.fan@oss.nxp.com> References: <20220601094537.3390127-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) 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: 720ba5a3-cc38-40da-fd99-08da43b34504 X-MS-TrafficTypeDiagnostic: AS4PR04MB9507:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OMNDsa+aU/W1h399p76SNolLj0zOaL2Gdm06t6AM3Yt2L6FYYu3/SL2cGOTsNsa+wcrvSDGylCxRfdtPx8XNAVKeAuaGMXcw34dHSUnUmzHN968u/J0bFmg4y/jZEKqoqDUKhtp4mMnjtqzTNpblJs8WGxRN8Z75U3JYDXHz+3oVzvPuh0BHZINjKVJvRMx7eYc8LrnaaOW3k+nWJYsjz6N1oYL3hguHRL6tOx/Hvt7P4qWWiWgHAAkjc7xWm0iy2l54TsEhT5RHNK691tGPweXXdDpOjQEonHDQqBkpDYd6Yn0huFbFB2SIuZErgOKIHQSd9J6kGdeKaK0d+o6YIbvuGWSDGUfWk83xCsJf5CjdANjNHGH4yUg7oqN7pYQu09lJk4hQBDKp4djRpGjs4FtbhLt2QFcauoJuCuru6EBkyipjahY6ofa17oqaYjvFz3j8USEgXhvMimruCdJw97Lji4z05Pxi+cI2HCws6RvAcpywsl8CGGCMClBtZodFNarPHo2bd3xu4k34nAuOCVsIgQ4rk7mLvMRvH+UA0TnZ8uf360XOQor5hCHRuqjiMioiuZ0/StPoKyCN6a9ihKTinydf4ljNS0CtwOqZkw1vKNCtsDvwm4OrIzKlnXTSvIE7KCGK+8wbrX5sWW5pdfaK5kWnH9w0oG5wsuUXkVkvCt1rPTE7MhFkuPw9ixjjok3Qx1zSgTiLpCm7LLj7ArzsWWIxbmFP7h0UQ/IhdAM= 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:(13230001)(4636009)(366004)(8936002)(508600001)(921005)(6512007)(4744005)(6486002)(86362001)(5660300002)(52116002)(38350700002)(38100700002)(7416002)(6666004)(4326008)(66476007)(8676002)(66946007)(66556008)(26005)(6506007)(316002)(186003)(1076003)(2616005)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WqDDhniHDRjUSCvtB5emwl78pb5tHeLnZlxBNxEv2etOUps/7MbSaNyAySzHQrDq1zrozQrcV5xJSUOgmdMopR84b69h0FMZlYAhfmPjdYtTbM1GS2U6iPhIAji8jK3jxyuWvCurGSaevPm+RVw1nj1r/Bh1alzT8xYNHSojBr56Wk725b6/j8lgno4TT6dvkCONoGf0edzsZG8fl/bjtmFmKIssKlw+aStCh5g7MU2wwtMlgx/5/WiCwj3R44kjYomwqkdnqM+yn2QXU4w+DqNPmubmMRrVXuuXzAwMICcjc6wvPgBsTFYYvNHDrGR3BN1BXeOzNhcDqUbyT9lvQHeTuwQLRmXYfLpGMKi6CtLr6yVW1zQP97pjfmcGuu1OdDGOvuoGY9D5umfd+ckGT6mr2EipmjJ68UQJ4dpas/iek1tfMJEIZ2yz60/0+ti6J4Cq70dAwCDJDNgjFApsTs/DwXR+pZI+NW19dkce3hLHMnmDtxWxJ0JpEzFhfl6ZJUI4Wl2djPKy0wt+0hokvYF4juESM1TEkNXHRUdukxZlM8KWU2+eBIygqBOYCX1m+mgt39MEsbqVBD7ADakhMa+xnalR9EdD1nG/7k5mB7Mx8BX53KJx3q/pi+fF/hyM5Ucgc9tocdFHjYS9vM/2awQnNVuP2SVGmQVVOlVbzzPdfBDWbhm2lg8xQjJfcdHrkb+F0kYeYsPnC056i4vGbDwUvFQD0pHte2exC0zCwglRz2bq0U4ZkcSQcfvWuAJllsBjqKV0TFsHe19qCbXx/UiF6mfu90hmikwSd7vSFp5v4GAjWRTUN0z9W4YA1/v5KF9SxP4rO4tazVYie0uS3DGjJyDghOuiSBkajcdpqH7ezD62BoqbPs218FixWu0C5/dDizPlQMicClq3t1ZciN9sXcDxpg50SFIv5HnjbBbDZO4kEsDS7jBW98WwxdhvWb8ikpC3H33SuWIC0lBNM+8dPYKRLlzm7BSpQIUgZgtU/i4qXLZurvR3OMc5nCW2fCVHSQPLKW+P5SiGSLxtDbaAHR0Z1WRsTdy2MSBOU1Xlljmwje8OLazZ2JytaHea+t56QxexpiBIUscyZ7oWWsq/IkRL1UeQk9Ly74kkS4WlJaDi3Z8FDi1/dddGXHvnpY+EbA5FidmDZ75jYPtpJ1S8UZZ6LKKSAeb9RAs2QD2tYGl4pLyYD9ow7rqHHI5FmqhETvBJeyXDdnN5DLNHX7CNAOIdier5Ft2qT6Zv000kbz95Al7hbSsXML37Lo1AtnaRYaao0lpciRCQG7HUZ++FgO4bZeWQShP9teNRaU+Fyd7XMKX0wCSfpPKnknYyvsdB25jg/I/CSFFSoODBB/LB4AiEBdKPmT5BrJ5bDXc1McweWUQPIUJAFU3NPdOgZXxqM7TYj9jmIZ/bAyFDB//IFcURblQa4WLsECWbxvq7duH6z4+FJU8yzGm+F5Dl56vpArrtHyE/retQ8n2eRd4bbwJF9513MLICuhMs4rWolAKvpzi4Ejq1UA8frLeyriV9GrvNonvZm1wMuIQ37crj7ciGwGGbAq4kx+EUaOX8fbRJ7pIZ5H+H/C9YPgW8v+Pbs8YSDs31HW1s03PN9gJ4daZsaBaD12VS5uLtZxa3dyg0WUSWotRKHVpcuPpAcshwgkRTl2h/LkmIYzQMpDkaPlLYeheJz5YcO39c5ZfhI/TbqATV8hR+eI9EP87OmIDCtvKv9aMOtdK+4o4MTg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 720ba5a3-cc38-40da-fd99-08da43b34504 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:44:06.8288 (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: EzYpbHzMLiXUiFYQHW4kP1I2TisZpJJkJxwggA6u0YdqrzpKIMdikwsLx50F81gRHh+2TF+XsfjQvdeIkzjA+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9507 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add interconnect property for i.MX8MP hdmi blk ctrl Signed-off-by: Peng Fan --- .../bindings/soc/imx/fsl,imx8mp-hdmi-blk-ctrl.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hdmi-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hdmi-blk-ctrl.yaml index 563e1d0e327f..1be4ce2a45e8 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hdmi-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hdmi-blk-ctrl.yaml @@ -52,6 +52,15 @@ properties: - const: ref_266m - const: ref_24m + interconnects: + maxItems: 3 + + interconnect-names: + items: + - const: hrv + - const: lcdif-hdmi + - const: hdcp + required: - compatible - reg From patchwork Wed Jun 1 09:45: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: 578368 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 497A6C433FE for ; Wed, 1 Jun 2022 09:44:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351258AbiFAJoZ (ORCPT ); Wed, 1 Jun 2022 05:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351276AbiFAJoV (ORCPT ); Wed, 1 Jun 2022 05:44:21 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2043.outbound.protection.outlook.com [40.107.22.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A6A462BE8; Wed, 1 Jun 2022 02:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T8OZXYlmIZ/rRmzXL1vf9oVRNVs3yGJ6e6Tl7FCaLgE+bs4SBMDXD8lKZ0CJIPXbbU7ufhQ1iHGqvQf1I4KkpyWRoWheGySJPsbY/Mp6pC85Y8jXN6xjxwfwGmfpGkAZSQlrN06ROVFcphwimOkld9CgogLz8dufQ0xfXPtiyAYW5n0hK9/fOwPCxL4UvvGLyShKQ3MduvRWXwy6UO9PmkkdOyS+HzfrOHnV9xDS1Fc86qCvbn8lipvKJSt77ovJ5BET0crHNbuvxVFMvcOWujFI7AiZpkGU54pWk6G0KJswHu94oCjxD7cju3UtWi/pHUkqe3pVzMUuktTubLQfeA== 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=y/Iv8p9Y88cY1urx3A8Qys9vLvC0KnScZcSNIlZLpVA=; b=JyjknvFRLXS7Eb4476b5LntV/f9nCSJwQbhm/2sO1dzVcwG+C0AtAacGCH4cL43hkTrVubE72LedSdy7gvoQLd7NnSWKKX2SHDf8GQLsbltUayvYKKjiVDwozab9E/oucNWipQhoDSK0/IWQE6x8PnHjQJhTdRsh71LAJpYb5TFMDE0uqrVR8z/29irQ0th8GgExueD+zziptwxwa+jQeU40EP3RdaVb/K96mg7HaIkRj6zvtpGbAM3Gt9VvrxsKIJXJNOrOzckNfmJIrD9ij8VCm9FpWrq90WnbFZgnW/dULwCjSzOl8+UjIV7r0vpqUf09UhpC0jUhAcC11+84xQ== 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=y/Iv8p9Y88cY1urx3A8Qys9vLvC0KnScZcSNIlZLpVA=; b=SFrw46EREbwcXbnF42WUUu4HcIDKJzZyLDM7lQ6683EDznElXa8NyN6S228rffSdSul4FxvCv1ltgsONPIZEwUTxHh9Rqv86UAUvCisnai8Dm3U8VbmHVuce6Rez66YmMT77VtRo/bFODHHAxywgu87fSJEOOhQT/ZPvN/Eyrrc= 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 DB3PR0402MB3897.eurprd04.prod.outlook.com (2603:10a6:8:12::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Wed, 1 Jun 2022 09:44:12 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:44:12 +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 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, Peng Fan Subject: [PATCH 3/8] dt-bindings: soc: imx: add interconnect property for i.MX8MP hsio blk ctrl Date: Wed, 1 Jun 2022 17:45:32 +0800 Message-Id: <20220601094537.3390127-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094537.3390127-1-peng.fan@oss.nxp.com> References: <20220601094537.3390127-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) 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: da6e7759-f40f-4edd-e07c-08da43b348ca X-MS-TrafficTypeDiagnostic: DB3PR0402MB3897:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8Ssd0vXm6Qyi4VjT8Xt6lwZJzEvgr92ueBRQymgaaMo3owikTFixCws0TiyY/B9kCwY457COEtcA7ykBPE/hnVAuN6fZxd4QRBpmcDKNxfMEyqjr8TgWxoHLqlF64PlatoFaTSqbXU6f9h3joxC3X5lS4QLjYB4wokWwhcGkeynNgQpnRQRk+u+Lt02q+NBKfwKBaVs1Hq60iovylXobCC41tkZRUstF7993RqkB4bfRiMpp/tzU1ndtyH9YfJrSwVFGvtttGx92v52IIzxopwsdSeMTxrQK/LnIZCXnx+tONja4D+MVnvyE7yEZaYpYRFezK2PMPNQjZYzs7YhDcsqIyX3PyRynLNU7FOLBwILqMIRK58AutswzqBK7PC0LJfVMY2+GV/4P44vzDdCml8eR9hU+INd3bl7ExRoeRU8tzpDk3LJ1qOs2Gjbe49H8ubSMlXkvlK0s0hJKDasRinDkdM6T/iEt79hF4eufL2PUyE2nicM3I7GFs3hD2sR1iTc13ccNSG4NZLFOFV3i3+ehxrnX0sjjr0vO+GEFljMUm7GrNr9dMVkSejSsZoU4uPeFBoivs6RxmauS+tvrd2fohaarlTU6OZfPW66MoW99O8qKrJRRl6AXj/gAD/HZ9Im4DD3ooVJp96sn4iQkNWYlar6+e9I0G9sAQiteYzBlA8M01ZMkOtpa66SmZ+UQ3BhFrGGdBaf99Cenhdj0jGsBVl7K/f+OcsYTe/AxVQI= 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:(13230001)(4636009)(366004)(1076003)(66946007)(2616005)(86362001)(52116002)(6666004)(2906002)(508600001)(4744005)(38100700002)(7416002)(8936002)(316002)(8676002)(6512007)(186003)(66476007)(66556008)(26005)(4326008)(6506007)(921005)(6486002)(5660300002)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gwbpAfbJ6HahiIcIBk+BCQhvYYTBKoVG9KXv+S+TSAbvoTBHxnJtZMNfSibYrDetlcrh9xsnDiSqdm41sw1iWJiocvrpqi/p5SOAxz5h70QBkUq/E7SeOnFUh+QHm1iTwBk52+NdsYzX7csIfGHWnfY+2u3pa/HLuGvHpG4q4fjmV8Hamvt/GE4cGR7JLj/1tpthRPuuqHJ8tzVVrvQ0gaIEC9+Ut/GNrfsNlvtZL4EBGU71dthfDcOGlR41iMTHpXoSq+/DHueOct3NPT+4P0wgOF80DBx2YxHwGUYSYm4c1jNLOZpfm1Tn3+GxsXbEvKcw5ZYiH0hxq7IoCPS6bgDe6/wCWmg/6QFQiVt1cDxa0kunb7WXTUpM+6BEfm7NNSvAhsqQd3j/etkt+iIM+a2ghxh7u7KTW/LR/9lNE4bdbJgd153Jucw+kF74H5ejJG8R2GOa7A/4fxKbQToSnLS+NJNYAjPt/L7MUd+O5zcGoewzlByu3hfnXcJQvtZDXpCwmoUSWxByrRIszy/HvkkcefZ/jZNLv6Yy/PJbTBDlVp31NTOFDcoq2KkE7EIK4q6Q64MkauMa9qz62D9Dk+8Fx6hIGOu39lSMCZmpf/cHh9+o9EMcTDrpqK7+Ch4M5XCFST0eA9T9veJLf5hB3rNhrmwUw8wgb98QObqrIApHKAPjd04ojPCNruAdJP4mk8as2WpPw7i78/Pq7n4+xzb50yBktvcM8rGxcZ2LOVMIMC+KTpqFNlOugncq9Iv2eSq/A6wYAYZNyYmkAHuqc6y1kj7tzIE4M6vvP4AhrlG/nTjeN+fPRPc9BU8PTj3k6QMk/uHawGYJKg7az4cccxfBNOS5gJhwubTN488rmrVd8CMex7GZ3mdT4TfG6qElZ0WxLBKNlYMxaBzTyTDcp1LdGcasqpB9+XNR3qmgLCkuwssuH3r7ByWWz6mWarAbB+M1auGvCUppCQLiJ+AOd/qQ/8cLCKCMYHbksryVkCxp/kyToQX9fZal2cYvIFKBy4tRUjAdC9kXmsG5MzaM2OD8UEjweSG5CSSQPH0yxD9IDh5xu688j6Ml33pH2EjC0azfSs9rVwtUO5DLNc4GEV7TMExkurX1AdlWng1UpjJK39iRBQ2kCREq+pj8vy/muiafhcNCgT6lFC5RO2WxQR06qXLZiXrQexILFu5fSwgW5Q6R0iRzxRwVlx7fV97ixCyBCRv1Q2fvqfRFOXfgjLWmf5Df9++wATcBCSURLi8t9SscYr/FIjWO9Ud9oG6lqZ3y6Cwd+jMi/w+laYtM3voN7hJI9J6SoepTpqeqsTU7Kh93RbpTDW36ZQDfRWiPN40dsQf18gTBKRWKLcGMtc2lub03Rbh79bwwh7wlwvWskOzJY6bnO6uZ7MU6XA8pMwWNDqTjC1+LIbftM9quOSQ7FYDTT9dDRNjBPbJsZdF68b1hSTMQhiXUhpkFui5lwnOZjTpjjgrFEEq5uj8hHJmFaIw1ccMWVqcApdAJfSNY7Rax6Allz7OepqpvU6dp0MBcqxtaBBommDvRP7xCOwFPTHMviHM+KmpaSP67tGALaA/2IT2KcS7hKkAYW9kWnxTWSUkyt+1Xh/n2AkXDIIoJQaVHMciUriWpJRset5nbeE/7PN/DBF8DzPA38JriipFlT80I9F+i73ziUPWzdU1F0Yx3j+vVwRba2O/EwBHW05b8w0x0UV1RkgoIXdQk/9BN6XuUDPcgDb6yaps95w== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: da6e7759-f40f-4edd-e07c-08da43b348ca X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:44:12.8933 (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: uxHtbyTuUExmsNE5Te02mjuBmHywROdulBaI6GxSP160tOGfOzqz/N0MADUW8jI9nkSMLcnE+//z3WJBu74rug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3897 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add interconnect property for i.MX8MP hsio blk ctrl Signed-off-by: Peng Fan --- .../bindings/soc/imx/fsl,imx8mp-hsio-blk-ctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hsio-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hsio-blk-ctrl.yaml index c1e29d94f40e..a776dd386ae3 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hsio-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mp-hsio-blk-ctrl.yaml @@ -48,6 +48,16 @@ properties: - const: usb - const: pcie + interconnects: + maxItems: 4 + + interconnect-names: + items: + - const: noc-pcie + - const: usb1 + - const: usb2 + - const: pcie + required: - compatible - reg From patchwork Wed Jun 1 09:45:33 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: 578024 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 134F4C433FE for ; Wed, 1 Jun 2022 09:44:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351347AbiFAJo1 (ORCPT ); Wed, 1 Jun 2022 05:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351319AbiFAJoX (ORCPT ); Wed, 1 Jun 2022 05:44:23 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2077.outbound.protection.outlook.com [40.107.21.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 257855C658; Wed, 1 Jun 2022 02:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HBTCZfv4Wgh4PUmPl9Eh3EbuuNDlURaK11rESAPKo6HVpie+Gq4EF24Lvef/v2I7rAyao/zNJzcX9H+MBK9uzGcJNp9iZhbQ7t+U2g564anxZe/Ooks9VJ2kaLZXNu+/kDakSXn9zZ+CDoIln5yXneWdmwVoXstGsRJ3hoeZTFMYSUOqkn0o2oLqgPjjNYwz44O95iYvQW9MGYMc+b7fzGoLtDaG8vCSKQuGU1IGYDEmQMc2Xu+iC5AjhgmY3jd1SfGTHHjYtocGIRD/FeNU/YYaTapAKfgoP62pjZ7R2UNKimi0RF4rbMcfDKQ3vurzBPe7w4Ln4eoxQAeeCdvYww== 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=DnL+NWiTNsTZR5BTaiLSpWZeivbzbsiwNwr8e0HtaeI=; b=BMd9gtmbCRC0MfbNWez+CXuSrPgbitqQqemYJw7XbdoBi3zZp0nSIYpjfws/lr22FNMwE6WcBb8l/S9XfdP247cuXDHAzWF7T4KLhSEGSnz4CM9Xeach82o+q801Niv9VHnfS+xouZzojfdHnCw5Anu6EMI+p3aggKVTSmnGokkl03psyb/gFLDZ9+V4G7QPDE0qcBKYNDEmVsGcPGUYEIDwZ55JLyZ5Ni2MQMLH3GGJqNxjtrDix0cTHZv4b3NAFN4kH09DDLBC2a5H+W8vqk1RyHEI50/rwjzpxg3iNIzI7MkrVSXJwDYvJcSPW/7zB+t7DXZpPy9LaDb9ptgj4w== 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=DnL+NWiTNsTZR5BTaiLSpWZeivbzbsiwNwr8e0HtaeI=; b=gZ4kwF2WuSPHocg4fjynworiLPu07Gj6392oUqEUVQTPZ4sepmSYN4gaj7G/9nUunscQG0A5bn/BXa/mJKAfRngjifSQ2AtSXj/5m2KjyBlBsCimd7G6uHlyvmgFnlMxYS8Sq8F0DdXRsipaL8bzUDYB9mCk0TYG8RkbkEEdWF0= 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 AS4PR04MB9507.eurprd04.prod.outlook.com (2603:10a6:20b:4ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Wed, 1 Jun 2022 09:44:18 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:44:18 +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 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, Peng Fan Subject: [PATCH 4/8] soc: imx: add icc paths for i.MX8MP media blk ctrl Date: Wed, 1 Jun 2022 17:45:33 +0800 Message-Id: <20220601094537.3390127-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094537.3390127-1-peng.fan@oss.nxp.com> References: <20220601094537.3390127-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) 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: 52b0af07-598f-477c-0b6c-08da43b34c66 X-MS-TrafficTypeDiagnostic: AS4PR04MB9507:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p4pfi7wPs4ySpkfnOiBhu6v7wJRyEmLeaRMej9QsWenKTOCUizKz299O4i8rh7sgdJ7Lv6LomzCkEIFpWUk2EvBl/jdvWU+RL6bcnY8HI8uIaBZ2bdHOux3Yu8bF0IJEiEXNJaki+LAFu9u+J3i6X2MJqOBa1jxfMxrqby8Jr4ff44H+JbHAdlmsGeIPvNEXhC6YYdFFbBRkUnEL2ThfcrI0wT88aSo7vppUTudqcSCqDrun3jGPYMhxJ62w/HMl8rCCjbTNf9Aj1BEe1b5aezJ9pBjl7SpWVLtkPuTpL5h5vtFpliQngClmK9YdBHgWBNtfUURfV0sD25019JGIJws1Pr4ETB2bO2to6vdx0piKK9+gA+eomZYoVa3j9qQsR7tktXbqBq95/WvYSCpMtevacVr7mlF6Snny0HvDehm9pVSucScO/yB6l2fFzIn3+4rCUSTnVctJ7C7LEBMo5mgL731mQs46egkUoVbXW4oD0RO/iXTAsk4vwuES7hRHIX0JcNJ7fAby7ffETZvHLGLnzxnk2CgIpTuh4IMEazkgZKGbknpE1ppJQ7oA5a6qDX2QSh7D1ML2VxWemPSCVg831rxipvBCjdVdMz0Brcf9e8fdiDdHGQFM8yIBc/YoKRM/a4u0EknmEVcA3tdLPeIJYZ5D7+/ZIQr8TZ47VuDvwu3SOrfEOILpgoEDWQWFrRR02eQZwoaXDAshwSzby0M+pEjeHnICqpfvXQNh5sY= 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:(13230001)(4636009)(366004)(8936002)(508600001)(921005)(6512007)(6486002)(86362001)(5660300002)(52116002)(38350700002)(38100700002)(7416002)(6666004)(4326008)(66476007)(8676002)(66946007)(66556008)(26005)(6506007)(316002)(186003)(1076003)(83380400001)(2616005)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vWSYtOhXXRuVb0d90Q/Lgo1M5uIs6SFJXjQPnYXiAAAaPJ9ANhMwzeUSeYMDMP5bY2xRfJjJ6GuZ2T5ktrXY/6KSdGqlLVw0K+l6VmPlErBBpSVrxM4j+2j8JECjfNo5jeZxhR8MjhlCRga3L7XF5QOXynm5WsV5c7Jc0wl4C0Z6+XGnrsWc7F9z0hXmqRc4AobAdIa7u+P0ZSQZMaQov4pY5qqfO8Dd+0hTtKae81eh/T2y+4nla/NDc86SKreyFU+zO0gBTlLql9i3Qob64tMo4ATDmlQ5vCma82rgxhHWgxeY5bRLYLj0ABPB+ctw6yURKAOd/K14FIh0p1byiZFuJA7hp6vsQTdOGQuxXS4YqW3NcsUsKrX+2cbtu3iK5qir/r7xXEJt5/Xj69aqBEWRLPUXIUKV2CZZOMwWcu58XRAviQO8okK4ZEKGsJIxVWVHEV/veng8MMY8cjPsHz5ZtpeIVb/cMClrMmCH0ldgo7ocPfiq9nf++F2LpuOWHuFCj3S+QISDF6XkPY2I3LkbkC85AVdPvmjGiC3bYB5RU31HJvtW1tR63LOX8fHqMhTRQzJlmgqcfDs4zlm3nCOMn3Kg+CwJ1Lod5wy/ZzCI9aOdxg9bcwx1CuNKC63wfg77k37FgCHj0BJ3WM4KNO1g+3FSiXpFnHvscfVebT4Y8F8TDOtSnWMbpqYQ2gp1bqoFcQ+sEsNtrcRDbwGtSzx6M22EeIpw3zfHS1GnAY7+fV40ebLZcgGVMpMp1ehkMhOysgauO0v8StdkfQYb32WNsE4WBNIti4+/XU5ygZxNChqlyTId3wWQWKva4zrWiqQnECbDttfAXUBQRZiRjRmACAAJ7cDaWtejNgZjYYC8VXun5f3j1KjTXG/3VpZJyK4jk59LHQ8dIz6Oy7WcGL220jHOUwrpAgPuAmVKgZFg5dQplXCw3hkRLwzvGjkJrK51DVgBfLAuzUBVhLGkum7y/1Z566c4fuRdmB7Fd2gndoxjlh2axiKCrGS61kNOnqXPYKCscPLvDCOKhC/nHYtoHI4pGGgXAlZhHANdHVOadShmeSOfbay8t3St1X256BweVJb7bJO18uAAyuW05Blq3VAGWZxoDWABQoLg08wybHYTMULsZeevJ9Y8vkX0vDqWJl53uBdTxjdJpklSvH6oIX3XAlQmNm12GswO+kRqz0BxI5nhwbZwXEUKfiFiZivPXH13XSwSZa9p/dY6Yd3RoSgbq/HutHG/FEe/Bl4IflZ7OFlLkcioi9Wm1O9uBYH6enuXbzvx7CvRmr107JjP8nPFSYL3wETW/lryF45k4q9DG7HAbUiTobnyy+zAeBT6oTSMY1Lzx8V+pPGAwRGRF/ycmpej2hm2XRXpwbKMvK6exdkDdL+nJf0ZAkajTTffgp1L2EgtgfJRZVfLPdRBxndIfCqYlu7iQ0EmdjY1fNG0n2MALz6QbfjiGGpfFO2tIFZPBKzyfvNtZXBnwZsgp1TyPHckgsok8b+YI8/wUSIWovsp4s7tGSK8wXIjOvQc/NNLq2vvol+tGWLGoG5UTqoXQwdNWu3w6t0UaPKw/nUsu7C4Co7Lsr/bB4jAxp18Hzvi8pC7nO+0R7iIHoRv2wTuPPocWzbucjCftR3V2zcmXhSd9gPzM0Mwe+xXlKvA2cwK20zli8KSlcxxNP+aTP204hbz+EKbtNpZn20AmON29Kg7kaIvxeVmHRVS1bxtul3J3zaWJaEpP8S7vw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52b0af07-598f-477c-0b6c-08da43b34c66 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:44:18.8184 (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: q11NyAG0zeOKS425EJG9UagHzNv+nfusj4UWbi2hs/3yCBGdla/G3NOnagns626ECS7b29PekrwqsKMqlWYk3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9507 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add interconnect paths for i.MX8MP media blk ctrl Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + drivers/soc/imx/imx8m-blk-ctrl.c | 31 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index d9542dfff83f..2a1c6ff37e03 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 diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 7f49385ed2f8..423cac0c9cb6 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -37,6 +38,8 @@ struct imx8m_blk_ctrl_domain_data { const char *name; const char * const *clk_names; int num_clks; + const char * const *path_names; + int num_paths; const char *gpc_name; u32 rst_mask; u32 clk_mask; @@ -52,11 +55,13 @@ struct imx8m_blk_ctrl_domain_data { }; #define DOMAIN_MAX_CLKS 4 +#define DOMAIN_MAX_PATHS 4 struct imx8m_blk_ctrl_domain { struct generic_pm_domain genpd; const struct imx8m_blk_ctrl_domain_data *data; struct clk_bulk_data clks[DOMAIN_MAX_CLKS]; + struct icc_bulk_data paths[DOMAIN_MAX_PATHS]; struct device *power_dev; struct imx8m_blk_ctrl *bc; }; @@ -117,6 +122,10 @@ static int imx8m_blk_ctrl_power_on(struct generic_pm_domain *genpd) if (data->mipi_phy_rst_mask) regmap_set_bits(bc->regmap, BLK_MIPI_RESET_DIV, data->mipi_phy_rst_mask); + ret = icc_bulk_set_bw(data->num_paths, domain->paths); + if (ret) + dev_err(bc->dev, "failed to set icc bw\n"); + /* disable upstream clocks */ clk_bulk_disable_unprepare(data->num_clks, domain->clks); @@ -228,6 +237,18 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) for (j = 0; j < data->num_clks; j++) domain->clks[j].id = data->clk_names[j]; + for (j = 0; j < data->num_paths; j++) { + domain->paths[j].name = data->path_names[j]; + domain->paths[j].avg_bw = INT_MAX; + domain->paths[j].peak_bw = INT_MAX; + } + + ret = devm_of_icc_bulk_get(dev, data->num_paths, domain->paths); + if (ret) { + dev_err_probe(dev, ret, "failed to get noc entries\n"); + goto cleanup_pds; + } + ret = devm_clk_bulk_get(dev, data->num_clks, domain->clks); if (ret) { dev_err_probe(dev, ret, "failed to get clock\n"); @@ -647,6 +668,8 @@ static const struct imx8m_blk_ctrl_domain_data imx8mp_media_blk_ctl_domain_data[ .gpc_name = "lcdif1", .rst_mask = BIT(4) | BIT(5) | BIT(23), .clk_mask = BIT(4) | BIT(5) | BIT(23), + .path_names = (const char *[]){"lcdif-rd", "lcdif-wr"}, + .num_paths = 2, }, [IMX8MP_MEDIABLK_PD_ISI] = { .name = "mediablk-isi", @@ -655,6 +678,8 @@ static const struct imx8m_blk_ctrl_domain_data imx8mp_media_blk_ctl_domain_data[ .gpc_name = "isi", .rst_mask = BIT(6) | BIT(7), .clk_mask = BIT(6) | BIT(7), + .path_names = (const char *[]){"isi0", "isi1", "isi2"}, + .num_paths = 3, }, [IMX8MP_MEDIABLK_PD_MIPI_CSI2_2] = { .name = "mediablk-mipi-csi2-2", @@ -672,6 +697,8 @@ static const struct imx8m_blk_ctrl_domain_data imx8mp_media_blk_ctl_domain_data[ .gpc_name = "lcdif2", .rst_mask = BIT(11) | BIT(12) | BIT(24), .clk_mask = BIT(11) | BIT(12) | BIT(24), + .path_names = (const char *[]){"lcdif-rd", "lcdif-wr"}, + .num_paths = 2, }, [IMX8MP_MEDIABLK_PD_ISP] = { .name = "mediablk-isp", @@ -680,6 +707,8 @@ static const struct imx8m_blk_ctrl_domain_data imx8mp_media_blk_ctl_domain_data[ .gpc_name = "isp", .rst_mask = BIT(16) | BIT(17) | BIT(18), .clk_mask = BIT(16) | BIT(17) | BIT(18), + .path_names = (const char *[]){"isp0", "isp1"}, + .num_paths = 2, }, [IMX8MP_MEDIABLK_PD_DWE] = { .name = "mediablk-dwe", @@ -688,6 +717,8 @@ static const struct imx8m_blk_ctrl_domain_data imx8mp_media_blk_ctl_domain_data[ .gpc_name = "dwe", .rst_mask = BIT(19) | BIT(20) | BIT(21), .clk_mask = BIT(19) | BIT(20) | BIT(21), + .path_names = (const char *[]){"dwe"}, + .num_paths = 1, }, [IMX8MP_MEDIABLK_PD_MIPI_DSI_2] = { .name = "mediablk-mipi-dsi-2", From patchwork Wed Jun 1 09:45:34 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: 578023 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 5EB45C43219 for ; Wed, 1 Jun 2022 09:44:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351314AbiFAJob (ORCPT ); Wed, 1 Jun 2022 05:44:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351325AbiFAJoa (ORCPT ); Wed, 1 Jun 2022 05:44:30 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2073.outbound.protection.outlook.com [40.107.22.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDADD5D5DD; Wed, 1 Jun 2022 02:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mG5uRfKY/KaO28JsefGea24icUu/yhl9ncSKZ1vF4Y+sQjBJIYqJ9h77fnPiUktguGGhs2NojlUPcX6Z+HBOaDmxcYM7u2CQQCBa8+Kd5dE7KGpG4UpNesvnf0byZWJJJS345Qwq/icbCaDlAUsOkOrLBw+sGV7Y6oozF+dhoBXpsCpqVZvj5ae3aNOaE4p8xq7OU6UInWYjiQi+tt7MvH/9H92Mm0YMgJr3qdGsRY0ip1li5ftfJiOWdVB3v7NGX+LmW3E9QfJm+nqEBsC/7scA1yINNzzXdnHrzOEbvw3zta7fMfXmS/grptLRi/PlEQCZN/vE4ARBprfc4BvSAA== 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=Ty5ggt4gvv2BVeByuVnhN2yUDGXUmU4W6kAPkvobv4Y=; b=dY77T2AMPgBfjKEknZCnQ8Pu5b59LDm3SkPBZNPamsQ9q4J6W5zxE+mF8eFNeQpE9Nz8IFOGbYokff9roe+RDcAOfN8uMBNfPQ9mrcE2sSMXIGjwH7CKFlsAcX3nvQwkyppvxEqktSnIoCVX6zXEjRWIpOvcWfHCN97mjkBMJhXIT9HTl9/p7PmpxjivlOLGUnCYdxuqMymAfC8mVse9K3RT/rPXOzh5BeUqSDRUIbdov1OADFCKgw4D//dUbwXQkx0losSjEwJnRn4QkMF0GPX0dQ5eHGfZgf6WmXk9rp4L8MPHmtBBFQrJE9JhFHfJqKWImgL/7r7dM4O2XD4jtg== 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=Ty5ggt4gvv2BVeByuVnhN2yUDGXUmU4W6kAPkvobv4Y=; b=As40kGcjWiPsuZBqAtkhuKAfy8DdYydzVFwVSv4vFhWdH5ZZxEn8edIB2hcGAvN6e9vpxxfjtoeCf2iRRaB+g78yoNTc4UDdrhX7QCV/ERFF97U6HLb5hJwCv7cG1jdBUAzCsgQbyt3SBYrk2TeJ7mbnMAs5gCqnMdjOocKvx18= 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 DB3PR0402MB3897.eurprd04.prod.outlook.com (2603:10a6:8:12::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Wed, 1 Jun 2022 09:44:25 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:44:25 +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 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, Peng Fan Subject: [PATCH 5/8] soc: imx: add icc paths for i.MX8MP hsio/hdmi blk ctrl Date: Wed, 1 Jun 2022 17:45:34 +0800 Message-Id: <20220601094537.3390127-6-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094537.3390127-1-peng.fan@oss.nxp.com> References: <20220601094537.3390127-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) 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: 8380c8c3-0d12-41cb-aa6d-08da43b34ffe X-MS-TrafficTypeDiagnostic: DB3PR0402MB3897:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pUhpBD0M09E8cXT2t8FP57o0CaDu+n2ywvmNbOQqOppdVVipZs0pKp9yCFKPAR1PUdMfjMxIkSv/LiOgW3xAi1ahK371aLsZwhSnCGUh0FCQ9pu8CVwiNIlRc+tW+7/rICTP3jhlD+9w87vxUcxpr/ZdisuP6+kpxnbQAoZhiE/e4Nqjzk77xUyF43RXfCIi/n8RGJfdMQTAroW1VeOKUd8l/EZDMTgE4fHXt+C1yzVbypkDaOG99xHxPr51lyDk/YTnYtzU+xjsHu5Df1r965p/KJaT/P83RdStY6WqUz99dSWHHdUcIDXjRp9g+Gi81wfUvszIKpBRgAnOfjgaKEcXAmO6c7IHhX4AUR8t2CQl33MGbd0Q8sgsjS6a5EcHdTMk2/rZzYsHhxwXuM+FZ5sSgHgMnsjcznpKTbwzZUqbwQg4tMblg1z5e6RpCyHrwb2kS+qHUYPEKxHAYV8cCME+UNIR1jhBk9Tdm4jREIxmJnEbryb5fkQfKMh82HfnH4FpcSWf7xPsCiXGJD30lB3MVwJtDhd0QLzVpmo+/ChephnEkON1mF1UTJ6zQie98MBbjjjjKhjwn9GlMbqTnM8UbJBy4FiR/RUov/NnDl5K7JO47u/s7Pfc5FlariW777aGeHH0f4EbGPL+VxZW+fOkN46Ii3SzHOJ/HywGaMpg8YiSlM5BAxeSEHeBtSnFAWwV+8eSRiPIEysFf3Urs3AHkO/CTz9UNXbnpS1xEVQ= 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:(13230001)(4636009)(366004)(1076003)(66946007)(2616005)(86362001)(52116002)(6666004)(2906002)(508600001)(38100700002)(7416002)(8936002)(316002)(8676002)(6512007)(186003)(66476007)(66556008)(26005)(4326008)(6506007)(921005)(6486002)(5660300002)(83380400001)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MIq0st2DPe+I2svH5rxA+4o0eTurn0PAAWast4w8o2Rcjxv6ICQ0GYqH4gR/3IlH2GSmni21RzDGtSnNfcyt89pSBeYX4/mDPnPAG1KjgKPPqqQ6KQOBpzM/reyP+4/UB/8SAXP3Dv9Uo80L1cLEkLFusPWq761iBTycRgDeDqXFzQMat2Fp1SMiFmrqnsOY7c2nqMnJUsidbMLEmDSsDiu6CKStjHgYA0HDs0b5PpEQF6JrPPZVBjehJgnUAdKhqeV0LY93k11aW6buxER4GhhacbB4MGTNIl4C15eiWYCvcAbOsXcneME4ghCu7nqkdun/ZvakZDk3hKL/ab8uSh/2aRKS+jIcies8y7uZUjfYOGUb0TwU4uVE0fiykSZAu+qjcTEl5AnWvfObbeeg2OUqECaUv0dTBESmQbysDDNiXGZ/tMsWkwi/Yhc2o+6On6jXaWeVRrnKHk1BmtwG4KXcMRx9dKCAEM2pSn2dLBiRO/OEhTbOVR+hyyG9PgC+LKo7dilrKZ6MB/Vj3Ap2mfvB+N6fMpNiSr8HoeZI6z+IedMdfqNssCtLB4HyyVgHM3F+c2vWcUs8245+RYo4o20XXFS46WSm0x4uiFDxeP1rGDxusi7XDSWPbCsdniRGggo74WMy5GXzn2e33TkTQjRlSbj23cR7uL/S7uqSri2bzL6CpujkZ9L6JdCSsYmtTwPzO2VIkRnAe7utE5obFaYVuUulk2VsUKp2Wmrd5nXQyIdoBjboTRVQK8MMbdy1uA13lHW5HcUl8fQCBOnJl3geDFBxEFo//1Ric49ORm636pQwnWe1Y5lmI0rtkqq9BoLzZslQ16tSFQZznoV6YFu/hfBDI31RXKwz8p6323PNMw1RrTA/MPRXKHCjspQGdCTqBd1ZNNV/wkpCxbuyqZ/b9hLVwkWf5PbAjx1xRbaJBwJG8cYGAfrTBZ/Zmrwk474bVg0AIPsmHZ9vELZUQNglr4FMpytAMFL9b2PqIp7Dtxulp+8j1TJJDVLQt4jjiJ5EwcEVAxbufL2sfpnxWcvWus6KckAVcozaMYjdDfiirHmPXqPG6myvk+VDOeSwdndQBRPGfrujI69lNukNclV09OKvtcR5ilzE3nm3e7XIF8cBorm7AMlFTQTOFRK3St+mw7oxP0aQ7J+XA6KXCyi5jjXw4kYugrmDAekUzzDyGdi6W+z9Nq3OSdj5DerOi/HoYC8wJC9PiAg+AqZs6vav8fKFcUfERpZZghq9PzE8QL1n6LyhVrb6Wudf294u1pvI+5iJ+C1rEZlaAbQ2cDCI26e8vh0KPygQhSuUndouVCH5iU335AT0T5BVq044Q0j7IZ4gUVCdv+twyCPpvZ/EYXpxgOmNswf/sr0LH8pMsfLbFWOe1vNizo5+u8xJ5Pm7BxfFxJubrF0DYlvaKTIoF61TQ0LrP7YL7LJK6R8hgK5/XVAAunu58XKG00E/VyHOA+pF1qabURAkNOTOLLlz+DJI5KFq9iH91hiZNnAY43xsRYXHyWsekeDdtHf2UIYZrHQ5rfGKJkoCDkSN2gKl0qReN+0gD++eQj/w3Uq8k93tQRSSfas9H7GsRxs7eoNCm6V+sHQ/F/taa3XH4k/vu9yzmKLfyy8gYXP3EgLfvckfpl+1CcqK2nzQGvD78TzhieXjWpYVV+3mTuCJIbljZfXDhxErLHwH2uN9ZJiGo/cGrir1tO4BmBmKZPqIgSMy82ZXOH/T6W4aaYkjSw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8380c8c3-0d12-41cb-aa6d-08da43b34ffe X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:44:25.1173 (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: Is2pLa21F2r1zmvA6a6jse/AR7Pcf1U8V+s2h/qhpkKq7aXpZ9XYAcz1jhqikS8hipGWUtb0sQpPfYgWhNgO6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3897 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add interconnect paths for i.MX8MP hsio/hdmi blk ctrl Signed-off-by: Peng Fan --- drivers/soc/imx/imx8mp-blk-ctrl.c | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/soc/imx/imx8mp-blk-ctrl.c b/drivers/soc/imx/imx8mp-blk-ctrl.c index 69191d7a2f54..9d1040f47b0c 100644 --- a/drivers/soc/imx/imx8mp-blk-ctrl.c +++ b/drivers/soc/imx/imx8mp-blk-ctrl.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -36,15 +37,19 @@ struct imx8mp_blk_ctrl_domain_data { const char *name; const char * const *clk_names; int num_clks; + const char * const *path_names; + int num_paths; const char *gpc_name; }; #define DOMAIN_MAX_CLKS 2 +#define DOMAIN_MAX_PATHS 3 struct imx8mp_blk_ctrl_domain { struct generic_pm_domain genpd; const struct imx8mp_blk_ctrl_domain_data *data; struct clk_bulk_data clks[DOMAIN_MAX_CLKS]; + struct icc_bulk_data paths[DOMAIN_MAX_PATHS]; struct device *power_dev; struct imx8mp_blk_ctrl *bc; int id; @@ -144,6 +149,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hsio_domain_data[] = { .clk_names = (const char *[]){ "usb" }, .num_clks = 1, .gpc_name = "usb", + .path_names = (const char *[]){"usb1", "usb2"}, + .num_paths = 2, }, [IMX8MP_HSIOBLK_PD_USB_PHY1] = { .name = "hsioblk-usb-phy1", @@ -158,6 +165,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hsio_domain_data[] = { .clk_names = (const char *[]){ "pcie" }, .num_clks = 1, .gpc_name = "pcie", + .path_names = (const char *[]){"noc-pcie", "pcie"}, + .num_paths = 2, }, [IMX8MP_HSIOBLK_PD_PCIE_PHY] = { .name = "hsioblk-pcie-phy", @@ -336,6 +345,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hdmi_domain_data[] = { .clk_names = (const char *[]){ "axi", "apb" }, .num_clks = 2, .gpc_name = "lcdif", + .path_names = (const char *[]){"lcdif-hdmi"}, + .num_paths = 1, }, [IMX8MP_HDMIBLK_PD_PAI] = { .name = "hdmiblk-pai", @@ -372,12 +383,16 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hdmi_domain_data[] = { .clk_names = (const char *[]){ "axi", "apb" }, .num_clks = 2, .gpc_name = "hrv", + .path_names = (const char *[]){"hrv"}, + .num_paths = 1, }, [IMX8MP_HDMIBLK_PD_HDCP] = { .name = "hdmiblk-hdcp", .clk_names = (const char *[]){ "axi", "apb" }, .num_clks = 2, .gpc_name = "hdcp", + .path_names = (const char *[]){"hdcp"}, + .num_paths = 1, }, }; @@ -421,6 +436,10 @@ static int imx8mp_blk_ctrl_power_on(struct generic_pm_domain *genpd) goto clk_disable; } + ret = icc_bulk_set_bw(data->num_paths, domain->paths); + if (ret) + dev_err(bc->dev, "failed to set icc bw\n"); + clk_bulk_disable_unprepare(data->num_clks, domain->clks); return 0; @@ -540,6 +559,19 @@ static int imx8mp_blk_ctrl_probe(struct platform_device *pdev) for (j = 0; j < data->num_clks; j++) domain->clks[j].id = data->clk_names[j]; + for (j = 0; j < data->num_paths; j++) { + domain->paths[j].name = data->path_names[j]; + domain->paths[j].avg_bw = INT_MAX; + domain->paths[j].peak_bw = INT_MAX; + } + + ret = devm_of_icc_bulk_get(dev, data->num_paths, domain->paths); + if (ret) { + dev_err_probe(dev, ret, "failed to get noc entries\n"); + goto cleanup_pds; + } + + ret = devm_clk_bulk_get(dev, data->num_clks, domain->clks); if (ret) { dev_err_probe(dev, ret, "failed to get clock\n"); From patchwork Wed Jun 1 09:41:54 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: 578027 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 C6C9DC433FE for ; Wed, 1 Jun 2022 09:41:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351171AbiFAJlL (ORCPT ); Wed, 1 Jun 2022 05:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351161AbiFAJk4 (ORCPT ); Wed, 1 Jun 2022 05:40:56 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2042.outbound.protection.outlook.com [40.107.22.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A5CA4AE13; Wed, 1 Jun 2022 02:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fTxg1N3dDghIlt2UGUnligrlR8zKGWzHkiUs4m5kVLrzSpuz1JKDmEcY/+1WJXbEHnfstWCj1wPPV+3hkClEtP6p6IL1kGKV5DFaXAIaa2yQ6QOmBkroHxj6X+7nHPXaP6XL2N2T8lCrTr51vsWuaBPVBgEaUg6q9ObLiz+UOGRQPLtKKZXCfYbvujDB6mYWCnRR8AG+MsR1Ov/S/gkn0KiTH1N5q3d+dOBBaEMr9hCljmzy7CiqI6ChgCpHyi9FEwFSBjhnv8nX3qHc7pyOV39v2L12KVG2zU6y9Uo4eyqK9Yo6YDJrTTlv3cLcZzdZOtRjE3mTZ7j5fxH5mdTHQQ== 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=X0nkxz2CoIU0OTHUHDJW3il/+0WVfwEEaFX89A85eEI=; b=Z86uE9tdKEA6mOKfMncSO9KzezO0rMQqraU+SB8BEy0Bhh46pDbFLw+RF74jwE65dDDXUe3mnZz8efosJmeRtTodXNE3g7NA4RevvpeT1mxHK/rmZe9fhLiP/0EE5fuaNalXFwz6PgGgCmcI1m3bRJeZ5YT5XL09Its9SvdOculM5Pwp4/d0u2PPDfNL2sst7hjk/qV1g0zoMAnrNmx4upuyHfA2o1C//6sMYnc+MmyFFvppSburSOwX2dIGH7frFBuLz/qMZvXMqnWUHj0SIJHqbQzf0jGzdkqTBRM7bUSnxxwpjt5f9z79ksQ2EL+cIb1HGvQrSmHclUkZeUz1RQ== 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=X0nkxz2CoIU0OTHUHDJW3il/+0WVfwEEaFX89A85eEI=; b=Z6wD9v1l6vJlck82/RDT9eUlSX/gHuJ+zhZVX1v3pQtJZ66DH1esrdvT78FBC28V69uQ/xB+z4wtu9TLAllPbkiHgvIGFXtqUgkm6C5ePjPSp+QogXxSSLb55/90yojDjy0kIcIkrtfZtFPHHl3f+qWpGokYQzSbcxGwVNS3qR0= 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 HE1PR0401MB2441.eurprd04.prod.outlook.com (2603:10a6:3:7e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Wed, 1 Jun 2022 09:40:50 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:40:50 +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 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, Peng Fan Subject: [PATCH 6/8] interconnect: imx: set of_node for interconnect provider Date: Wed, 1 Jun 2022 17:41:54 +0800 Message-Id: <20220601094156.3388454-7-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094156.3388454-1-peng.fan@oss.nxp.com> References: <20220601094156.3388454-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR02CA0078.apcprd02.prod.outlook.com (2603:1096:4:90::18) 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: 4ec427c9-1fb5-4d06-260d-08da43b2d037 X-MS-TrafficTypeDiagnostic: HE1PR0401MB2441:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ro93N1e9lO883rTMWKQD+7/o6bq6XpFgEyKxO31vxIUdTgh76zJEtPy3tykhp690/+1LULgJBDajMvz6e0wZfR/JoiNUwOPRzl3rSIQv8uKAySWxl5ldcpS17exZPazP9E79bSk29rYA+Q46JgOsSFkaKsB0bHRQ5zCNB7KbINMr76RL28bhZQ+FpPKEBCxAwclAAG94QzNJe1eLU0mpvRtwbJTKmKsfg39kBxxa38nsB+D7vfbNP7/YWmwGuEbhPaqmkfmE+fVpaBrgg02Q/sxBvVAQVC+1PJm4LVKnJulsVLwn29A02X68xNhrSDy6dNv9lwzjjucmcT8urowPlmJs2vkwm5KD4vIvx0DOMZ3ghA0sVF5OYd/DDIoMwKyORk8PcT0M7k/RDDYkhfQflAii7pLF8kUmG44eBOvBiTQrp2wZ+wbiWZ7quZkjyWmdJiZE7c5wya0Nnogvy4f1a9/l01PMtwvvYBMgb8v5lusLjVb96KRN8+1fDKubM4aI2u+PA+JdU/sAbXOVQ42VBNAGz1Vve7IIkOT9ZWuxJFSYqhcv+pl56BG6xVRceq6aWi/dgG42F+eOn+8oy20pd5IszHdcBapNzr596AJXV/IHY8RmSmnCs9nPqGtFGKJ487n48oSLHMuYn6tAaFf1yjkTvF9+gGG+Ear1bjptcG9S+AceQFK59dqchhxdfZABI4ChlYjJodUbaEhgZe+Wrmttq+pLjdQa6sBvcLlmdWI= 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:(13230001)(4636009)(366004)(66946007)(66476007)(66556008)(86362001)(38100700002)(7416002)(4744005)(38350700002)(316002)(52116002)(1076003)(8936002)(186003)(5660300002)(2616005)(4326008)(8676002)(508600001)(6506007)(6512007)(26005)(921005)(6486002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6fExSFg2ClEwJQKcpEup9Ks5mJasc5uhZJJA3yQzZSopSdvPy6ayZL4kZS7sla502YeTUgenKlTV8A4mPJSYlH0OkxrKg3rGD9S9T1UMwu5SXNI0bBcljUDmanJq85SBSHQrV/NvYrOlIecUPQsNt9GcE1nuhWs8T6MCulhXcKTZUg01CQvIU0629qEjfhXDVWUy/b5ayX89LldomqTCyRY7khKcwXPLfZO0/CD9ld64UwmYF07j+lPwxfdvgu4mlMt92Vdbap7eJ3F1rxJcvJLBvg6H/GwirxHiaUdzutRQ7IZLqiwsVfY/nrcwQZxR95ItM9pYr7CJ7nD0FJ4g7ZGOcFqKZLDqCLx6BJhAiqPl0JST/Q4j+YwSsZtlM9hlvXmDj2T1iePp5bNKVMhec+UMc6I0dwn4PFzAeeqL0Al/6/wwLKEqs4METHlwhdVkg1CzSJfAnQTNNipL9aJdiBZAJTcR9kBceox+2b9QrOSTd2LTwdxFTDGmKeVQCAST8llBEHguJkwoQTkRRSAgQd/gpMUTfWpl3t6vDprcFE63ThQ9/sUDCedRxHRPZcfeanJVYirSVDhc1KwlQoz9CRSWMkpjyTHISPp3milxxM/3pI6wETdxPbS63c1kq2K+Wmnb9I8c3I60djVc57Bs/No8rMQ1fNRk7lslTgOSlketTKa6P2Pnr9KeS5RBGzeXjjyWCrOtgioDc2KZipEwj/lp2kGw/prU95FVW7R7BCNGgNZmRim0BiJq/m/iygw2kJbBloY+YVT7X6GTw+jHk9vKsKFS8pZAkkKz0keb3STG+vebAYrCIFB4ENMZZ5vTVMV4mRhL9cWtPWOQeGKLqMOYzq39FAFFfE5CUP3eWT4pcx6RW7zmzgPY4LfRwpdaW040gNsbqtq/A8me7QGeOeWsZglL/xOwEqg/1NDBw83HIjS/DCyGdG94N1L1/JZjIaWD6CO6QuRUpiDwRNsOidncEqil4Mx5uK7pehDKIDvfCUI+qCwcj7dbk5AlAnj1Vuk42HzRD+W8Rqy6ujVm8mH8dT2lnfTUQDzGxc3AEr51/qwgWjq+DsFOQ966qCM91MpburCuS/Mrb9fZIj2cWfKdfUi5iQrOA2bK7TqTiL5azljfDj4AsGFn+9XEaI28+CIEnzHHmXFZcivrT/thd6jLir8bPA2GvlMc3Z1AI03SQdGV6rIORVT4m+n/Honh/GdMxjMAjS9MrVV7C/RZVNaCNWdrXV7augByQOKWwUwWxcu4MvatZn1sX0RA2/OAPV3251j5N2DcOxCEf/f6OPracehnxk1OD4lSRIHu6ww4oX293/syclwoK8XfXjNw6N2fgwZEgtFBIynDGypz653I3kgNSDLjEVy2K5xf/tRtfXFjLooytI7j9QmW7dnvVzALEgxVaCRZ+g5eJ+E0iROS/1pDQcT2i/Tb6opFcPZ6hpig+VzEbN11OPMLXi0B6mRuWSV8zY29mdRs0ifYUEaqLrHHyMUmGIwyInc/5qu00qqa5MOup7eeSZwqcgQl3vc9Ka97TGRKTUx42wtuV9yYwoIaP/KUXfnbIGBpoMQWHl4TWVHDbEGPEF/YqHfANlUzxK4rkxV+xBGQ1phqQR7O3TbYHr/sYv+az7h3gcAhDjM4wF3fSHeiX7NolIE2cpAKzjrYnEnxaRlD9FwpauB/BbuZWdky+8LfBoM/oBo5GfNCo3D9hFIbwCwUYCjCh2rBMAFfgu+BKH0dgpBlNg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ec427c9-1fb5-4d06-260d-08da43b2d037 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:40:50.6141 (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: BgpnYc4VZmvZ6UsnDJuevC7+Srv6N23hsPV9qcUavHjgHmiYgpRc35uBooDIgB/JaM7C62wzg4a48DXZw4fpjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2441 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan The provider device is created using platform_device_register_data in imx-bus driver, which not has of_node. With of_node set, it will be easy to support QoS settings. Signed-off-by: Peng Fan --- drivers/interconnect/imx/imx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index f381697fb23e..08e3a91d2543 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -264,6 +264,7 @@ int imx_icc_register(struct platform_device *pdev, provider->xlate = of_icc_xlate_onecell; provider->data = data; provider->dev = dev->parent; + provider->dev->of_node = dev->parent->of_node; platform_set_drvdata(pdev, imx_provider); ret = icc_provider_add(provider); From patchwork Wed Jun 1 09:45:36 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: 578022 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 3DBD7C433EF for ; Wed, 1 Jun 2022 09:44:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351383AbiFAJou (ORCPT ); Wed, 1 Jun 2022 05:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351416AbiFAJor (ORCPT ); Wed, 1 Jun 2022 05:44:47 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2065.outbound.protection.outlook.com [40.107.22.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 720B887A33; Wed, 1 Jun 2022 02:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SKGbg2NEiEGRWfi6hNBHGCWcwz33JmN8zR186+I2+o6Qu7MQmAkgU8K2jEVAAXg3jf7Xu74YavGmyRld5i1+arhcdcn9b65aTBjFvbLuiekbujGbk2KiByTh353sAztE+MmIZTzqP/A1a5hIsASQaWae1IoA17qDYr1Fba2IOo368TGLWZz3dlb8J5qD+gvKVuWT5l0rVuW5e1QLBLrfDA21klNQkPUmRtQzGXj5y/eUtweB4zlj8FMCnAaRd/bcxS8l0+o6cDrxj0WaxKL9FLpmJIA78ZbZo9ptcBck6oNhi95BG3i9jkzvqNZwKSuxhBcpcAgH9XkTvw6PSlRVXA== 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=59ZUhN2rWiP/5wuzIu1aesEX85+A7ZwJC1kogspT7fo=; b=Fnr3g6Wu33VldopOewbNTmCUWp1LBYGoK6go0DCMmCvOJbD8WAp7BIb7TxFYXN951Z/bh+qACOInjfJh1KHWgRgIdYBj9CwzkddyH2aH6O4CiQ1GeC5Yda4ouZKjHOE9Is1xYchqSAPyaqPSPTzHtXjnpK9fA6XRomKt9D+tV+nB68zmgoI464DH7Y9Sv6oypob05O/ylOSwtIsvkNU003tzBdRSqdeeOiJaMIrQuA35lqZJE5JCmu5bY2aL6/QlC2zmBGnIZzjK1jA2hcMeu2tr7wz49TBmzu2UwzL/d21CplOozj2aeKAmYFu7gkXUBCVkhF7kG2Ctpn7n+E4TkA== 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=59ZUhN2rWiP/5wuzIu1aesEX85+A7ZwJC1kogspT7fo=; b=XMtvUQFVWeXtIcg3G1rkBIrTZhqnxQ/oc3FL6owGSgqsu3rRo69cD420+hWk2c7e999L66XpwQcUGwJAYkl5gGMGvHr1wqrx5XqEaT0pB03vdpxq8tEW4ZKzcQftNyi89k5R8RZYqNUuqvgAbLnOOqkkwNsrkcSb00iWvhQVx3k= 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 DB3PR0402MB3897.eurprd04.prod.outlook.com (2603:10a6:8:12::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Wed, 1 Jun 2022 09:44:37 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:44:37 +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 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, Peng Fan Subject: [PATCH 7/8] arm64: dts: imx8mp: add interconnects for media blk ctrl Date: Wed, 1 Jun 2022 17:45:36 +0800 Message-Id: <20220601094537.3390127-8-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094537.3390127-1-peng.fan@oss.nxp.com> References: <20220601094537.3390127-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) 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: 1f91dd38-ca90-43c8-fdf8-08da43b35786 X-MS-TrafficTypeDiagnostic: DB3PR0402MB3897:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: du0T2N2tz3xxTlN5vM+e5yZWccw0pXAIq5dP4nzgs1BV6bGCPQzQXIOAt6s4AjgVNiEcZekoMON12rFuDcofmyK1N/fiIpSK5IJvpn2Nz4gdBhm3Lb3owm2w63yVWGdfz5L0K3VlWjBKJl0RvLcerKXBSgxWY2hXzYVXwKHX/Uet6D9K0bdiLft11eoIAWhYHYalSkY9caSnNlbP2L/tzT6YP9LoNGm+cWutbyYiCBAEGyvwx6kb8EwYbymDgqnjgGdEGNZqgqpPUjQ5kfOzDr3fB3ixXt6A/Mc3/P2qI1r3pZlw2Xi+1NsB8/SIow9S2ODuYLGBLT2kBJhS0T3LSC7qoAYSZMQB4dsT1N4GobjGej3gRhvzwSYvjTR4PlYmlGKNrudKgKxT84wiNiJaXdjRGS6Xtpk05ddeuL6I+aQt+Eyr6fq97VGT4JoG10UomJ2W+/RYDnALduJTTBlYFg4GDIZdIx6aJZGponwAHnkdYpKhwupb6KK7XgWi/k8XAYy93NKMTtoqaUTKPCuSZLM540ZsQbsmhI0Ty9Juyk4dgZmIiWxXzMw2rE7LwIQvX1xeO3hVgBp7Rq26lBinpCdO3lCAOcXr9CcUZC1TUH9z4xRsPj5WvyeGw2B5Rm68aIdUE595Bszt8kaKPjLiPxfkh54JMu3/fuS3yNrdEDzT2el9IuQySjlgqasJ6BR1NfhUblUPX0MmYZzI+n9vYY4xx/Sc0Mfy0NU0tBOUqQQP8xp8fL6pI3MRyFadZFPy 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:(13230001)(4636009)(366004)(1076003)(66946007)(2616005)(86362001)(52116002)(2906002)(508600001)(38100700002)(7416002)(8936002)(316002)(8676002)(6512007)(186003)(66476007)(66556008)(26005)(4326008)(6506007)(921005)(6486002)(5660300002)(83380400001)(38350700002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PH+TPx+nxdhYW/tfOylLi0//wILf4ykeuApeK/guLUoZmZSIWE5jh7EFQ32ICSs/6UYjRKWKM2mmE1nV0hpApYgUta+8g/L2Rm5kpT6vZX11j9JmrnBG5Z1f77BmdhnklAZtKIIVX8Y9vVeVnzoXXLY/WTAEtQOSnau+J4GlTuuIAFTNSFP+nSJOfPZyKro7SOAY0mUt16LRnQbORwQ7Kr0IhDNU+X6zsTdSlMnr5hNa70dpkzwMtspfER2c9rObmDcXJrVtGT42Nj7EtDNAuEoFe6OJNxy5JEJnAJJr5/fXWDB6hcny38uAz4eJviKvdnmKF8Q+AMBW+flnPVGGRWGE+Rl8E7/D4tF+wfmRCGkJEcJdZBhVWEsPrkuZozCPNzGx8MnU1UUwLD33zNTvLhDdGn1mt0ZWNMuO0rNRGUI1LCpVqVxntP8SQe5hnKRLeA2/1zjLKcYCafalw47RwVw7nH9e4nvTnH9MsYLTXA82X5XzswdpWd/3dnR5R87ZY2Lz+eTlhbKYDLWxlgM24FJnUN23jlBq3FvJdi7wMwd644uo+wU0tB+xqGomPZURq3mi+tErtahckuuTSOi69O8gheH3ui3rV1W0gRVJppYT5jKs1KFXvsF0M/PEUMv7q0NNyyGgwTVUyg/V1PhAnwoQLQy7ijUkGnO83U7a/jxmoMRjbBuKjk+oZpZnX1DSknnkU3pA1+kKszlApZKw0IWYeLH9S/dVyKN5vOiOvpoefA18wnsuVCv5kGfU9vAuDU7ns84Gkrz9oqhnOMmqRU1elF3u2wnhjpsZbEoyHDEXbSodyyIqp26P3U7R854c5e95jI8zOVVAXCUvLzBscd2Evq9wwRRrIUHKfI23of0UMBQdemKNVw5aTFNCD22KSvd3KaG6l0o7EG8hxSn8ivuKGDeA0wveJnx/O9HpJptfuf5iwZ68cTBjGzcQZV8e+3GUxJaZISN3oGmdJPtanHmTjuT4qQx8shBGLwDBsVyOH+AjPPFN7WWS9ZBVhDimMKT1fDJmJzFTIqK489WB79ziDOpIUerIdNPCrRISNQ9LbEMHiP1+ye8sU7ZB/rBu/oh0BPYyldTeWaWun91YPkBsm7v9k6/rOp1HgOgLnRAjXQ+TfeM7MVJg9+9uM1KB4NR93vOahlNS657QlNq8e7cM3MEmQrO0sUTgLVuS1Ay5ttkNH7NqS6I90Fn9nL9NO5HGrPpuO/oIkmCLxLc2uCIZdkgUqbtXYZI02pgLt+eyda+wXaVLlYNraWlSErroiL3JiSIw537vcrwa7huY2flO05wKdeIEOgaca/pkRJXSu3Oolb8rTqwm99nwz1iEts9CiWqjNDTMUJ7cHTRrUl16Uu9+h2evzytq4FwhlP5o5kxVS2csdxF+LUKMGlLTOiuHv66eMNNl2j+eBaC+c9TU1G+0mbAIR6xdenWLhoaIzWFlSqJF3vYDsI2Iid1cfYP/mbXitAAXFmmje2q4Ya8F4zO3JRgDbLXCkFAla4fBqRlIgB2xVeNTD3a5I2VYU/m7Xmt9RZtavI4FrrL+Z3Lfg7RCaa2vthTR8QM/oLJIOZi6Pjdb8yE1yKwNiNZ5JI33H7jATxW2wRAhczx/xRondfoBO3bqfKLlFWCR9CrqF50RBmCaFwdZg2PqibfUd9ipGslNZWLNHwIi88PkYeEhNZbuGPOH0ZRsYFwKx/xTyqyZKaU1yXoAQwEiAD1UDTYhvb37jUkSuYgMaUkVZg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f91dd38-ca90-43c8-fdf8-08da43b35786 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:44:37.6454 (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: r2KwYOvurMcnWGxVMxt0xcjvTf6tTM23jqmvesCBxM3fd0eNaQdrBjYxI/Mu0OgMXQHNnUU8CoDZyFqM3hCLaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3897 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add interconnect property for media blk ctrl Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 9e9e941a8906..53813f6766f6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1065,6 +1065,18 @@ media_blk_ctrl: blk-ctrl@32ec0000 { "lcdif1", "isi", "mipi-csi2", "lcdif2", "isp", "dwe", "mipi-dsi2"; + interconnects = + <&noc IMX8MP_ICM_LCDIF_RD &noc IMX8MP_ICN_MEDIA>, + <&noc IMX8MP_ICM_LCDIF_WR &noc IMX8MP_ICN_MEDIA>, + <&noc IMX8MP_ICM_ISI0 &noc IMX8MP_ICN_MEDIA>, + <&noc IMX8MP_ICM_ISI1 &noc IMX8MP_ICN_MEDIA>, + <&noc IMX8MP_ICM_ISI2 &noc IMX8MP_ICN_MEDIA>, + <&noc IMX8MP_ICM_ISP0 &noc IMX8MP_ICN_MEDIA>, + <&noc IMX8MP_ICM_ISP1 &noc IMX8MP_ICN_MEDIA>, + <&noc IMX8MP_ICM_DWE &noc IMX8MP_ICN_MEDIA>; + interconnect-names = "lcdif-rd", "lcdif-wr", "isi0", + "isi1", "isi2", "isp0", "isp1", + "dwe"; clocks = <&clk IMX8MP_CLK_MEDIA_APB_ROOT>, <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>, <&clk IMX8MP_CLK_MEDIA_CAM1_PIX_ROOT>, From patchwork Wed Jun 1 09:41:56 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: 578026 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 55573C433EF for ; Wed, 1 Jun 2022 09:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351386AbiFAJlk (ORCPT ); Wed, 1 Jun 2022 05:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351313AbiFAJlJ (ORCPT ); Wed, 1 Jun 2022 05:41:09 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2086.outbound.protection.outlook.com [40.107.22.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53CA79399; Wed, 1 Jun 2022 02:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SHbtYo39ui4QuheA3WrgR5tOUBnwjFwbwX7QnDF1zxLJbRCD68wH4S5k/gwJdrjz2fguJf5/S2W4eL8wQnbY1Y81D+krpJ2KACkWhh6WPEdWgRJ6w+cf1AwnBzVyp1AvbTXYY/l2fDnxIdYtI1QV0a+zuzlBmnsEH2nysTjx1beWynmLJzGSpU4wn7vRnQ3iBmJdRnrT+6yPuP1CpigCfyfEjEpRmUnhONAjWFk8JveaeRIa4BgJDPXlwoyAHg6LL3X/hejtJB1xMSEN30JvRSxJLv5dRAT4zmpVzYezsvECaieqmzNfmTCMtFWLS+yJboUmd1belbdknTH0dYn84g== 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=IXmHcJ3MLtbtxDCWLcOJx1jbJ+ahJkHD+wX6ZjFXmMU=; b=B2oqZv3E5nofYIUH7+W3Vsuzrn6P09zO90DcyTogsKjhNduele5nvRWFNeI4qbi61JJOGLfD3zPpJkS83Xpz/P0QY/zRmmO/Eg13N/juPeo0vcgPdoFl89xkkfZjTJeBcjE4JChhuh6fATc2o5ZFgHO8MLAx3fux76mmYVYfxTbvJ321DRM33kWJGxc3KEPdpTGmlgDFs/PszxkJw2fyefJ69IEXzO02zNoCdqzzdZGD5T+Xh16YQwjHjVeAzWkBac4FSjTYwIYewDDvShHcxD/PndYj7TeuOL+r9x0QvvYOXLcp3AV1s82/ShoLiUzHLW+C/w8trS0rpuPiww3UXg== 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=IXmHcJ3MLtbtxDCWLcOJx1jbJ+ahJkHD+wX6ZjFXmMU=; b=RLAtoGr2sObLnErvNQbDwHK8xJActyLLe+U8D9fJo4G8bfsla+8WVRJ8IO66kEdwAxdiUOAFSfFkcoiBa3rMVwxQwA6YqMvf5ngUKNtUqW0CfqdhnBlFt/Cus3mLeVMo6Rltghny4+O8kySffWa9AfxgaZ+dQYLh9MXnzzbMvXI= 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 HE1PR0401MB2441.eurprd04.prod.outlook.com (2603:10a6:3:7e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Wed, 1 Jun 2022 09:41:03 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%9]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:41:03 +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 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, Peng Fan Subject: [PATCH 8/8] interconnect: imx: Add platform driver for imx8mp Date: Wed, 1 Jun 2022 17:41:56 +0800 Message-Id: <20220601094156.3388454-9-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601094156.3388454-1-peng.fan@oss.nxp.com> References: <20220601094156.3388454-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR02CA0078.apcprd02.prod.outlook.com (2603:1096:4:90::18) 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: d6a0f9d3-c834-4187-7b27-08da43b2d774 X-MS-TrafficTypeDiagnostic: HE1PR0401MB2441:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D9Qd+ovyLFLq00PyQ8A793aMR5k6qnG3V+Q65NAZJT+LKya8dnlDIvvhtg1hotRJ4q5Iitmltw8kZvLYLHZlQ8EvMRwll3xeoYHgExYPaF5BFXman+aSTq7ZqeCsGroPvIYcZekc3hp9+tMz32eLileCgRFFKHH8a86WYOXKjAaj79zfP83oJaYqX4g8jz/j1TCsxr5tvRSPirQpeiL+rrBcsZv9jg70I5CzGNL5gntyPvNqYT2+JSTXp7KAAVw+nNlq6R+JVILWzow0iOguaYW6c7w5ts644rMJWvFlM2kwdctwPj5RrOfuaMTUD6VC2GOzZ5CfhWEZEBc/8VG22Au/AlOnaJtRcZX8RupRqlR+dAeF8+kSh9gnBFCIHmfgZTIpeXyz3OHPNGRcFD86l2+nh8vZPiJ66yBLkxBBlO86Sb++iZcQPZ23OpxjmsT9pbABpVuJqnVWS3nD/I8PrLr1LXzbrCxa3yV6jqwrrj4XfKH1gSqY2InBGaG9eKeKvIpkBFHLAtjjYzLQtEJwRXxiUor7wU+ftv2nYV2L3u7xhJKkgyxkOxLhbrzPvya/oWuvRkucBc8CAH2D+ZRSE0xbgifI8k71v2IYvts4Ci4DCOJkgZ6VrWcK0qyLXcdpqldZACou9RVdG7qwohIw7LpPHJwD+BZ38i3A07xxVT8udl03Zdbt8MF6un1sCe3Kb66ViAZvazAv7UOIvdIxibVEU75Ez5XfTo5XIHRXCGeUjwJS637o+Sb8YwyS3ym4 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:(13230001)(4636009)(366004)(66946007)(66476007)(66556008)(86362001)(38100700002)(7416002)(30864003)(38350700002)(316002)(52116002)(1076003)(8936002)(186003)(5660300002)(2616005)(4326008)(8676002)(508600001)(6666004)(6506007)(6512007)(26005)(921005)(6486002)(2906002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ACb0xy4GZKKsxUqC0MNdydZOT+hWewwAOmJOlrBDOhRYQraYh0SOtr0TDnGcE4CHYU0wAg7/pMPFTe8nHRqA/zlieO3yne/YUyPEVXAztC6Hx3TC9kvyI2mvzA98y9pZeoKXvdVQurJB4rYXXG6Vgt36/+6N2kLfocHjFgeNxLOP30Yz1cUgGokqiuYii7RJT0tgIELEUCcPkd40pR5tUGB6R2/7OybkTNSWBG17cZKk8sOPVZQgqEUdtFU7CULYVGIUgHK5Qo6WWiOCwPfwZzigtV909WihOR+MD6EQnM9LzeI3jSp9nJbXby0PvMXXNUp9TnxrykZGzs0Yw4BzDOLp4rZjNTE1eYtvqkZRf50hkxcLXGkRZia3Bv0HfnU7Do/bpuokX/ZL1/ck5S7wT3JGuK8Nsz1GUp1pwsCARbiBHIvX0mD4WGX+PagawgcmkVRkXl7G/saZGIoP4ELgRPWpDlFW0fUNJEAOzjlXO3hfq/jhL2HgoXGXWu83FEmczrZ3oby/NzVSJ9U+7V7Nf1Y3JIWGAke4Wdn3MHQ1ySJSFSli9nQ5AhG1L3jsmvNL9TY1yd9dRJXbTMEB+zePFm9+qYCG+m9jkSwOCK7uJdJdeltp/doOPLFG4vLgWBodl1fECkFnuoBKOUnVsmPpCrrnWiTHH+VI00YtK/g1T0B6VitkMte4fusGnZSRq/r89IDnyzKvlA79P3yPqcWW6KtyKQ8X8+LgQ07q26n0ymfp0HXCV8qle7gm4sPrxsBVf59VJictUKRBj4cU58ZetxW9PYC4EsKZ26cayt8FKvsH78TWaUfRLjSz0ry0EKwBT8T7XMUUjgzjFTjN1uthjUR0+3cVe901u2PoT5R5/fbSIQSTvGPziri7NGfJ3Ha434mGEu1Q/2zm5fsaI3Kr0pOZnMtX/fUqbMsi30EDQrBVDXotMZiLyE+4G2fjUkAK25ENz/D/M188WK7v6ojUq3SIErWFf2FJW6qadbZ6GT83Nm83eQftlMpmrHt6J14ahPdFmM3ceJwCS+DFRkuaxbCztDA7+9CRcZIzVYNDszR+9qe5Bq7dHuoNJD3aFywOwaSbTqpwwiPkze1LaC3WqxWR7qAiOPkDyf1NsTyzteI56cFkj1r3uVSH7LzVcX9r5O2W0qSOef1aWsRyjAKNpvso2c6R4ncPRNdePhrgp5eKhWUEEuLFeARB39RWonbhUJDWo6+hsHatCVwzB4GJcabHBzJdZJ7r85fbbt1QrSjXqZEOFbGTxTG/IvsHNS6BGrnLOL4YXtyQP11dHJ/OyHBRzDnI4sy7tXz07Ty6hC1FDY9CQ/xJqKlNTBxspdFvnsWcdps4MasPwVAGvvlFZ/zYVhtjuN4MTIalofmtC803Tgcour8OY50VXMOw33zY1GU5nWi1L1Zd+0Gtgs69YMryTrGGagWrk68AVXy/BZP/85tQ02PLuVM6pe7s26+/az/uSm1rMOWh4jb4G78Oq6EYFviGThmJ7MmfLG63OpTw9APYJ9UJ/nMasQ8ctu0La09ME0IfXAqPbuB6+fk8KZa3VYuWS5t43b2/y7mKhLK1cGyjgbZpWCVA7Lgq8sTJxCgGaoliRjzGN97oWy1VzT3DMW3Nm5Ug88lulVcjoLkP9hTvOidFct2bRURlk141coSXEpVoOgE/lJxiyZ1m5quKCjDe5GM/pi6tPuGVAqBv9Kidw4TD3sXPhR/YwgEmnvTuBY4rSH4ZiVKjXnSJMQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6a0f9d3-c834-4187-7b27-08da43b2d774 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 09:41:03.0271 (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: ZuDmMcJrPbIztjMst2bnuZiPS7+7ox73UpCzfc1y4DC8vAfwRaMDhTfC/PwBpPOOEQKNiWVfOg/0J8+zBnO54w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2441 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 | 232 ++++++++++++++++++ include/dt-bindings/interconnect/fsl,imx8mp.h | 59 +++++ 4 files changed, 297 insertions(+) create mode 100644 drivers/interconnect/imx/imx8mp.c create mode 100644 include/dt-bindings/interconnect/fsl,imx8mp.h 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..f13683ac941c --- /dev/null +++ b/drivers/interconnect/imx/imx8mp.c @@ -0,0 +1,232 @@ +// 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, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_DSP] = { + .reg = 0x200, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_SDMA2PER] = { + .reg = 0x280, + .prio_level = 0x80000404, + }, + [IMX8MP_ICM_SDMA2BURST] = { + .reg = 0x300, + .prio_level = 0x80000404, + }, + [IMX8MP_ICM_SDMA3PER] = { + .reg = 0x380, + .prio_level = 0x80000404, + }, + [IMX8MP_ICM_SDMA3BURST] = { + .reg = 0x400, + .prio_level = 0x80000404, + }, + [IMX8MP_ICM_EDMA] = { + .reg = 0x480, + .prio_level = 0x80000404, + }, + [IMX8MP_ICM_GPU3D] = { + .reg = 0x500, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_GPU2D] = { + .reg = 0x580, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_HRV] = { + .reg = 0x600, + .prio_level = 0x80000202, + .ext_control = 1, + }, + [IMX8MP_ICM_LCDIF_HDMI] = { + .reg = 0x680, + .prio_level = 0x80000202, + .ext_control = 1, + }, + [IMX8MP_ICM_HDCP] = { + .reg = 0x700, + .prio_level = 0x80000505, + }, + [IMX8MP_ICM_NOC_PCIE] = { + .reg = 0x780, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_USB1] = { + .reg = 0x800, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_USB2] = { + .reg = 0x880, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_PCIE] = { + .reg = 0x900, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_LCDIF_RD] = { + .reg = 0x980, + .prio_level = 0x80000202, + .ext_control = 1, + }, + [IMX8MP_ICM_LCDIF_WR] = { + .reg = 0xa00, + .prio_level = 0x80000202, + .ext_control = 1, + }, + [IMX8MP_ICM_ISI0] = { + .reg = 0xa80, + .prio_level = 0x80000202, + .ext_control = 1, + }, + [IMX8MP_ICM_ISI1] = { + .reg = 0xb00, + .prio_level = 0x80000202, + .ext_control = 1, + }, + [IMX8MP_ICM_ISI2] = { + .reg = 0xb80, + .prio_level = 0x80000202, + .ext_control = 1, + }, + [IMX8MP_ICM_ISP0] = { + .reg = 0xc00, + .prio_level = 0x80000707, + }, + [IMX8MP_ICM_ISP1] = { + .reg = 0xc80, + .prio_level = 0x80000707, + }, + [IMX8MP_ICM_DWE] = { + .reg = 0xd00, + .prio_level = 0x80000707, + }, + [IMX8MP_ICM_VPU_G1] = { + .reg = 0xd80, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_VPU_G2] = { + .reg = 0xe00, + .prio_level = 0x80000303, + }, + [IMX8MP_ICM_VPU_H1] = { + .reg = 0xe80, + .prio_level = 0x80000303, + }, + [IMX8MP_ICN_MEDIA] = { + .ignore = true, + }, + [IMX8MP_ICN_VIDEO] = { + .ignore = true, + }, + [IMX8MP_ICN_AUDIO] = { + .ignore = true, + }, + [IMX8MP_ICN_HDMI] = { + .ignore = true, + }, + [IMX8MP_ICN_GPU] = { + .ignore = true, + }, + [IMX8MP_ICN_HSIO] = { + .ignore = true, + }, +}; + +/* 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 v2"); +MODULE_ALIAS("platform:imx8mp-interconnect"); diff --git a/include/dt-bindings/interconnect/fsl,imx8mp.h b/include/dt-bindings/interconnect/fsl,imx8mp.h new file mode 100644 index 000000000000..732547577c76 --- /dev/null +++ b/include/dt-bindings/interconnect/fsl,imx8mp.h @@ -0,0 +1,59 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * 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 */