From patchwork Wed Apr 6 08:23: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: 558682 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 D2166C433EF for ; Wed, 6 Apr 2022 11:31:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235384AbiDFLdV (ORCPT ); Wed, 6 Apr 2022 07:33:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236690AbiDFLcu (ORCPT ); Wed, 6 Apr 2022 07:32:50 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140080.outbound.protection.outlook.com [40.107.14.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77B61454048; Wed, 6 Apr 2022 01:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hC/P8+mPjAO1/5GFHEtQ5X0inQL87tcGqQ9qI+/Fvs/TGpptf36hrRh6Smi2ohr4xVq50KtJItgKkBrw7xHnfQYAoZwhvY9EMpsIQdkNEpXnZVsyNPnXEnAN0AKGgcqx7m7rECLfUJLvVKxMjnsO06kY1XVsWVTYtU5Tu9BHsdt5sdBssvltZ32jOqOxcf76fb2s1WBPR/j7QcM4AGP8YcXimlCi6otImF49Q4XWIouPVzUrttXmzipi6/BRWggxCrn7/WWngIoP56rwKrublyGPnLJsdkgWLTJeOsOPoAK8CH7pqJ8qMcjUCpFjn+2Ba72oKz6I6PDMlz53jQUbEQ== 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=RAiHltzt9iPXWs7va5jg1kDM5JO/U1I2D5o0n0klu5k=; b=VOYDW84wZMZ35kiNZBbxyAbRF67rwXn5UyHYRhqkAYzk27XWqxUus4tUm0TXub3xjDNghdOOGkgBLHT8InT7vv8Z4NBvducbQrmMunQh9jc+zUrqd5ESasK+ttstlh92fR1dwA+nMLImVHjeaG7VqV9xUU82Q2PaWc5JExQpoam82rdlE3KI7caFdnRzyhsIBqxCR4H1Otqd4L020Mh+2xoZgnOa/x2c5v1EaYi2XxkqiPvUWp17EMEPmoZX8YjcRprEV0163tGregxFHlkPORDQUBZemuyi0BKFcpNoQIewjbF1U4SvEfyXCSkvdw1dNH9sdGPTLDZ86LQFBMnqBA== 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=RAiHltzt9iPXWs7va5jg1kDM5JO/U1I2D5o0n0klu5k=; b=CpOz7Itsduqbg3SF9FqpHf9RavPrBzuov8av3fnNcQE64XsnoxmCLXfo7FPaEHmdgjOimp0zLQMNyMVEFkHmPNE296o1pZrzMjKeGIqUT5JBPK9UbJRVx9JlXEHoGZ1NA2IqafclYvwnBcroizXxDIcewDo2f49ubXkInCwV10Q= 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 DB7PR04MB4988.eurprd04.prod.outlook.com (2603:10a6:10:1a::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Wed, 6 Apr 2022 08:21:45 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%7]) with mapi id 15.20.5123.031; Wed, 6 Apr 2022 08:21:45 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: festevam@gmail.com, linux-imx@nxp.com, laurent.pinchart@ideasonboard.com, l.stach@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 1/5] dt-bindings: interconnect: imx8m: Add bindings for imx8mp noc Date: Wed, 6 Apr 2022 16:23:26 +0800 Message-Id: <20220406082330.2681591-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406082330.2681591-1-peng.fan@oss.nxp.com> References: <20220406082330.2681591-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG3P274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::34) 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: 310d2d00-5f44-4e2d-a585-08da17a67ca6 X-MS-TrafficTypeDiagnostic: DB7PR04MB4988: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: CyYJsXmBT/a0o8Sp01HOHHVUNTiVIG+CoG5duD9mm4hKYDXnCz7ukbDRjs3H9PIvaDqrVkn69ypL0RNUmDlk57qkLGlRyMOiOTDOFML+gmIScvwflvna44ciYPjwmaUZcwFokIvpzX1bHm7DY+LR0PFg+GeNCRsmJZ8A+Pmr3q2/TLZwvw6IEDcFFR4XOjxj97NrZCj/pcw8F8AwmtSvBTJH/zl2EGYPFR5+YITF719cB34VX46+L/qkCRdijtyBbuXGLv9Ea0yLGf3cO4Tt95wFXy6rWEKaYst2BJlDaEkzx1C0veEMfZvARhj/8UBNF83xJax9dSBXSTMbnse1GYX7JH/vfJpkAuBt85DaMW5nRJf69P222I6BgrkDw/pxs7EJgq7/iarRSeEEdDAw9qpiEyChIEABcXf2AGITv4aDrA3/6VQGvkJs3niSNZzQWTQ850TAOIiutPFNPJGQZECeqqWvXUL3mFr7gs1+RtlV2+vsleARmh2bLpI3Wwqp62HJtm/Ebm/UzmO77g4sy33tdx9xYh7F0kJQUpoZaQ5N13i5/Hc3W1HlGyRd1uHn/SkBOzjA5nQ3bwTsGNGJ/IN1ec92e1blcAbRSth7+rlEjy0gATNmu3taP0I0TL9PfKVlzpumY1usrxyzQdSgV9ET8qo95f2/flBqt1aA1IrR2J55dWQHAdrg8HN64zLd9Cqgn2pFE9OEpejKtGY1w/lTuNkZCPk0diUzjbqIFxs= 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)(5660300002)(7416002)(8936002)(4744005)(86362001)(2906002)(38350700002)(186003)(38100700002)(2616005)(1076003)(26005)(52116002)(6666004)(6512007)(6506007)(4326008)(66556008)(508600001)(66946007)(66476007)(8676002)(6486002)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1XK1hcD2OdwJ4GcmXP1qV7l+3voBLiOYVZsdSXzi+besQrH3IuW5ZnVkuhx42oDgBE6AowJutXUPO0A5yN4FfszDDhNjgxHOjmLIAlf5HYKdJtZYcTcKL2CDUW9jj0galc5u5JkFm28clhNRun/coO9o5LshvMA/XSofl6ggPy30huTYnyHSYbr9SNpWWYNuHaDdkw2EO8YWfmUfJwW+ijeNJQTKH6sxRVaYGDOoTHFGIF+zn5CoCVCnSzROwYFWQPebJCtLmN6JGkRonsLCu2SEFlijD0ecdLtgS+1JuVkHktUdD7IGTvSdwc/WBU04X57RwGEz64FdIRcPea8GdjKP/Tv+63slYt/2SAQElyezzHnlnT2zAGEPX1S3Qkk8wwhuwrV6/tGqOif9f7zINJvEF2+xtsXYRnCWQtNim+9aDhh9f+4GY3WTHxbFyMz6ZeHDjuaDgtvVEnOcE/LC24OwO7vVdOkZZBB+qPXY3DpmdGPdY5p1S9aOLa2lcOgSN/vKJyoaFcxWc3UY0JOOb7v5aHR1qGJ+TUaTohCaYUrUzDq4WnXb8+5GcFLsJ6diPesn+wcuCt1x9roWNCJbd/qbd/1zPrzSp3QnJvw1AzmIKWS1OCwSMU3j/B9VVK3Ldbv6jo+SdnJ6z8mBlQx3sdzce0UxGA+pvqknOTxCyJ650OT/DI9aoEqBJ1v8A3JdWur2+y2cg7juGzpMSHTZ6SWBugYR2n3tPkOpBBiSBqyIaPjr6dfAThOAP9FsC+oxmzjJqLCSr9puBEnB99VCM6q6THbdhNsHeelukp4Mt5zRCy0MqX5uOVogRorfQ1fzXXFs6feBMTUn3lLOjzSQXN6qlyfMtMjDKZFBG3a88SrDB+Oqo9fSrvAD9YIJYjTsN+7b1uUawD/v9NiUndGisrvIwIH3pfyf54tUqgZCOWvIyo/cW99+PKD7Sh2kmwPr1cEFrIVhHfzFZDDiPva015r55Ji0rOBFWO0x1PglKsj3B2E3cpz1d4DbhLESW6jESkmam/z36b6ystnR7S4JY4oAQAvTJsFkWDoHXzG4ip8QkaWABBUnN2oqdUJ9IWnJ8d+a65i27sExp7iCAunUGjw/ARzbYYq7YFGQ6sOs11HhFTmENBzLhv8FiBV2oPqiuJv05AMn3xFVZ6Q0YUQ6g34G+QAc2HEb7rQJjeHkSPfkFv4ptLm00KAyMtaE3O/9bjvnUPPVwcAk5Lox8WGiHce+yOP25oZPAg85bD2o4enKvlIxiUkWnOQNIU9tm+1f1bq8i9QdzIXA3clUeMAFgAYoxA7YYlSJTfelYNM+7mrj1727uzRlMIj3nf3bWnhJZnxkC2xLbTwGTop97rTeLde3SGRP6Yolok5n7UxgoqXbL9bYDMGbteOWKYZrK5aXRiXATVDcRiftS6bOVhrCdhRhOfvtWgd8e3QNXY9UPOYSmDpSiTztUxZ6bbx+5ogAJCnKNwShUZPbdT0TxhwiQRz26DNspLuKWp8JHnmJAcJzKP2S8+tTmZ55to9W0D+eJEIp5yjT1USsXFNfMovxnbUuCOJP0FZFGOFt1fCu1AHiWJwtHVwSiPZN/zJC9zcDVFYQo51Lrutbyooaalb5H/OCejcaKtJnHZ1E1sm98hpSsYa/WLTJtuyzg/n7EZbBZ3+R5VuJy9G+h8tbQdtcBLLJrMEElNEShfuR4qYfgECeOBXCWXcLopfuhqMrbSWgHnowDJ4jTp7GdqwbiIjujQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 310d2d00-5f44-4e2d-a585-08da17a67ca6 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2022 08:21:45.2933 (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: KNMbnuL6MpJilGOCDJiZgJOM4kL1g0duFtjzPicggQ4eMJQqZEVVzXBAyEVNqgBzP/iD05MsWrNv/laEEdYQEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4988 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan i.MX8MP features same NoC/NIC as i.MX8MM/N/Q, and use two compatible strings. Signed-off-by: Peng Fan --- .../devicetree/bindings/interconnect/fsl,imx8m-noc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml b/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml index b8204ed22dd5..0923cd28d6c6 100644 --- a/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml +++ b/Documentation/devicetree/bindings/interconnect/fsl,imx8m-noc.yaml @@ -26,16 +26,22 @@ properties: oneOf: - items: - enum: + - fsl,imx8mp-nic - fsl,imx8mn-nic - fsl,imx8mm-nic - fsl,imx8mq-nic - const: fsl,imx8m-nic - items: - enum: + - fsl,imx8mp-noc - fsl,imx8mn-noc - fsl,imx8mm-noc - fsl,imx8mq-noc - const: fsl,imx8m-noc + - items: + - const: fsl,imx8mp-noc + - const: fsl,imx8m-noc + - const: syscon - const: fsl,imx8m-nic reg: From patchwork Wed Apr 6 08:23:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 558475 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 A23D0C433F5 for ; Wed, 6 Apr 2022 11:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236434AbiDFLdW (ORCPT ); Wed, 6 Apr 2022 07:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236819AbiDFLcu (ORCPT ); Wed, 6 Apr 2022 07:32:50 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140053.outbound.protection.outlook.com [40.107.14.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82AB4588F3; Wed, 6 Apr 2022 01:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U6VNyUNNqgqhfgrnOktwXlDgZ+xRfZ0nUKnp6ICIoFwhoml/L2+QuGJLpe6T7+0+0ixVAHFFPlbi+IiBSJwV3tUKfHnwxc1S7iFijaHnaDJTXNxHPRVTJtvWgHO7WW9plmopltJCom/mltsCHr9czlu1kMqJAprA/Kj7tKloz2kyJOh+9FBgq5tdSpicR4UfrJoSLqfr8B1lM2QEXro9LrEINJ/xHYUM/qxQuKB8FmPrWAw93m1aBq0qFCjHQ4+GXaQYJ/WbhrOIkmkMw/k7P6Oe6hVUTlAIH3eqrB3x1Cox4JgY/q2+H3W63vLGyZBkunXvMc53+PGiCtaoweENCg== 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=8GjYzN53MT+gWG6urbFJ9U1jpgtS9/EOSZ8XZSanBVc=; b=VJfhUycaAOGAiJ4AKPu861lW/g/PAy411VbhtX7qTbFevXV8gi9QP6idHHHkHfvA931hSElbAex2WhuRTKFS3TlqHkvwXNvF7AHi6sE8nUK7xwEWn7e/emUejlk5tkjcDY38IdRNzC398hsvu7QcCcd1dkGzpa0/m0yLOcdMRGJrXaI4SIjDvHkYGHrjP7QtMvU8lZxIBKADIPMKDys+BhEsmzb5U/Abx9oP0vELLcurm1K2Ck4SWfjXKqHYbTzJg+MuutecIOT76JWWbqDr3EGuvZ+xsWDZAcVvVvGsDHzaOWXrRM2XQW3dPlju4w42vaS+jtjC+2MPtHSyOLT25Q== 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=8GjYzN53MT+gWG6urbFJ9U1jpgtS9/EOSZ8XZSanBVc=; b=CX12SfO9iXS/dme2VW62Z6KmuZeLPBzb+pZN5eCu2BxURXmPCFNR/98WhmVj4Sky0Q2X6Txym4XNmcRVNn81Ta3xKfnBOAOpK5x0unddX2803RwqqndlPV7U1HNwIvWRd87FMT7CDCBu6/0CcVe9YjlyigiGnyzgoWhejb+iC40= 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 DB7PR04MB4988.eurprd04.prod.outlook.com (2603:10a6:10:1a::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Wed, 6 Apr 2022 08:21:50 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%7]) with mapi id 15.20.5123.031; Wed, 6 Apr 2022 08:21:50 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: festevam@gmail.com, linux-imx@nxp.com, laurent.pinchart@ideasonboard.com, l.stach@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 2/5] arm64: dts: imx8mp: add noc node Date: Wed, 6 Apr 2022 16:23:27 +0800 Message-Id: <20220406082330.2681591-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406082330.2681591-1-peng.fan@oss.nxp.com> References: <20220406082330.2681591-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG3P274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::34) 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: cf1220a0-20ac-44dd-d0f8-08da17a67f8e X-MS-TrafficTypeDiagnostic: DB7PR04MB4988: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: MPc3DjqVZv7cFYyQGDXUuTlfttOUueCp4y3IcVqQqNLeyrc6dagzzzpbAaUiGdJP+TAV3t5sZOhCeTBSdDNv5cWkSX5Mn2fXOznUxoalkI/An663ldzph6Laqk88gPycyms6lQ4YYyGxpxzilCbZVcdFmITv0MnYZsYgJAHmIZlV9CDPfnU4hc7njm1KSkAb6b8nhkU13VLBD13wZhIkvthvS+MPOiTpDUWmuvl0K8h9Nky6VQICi68BEBpl+GT/kdj/tNU/2hV6kDlai87XEg/I4nOx1y4B998I28h3R6ToSiH0faXrbIqdbdZLk6fjHCuUD3bxUEcl667zS9sOv1sQh3DvpuijGjLKp9rCojD+7SaIAA4TQIsEeg7Qk6k6WfE7A8RceV0+h/fc7vs7aET53g6Fopqc078Z8etR6oaIXyUdYGWju1RemAlFnMeynweAEma/RdbF0X9yltbIEXrKVDuE3xRIuMuk1b+HkKUBzyT3BKTrfJgSj7LkxS5mLm3Ti3pSzayuiC78WiCsVU+aMLAIY9h9/Fw7UxIs+eSISjXTGgbMoY0cAYlpuFlzU12tQjPKieMA6AxlMxHVd58jJteGs6oINTU7iD7bP4XKHxYRNtY04h6/D+r7MtK9G/E54R7hndt83a1rbG+Fzo0H0g/ZFlBrmwRjk1N1WTt1464jJDVlG9nWAX6gqRKuhsU9w0KCgO2uzvgPxxLoNphsR8VQnegy01ntptmNNMo= 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)(5660300002)(7416002)(83380400001)(8936002)(4744005)(86362001)(2906002)(38350700002)(186003)(38100700002)(2616005)(1076003)(26005)(52116002)(6666004)(6512007)(6506007)(4326008)(66556008)(508600001)(66946007)(66476007)(8676002)(6486002)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OISjc/HX2GAuNc6YoFIJj7yxAJ7pPgzCtMqobI34GmXUw8ogrkK6kK3ioLZsqa5pa+/9O65ovuNdkaH79/f5EOB7gkSPUYT8TZP/3qCDrchf3SFbJdBxUaGWHMa3VIKWAnJatoee9mI9k1eAInltToTmabnweoPXbRN7r1DbYNVa1cbnXnRqFzWfQ9DMX9kg7GFIVu0mO3CaZpv/57Tv+9fDQgPQGzrr3tEkKQQNb2Lby3hsCMb30crsm2DWdFNZ7Uw7JvBFmmxbIfBKGwlGbSCSxrsYay8UPXoL6/UB3aTvugU0GaYxWVQWmAUHsNWK4GFTJFfnAJE6sr1fmEY2QVX6yT/Tj+zbFkXnCa3MOoCWAWPQMU44x2pWF61DZf6O/wlC0IpaYEGn/kyQ7r6lPX0CJVY7mraBZnNObzZAS3b/BaVQJRIOpuFTH8Ops6H1xaQs8qancgs8MJhCXUulYFSe/A94krmVWbWBsSebxNGXtM74fk3ztr/sqUhSMsIBXwbV9kkmB1r3hIbwipvTXxEl/+OZ+CzMvQ5AvYnPoUxkPxrR79MiirSIWxV6e+m3rYF2Dgg9hgDnW/LPhAtF6+bSUOtAcdjfSQQj921xK/0xySpk9Har/VneIno6vGw5qrCijXt2jbmxQgdAqZd+D7xWKSMnbup1iiCVPZmmDLvSj4alNpG2T/bZDHbeRG8Gs45CO5uD/0t4nYRLGSmilmHAqfgEKyyWSCAnTtvoIqctBzqN1e2G5HyZi57J6scp8cXfXwLkfNAVoNEE66SWL/ZrTNKNsrW/2qiaR4Z2iy/Kq8PPu4HWs5DbbnTvaQ3ANinDl5mTakTJ5d1tN25AZhXJ2xmtdP3vH8NaJ5vi5Vj/OXdZHA9/5MsStHMrxSCcmW8jiDk0k7Cg7d/wEDjlshrBQ1j356vBXdnaScOpgspjE21QtxVGPpUik52wK+cLgCT8FgHPrlyH/XQIQpritPHsrpppNi5TwL9k/f1d4VK4WSQmZiyzPvJKY74J3JH25D9GcAjF4M+on068GcwxT6JCGicOcMp2tgWZXD+wFi18EpxisuySeCy+iOdMdDM5B+5YLiV7x4whivMyUhca4pCU3nxTR0OCNf+TvtR/1LWRI4wcrp+pEy8kKLrVRTvCCmgxNUe6eietjQ19ediLKfqRPoQNPRGwxXdJdSEWTROqL9r9Y5k9LWZbTe2eMm4XBzRmaG/YgfwUEozVdLL2vqIX/FtWMt/0oUeAVIaO1bWoWzxYkh6G9z1+WP1vJ4IlxR6WpLmn7gBj53hKGoV/Mp2cXIdSaNA5v6IngbO5qMhGCn/gUnqK827RM+BFR46qQFHZUOd7NLVCaPSha9qRI6iCuqXY75yMEmNZYW1ZaAScZ8QKVyCAXAtv+J4Yf/5+oZ87zJIesemEPPO0uPGMIUO8vdShsKWPajdrsNI/jQ1qcaKb2lN+bbSx2IMupjPRr0j74xzXuMVH7Ktjfxur9s+9blZBGDorDvEp2bVqtJV7/LIttrZH1U+p/ehFvCOnjXvNJPOX9Y+8ydSG98glEVW2RIqSJ9jou/Pvc+RdNAGzxiU5NDkwFXl+I4vep7MlRibbENElDJL64Sl8RkHzqHPjGE3e9ZWoidKBXs6RsOeDZCcs4LM/9HOK4A7K57uEdKz7EH7PwRN3QSoQalO1HGT3fcnD7+pCvPsbYGcnzq7IleGMLSf1GPLbXGcpYvomabDfcT3uL1aUfvexJ+G02A== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf1220a0-20ac-44dd-d0f8-08da17a67f8e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2022 08:21:50.1247 (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: /DN3QnnfRoraT2rKOR+zszZVBKafkoqy27LP1ZVLZe3OaPXidx7AKKGKiXZY5igXV+Nw1UOVhc5qTCOOyjuXJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4988 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan Add i.MX8MP main noc node Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index e9e55fdd7652..be902f8155e8 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1015,6 +1015,13 @@ gpu2d: gpu@38008000 { power-domains = <&pgc_gpu2d>; }; + noc: interconnect@32700000 { + compatible = "fsl,imx8mp-noc", "fsl,imx8m-noc", "syscon"; + reg = <0x32700000 0x100000>; + clocks = <&clk IMX8MP_CLK_NOC>; + #interconnect-cells = <1>; + }; + aips4 { compatible = "fsl,aips-bus", "simple-bus"; reg = <0x32c00000 0x400000>; From patchwork Wed Apr 6 08:23: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: 558681 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 E2323C433F5 for ; Wed, 6 Apr 2022 11:32:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237566AbiDFLeO (ORCPT ); Wed, 6 Apr 2022 07:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237610AbiDFLdK (ORCPT ); Wed, 6 Apr 2022 07:33:10 -0400 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40081.outbound.protection.outlook.com [40.107.4.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39065211B37; Wed, 6 Apr 2022 01:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eQ0/hcoUWcrjN1uJDGvjhG/Zg9hOn4lECqyKKjTONcu7t7dvPKUA8KDrFM32ZWGVOuvIx1MgXU+xRg02UC75PVRTNuffo7YQaxDrND0ujxnRzw1G8nIGDzcku4x6G4nCeLMAnNpbGvXTMayhnLEIF1XlH1nuDZ1VIBqi8ftumJd1dIFYPKxA9P03H2AVSmsrV9ipM/3CELUA8/5lfh5KzYYCRyB4zbZLkVyDxyXqpzYr87J+brLw4gJcjrRJSdGKmE+Os4fByiy2ddrSJQRbpg89p5tNmhSJ4DpNdKT7M2gHah9vhEgoTQAIGAWVTBG9HbduDuEjsF2zXUuEPorMog== 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=is91ojJQW3Uh3nYnr3h3aZL7l/6jwu9tGtGWaPogUh4=; b=IsJ40wd73g1pNVdoJ/ss2iBs7cLGHdbn+In/lQ/p0klUc7D6Im+i0M0djMHI9WkbKo/g4ed4ImrVzZmE8Krgt7WqMPXHEkrJXeBIA2VXQjmlxdS7IZxaELfuMg/3df8RHO+3S0SdYAKw1C8k3vCM9IoBjz3c1mlZy4E3Yh/4CwUw4QoytMsASc+iJZto2gBTQ40AX9TKz3tkfAt+9wR+x0/i0hCtiz5TqzBUOSWcc0/g47njjrquFxXMUru9MqC41PFnMzcbWgYge7Sgq3UQyH/u4PiEeX5+kp1IcyXwzy8udWTvpoW5z+PS5WI9tMCiQ0xsUA0MttdYz3YnDU9V7Q== 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=is91ojJQW3Uh3nYnr3h3aZL7l/6jwu9tGtGWaPogUh4=; b=C7GUAZa4Js6yBBYhJzTd2uuhIVix8I5pcum7y+XCLdsPTYQaLn9TkWZ/Ll6raSA8eSLRzPkYZ6ybG11sFBzd+8WxD56ISZpPZ4CMlLYk82AJ8nMLgPqsLzthIlq5bwVrZhSmKEaVs0PeScyCGezH3Qdn7Q8f4FEsWXEiIGG/LYQ= 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 DB7PR04MB4988.eurprd04.prod.outlook.com (2603:10a6:10:1a::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Wed, 6 Apr 2022 08:21:54 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%7]) with mapi id 15.20.5123.031; Wed, 6 Apr 2022 08:21:54 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: festevam@gmail.com, linux-imx@nxp.com, laurent.pinchart@ideasonboard.com, l.stach@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 3/5] soc: imx: gpcv2: support i.MX8MP NoC settings Date: Wed, 6 Apr 2022 16:23:28 +0800 Message-Id: <20220406082330.2681591-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406082330.2681591-1-peng.fan@oss.nxp.com> References: <20220406082330.2681591-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG3P274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::34) 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: f9ac094c-927a-45af-5261-08da17a68247 X-MS-TrafficTypeDiagnostic: DB7PR04MB4988: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: zM4Z0lTooBDZlWqKvK6FkzkPNA+TB6lZZYr1lH47ftfW6E7O8h9iWINkIvhPhl5zw3MzEiUC/L1r2+0kuG5GKRJ42m0/utkjuhlhj4VmYjfamV8xoPR3Wh86rm98SQHoefl9aXAYX/297DZ9wH5V4NYeRzH8A99/tNibAaYIuzZ4WTZWFTUT5uTuaKYzbJrHf1JQzMcv65ZEJEDih4GvDLwzDU0f89WfyW65tY1c/3jRLFuW6BX5ly7DOcIQtUc6RLfLlcgk4tQ4XFOIjVJgu2aNZn3fANXh0SdYJCcWehK+uZVoZDg2NpnVvaod3oqHDKImvZD0NA0yIMgKTEuqwuyInMK+mMXAOXTvs7EOF6XPvXg9///xcqHI23jHFHj7jcNH7hme/3DG0FiJkAesjVvbY6RSmfSBYgeJ1wVOcqPvnkViFS3Yii5aRy48C/rf0b53/DptgYQehsGbMr7Q98JVcFQqykFf+/J4EZA5TULNqPKk3ukJdjoZIM6FLrLxEz1NvHuLNHr4H5wHbX8z0wWh2cUx21VtW/tmPOdALjQMRon/GYcr/Oe5uWeRzjowh9vnFw42IRHpw17NpFssihlfDitJofzMLTwJHHJTw0OmJtDpDJo7RNdtlqJbKNAKIliUOS4dBMEosIq+VvP5LWOYeNgrclu23oZW88hLeUB+qcRhW3NQJ1KGYNzgcOR8Gr+myD0fKtvS2+9hv5w0Kw== 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)(5660300002)(7416002)(83380400001)(8936002)(86362001)(2906002)(38350700002)(186003)(38100700002)(2616005)(1076003)(26005)(52116002)(6666004)(6512007)(6506007)(4326008)(66556008)(508600001)(66946007)(66476007)(8676002)(6486002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: n7gcQwDO3sJkxGOAiknKdQ+F+reSG3QbH3X3cChnQtX2A3sVP/lXWfcPTUF4ZpYpXoCiGvkpc4z5kG/PYUQr4GXK6J6IEYJ9FvfQRWRaXzmTz3jrMessx3Vgy5l165y5K0Z+n7bX03VmdnAcqWeg7vJSJPyUwFL7wHU+V1pV5B0pzMUCOPWk4PGNs4tHNa6MzOWktSI4IHXo2vqMIiI8Bpi8bF8j2uXP6ZsYSwp9oRoKZQ76Nfy0wkMoAU2RlmmZZ5XiIDmyevpXfTVCKgbdRNfUMX5YyV1TvzO//gAegthY2VXEROKX0dtFomwLFvFdGCEELk32zMWwirIHnwM4Dlc5vCRalfdYX2rwElt+kPXzK7KPOdXA9WeCR12hPSXM9Y3tlyJsxkuBLHjRlyCUZkIFp9e5dz4nBr3UUT5uGlZlyPeC/MIlKlNEMEmlZ3ZJ25vR0NBLF6kFr3Z1B9XnpRyWhRFQb4TObc6jGXOwIJ7f9cUmqIR6l3Y4fyd65rb0GCAI7tCSh5II/Ow6DTPTVSyB914Lj7gi+HNn0frW5tdwLLvNTjnzCighNpVZEP3BWqc3GQnC4jREv6rBcr3Gw4drGpwovoJpidIFaQzBUsjqYPZniJ7If5htYSV+8GNeLIvgbL25L1l5I+JQkAhdRRdYFPX0GhuvsqD7DiRKMC0Nkbq5yQdH2kvdEaNjaCkmJtAhforsgFTN6Cmsof7Irf5QPyZa/E+gROiFU9rmqyPv4fKadLSvzk0kMvz7h8z7fR+kvHPttXtadLqy+MNEwgvBWD2LvkCgMPVhmJRdsqRv+K4stK9urQP3SbZS7GjAN3mmycxCopurLtaRDjElphI/hj+BajRyeyFHsecRLgl4pSQ2i0jalWV4FQnw31wSQhBWiDTDmVEC9FIp+UZD4QiXbgQNQW8xhfA/9xDmPbny675E92ytG0W77VvKIkvJHNUvot6p6/cNd7LEzcf3yyPrBCHXBdb6ILZMULcCjeBcbjM5pjYo/ShW8bN3Mzla3NyntWoRt5cVqtfmo+sTjFt30C7+BC1OO537A4Ozh89SZPDxl74lYqQcbbrn1VBHBLysongnM2l6dGpSH3JE3uwFtkvKs3lcarbhPCY9iTwH6sqMmoMAAnc7+/Oph9RtlZ3DLR8PIoa+NuDVUOCzXpUjboM0ALnO1mwCBlw9/YEZfpm0GJeqvxjsIDl3TFKskhOQpYNIDfbQC9CzEL77TaAqIZhhjDiJ0p1VpUovrMwK+U03G/17cE3CI7gHxA3yZX6H/yQFbpiL4UbrdLF+LhJi01x+V/R8E2DxYOF035i3cWySjy1kChMdGjDQe9bzdfm7rMSn2b3MedDwwU+nqedmep5C51XMdYCL5hYgqsoiteE00JeDx29uliPUxSmZ0sNz5Q6B4tmML3qhJsfSvnfIc1dThCRlTkPvtnlQDgKeQjbT57hWl2Xk5q6+oMm4XpTiqlVieIoRBNbEOn56BxZ7a+CNrbTS6IfSIqudEglbOJosQ809G5aKc+k+tn1pdeWGao8vnrG0WHoqOrOcz4BksqHmJsxoqY7A+CZ8EvbnIVx0XNAZekyZS/tBui11SDRG2J2LxaA6So6d7Uzdnbb6jpTIDd0QsAeLrGR/OMCHPht3ayWK55/p9NAYyZpvTwYlalKxFFq3pHjA1A8hl5DD/z58V57q8O9e37a3VHtHE4VxYA/z7heNgjTngxNT5TchVOGQudxeDiAsEk+8lg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9ac094c-927a-45af-5261-08da17a68247 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2022 08:21:54.5787 (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: VYYVDTwILjCpHXsuF3ARsNlq+g4BF6Rt4Yh1es9ULUxRmykLuittZnyNWQrk77zZVKDJ8AdFA+ZkUetzh7O0Zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4988 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan The NoC reset value for GPU and MLMIX is not valid, need to set it to a valid value after power up. Signed-off-by: Peng Fan --- drivers/soc/imx/gpcv2.c | 56 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index 85aa86e1338a..7199cf8e148e 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -9,6 +9,7 @@ */ #include +#include #include #include #include @@ -274,9 +275,17 @@ struct imx_pgc_regs { u16 hsk; }; +struct imx_pgc_noc_data { + u32 off; + u32 priority; + u32 mode; + u32 extctrl; +}; + struct imx_pgc_domain { struct generic_pm_domain genpd; struct regmap *regmap; + struct regmap *noc_regmap; const struct imx_pgc_regs *regs; struct regulator *regulator; struct reset_control *reset; @@ -298,6 +307,7 @@ struct imx_pgc_domain { unsigned int pgc_sw_pup_reg; unsigned int pgc_sw_pdn_reg; + const struct imx_pgc_noc_data *noc_data; }; struct imx_pgc_domain_data { @@ -313,6 +323,21 @@ to_imx_pgc_domain(struct generic_pm_domain *genpd) return container_of(genpd, struct imx_pgc_domain, genpd); } +static int imx_pgc_noc_set(struct imx_pgc_domain *domain) +{ + const struct imx_pgc_noc_data *data = domain->noc_data; + struct regmap *regmap = domain->noc_regmap; + + if (!data || !regmap) + return 0; + + regmap_write(regmap, data->off + 0x8, data->priority); + regmap_write(regmap, data->off + 0xc, data->mode); + regmap_write(regmap, data->off + 0x18, data->extctrl); + + return 0; +} + static int imx_pgc_power_up(struct generic_pm_domain *genpd) { struct imx_pgc_domain *domain = to_imx_pgc_domain(genpd); @@ -394,6 +419,8 @@ static int imx_pgc_power_up(struct generic_pm_domain *genpd) if (!domain->keep_clocks) clk_bulk_disable_unprepare(domain->num_clks, domain->clks); + imx_pgc_noc_set(domain); + return 0; out_clk_disable: @@ -911,6 +938,25 @@ static const struct imx_pgc_domain_data imx8mm_pgc_domain_data = { .pgc_regs = &imx7_pgc_regs, }; +#define IMX8MP_MLMIX 0 +#define IMX8MP_GPU2D 1 +#define IMX8MP_GPU3D 2 + +static const struct imx_pgc_noc_data imx8mp_pgc_noc_data[] = { + [IMX8MP_MLMIX] = { + .off = 0x180, + .priority = 0x80000303, + }, + [IMX8MP_GPU2D] = { + .off = 0x500, + .priority = 0x80000303, + }, + [IMX8MP_GPU3D] = { + .off = 0x580, + .priority = 0x80000303, + }, +}; + static const struct imx_pgc_domain imx8mp_pgc_domains[] = { [IMX8MP_POWER_DOMAIN_MIPI_PHY1] = { .genpd = { @@ -968,6 +1014,7 @@ static const struct imx_pgc_domain imx8mp_pgc_domains[] = { }, .pgc = BIT(IMX8MP_PGC_MLMIX), .keep_clocks = true, + .noc_data = &imx8mp_pgc_noc_data[IMX8MP_MLMIX], }, [IMX8MP_POWER_DOMAIN_AUDIOMIX] = { @@ -993,6 +1040,7 @@ static const struct imx_pgc_domain imx8mp_pgc_domains[] = { .map = IMX8MP_GPU2D_A53_DOMAIN, }, .pgc = BIT(IMX8MP_PGC_GPU2D), + .noc_data = &imx8mp_pgc_noc_data[IMX8MP_GPU2D], }, [IMX8MP_POWER_DOMAIN_GPUMIX] = { @@ -1032,6 +1080,7 @@ static const struct imx_pgc_domain imx8mp_pgc_domains[] = { .map = IMX8MP_GPU3D_A53_DOMAIN, }, .pgc = BIT(IMX8MP_PGC_GPU3D), + .noc_data = &imx8mp_pgc_noc_data[IMX8MP_GPU3D], }, [IMX8MP_POWER_DOMAIN_MEDIAMIX] = { @@ -1440,7 +1489,7 @@ static int imx_gpcv2_probe(struct platform_device *pdev) }; struct device *dev = &pdev->dev; struct device_node *pgc_np, *np; - struct regmap *regmap; + struct regmap *regmap, *noc_regmap; void __iomem *base; int ret; @@ -1461,6 +1510,8 @@ static int imx_gpcv2_probe(struct platform_device *pdev) return ret; } + noc_regmap = syscon_regmap_lookup_by_compatible("fsl,imx8m-noc"); + for_each_child_of_node(pgc_np, np) { struct platform_device *pd_pdev; struct imx_pgc_domain *domain; @@ -1503,6 +1554,9 @@ static int imx_gpcv2_probe(struct platform_device *pdev) domain = pd_pdev->dev.platform_data; domain->regmap = regmap; domain->regs = domain_data->pgc_regs; + domain->noc_data = domain_data->domains[domain_index].noc_data; + if (!IS_ERR(noc_regmap)) + domain->noc_regmap = noc_regmap; domain->genpd.power_on = imx_pgc_power_up; domain->genpd.power_off = imx_pgc_power_down; From patchwork Wed Apr 6 08:23:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 558473 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 34BE2C433F5 for ; Wed, 6 Apr 2022 12:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbiDFM3j (ORCPT ); Wed, 6 Apr 2022 08:29:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233206AbiDFM2e (ORCPT ); Wed, 6 Apr 2022 08:28:34 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2051.outbound.protection.outlook.com [40.107.21.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E6E0373C61; Wed, 6 Apr 2022 01:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j7qvILzBuxK/5yR4nErzbmd5M18ElXBFUil3Az8RWN1U3TN6nN27SmylcdJVN10l8aO6/EkYQhhwBiKM8e+ysru2l2yXYMWvCT0w7xUp6x+UUI2r66E85a+gohchmGIfPajtnpD+bZvpgrMAjNx59nm1DIdGLPRiLQ3RZTR32tPLTBBUdUx64S38Dgl1WO6C9KSJhsfckWWDdptn42OxItWLiknSzHRfBZUBbLIoPROhd8lHB8DWW9jmHbKVxcJnt78OqqP+ArdEEKUEo7ufJzT3waWyKFD+xoRxSw+6NSHpcr9T9zqWpb90lpo7CjvSF6ERxgA5ZZSbTYMrkd9qEw== 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=JGM0GlgvDDujK/qoex7518ZPOdaTEzinQ3lLKEMK6RY=; b=ZHlzpB6VD0FsWFkEqwO4PtQgk3dn2ndgYwiGi33QSAqYj7VZNLZUs6ljSl8q1a492dUJvQNMR+uLWQox5b5YwV4YXsrraVHQGABOzhSeNPk0gf1lpQyrMzyMXxxyHvwTyOhjsyWjq/qXNi9rx6O8FmOQxEpJEDDs6MBvQnnqmd5EwHkjfbEO6tB4E6fJbl2pKVgfKDy1yDgDTSwCAJVFuIYFtVqgU5WWPyYZwWdDm+2f86TUNpPExAMMME2v7ovam5WLSLpH8KlfbH2w1CHkMcP5+drjIeJ9hy6cpbj9gX0gltu4fxlM6+yyripEPfxgPTCsSUy6RRAwFmgLPMvaeA== 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=JGM0GlgvDDujK/qoex7518ZPOdaTEzinQ3lLKEMK6RY=; b=k8Tm0rNY1ZtA+o2YTK2OX4jivWzdpquK3qXGOxP7cFZaRl7YBqUROXz752Xs+2DZdD/ck/wX4eojl9tyqKRz0iKOBh4kipJoXyb/pyZKdk9dv+SOmrH3VpTRGxnpI+Z5QB0xZnNPqq9dF0IW/i/D1yqtbqCr5GhkUryJon5UvOM= 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 AM9PR04MB8970.eurprd04.prod.outlook.com (2603:10a6:20b:409::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.19; Wed, 6 Apr 2022 08:21:59 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%7]) with mapi id 15.20.5123.031; Wed, 6 Apr 2022 08:21:59 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: festevam@gmail.com, linux-imx@nxp.com, laurent.pinchart@ideasonboard.com, l.stach@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 4/5] soc: imx: imx8m-blk-ctrl: support i.MX8MP media blk ctrl noc settings Date: Wed, 6 Apr 2022 16:23:29 +0800 Message-Id: <20220406082330.2681591-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406082330.2681591-1-peng.fan@oss.nxp.com> References: <20220406082330.2681591-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG3P274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::34) 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: fe7c39c7-a48b-4c09-1f22-08da17a684ef X-MS-TrafficTypeDiagnostic: AM9PR04MB8970: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: hcur9weRxZV20saucYlSYYLLKpvdKab3NjZl5DJX0JnR0BGjmk9+1scn9aC1gT70liJ1AkPCy0ffrNxEFSjAR7Fl23ljhj+yeayYBBZpUd6MAK4Pur5Kn6jfw6OGAwJTrXkCMkktmsCTLXwQ+DCVjCZIP4g53bqp0lvTR2A9GxnxzHmhDHtmrumPBHfGu+3PCLGbH/CBL1cYgasH5UuUE5mepQIgReeRhDNupOUKh9FAtNubJAqLzu4RHDApBY+cSEXHiKE88ekTiJooKKT46HAxrOF7ecodB1yYZBT5Qk7Z18rUwmo7C5sHDOjTqPvha1QVWYYo8CmT3qdrmr53OnHgIOTLVXqxEbnEzY9eT5NtNaJz/rNQgGP9BfXrOHeQNc56kKRW9UO84jJyyO6d7R/WuvJhh2IwYpd5+WZ91/HquszRMu9lYYVyrfu4cGHhTFaJ+cTiQGl4vD/OScxqbzJ0g6F9rEsTATm629IOGvWu/K7FkAxeYHWDb/XCMBvKdqU9BiDAR8AQSqkPPH7OVlX70yHSMPXQzEzvmbwbBn3O0zGyTJUWpYspnmV8Ux7Yb3qOg6blrjLZB9OBmG36RvLZU8pGmfXJOJpzD24opQapY7d0/ATBWxL2B0LlMRV9cHnD5gf9kzfx7RIi3V6Wzar6FIwdDZm92lou7Io4DAF3jQW8Gf/7f+3vaBKKUErBmkFsbaVjx+bK/FSyVFYYLk5361gUp/7dAFGBMNK3BiU= 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)(6486002)(508600001)(5660300002)(1076003)(26005)(2616005)(186003)(86362001)(83380400001)(7416002)(6666004)(6512007)(52116002)(6506007)(8936002)(66946007)(38350700002)(38100700002)(2906002)(4326008)(66556008)(316002)(66476007)(8676002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4/kEsCvOmohutrYGfotdfpJ0Qgz/SF1IQYR+aPIgll1RTZgxt6bJ6uBCAF7ICFTNvHpY3eY9/aivd4aIh3OFT7VS0nB5zLFgCdRe/HynX/Y6aqO5BJIIgoZRLLcKIGiEdBMKBNC0rpuwtx0Qb1j+vOrTZgGSja6M16stsSLOP9XrSSJLU6S081ZVxwQ0DU8O1iXfhoMmJDPPkZXDQy2GmIDI1Jut6+jdA55K5PWZr4bifi0pI89lXa4Kog9AEXI/ukgq0ALyboB7ryPEE1HdsLP/EnoVkODM74LiF5N4x1oxvXRvzsBSe3HZcl1EhyFoP6nBvkQ15uJtJvISYUvdc3lCYIXBbpNWrzXDu6XoLkziBkp6qVjbKrhlGGrcU14yvMGZatZGHOdVz3BLb1AImazYPrWpT+QZC/LN6NduAkfu4aGigR6pATMqUK/yDncjFfNQbGUs5i+rNL8+AqXhM62ImZVKSXPMypIeIRDDXtTF2G0zAKzOPB8IB22kKD7Jokrs1Pax9jRGne/270e2cP9PO7EJZ12lkrpGMW81DBpEYa32TS04Xw7xKwVZ73xbhmfeKsr+XFTDy98POU5ECSSqj1Ye43NVg4y/qLp78Z0CLoVEzjCUKkslMkWsN+zUbRGjVBMtX2DViQMnkNnRyVwrhEh1Bsb5CjGLgs/MQOecO6tlwUw9CubEerPQ+8yX9vuDegfZ1VFsxkXInJKEG2zfhd5e0OhmwsXqsu0zjMUVFFSjO2g26jcHnb+6/YQ+c9bPYZYDVQ29E3El7MIKtdUlA1gtIJ2CM4ycWCFmDMp78viaC03RkZ0hLCzXCr06/gp5kNJvl0BuNc+x9fBVnfGo43W75xTYblnLCYDhVEKMNf4SY0BGTeOThfZePWolmUkCcRUMStYGtPdOYukrRM+shASxKdQRwPQft8+0s1qN4xtfxGu1gNH/x5XF3t8ricvGV7eZF5xuln+63uooeVqjKHPvbeZpwAbyUliJqwLRQtXlS2XpUV4NUmuTpTYj8kvXLySgyiC0shqkgS2YrV8qPyFyR1F0Dc9nGGlcqKT+x+fLzmKt1+0wAn5pkmwl3HjG7FqVE9FC8qwyoaQ2oDFprPAA1/yt8PiDggaThuK47Iwy8PTeYSSeFc+SUPYaHzLOL4MW3omBDpNObdF591FKLMFDrFSIzvASNBuWjK5ZPDVF+GlWNgjnMokPIr4c9x97rMjV4a2FlFp/sjgIwOmrN5jdBdUGYWBabnGfWxw1PPRpubRcRm7edJtOizJLKOjef4tw+BIdDrSXKfsjl6VOyPL3idqcLJSFmlG0GyBtkbXJ3z8b++jgTTuPuXzrAcOeHiMzfjVCD9ABpnLlsqk/0752nEiKpMaNUxuENrVQoioOi3yA3lcDQ+Xsb7eJkjofNoLxoKUfyq9nJwnc77tEBge2+7EOue5Qd0d+R5ABnnwlD7axf9P3pYY7nEyhF3pWlGkGERe+ItZ3i1/7zK6207xqw6OkX0ZcYqcKx7D9QE5EI+g99Ct6vnlagfZMOOYbLSL5m5awgzDcQ7G8FVcLF4jAHe64Nr6DFKCLNNQHI1erfM0Z48rRskGvf29ZJhHHx/APM9Xn5D27EIldrHjvjPAXXxNCrhlIpKgj1W4eO0hHNCwSvaObcjT7EyvSiAW0rG45FHwAkbmYQiy8YidoggsN0e4E4IbCPnCHqMl8i0UByeenUrO8hylTCooupjapYIz3cRruPBWfNl6y7A== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe7c39c7-a48b-4c09-1f22-08da17a684ef X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2022 08:21:59.0338 (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: gCixDio5VVhBBo4pfXU5e3I8+Vi6DdPmPQ9Iy5SZixuk5+2cP9kUoA9ANAAnER+vqrxoxOduvGeb0ObBGK+3Lg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8970 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan The out of reset value of NoC is not a valid value, we need set it to a correct value. We only need to set it after power on. Signed-off-by: Peng Fan --- drivers/soc/imx/imx8m-blk-ctrl.c | 109 +++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 3a6abd70520c..5b382b4e6a64 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -29,10 +30,19 @@ struct imx8m_blk_ctrl { struct notifier_block power_nb; struct device *bus_power_dev; struct regmap *regmap; + struct regmap *noc_regmap; struct imx8m_blk_ctrl_domain *domains; struct genpd_onecell_data onecell_data; }; +struct imx8m_blk_ctrl_noc_data { + u32 off; + u32 priority; + u32 mode; + u32 extctrl; +}; + +#define DOMAIN_MAX_NOC 4 struct imx8m_blk_ctrl_domain_data { const char *name; const char * const *clk_names; @@ -49,6 +59,7 @@ struct imx8m_blk_ctrl_domain_data { * register. */ u32 mipi_phy_rst_mask; + const struct imx8m_blk_ctrl_noc_data *noc_data[DOMAIN_MAX_NOC]; }; #define DOMAIN_MAX_CLKS 3 @@ -66,6 +77,7 @@ struct imx8m_blk_ctrl_data { notifier_fn_t power_notifier_fn; const struct imx8m_blk_ctrl_domain_data *domains; int num_domains; + bool has_noc; }; static inline struct imx8m_blk_ctrl_domain * @@ -74,6 +86,27 @@ to_imx8m_blk_ctrl_domain(struct generic_pm_domain *genpd) return container_of(genpd, struct imx8m_blk_ctrl_domain, genpd); } +static int imx8m_blk_ctrl_noc_set(struct imx8m_blk_ctrl_domain *domain) +{ + const struct imx8m_blk_ctrl_domain_data *data = domain->data; + struct imx8m_blk_ctrl *bc = domain->bc; + struct regmap *regmap = bc->noc_regmap; + int i; + + if (!data || !regmap) + return 0; + + for (i = 0; i < DOMAIN_MAX_NOC; i++) { + if (!data->noc_data[i]) + continue; + regmap_write(regmap, data->noc_data[i]->off + 0x8, data->noc_data[i]->priority); + regmap_write(regmap, data->noc_data[i]->off + 0xc, data->noc_data[i]->mode); + regmap_write(regmap, data->noc_data[i]->off + 0x18, data->noc_data[i]->extctrl); + } + + return 0; +} + static int imx8m_blk_ctrl_power_on(struct generic_pm_domain *genpd) { struct imx8m_blk_ctrl_domain *domain = to_imx8m_blk_ctrl_domain(genpd); @@ -117,6 +150,8 @@ 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); + imx8m_blk_ctrl_noc_set(domain); + /* disable upstream clocks */ clk_bulk_disable_unprepare(data->num_clks, domain->clks); @@ -172,6 +207,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) const struct imx8m_blk_ctrl_data *bc_data; struct device *dev = &pdev->dev; struct imx8m_blk_ctrl *bc; + struct regmap *regmap; void __iomem *base; int i, ret; @@ -218,6 +254,10 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(bc->bus_power_dev), "failed to attach power domain\n"); + regmap = syscon_regmap_lookup_by_compatible("fsl,imx8m-noc"); + if (!IS_ERR(regmap)) + bc->noc_regmap = regmap; + for (i = 0; i < bc_data->num_domains; i++) { const struct imx8m_blk_ctrl_domain_data *data = &bc_data->domains[i]; struct imx8m_blk_ctrl_domain *domain = &bc->domains[i]; @@ -677,6 +717,55 @@ static int imx8mp_media_power_notifier(struct notifier_block *nb, return NOTIFY_OK; } +#define IMX8MP_MEDIABLK_LCDIF_RD 0 +#define IMX8MP_MEDIABLK_LCDIF_WR 1 +#define IMX8MP_MEDIABLK_ISI0 2 +#define IMX8MP_MEDIABLK_ISI1 3 +#define IMX8MP_MEDIABLK_ISI2 4 +#define IMX8MP_MEDIABLK_ISP0 5 +#define IMX8MP_MEDIABLK_ISP1 6 +#define IMX8MP_MEDIABLK_DWE 7 + +static const struct imx8m_blk_ctrl_noc_data imx8mp_media_noc_data[] = { + [IMX8MP_MEDIABLK_LCDIF_RD] = { + .off = 0x980, + .priority = 0x80000202, + .extctrl = 1, + }, + [IMX8MP_MEDIABLK_LCDIF_WR] = { + .off = 0xa00, + .priority = 0x80000202, + .extctrl = 1, + }, + [IMX8MP_MEDIABLK_ISI0] = { + .off = 0xa80, + .priority = 0x80000202, + .extctrl = 1, + }, + [IMX8MP_MEDIABLK_ISI1] = { + .off = 0xb00, + .priority = 0x80000202, + .extctrl = 1, + }, + [IMX8MP_MEDIABLK_ISI2] = { + .off = 0xb80, + .priority = 0x80000202, + .extctrl = 1, + }, + [IMX8MP_MEDIABLK_ISP0] = { + .off = 0xc00, + .priority = 0x80000707, + }, + [IMX8MP_MEDIABLK_ISP1] = { + .off = 0xc80, + .priority = 0x80000707, + }, + [IMX8MP_MEDIABLK_DWE] = { + .off = 0xd00, + .priority = 0x80000707, + }, +}; + /* * From i.MX 8M Plus Applications Processor Reference Manual, Rev. 1, * section 13.2.2, 13.2.3 @@ -708,6 +797,10 @@ 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), + .noc_data = { + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_LCDIF_RD], + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_LCDIF_WR], + }, }, [IMX8MP_MEDIABLK_PD_ISI] = { .name = "mediablk-isi", @@ -716,6 +809,11 @@ 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), + .noc_data = { + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_ISI0], + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_ISI1], + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_ISI2], + }, }, [IMX8MP_MEDIABLK_PD_MIPI_CSI2_2] = { .name = "mediablk-mipi-csi2-2", @@ -733,6 +831,10 @@ 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), + .noc_data = { + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_LCDIF_RD], + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_LCDIF_WR], + }, }, [IMX8MP_MEDIABLK_PD_ISP2] = { .name = "mediablk-isp2", @@ -749,6 +851,10 @@ static const struct imx8m_blk_ctrl_domain_data imx8mp_media_blk_ctl_domain_data[ .gpc_name = "isp1", .rst_mask = BIT(16) | BIT(17) | BIT(18), .clk_mask = BIT(16) | BIT(17) | BIT(18), + .noc_data = { + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_ISP0], + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_ISP1], + }, }, [IMX8MP_MEDIABLK_PD_DWE] = { .name = "mediablk-dwe", @@ -757,6 +863,9 @@ 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), + .noc_data = { + &imx8mp_media_noc_data[IMX8MP_MEDIABLK_DWE], + }, }, [IMX8MP_MEDIABLK_PD_MIPI_DSI_2] = { .name = "mediablk-mipi-dsi-2", From patchwork Wed Apr 6 08:23: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: 558680 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 87487C433F5 for ; Wed, 6 Apr 2022 12:27:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233028AbiDFM3k (ORCPT ); Wed, 6 Apr 2022 08:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233213AbiDFM2e (ORCPT ); Wed, 6 Apr 2022 08:28:34 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2051.outbound.protection.outlook.com [40.107.21.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EE13235864; Wed, 6 Apr 2022 01:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xvr/WLSj6XIbt+ldhGRjAASjOEA9tIExW05EM7u+7M+kHyt3aFj53lLytUnDlx8BBOmYrJ/ZZIhpFv3dIPtJgfHx5DvtEwAzMyzHMqWBkrDRFKgPCdR1shgWhV9q5mJas7Zez2n3CgeotQwjU+omZxjm9KoJWeFCn87WUB2z+0Yts62H8XUmaSnWNqFRb6mbTuWvCfpTWoSETjCb1D8DQPr7vxjHjNtAM/j5hOYg3A8xHx9GrOOdjbZw+JqXRldIeQsSWeXqHMYeePRiIrCs1yztq9e+ynIregXzBZgRFcoHSzSjLjNj1n5G+vD5gLVxJpegCZzkDEwN72r3RQLmmQ== 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=G+o/qg80Ew6++aixaN9Tdz4T9QvQ/shVm/ZJ2ShgBmA=; b=gpbSjfW9TgYoyC74fO8VPT9A2c6Wxv863irSl6aXyN9nTSQxb+t1dNORsG48veSRjs637R0FztsEm5CFVbYBsbZr5OhCVO6kFC5VbbNans50phH6K0WNT/AZtWtvK/selSH9GEWh3VqW6Oz9+386+gnKogJugI25HpOcZ+LEybCTv3EO9Sow45hXE2VDPh9hZv/uZEOsVA2LuQLt35OxIdiJsuWSaZ1Jdu75KEGdti8t7EddhCmnyDAcvvaZ8eFUJ8uIH3BxxApmxcPuxrlqIs2iP0NWNqp/ofgyN4E64vJfAFpX8fagpRXrzLffLIPgZ6GGyOHca0XPBA5cyaJJ5g== 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=G+o/qg80Ew6++aixaN9Tdz4T9QvQ/shVm/ZJ2ShgBmA=; b=Ha98RmvyNJaWnwyjajOfGnSjfuR93u3GKVmaPcrXU6Ndt3zd29O1EOn7DG5hWUycWUvR6onxgVoJiHOM3Jo0/UHxyPS54s6tnMW3gzHYhPBSll1DMur6TNo23SVYwci0wCrZ4ev8GR9ZOVyIHvGj6YJaz3DtwHi4Vqqyi1ZnTQU= 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 AM9PR04MB8970.eurprd04.prod.outlook.com (2603:10a6:20b:409::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.19; Wed, 6 Apr 2022 08:22:04 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%7]) with mapi id 15.20.5123.031; Wed, 6 Apr 2022 08:22:03 +0000 From: "Peng Fan (OSS)" To: djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: festevam@gmail.com, linux-imx@nxp.com, laurent.pinchart@ideasonboard.com, l.stach@pengutronix.de, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 5/5] soc: imx: imx8mp-blk-ctrl: introduce HSIO blk ctrl noc settings Date: Wed, 6 Apr 2022 16:23:30 +0800 Message-Id: <20220406082330.2681591-6-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406082330.2681591-1-peng.fan@oss.nxp.com> References: <20220406082330.2681591-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG3P274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::34) 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: 7bde08ce-b00b-4969-c823-08da17a68796 X-MS-TrafficTypeDiagnostic: AM9PR04MB8970: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: +FTRQmYldPG2cGT85fjVnJIVHisxUORfzx1GnFnG4ifikGa/j2rYDAGiTgZSXtpOFlulZYIfRbRS3lfGoQsvvoyJjzVYobyWFnxSRqPtU/QzFy4c3IE0c7OCfpaYrpqd6lTrrYU9dXW1CYoWieeR4fEFx3JFPi5V34IK2zoorS/ooOh0OsaFEm2Vvakx+YnVb0mU38M59WdlE6oqRh6IamTWxDTsbtYMn+I5QooBSt0rdscCECe0aOzfSCpsr8ZsQZ/uoeQyy9PRG5ETCyw5MxUYG7dkfXPybTqP10no2mgJxV92faXZ9EQfY2MQeMhYawYLjT4G6Yq0NLHuRfbu67IW5bWlSMCUjDNvFpafVbO/Bdgh+x7dnpgd7Pvbzto2o4yraJumessysel8S34uxcZmvqcsJgmfLsSO3SBRanXLV3+OotWOial3q6OyzsuLhyh+1IFdC+rpbji2WkQm3rVJlaQObtk5iaCPQ+LDFSsXzwHSBLDSYJnp/TdV/JHYrkXqRcqhqQSaizLlpQt2Sg75a4fsesL+ZW7Z7KphVAEx/TBRxXbEJnjefbJkFxYHnvBZ+B6EmDcS0XrG4W/FvsQMKgBqwRKv5WWHtb8EzKAThYv0POL0Qeqn3aeBgzfcMdMMNvrUhXDDNxdXct6ByxktwJHeP826GeTUjtjYa7gUIwF9xhIEP2jlhOzamvpNr4HVBQI5dqFCyh+JhG2dR9tSPRag0laoFR9+Ey6jxpM= 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)(6486002)(508600001)(5660300002)(1076003)(26005)(2616005)(186003)(86362001)(83380400001)(7416002)(6666004)(6512007)(52116002)(6506007)(8936002)(66946007)(38350700002)(38100700002)(2906002)(4326008)(66556008)(316002)(66476007)(8676002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: udkPeMrz2NL8sm11ZjGo/7YR5JM7yqZJL0OZjVJy2hWQt7nglPn4whGXJMceE9iySn8zWO2s/Eah3rKEZlWuKiSEE/ZIt4SxQx5xgT/gYZ+/2i3Zvvgw8n76p1f30V947yml5n5CS+oraSCHLqVdVNJViYiaK82349XRk95QCAHF10x8rprKJgaD+CQ8wm+sUL0UhPDC/6/qmoyh088WKU5MIvYL0XMwXDOuAwjL+fgZAKrOywhJxvsyf6Q+17pS7iymxqg5aNcYjyQEdwbYBILrNMwizY2J3JcF3wYhKfK6FG0hXJR0iFCCafk0bNGbbfBbXz6/IFav6dWORsrwUDHT3VpUvdmv8nM2YyBc5Gj89CqZo/G5ujfCYIagzJCYWQMMYFqnSwatg/gf1n6b5bdod4tGqOvDGD3o7XbEeufTk1BqVAvCGfyyWIXKsNkOPiJpEX03pleL9JdRleohaTTG4JbhXvJJ0vqgYphX79JQerorpJyKvliTC9iNQl8sFX/AlIvhdNPXuhzkLdel7SLGThSQIV7K7SKl+BoS3TYiLWLw+df+peVmuMPbLEQcI5+XYFMiUUBBvEvIxG/OJDR/TI7H46AjmVyzkawW5iTAwjJkJGDBKL9ceOvlhUNtNERhcuJIvrJi/xTtGOVPK8f3Fedf78gwUod16KlQSsZbvq2SqTECcmAzX4uGkS9fP2hD5C+p27VzUF5ApJGXPmzXOb3II94g1w7Zz9+le1jiX33S4WaySh3dk2y4Jm4N6KLhYY7qpR0LRJl9Q81mCOrg38qvsOD6xTPJCj2+oqWkChmyZOE2hhIfT5ghuMOeQXSjz7VN6ex8V/o6piF24pizMKSLejqNG7HUdujd/V68y+XWXcicolsu/WLPn/aTG2bS6rCR0BHraRYC3Kl1xCUJkUgg2LG2qnUeOeLT6FTQ5g9DXHfXqwTzv1k6sZktyYelT1vCm3xrrPeZpJ3fWF2voxL6ZUQEuU4cMbOJVy2070u2PyFeVfMPAdn1XP5M9mzv0DpiHzS0czLay4qmQ5LphGt4d996IMHH2ahxcYcvPPyy9lQWXC4Y1U0465cQbAogOCBlH4HLva01mTs/BI+thYEYfAEmBLKrSssVnG+13aXn6IKqYJbn6ZebqQwjYk1DHK+WUUP9WzOgWHNlS8fdePpCP2rYbtTab2yAulJzKZZ29X96JlWnq8D2SffA0JCfqo77vp2Fq1rC2mj+HF9Vxwk/BUUnG5v8VBuhxUcEDhwWJa0oD9QVkFmgcucbYquP/mfcH9M8QX8pA/qEwY39f2FtMu29vkfPEdpLN2nO7RDddNJlVBkOgudFtFVC1ZVVwjjOmBcYTsiiMB2fR7nC4AouxrBrrPYeVM0li/XwR7EjenK2aCubMePh4tMlHahBoLwVQxzd3V5QsKcIzs6PKH9Xu/HGxy0S5fD+XKXCdIdzWyDIGHmVchrnzuL0ZcaYsa3sSKLbxQoIwmNe4KoncpgiUFniZDwOzEcJdJTXP81A95BPS/qgUx1yparowcxlVIiQ4mqVDtPcEq1+5GN+cLu97UKWgED57cAzlo66Hn4aPRxHaSaecOT+C6nrOXYTKii7rga6HHhdash9Vchxre+NGBp9LcvUzcvMMWCxtOWe9mOH241OmBC6GgyqkckSCm2Ul14yjAheP1p3gj706LmzC4FidVE3EoPv83OgGVWrYmVpm6W81g4SYNmI/LBD+4Dz0jOSE/8+UMDf3w== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7bde08ce-b00b-4969-c823-08da17a68796 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2022 08:22:03.5661 (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: 19CqqGQspv7XVfOdfQe8XiCJJsczuMw1OfFzK/XhvBsngjiaxXvuHrILpDJ+nR5YBYWWzPNcjXdHs6H1mnOInA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8970 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Peng Fan The out of reset value of HSIO NoC is not a valid value, we need set it to a correct value. We only need to set it after power on. Signed-off-by: Peng Fan --- drivers/soc/imx/imx8mp-blk-ctrl.c | 74 +++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/drivers/soc/imx/imx8mp-blk-ctrl.c b/drivers/soc/imx/imx8mp-blk-ctrl.c index e832c007b063..929fd9b770ae 100644 --- a/drivers/soc/imx/imx8mp-blk-ctrl.c +++ b/drivers/soc/imx/imx8mp-blk-ctrl.c @@ -12,6 +12,7 @@ #include #include #include +#include #include @@ -26,14 +27,24 @@ struct imx8mp_hsio_blk_ctrl { struct notifier_block power_nb; struct device *bus_power_dev; struct regmap *regmap; + struct regmap *noc_regmap; struct imx8mp_hsio_blk_ctrl_domain *domains; struct genpd_onecell_data onecell_data; }; +struct imx8mp_hsio_blk_ctrl_noc_data { + u32 off; + u32 priority; + u32 mode; + u32 extctrl; +}; + +#define DOMAIN_MAX_NOC 2 struct imx8mp_hsio_blk_ctrl_domain_data { const char *name; const char *clk_name; const char *gpc_name; + const struct imx8mp_hsio_blk_ctrl_noc_data *noc_data[DOMAIN_MAX_NOC]; }; struct imx8mp_hsio_blk_ctrl_domain { @@ -41,6 +52,7 @@ struct imx8mp_hsio_blk_ctrl_domain { struct clk *clk; struct device *power_dev; struct imx8mp_hsio_blk_ctrl *bc; + const struct imx8mp_hsio_blk_ctrl_domain_data *data; int id; }; @@ -50,6 +62,27 @@ to_imx8mp_hsio_blk_ctrl_domain(struct generic_pm_domain *genpd) return container_of(genpd, struct imx8mp_hsio_blk_ctrl_domain, genpd); } +static int imx8mp_hsio_noc_set(struct imx8mp_hsio_blk_ctrl_domain *domain) +{ + const struct imx8mp_hsio_blk_ctrl_domain_data *data = domain->data; + struct imx8mp_hsio_blk_ctrl *bc = domain->bc; + struct regmap *regmap = bc->noc_regmap; + int i; + + if (!data || !regmap) + return 0; + + for (i = 0; i < DOMAIN_MAX_NOC; i++) { + if (!data->noc_data[i]) + continue; + regmap_write(regmap, data->noc_data[i]->off + 0x8, data->noc_data[i]->priority); + regmap_write(regmap, data->noc_data[i]->off + 0xc, data->noc_data[i]->mode); + regmap_write(regmap, data->noc_data[i]->off + 0x18, data->noc_data[i]->extctrl); + } + + return 0; +} + static int imx8mp_hsio_blk_ctrl_power_on(struct generic_pm_domain *genpd) { struct imx8mp_hsio_blk_ctrl_domain *domain = @@ -89,6 +122,8 @@ static int imx8mp_hsio_blk_ctrl_power_on(struct generic_pm_domain *genpd) goto clk_disable; } + imx8mp_hsio_noc_set(domain); + return 0; clk_disable: @@ -143,11 +178,39 @@ imx8m_blk_ctrl_xlate(struct of_phandle_args *args, void *data) static struct lock_class_key blk_ctrl_genpd_lock_class; +#define IMX8MP_HSIOBLK_NOC_PCIE 0 +#define IMX8MP_HSIOBLK_USB1 1 +#define IMX8MP_HSIOBLK_USB2 2 +#define IMX8MP_HSIOBLK_PCIE 3 + +static const struct imx8mp_hsio_blk_ctrl_noc_data imx8mp_hsio_noc_data[] = { + [IMX8MP_HSIOBLK_NOC_PCIE] = { + .off = 0x780, + .priority = 0x80000303, + }, + [IMX8MP_HSIOBLK_USB1] = { + .off = 0x800, + .priority = 0x80000303, + }, + [IMX8MP_HSIOBLK_USB2] = { + .off = 0x880, + .priority = 0x80000303, + }, + [IMX8MP_HSIOBLK_PCIE] = { + .off = 0x900, + .priority = 0x80000303, + }, +}; + static const struct imx8mp_hsio_blk_ctrl_domain_data imx8mp_hsio_domain_data[] = { [IMX8MP_HSIOBLK_PD_USB] = { .name = "hsioblk-usb", .clk_name = "usb", .gpc_name = "usb", + .noc_data = { + &imx8mp_hsio_noc_data[IMX8MP_HSIOBLK_USB1], + &imx8mp_hsio_noc_data[IMX8MP_HSIOBLK_USB2] + }, }, [IMX8MP_HSIOBLK_PD_USB_PHY1] = { .name = "hsioblk-usb-phy1", @@ -161,6 +224,10 @@ static const struct imx8mp_hsio_blk_ctrl_domain_data imx8mp_hsio_domain_data[] = .name = "hsioblk-pcie", .clk_name = "pcie", .gpc_name = "pcie", + .noc_data = { + &imx8mp_hsio_noc_data[IMX8MP_HSIOBLK_NOC_PCIE], + &imx8mp_hsio_noc_data[IMX8MP_HSIOBLK_PCIE] + }, }, [IMX8MP_HSIOBLK_PD_PCIE_PHY] = { .name = "hsioblk-pcie-phy", @@ -215,6 +282,7 @@ static int imx8mp_hsio_blk_ctrl_probe(struct platform_device *pdev) int num_domains = ARRAY_SIZE(imx8mp_hsio_domain_data); struct device *dev = &pdev->dev; struct imx8mp_hsio_blk_ctrl *bc; + struct regmap *regmap; void __iomem *base; int i, ret; @@ -259,11 +327,17 @@ static int imx8mp_hsio_blk_ctrl_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(bc->bus_power_dev), "failed to attach bus power domain\n"); + regmap = syscon_regmap_lookup_by_compatible("fsl,imx8m-noc"); + if (!IS_ERR(regmap)) + bc->noc_regmap = regmap; + for (i = 0; i < num_domains; i++) { const struct imx8mp_hsio_blk_ctrl_domain_data *data = &imx8mp_hsio_domain_data[i]; struct imx8mp_hsio_blk_ctrl_domain *domain = &bc->domains[i]; + domain->data = data; + if (data->clk_name) { domain->clk = devm_clk_get(dev, data->clk_name); if (IS_ERR(domain->clk)) {