From patchwork Mon Jul 24 07:58:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 705903 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 393B6C0015E for ; Mon, 24 Jul 2023 07:54:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbjGXHyt (ORCPT ); Mon, 24 Jul 2023 03:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231318AbjGXHyd (ORCPT ); Mon, 24 Jul 2023 03:54:33 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2072.outbound.protection.outlook.com [40.107.13.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B95F910C9; Mon, 24 Jul 2023 00:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D3LdibsXlL4ZISyQPStfpVC8EvG+Ae69ieHqJHZUdH5BB+Fxn96AepzFwkqKut80LuIZtA+gHnDB3Wpl3wiPaJcgf/WoT7YGVpjpeRhzmoZxV9xONN3ekhQ6N1mBRC5MIaSghQBXaukEhmMRBpOBRZ3Idrr4aX+R8QNG9Cg5+hzfqqnkykhESWmY9ycw68suean9Ii6sQxzUTXLo87VdxShXYR4hq5kpb+T9hwb03vP5nzBE2K6Nh1rcVg7sUv9Mbjwj/bBy6/2I+1FMUoXG33XzAofojDbIEkzIgB/MndEf0hlhisLqMFSzpenJT+QMI0jYPIhRYQBEZJMsyS2rXw== 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=dovzsysI9H+HqSmbCi+EBxmdc4Smf5KwYPkCGCiTKuQ=; b=LMv5DF0wIfM++UG/wvGdIIRQYjlyxguG6snVMEy1V83/JKfPEJrB7EsgVV4VLTjCkuUZytnhdkxL8iT1K2+iFuRn8GRlJBXw3wLvFfTGiztSyZzInpO8fVJDszV2mv42LIk1E9VQTo+0+ZW1MzQ3CU1jlJXO4FKYwQEmcnL1t1RyfHJ/ujY3cViKdLr7pFb5682y+GSxepaBum197NT5vfeyNPSPRallVcRo6L0O0Zc9yTrmdMoEcZlyBtFtzNu1thaAAd1/BIQ30jQUkIT//c1Wp6BeIk77mKKC4boJ86Tw86DYIT/XqDW/pX8FUm7ILUBl6yvx0ALF2SE0tL1OOg== 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=dovzsysI9H+HqSmbCi+EBxmdc4Smf5KwYPkCGCiTKuQ=; b=RGwIHaXKekyiItukzQ9fvLSKW4/gpfoK6kvGxyGkf54FpIcZUdHaTxh1v/uIRV3Y+PJGk4T73LWPoUMl9l5cjTZ8hqMLh3LTaeYBkgv24OEvV9RTbsOeUBeXUeDVIf0qu8g3TBtyWBQRVe3ZmzCMQlWxfY5nqQFGORcllEmXS/Q= 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 PAXPR04MB9445.eurprd04.prod.outlook.com (2603:10a6:102:2b4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Mon, 24 Jul 2023 07:54:13 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97%6]) with mapi id 15.20.6609.032; Mon, 24 Jul 2023 07:54:12 +0000 From: "Peng Fan (OSS)" To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Haibo Chen , Peng Fan Subject: [PATCH V2 05/10] arm64: dts: imx8ulp: add flexspi node Date: Mon, 24 Jul 2023 15:58:28 +0800 Message-Id: <20230724075833.2763190-6-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230724075833.2763190-1-peng.fan@oss.nxp.com> References: <20230724075833.2763190-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR01CA0191.apcprd01.prod.exchangelabs.com (2603:1096:4:189::6) 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-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB9445:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ecc136e-9726-45ee-7b0b-08db8c1b2b91 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /eJc/WPDu+59OQqmLYm5B3zo5gnug7VP58ihKTWMYDlqqqZ4KxR7veudPWtXk/7umr5u0YuGptzsWRGAm99jICi0NijWKoTUHo8AVKpucJ1BupdRbGMVqxm/OlS5d0/yV+yzfTebdierMsmI4+GUcw+Gp4jgPu5IF0Vm56KJsX2V2h1Oc3qF18NBCb+U/4UYvGw/TEX7x/31E9yeffzWS/QiRwiH6tTumGogabftR6UDPbIQ+GPoeTpePuk+nddlFZ2UOIgTZtwnc/NIvufnfhLdnjC6JOJyR67QYZAM6sI9565R163NFo+Z0EMJncugcceuC883z0oS4cxTt/hukeZSnZKpR/W9EECOwqfMQWuC0izJpTHVNJhBP05jYgw/kCx0V3cGHuubX3HsMDzitvwzCoCMam1TKKSWVvbV3nVs/Mr9hpM5Tnppfac5PlIgMtiwQVFAMDkVrPAVeNZXfF5jhUXmxIG1J5DM1kp0cxUSqODd9dfw91HSEB0ivjoK7a8Zzu/YDNYim2Li8WRNI4X/l+xKUeM0yZ9yWAsDGmhdU7pPSJXzzEurFW3wFb+U8mwUMuz1hviCyHZVtECjdooYRonrC/w9E8x6TOxCyNH0qEvZc/Mdf7q0QNt4xQzimxwcRqEE0IqXb3RR7PCd7A== 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:(13230028)(4636009)(136003)(376002)(346002)(39860400002)(396003)(366004)(451199021)(8936002)(5660300002)(8676002)(41300700001)(316002)(2906002)(66556008)(66476007)(66946007)(38350700002)(1076003)(26005)(6506007)(38100700002)(6512007)(54906003)(83380400001)(86362001)(52116002)(4326008)(478600001)(6486002)(6666004)(2616005)(186003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xP3vVo86YLe3HEaGsVOQgijUga5gz2596YGR5zifIGesvPCyjucdW+8E8I9S/IWzEufjVTcNEdop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lFGQGT+FwO4wU+6dcMY04Hx5ekomNMbD97AJJ8SoYkcsBoPuu0yXufkqNu54DAFV1/oM7mteSs+FF8gpZlp18GX6xRqDw+Re0Hj6U6cO3Ix/KZJV80de75DG/kiY8/al0WpG2aSUwC0yXPs2D1q1WFn8LKkHik7h0blC43YZjsh8XJTyk6cecgGmFQd+GrmTIzaYLZSyrD6hHcluTtflf2ZQEbwDiDrAxVCx8qRXQxClA4iNU1R7xWCdbAJqgeKo1d8/jxfnSvO7Uu0dEiSScyZg8tR38i3+sQzBM9IPV0gKOTzTOnAO1TQW0RTIbTgKdvZsGPzMDRb8m5YwOYoxtZLRX6g4jqF9pIhLeLBUXRdYvaZx2jXf5Riaq4vlNtzjzYz6AS9Y1jcnl2o903RpDcklrM5Fj7ktvydfHZuDCaGgBVB0+TU0BjRfLXFtQCr9RV7xh1l4KqwT2UXlXldX X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ecc136e-9726-45ee-7b0b-08db8c1b2b91 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2023 07:54:12.8658 (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: m5vQAhKu+c7SAL64wP8XKoriTasxDzBfgh1dXaXcdofvJZ49tZBX9CufQfcntorb9QdrrN2d+1tBR8S5OV+CJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Haibo Chen Add flexspi node, flexspi has a special memory region mapped to 0x60000000~0x6fffffff. This region is for AHB usage. So add this region to SoC ranges. Signed-off-by: Haibo Chen Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi index 17cbe526a5b0..8a6596d5a581 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi @@ -195,7 +195,8 @@ soc: soc@0 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x0 0x0 0x0 0x40000000>; + ranges = <0x0 0x0 0x0 0x40000000>, + <0x60000000 0x0 0x60000000 0x1000000>; s4muap: mailbox@27020000 { compatible = "fsl,imx8ulp-mu-s4"; @@ -350,6 +351,21 @@ pcc4: clock-controller@29800000 { #reset-cells = <1>; }; + flexspi2: spi@29810000 { + compatible = "nxp,imx8mm-fspi"; + reg = <0x29810000 0x10000>, <0x60000000 0x10000000>; + reg-names = "fspi_base", "fspi_mmap"; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&pcc4 IMX8ULP_CLK_FLEXSPI2>, + <&pcc4 IMX8ULP_CLK_FLEXSPI2>; + clock-names = "fspi", "fspi_en"; + assigned-clocks = <&pcc4 IMX8ULP_CLK_FLEXSPI2>; + assigned-clock-parents = <&cgc1 IMX8ULP_CLK_SPLL3_PFD3_DIV2>; + status = "disabled"; + }; + lpi2c6: i2c@29840000 { compatible = "fsl,imx8ulp-lpi2c", "fsl,imx7ulp-lpi2c"; reg = <0x29840000 0x10000>;