Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5871728ioo; Wed, 1 Jun 2022 14:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyyrGQp9zX1m6P/x8PS841dopHZBWNsEKOgzPsMfjdUPyV/q6SfsK035dgUt/3/7l0AJOw X-Received: by 2002:a17:90b:4a49:b0:1df:d294:a13 with SMTP id lb9-20020a17090b4a4900b001dfd2940a13mr36543524pjb.6.1654119324070; Wed, 01 Jun 2022 14:35:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654119324; cv=pass; d=google.com; s=arc-20160816; b=JDd4f+aTWGsQPVUJ03K/v5TgyIX0uoX1yu8M2uZ9N4MOfvkH2TdOaqDNRwSUFcOOF1 UOHddcENPC7Ng+y1ucdb8bVad3NgDB81xYcqVK5jeByQBJ4pycAt9gG9av9zWSNeEMg9 s/WkHZJ39Vpee19PGi47pp2C68rdgRzCeRvPm7bUUVz3Y1dK2EoUzzZbpfP2djTQ2ISk YyR4rglegBjnmevw2w5ue4hz/mpjDuJtl0HmJ/WW30Sn6ai4YocDTSXrEgHAYa7zdasM gwUkrDKUpOHcL/fewAKwn6xNNFILm2jojgnJH2XMdqswNz2c4IMgcedqhkQU2iqY4FX0 ssfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=MOMcRNEffFxSBUnYPX8jx/tMfn+0Mozs6rbBmZwQj04=; b=w4Tj3Qce9oOwFC3cxW3Zeg61+S7V2IXPoVbqpt1uQvlXYSstVwlzEHa3bJYfKJGxb2 isZpETA/uej6z2a34GIjl+WO2sNKZUieYOSuMj5uTix75tRA0zOBUDqymfdFYijwqZzW cf64PnkXpQcc9NZPnxFR2QqR91JJCI2UNHs357S1JXqa50ZNJjj10hSPdsai8t43TGHG H6rLnimXe1/iwkydbV0MCYI+Hl8WsTh+JOy4EBb4BwkGfkAWehVWhUtElyRLqHGQsByr ojQt/TOo+2GDpvOz6uCLwQJPFqO8z3Vqy+1k5AYYkxop0rKMLHW1R/eFhdV+9mzOZdkx 4lKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=IPRTbOpe; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k11-20020a170902c40b00b00163ddc0d459si4092650plk.320.2022.06.01.14.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=IPRTbOpe; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5248D1C2D70; Wed, 1 Jun 2022 13:42:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350389AbiFAJkY (ORCPT + 99 others); Wed, 1 Jun 2022 05:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349240AbiFAJkR (ORCPT ); Wed, 1 Jun 2022 05:40:17 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C9E649C82; Wed, 1 Jun 2022 02:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=odSNXSCS4FO4JwzqnXgFwC49nqXRzmFZ8HVLqDKi+ssN5EwsKtV/0POdbPuGMA61s4W2D0P+To9kyep7kvjPqwjqMsZuNoh3uxB4vTROv5ULf9SpYx7LFYcqOC8zd9ExRF2n7iXn7cAIl55BKUtZLzXII1ytkmzkWM9640615Lt9N1h6BhcOS1LytUQ8U7i6WFvsok+293zafeJw46Vxo4wOgSFgkoH8sXLC9P7ajcceI7xD1kx1WcLxFJ6HueVLk6IlvavsBrM/a8xYlzpesU/iMJ0JoCvJYG/s0vhjGOGEG8/mCfd1OuVyDqOddsmaMKfOR8lrqpzcypBb8BykdA== 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=MOMcRNEffFxSBUnYPX8jx/tMfn+0Mozs6rbBmZwQj04=; b=VNWecgmeARrIdbvjqfbNohRvjg58MVyfRKYxvxR+4RZEBWIutdUYte5rxxULKwvvrcCMLMxTtOd9OCHWSHntGgaeqgPunYChHg2TV4ZDu50SAF3gA4BBWF7/O/eV07HUr6Vaa0147FJzZu2lMY2GkwKWrY1Yvhf0v6YPybqoOBum6ds4wdKDw5XVHTdH45HuF6j7X4VHTtWGohk+yY4/bZ19vDui3UDE0b4Yq8OHqO8LJXQ6MpBv8YdR1P88+eQLP/U3wSRC7rzj9s1bNClOMxiADmEzwd1X505paR1FKHzxsh/A9vITI9RxSEJbj7eZFlzaygXWjTqdawK+gC420A== 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=MOMcRNEffFxSBUnYPX8jx/tMfn+0Mozs6rbBmZwQj04=; b=IPRTbOpea/v/HdgIpABgmYs6Ue7Jn5OU2wNQhR3ImbtCLwITFil++KQsRRPFJqkAQMtXnUfJNIazKZZLGXnHkurvSMX8kCDRp1/elrqzkqLloqGySGR1XsfGybTU+j454eFdqhTi19hoLsSX5GEE9Kdy/VhKIkQcGQqE4IN1J8g= 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 AM0PR04MB6498.eurprd04.prod.outlook.com (2603:10a6:208:16d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Wed, 1 Jun 2022 09:40: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:40: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 0/8] interconnect: support i.MX8MP Date: Wed, 1 Jun 2022 17:41:48 +0800 Message-Id: <20220601094156.3388454-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: cf3e6162-6c22-47af-7aa9-08da43b2b965 X-MS-TrafficTypeDiagnostic: AM0PR04MB6498: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: l5LyPpw+/TTqUsruTqqwEXWUROp40/JSwF5+kKqhEIJVgdzFz4MIac8cAHkdLDhXn+y1Jz9KqnM8sHcGDTJEFn168Xu9LOiJ+Z3ugXzgNeWu1wtki0b73W1KfjbCyF8c3dCMgg73tyTtDcsPYDjCHCbcjokTTo9QtGT1eEWbcpPIROJFMVjVedDgdMj1/ZNGh1CTNvgxA0CG08v/yo3ZYjUcNAuu4e5OYnrm/8OOAEM8TDQLkAwQ+2fTb/xotRWxmxdwGlf2WdNzN1QO4/EolSPliYAj4f77iX9ZjAGtaQ0BAAURPxXYTNV2kiYj9ufSRLKBNu79Hi7dh6+WYu4xGZISRywrkZMqEsQyTheR/ocRQWDcWt7e/izw5d4xQ8as+a1ljP3Bv6IZYj3gFApo0DxbKuDL81yuZ6Mu2GUAzDisvMaaTvAOK4I7vBQnzqQvbBL6CN+Dx3HVFbHH6wxRgvkMGggv36C8ulpFbygjPhkwVSmp7ZwzZzSPQfqVeW3QYzepRTx+t21S8LDbd1Uz+eeg4FBJMCOuJcT3kSILuaDp2dYCqn70+xAM+/cd0xFdK1n8X6x5iFNoDTt4/AJw2MHjCspODADU531tscmYFsyRB8QY4VrBk4rovanQuVkQ/6X4JN3g7QjW6nc0AhFPRfWAswfupmRH2Lkw9AsZucGhxefEkb80Ets2NH1hRFha5jVKfnZENul7vKkTB1snAJUdea8zfh8OVysZ4zvypNCR3JSDuUNf6ZIdDxl/368WoYaqT7/8wzcgPqxxCafIgQ5j6VFq+FDz7fsBpIVkVcNiE3aSOF0xQgYM/hA3wsX/ 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)(921005)(52116002)(2906002)(6506007)(508600001)(316002)(6666004)(966005)(6486002)(1076003)(7416002)(86362001)(26005)(2616005)(8936002)(4326008)(66946007)(66476007)(5660300002)(66556008)(38100700002)(38350700002)(186003)(83380400001)(8676002)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Nu2/v2AlRaIe5iMEL1dKDnKWmnmtbrLt9qICGx6Kf2D6DCvHe/3FUMtWfwcU?= =?us-ascii?Q?dAhI5vBZXZB/eS6IIo3GZRRjVwhUPx9P4l9F/cz0mSY3BihFf/EK6L9fnknb?= =?us-ascii?Q?CWQfF+EUyNnfGukcjCxaLf+c0vca48X9NzjXStyT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eHZBX3ZWxFMIHOKCya6WMI836cMgM+5fUHN2WKXE1iBi0UVsl4?= =?us-ascii?Q?ME3nbJfQ/K5FQBisUq0q6hzbemPHj0ACzmYG18oA2lScSjmKZc05lR5r0vY6?= =?us-ascii?Q?qjIyoY6tjF4+qk2UwRwmgSHeMYJQD0iavlcxYoszwo0/S2ixEUahWBlL/Suo?= =?us-ascii?Q?k6O+ushR4lBjl7926/URRox5z0PWuiQ4C9GtPYuihhLO/XWFwamicFRyt/ic?= =?us-ascii?Q?PG/ouYB2tIJEQci6Me/k4VgzfWSUAVr3IJoD/MLFrEKOlYPuVcl15BpOg7BH?= =?us-ascii?Q?HAROF/Poja6QvQx5xXC8UkCBKiJeZ/3LGfWstyWsegp39f1oZS4ADGWu9zX7?= =?us-ascii?Q?1S3xl8aawjvw7asDpZAxYz+ept2MEzFVQ+4sievJwrCPMH6jb6NHXKlKtjI3?= =?us-ascii?Q?40VveqL7YjwEGNK7B6YTyLI9ABx7UWA6JaCajkzX6IoOyQgE8xTjfny8Usvj?= =?us-ascii?Q?eScgtGrbh5LXmmIWcwZtyUAtc4HwCR6C/LP8mLdKKxgRTQQnrk0C3CqowktD?= =?us-ascii?Q?rfZOKQea1U+Y7tdmagKHtq2Wg+i/kb1Ypvd5zZJ5fTmbtNHjVPCw4/JY2yyX?= =?us-ascii?Q?+3/+n3K0PvzV9GceLfpNbaZilR88fRPsDvr6xMp8e4hWHDgG3feBEr4Y0EAU?= =?us-ascii?Q?fUFhUKzt8SXEPsQdY/Kmkc35XBqhry1Kfq33oFVvO0D3srQ/ZukkrlXa+Zvo?= =?us-ascii?Q?UDPgWjN20g=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf3e6162-6c22-47af-7aa9-08da43b2b965 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:12.3458 (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: r8nE1eQTwgb4i/1Fx3Gj5GQBqCIoyItcjX3NIpcLWKfdaPYO+eeEThidrCmzAayH1Dpk08Tqt+Vs5HFUS7Dx+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6498 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan This patchset is to support i.MX8MP NoC settings, i.MX8MP NoC initial value after power up is invalid, need set a valid value after related power domain up. This patchset also includes two patch[1,2] during my development to enable the ICC feature for i.MX8MP. I not include ddrc DVFS in this patchset, ths patchset is only to support NoC value mode/priority/ext_control being set to a valid value that suggested by i.MX Chip Design Team. The value is same as NXP downstream one inside Arm Trusted Firmware: https://source.codeaurora.org/external/imx/imx-atf/tree/plat/imx/imx8m/imx8mp/gpc.c?h=lf_v2.4#n97 A repo created here: https://github.com/MrVan/linux/tree/imx8mp-interconnect Peng Fan (8): dt-bindings: interconnect: imx8m: Add bindings for imx8mp noc interconnect: add device managed bulk API interconnect: imx: fix max_node_id interconnect: imx: set src node interconnect: imx: introduce imx_icc_provider interconnect: imx: set of_node for interconnect provider interconnect: imx: configure NoC mode/prioriry/ext_control interconnect: imx: Add platform driver for imx8mp .../bindings/interconnect/fsl,imx8m-noc.yaml | 6 + drivers/interconnect/bulk.c | 34 +++ drivers/interconnect/imx/Kconfig | 4 + drivers/interconnect/imx/Makefile | 2 + drivers/interconnect/imx/imx.c | 68 +++-- drivers/interconnect/imx/imx.h | 25 +- drivers/interconnect/imx/imx8mm.c | 2 +- drivers/interconnect/imx/imx8mn.c | 2 +- drivers/interconnect/imx/imx8mp.c | 232 ++++++++++++++++++ drivers/interconnect/imx/imx8mq.c | 2 +- include/dt-bindings/interconnect/fsl,imx8mp.h | 59 +++++ include/linux/interconnect.h | 6 + 12 files changed, 424 insertions(+), 18 deletions(-) create mode 100644 drivers/interconnect/imx/imx8mp.c create mode 100644 include/dt-bindings/interconnect/fsl,imx8mp.h -- 2.25.1