From patchwork Fri May 17 18:09:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13667288 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2055.outbound.protection.outlook.com [40.107.20.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09EDD13F00F; Fri, 17 May 2024 18:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715969444; cv=fail; b=s73Mb+xsQofstMLzsacEqS2nrP82N9gkSmUIGfbsNMAp/L2gjL/p0CCt4pxGyN983LAqp1lko3rm7a42UhZ3vV0jHvunRS2wS+wKzpjaEw7rm02+xghl8F5GT2rdXPwenevjEBJE8Xj7ulwgmx7gpUjEr2lu85d5Z2KVPPj8qp0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715969444; c=relaxed/simple; bh=tEWFhDjhtUKAug5WAg7nPU6hg6Eu3mFZf5v7yoTqdyg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ql9DDrrh/xfQsLAr/g/QrQjaZKC1FElsaxiARz36VRQywZh81hv/KLz76a6C/MhXFSmK2T556T9LhuFLYwlMb1tuvzlN+0qWHIg/fku0IM3jGl8x/Se/8NTh/oooky+lYdOmGRwunAtJtW/eQjlg7mAIvBQwwh592ju1CQcay6U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=r/ktXj73; arc=fail smtp.client-ip=40.107.20.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="r/ktXj73" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aQ0f/+IggWK0LXT4nopLmIdSz0hM0uX3dgcPxntlzEkW6dFVifNA/6ktHlVwo3C8/8TlvBFn7ekd4KlCAI2+76YXiWSXMHOE4ko/o6mefp/BMLu/fr6IMbmD2XBq37HTtlet32O+357Q4yDBtFD78LQkyigEP5axTYaDWB3PtTFy/yU9pJlI20pazqLLoGJ29MDhK5LSUiZREN2OWtR95rh0X0sPbp4OkBLugFtjayJwLx3fpszTLZS7zJLjOql94jFRxpW69CGd8ekFP17JoIefFRVbh7LmTts3syyfgRIbRoMC0Us/VwudEW/881XKjWR/MIWCyeUXetUlB4ZVsA== 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=frIX+JJp9RbZncA+FJ2gAHvej7lxIMqz+pvAH4izM2s=; b=ia/dSugJe8ttO9ZwK8pa3SH8Iy/C7yOKeM4se78kPXILFp+ARZeGUo+iPOva1U6LLIbpMKoDHw76A/rQ+jASuDdvr06R+WVX2OqSLz9kEgUR4PhdzqXupoc5OXzdmWs85xHV30au0mPmQxygd7s3/6JQdJ+doIFfh4ULwDWrF7QMJXv/0nlcxkqGRUtP2s3L3vPpl2lG+Bb7bCNHklESOzlKe33PQKC7O78WICqK3s63yyLUwGoS26AEvn3+QA8dv8kZrVNvBq5Ugm+myI7qU61FoUum+LYO/BXoRdQVNL/5HJbqYys/hanjR78j0FcldC8SVfcSu/Kb+9JukmTCyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=frIX+JJp9RbZncA+FJ2gAHvej7lxIMqz+pvAH4izM2s=; b=r/ktXj73uy4y9Jvq+FYrqegg4qmctVKZyI5a9wcLcVJz8FFy5nPf2QgONH1BEe6ojSBl+/A6TptkLcgqOsxGq2/RUm2vEE8PM60t1bg83orOEpCr/ZkJToPnslSkNcwaB+aUhyUFaF4sOM4KmK4uHlrvtswWv9hShtqwAcuRW14= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AM9PR04MB8955.eurprd04.prod.outlook.com (2603:10a6:20b:40a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.28; Fri, 17 May 2024 18:10:39 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7587.026; Fri, 17 May 2024 18:10:39 +0000 From: Frank Li Date: Fri, 17 May 2024 14:09:51 -0400 Subject: [PATCH 4/5] arm64: dts: imx8-ss-conn: add gpmi nand node Message-Id: <20240517-gpmi_nand-v1-4-73bb8d2cd441@nxp.com> References: <20240517-gpmi_nand-v1-0-73bb8d2cd441@nxp.com> In-Reply-To: <20240517-gpmi_nand-v1-0-73bb8d2cd441@nxp.com> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Han Xu , Vinod Koul , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Marek Vasut Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1715969417; l=3045; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=tEWFhDjhtUKAug5WAg7nPU6hg6Eu3mFZf5v7yoTqdyg=; b=AB60P0ig0zclmR0efXtybW2Ldf9p0om00y3oMQxbLE6UYFohVBbG5awXIvpM6efyzoVBtcNDC 8VIMCVUJ59rDW88q1b/EPq5KEgkm7tusdw0nocST1zwcJNyAhLNLHJP X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR07CA0068.namprd07.prod.outlook.com (2603:10b6:a03:60::45) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM9PR04MB8955:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e3df053-d2c3-44ee-2321-08dc769ca8a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|376005|52116005|1800799015|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?RMgzeCVDbCfJ+X/GZoI4dLf9DyAzNCM?= =?utf-8?q?isSRXcwR1Ayx4xJY0K+O2iv26H9ZGK/2kSW3TiQ1tWZj2JuEl7RDfiX1+FGc+d3iL?= =?utf-8?q?gqIkG5f7LWGIFhEqA1SE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JT8Ld91ehJBAuavLvPROd7fDFpbnJKWeqmo8YnH+tF4?= =?utf-8?q?ChE3bMug9Hzp6pzrywzorQRfwMeSVeqWwzGWlMpdSPlvRMWmxa9AS61Tw9dejmOf9?= =?utf-8?q?sUAWICubGsEqR4PzLCEHWa9TAFKmgazxEJ/gFZeQ9QOd+UQJVZWObeGE0px05B/9B?= =?utf-8?q?pZyxOz6EbF/F9m6wTTjq/w6mQqQrGG5mkCRAn6+YTCIgkujOJ2QVxZ9b5H1/4E3Bf?= =?utf-8?q?TYfjkJZDhRoVzH1ITrRBjfizjJCgmu+66db7sphj83U6E5SGyb6mfyJT31YMbzRYR?= =?utf-8?q?qj83YHaf6++wdqqushayXClcSpa8uSx8+Ug=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(376005)(52116005)(1800799015)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?QgGetlrHUCNOW0Mgg2DrtID7qASD?= =?utf-8?q?qRe+aA5PhnRXF3Q6glT8wj8xhp8Hxf00VLz5ZiqZKbGxn+JHxNkxVL1bKrBCI/qyb?= =?utf-8?q?BHcS9trn38kd3n8lc7ysA/o+/DSHWaJcN2dj3EFF331bWmobAA0XGrBm14N7m64Vh?= =?utf-8?q?GQnGqN+MScsQl5UoXN9RW9OiXShQBhpI6zOq740MzW3WrQs7A+ZdxMvlBFaA5mbof?= =?utf-8?q?6GtsoUR3oR39ClwIwHaJM2SRd6/ICA2qVzuP4IKG9C2+4P2mewNYyhChYswHU8b6o?= =?utf-8?q?oXka1KV05eRLKMjGEvEzTqWL0DLa06NoV9aI77QPYsxaxY51fHa46BpTpw+1rN04P?= =?utf-8?q?A2rVgUWDhorEiN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ddOeByu8BgFtJI5F/i5wDlYodBNRJDVo5a/2cBiuqm2Sx7Lva2d6Z?= =?utf-8?q?pGJH9Z/HtSOI5h5lRiAOynIGvo5EkW4RL/wNJd1ZbncX0PH9xQd/QNwrOUpMZLGsF?= =?utf-8?q?4/BLgCDkq4yQbsRX5D3nSelAYdAKVMpiIbcP1+iHBRwgTBCT564GWX4K9Q05+mNuK?= =?utf-8?q?0YNnBmxpedvP5p7XozeF2GXJtPDdaKGxNFbPJV5W8xIAI4Oan+6sZy4qvGN1khOKE?= =?utf-8?q?+nzziAZLBBTIio7CpC0nY7WDZEk4//9RXOQjdW7TwmC6ExZfMQrUOH64NQVXlNKBS?= =?utf-8?q?06regVGf9pb6?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e3df053-d2c3-44ee-2321-08dc769ca8a0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2024 18:10:39.6630 (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: 75A6uUJWw4/g8eAHo+eV5oRnIoXP/qco6ZtHwd7ikDr13Y8yW7io1aHCbfI8ZSpc9a/xDIkdV96N0e9IPmJ5gA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8955 Add gpmi nand support. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 69 +++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi index 4aaf5a0c1ed8a..a4a10ce03bfe0 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi @@ -28,6 +28,13 @@ conn_ipg_clk: clock-conn-ipg { clock-output-names = "conn_ipg_clk"; }; +conn_bch_clk: clock-conn-bch { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <400000000>; + clock-output-names = "conn_bch_clk"; +}; + conn_subsys: bus@5b000000 { compatible = "simple-bus"; #address-cells = <1>; @@ -302,4 +309,66 @@ usb3_lpcg: clock-controller@5b280000 { "usb3_aclk"; power-domains = <&pd IMX_SC_R_USB_2_PHY>; }; + + rawnand_0_lpcg: clock-controller@5b290000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5b290000 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_NAND IMX_SC_PM_CLK_PER>, + <&clk IMX_SC_R_NAND IMX_SC_PM_CLK_MST_BUS>, + <&conn_axi_clk>, + <&conn_axi_clk>; + clock-indices = , , + , ; + clock-output-names = "gpmi_bch", + "gpmi_io", + "gpmi_apb", + "gpmi_bch_apb"; + power-domains = <&pd IMX_SC_R_NAND>; + }; + + rawnand_4_lpcg: clock-controller@5b290004 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5b290004 0x10000>; + #clock-cells = <1>; + clocks = <&conn_axi_clk>; + clock-indices = ; + clock-output-names = "apbhdma_hclk"; + power-domains = <&pd IMX_SC_R_NAND>; + }; + + dma_apbh: dma-controller@5b810000 { + compatible = "fsl,imx8qxp-dma-apbh", "fsl,imx28-dma-apbh"; + reg = <0x5b810000 0x2000>; + interrupts = , + , + , + ; + #dma-cells = <1>; + dma-channels = <4>; + clocks = <&rawnand_4_lpcg IMX_LPCG_CLK_0>; + power-domains = <&pd IMX_SC_R_NAND>; + }; + + gpmi: nand-controller@5b812000{ + compatible = "fsl,imx8qxp-gpmi-nand"; + reg = <0x5b812000 0x2000>, <0x5b814000 0x2000>; + reg-names = "gpmi-nand", "bch"; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + interrupt-names = "bch"; + clocks = <&rawnand_0_lpcg IMX_LPCG_CLK_1>, + <&rawnand_0_lpcg IMX_LPCG_CLK_4>, + <&rawnand_0_lpcg IMX_LPCG_CLK_0>, + <&rawnand_0_lpcg IMX_LPCG_CLK_5>; + clock-names = "gpmi_io", "gpmi_apb", + "gpmi_bch", "gpmi_bch_apb"; + dmas = <&dma_apbh 0>; + dma-names = "rx-tx"; + power-domains = <&pd IMX_SC_R_NAND>; + assigned-clocks = <&clk IMX_SC_R_NAND IMX_SC_PM_CLK_MST_BUS>; + assigned-clock-rates = <50000000>; + status = "disabled"; + }; };