From patchwork Thu Jan 30 07:29:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larisa Grigore X-Patchwork-Id: 13954339 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012015.outbound.protection.outlook.com [52.101.66.15]) (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 B56FE1A8F93 for ; Thu, 30 Jan 2025 07:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738222209; cv=fail; b=nFRNFcqETGRc0aO4XaQE86jxlxzKjEWL1pjjjM4gZY6+KasKKmSdZwizRIFe/yfwKx5ICYi+AfxxuBYi4U3BdwXXSn3H8I1VJH6fLZt9d7Bg2B1yNK6EqZ4oU31ag67lKCG3yaoKv1dagRxgkydDGOQQbnnvA6cxW90pNmzW9Ws= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738222209; c=relaxed/simple; bh=DP1xtMosPXo3BQC9WwZMChzWY+L0g6nrWGzx4zvaBg0=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=XL6Vl8ofVK4+xBc1/c65AxCpk1QEGhomQCJWewDeJZm9Dg+gHjoHdM4oUNeQsQh05fEbGrG2HHteQL2QPgsxK9j/7yiZXWBHaB8+srnuwv2eYL+s6gq/nI11hLdlvtJFi5Q2gK0gHKe7R++3r3jq49tzMEQykT5hjbaMVfjLBg4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=MgRCNLI+; arc=fail smtp.client-ip=52.101.66.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="MgRCNLI+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F76j32JgSXldodc/IpTO/vhm6To0gbZ8EtrW9j5AbxfNtstp/wlgqTcE6nV3jB9cJTs8+pe94apMuabE8se91NKZcjgZhOWlM+QZs+2uJ/IyzPOXRbPl+PfQeR23PiO/AfMqj+JM++CxnyThhT2DDBNpag164qJ25DgREhDDFgsdbBfZkow7x7Ddd+7Wbthe0LSH0xIbrrRtYCla7mAh3iHB8fmfRfHPr53oIh82gjF/K9AUrYzQVuT1AsG/S8gp5Egg0ENe/UIwjwfwSvfctQk4fkCU9yIWbWILvCHUVWs/piNlICIm51nxtb5JDDDrhKfoj8NsT+UJ49ZHKtGARg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=6ujnOnkSfzFJ51SAOBi0KsIohJCclPwqboTH0vHAn50=; b=FlT0/ALo0MY10l4NPIWxR3WAm8B3ln2JGQzZ4c7yHk+TAlr+E9+KbMvDseE7IvkfK6YMqLOjPSrIkYlMw++urkBWQ4wBbj1bxjeEPW6d27iWIVCru75GU9HFSa2bZ/YsglrVrzRXHYG8I3Y1WzJgQzPLeyAZZWviQj7z+WEDVaHfp4sWIAwpSyODYb26+omUOBvwiUWViwh+ZIPYQWZfGa6O0CbzJJm9z+wxezjhqw+EeqqxEJKsj8izlpfYi6XP8Ypo1Bbg9gxfIHSdYTjU+YPjDP4iqVkkzG7OtxzXwF+YtVaCdHABVv6n7vHLwSMyvn6LP2dxT84AADNxcuoyNg== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ujnOnkSfzFJ51SAOBi0KsIohJCclPwqboTH0vHAn50=; b=MgRCNLI+SNFb8JmAwtQcUXjpunLUEgMjh8Dq1G22mtD+lRy6fRLf3pLPHEHVj1w0A0NH33Qqi2eSYo1X6GC7RC4WB+3CUexb4OfPszr+rt2m4DTVGjIVjbusLMK0C80zMICd6JTVLCsdWcnWMp3mLtPLKv6q1YXO+3weBi2Yn6fCyVjlXY6fXwMwN82xPZmwZZ/blx4wr7PSlA+dBB/Gcn+JjueX5P+/2eGEsT41tPvb3PT1bPPKk/pm0NjsKKFNFRBiioKE5/QL0B0xTugWdlGgw9lHsscoKxGuJiwW/pM/VdRO8pDHD5xORihkwQ6VSK7VrQ67O3eX+s2wjLhGSQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PA4PR04MB9567.eurprd04.prod.outlook.com (2603:10a6:102:26d::9) by AM9PR04MB8487.eurprd04.prod.outlook.com (2603:10a6:20b:41a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.23; Thu, 30 Jan 2025 07:30:04 +0000 Received: from PA4PR04MB9567.eurprd04.prod.outlook.com ([fe80::83be:fff8:5a00:a515]) by PA4PR04MB9567.eurprd04.prod.outlook.com ([fe80::83be:fff8:5a00:a515%6]) with mapi id 15.20.8377.021; Thu, 30 Jan 2025 07:30:04 +0000 From: Larisa Grigore To: Frank Li , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan Cc: imx@lists.linux.dev, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, s32@nxp.com, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Larisa Grigore Subject: [PATCH] arm64: dts: s32g: add the eDMA nodes Date: Thu, 30 Jan 2025 09:29:51 +0200 Message-ID: <20250130072951.373027-1-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 X-ClientProxiedBy: AS4P190CA0022.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d0::14) To PA4PR04MB9567.eurprd04.prod.outlook.com (2603:10a6:102:26d::9) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9567:EE_|AM9PR04MB8487:EE_ X-MS-Office365-Filtering-Correlation-Id: f7f44163-6840-4bfe-4ae8-08dd40ffe9ea X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?KlsdqWSv3DCe+uY3grQyw5cqC8yEUI4?= =?utf-8?q?z8TnFjDv4USEvGKE7RxVGXVo1Ryas93/JO42jUOXzsFl3K7s9PZXJwhYNS9P8mQGC?= =?utf-8?q?6RpXfDvcEwYT7cywq0L40GW0s4rMe/5nPoZwNCLCgPLaS2Jw6mFWBQ9+0QyL40vfT?= =?utf-8?q?QCPA5yyiSUPhw+CV4VwUaWyY1Jt4mj8tYAm29clmOQOZlYY+9MPg9xMpQQoTOKkPA?= =?utf-8?q?fg4J/SzPx+J+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HeK+2cIm/6tITqypTWpJE7K/z5uITlCH4Z/353?= =?utf-8?q?TGg+fEPtWHQgnSMA4L2csjXXYByp8601fEQllCaWoimipbB2W+bS3SOh4shXYAQtu?= =?utf-8?q?i4O2O+VfgGTR7nozTkgmsDA2dkuZKJ3anrfQRFWAhlEMyEVaGgwuDRD6WPcOmXiS1?= =?utf-8?q?hiiIRMAyCWIsqEopMbTbwqMFe4JZVw1AtO2ZWkM2Ac06akamFBOHKu8b4pOfdw5/6?= =?utf-8?q?TkfORtlvsTkV?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9567.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?MazrqZ6QI8X716u4pTRGvK+lTyhk?= =?utf-8?q?mspk/P0ipHUs1oDn5Ea+iM/hMZdpnZDoCRt2iqDIqmPWfqict687DPePdKvjZg+Vr?= =?utf-8?q?/c4b2a3pguDtHuRFCkmsPlEA7MDTO/JnFiweMq5bPGJ2F9Q6raSrCbbb2zqDyG4ln?= =?utf-8?q?6cjd0o0n24IHexOUdvYB2LnxSpGM1ii41q3ALKwIHr4vWDx0RIDqBpYRPHxKhUsCu?= =?utf-8?q?uk254MQ/iENDJu2xmrvBU0xMc5ssX1jSndk0w7e8jvLnExCEbmkte6aqVz9RUTAs5?= =?utf-8?q?ZFy0TjJQMcyGouX2BiXw7GbTOCxjMOb2xI09qa3rQblRZwveYSsvYPlQzNFZNz/xq?= =?utf-8?q?3BQp70iS2GexVth8aKx9JNKnBzy2d/r7M3+9rH1C2t9irOSnHvTpJIw7ZWSSpyzbZ?= =?utf-8?q?amSqoGJHX1uUEOXZ0GCh02f2fFK7NESYuPKvBOWIXX/Ir5RKo/jsnPumZHIs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q?uzB+85zqknYEBTvePm8dg6CJxRp5oQc+VjFwBcwstMDs6fKctPXVsgcw8ZzX7NHhs?= =?utf-8?q?aZ1sgjNBxfqLEjf2EtH5GOvFRP9KEeHj1A/24q2qqh3x9NalnnCulawLf3KqY4SXL?= =?utf-8?q?tAd7dIsNBpILOP74rHSYj/N2Yt6R4TsSHJDS5OC+/W9b5zXqO6E10FL6uYdJcy81N?= =?utf-8?q?EXYfFAsS87yE?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f7f44163-6840-4bfe-4ae8-08dd40ffe9ea X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9567.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2025 07:30:04.4902 (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: 9ib339OD4LoEwqRhFu3Ao0/hPXEdvAFCYel0KpH5WKtLnwbbRAclyetvfdSUzBeZNIHLrfLBO9BovkaIAJp/Mg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8487 Add the two eDMA nodes in the device tree in order to enable the probing of the S32G2/S32G3 eDMA driver. Signed-off-by: Larisa Grigore --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 34 ++++++++++++++++++++++++ arch/arm64/boot/dts/freescale/s32g3.dtsi | 34 ++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 7be430b78c83..f73cd5a0906d 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -317,6 +317,23 @@ usdhc0-200mhz-grp4 { }; }; + edma0: dma-controller@40144000 { + #dma-cells = <2>; + compatible = "nxp,s32g2-edma"; + reg = <0x40144000 0x24000>, + <0x4012c000 0x3000>, + <0x40130000 0x3000>; + dma-channels = <32>; + interrupts = , + , + ; + interrupt-names = "tx-0-15", + "tx-16-31", + "err"; + clock-names = "dmamux0", "dmamux1"; + clocks = <&clks 63>, <&clks 64>; + }; + uart0: serial@401c8000 { compatible = "nxp,s32g2-linflexuart", "fsl,s32v234-linflexuart"; @@ -333,6 +350,23 @@ uart1: serial@401cc000 { status = "disabled"; }; + edma1: dma-controller@40244000 { + #dma-cells = <2>; + compatible = "nxp,s32g2-edma"; + reg = <0x40244000 0x24000>, + <0x4022c000 0x3000>, + <0x40230000 0x3000>; + dma-channels = <32>; + interrupts = , + , + ; + interrupt-names = "tx-0-15", + "tx-16-31", + "err"; + clock-names = "dmamux0", "dmamux1"; + clocks = <&clks 63>, <&clks 64>; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g2-linflexuart", "fsl,s32v234-linflexuart"; diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi index 6c572ffe37ca..ca8b50196ceb 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -374,6 +374,23 @@ usdhc0-200mhz-grp4 { }; }; + edma0: dma-controller@40144000 { + #dma-cells = <2>; + compatible = "nxp,s32g3-edma", "nxp,s32g2-edma"; + reg = <0x40144000 0x24000>, + <0x4012c000 0x3000>, + <0x40130000 0x3000>; + dma-channels = <32>; + interrupts = , + , + ; + interrupt-names = "tx-0-15", + "tx-16-31", + "err"; + clock-names = "dmamux0", "dmamux1"; + clocks = <&clks 63>, <&clks 64>; + }; + uart0: serial@401c8000 { compatible = "nxp,s32g3-linflexuart", "fsl,s32v234-linflexuart"; @@ -390,6 +407,23 @@ uart1: serial@401cc000 { status = "disabled"; }; + edma1: dma-controller@40244000 { + #dma-cells = <2>; + compatible = "nxp,s32g3-edma", "nxp,s32g2-edma"; + reg = <0x40244000 0x24000>, + <0x4022c000 0x3000>, + <0x40230000 0x3000>; + dma-channels = <32>; + interrupts = , + , + ; + interrupt-names = "tx-0-15", + "tx-16-31", + "err"; + clock-names = "dmamux0", "dmamux1"; + clocks = <&clks 63>, <&clks 64>; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g3-linflexuart", "fsl,s32v234-linflexuart";