From patchwork Mon Jan 13 11:05:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13937165 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98987E7719E for ; Mon, 13 Jan 2025 11:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TwQtLGG6+CwJTzrSpr9B3ctoEYlM4IqJYutipWDYHe8=; b=QXFuVCPaQcQzvQ7XakcEeCplXp N0qmQafPTGQu9yu2US9+eMOL21JlFNvusoJHTqa4j+E7Ke9feXHyYHEzqJy50vK217iRAh4foc+yY xl5OOIcM/naUJ8XjlA9LMlDsglTMfWp5CeOVpL8rsQLX8e466GcQpLYp4bN6pTepgtBUjGBTikTuX i4dGdJ6KNEABcWkMDYVWwsHx8gFlrncDSInPD8Vv+1d1TMDQM5FiC52DeqVInkxp7JusEmMbk1/iE 0gseYzdMwQsmvgvGahgaSIh0WuweZ7PuQdYRC+iImoSW/ewoLz+nyOypFKbv2bdr7jkinV91Auomj I+yTx5jA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXIKC-00000004rUl-0y14; Mon, 13 Jan 2025 11:09:40 +0000 Received: from mail-vi1eur03on2060a.outbound.protection.outlook.com ([2a01:111:f403:260c::60a] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXIG5-00000004qfr-3iza for linux-arm-kernel@lists.infradead.org; Mon, 13 Jan 2025 11:05:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pquGuyMVSv1yhWzsd7Xa3ZKAoWqCxP6lxwDyAbHTAJ+2gjD0iEbT84K4+f7ngYQzxtfAHBALh6OiWX0WBL659rfnBFvZgakfi73jFeoo7217B6VbYJPWmVp5W5O8U3KcJFByrZGPWI+uzUg5lGxvtg9ZBEPZ4m3hqd5MHDuFtoaBd65c5AOg9yet9DoUVDApS+j8lsttTiEdGPY54tBMO5aMAOKMgjGBslzV79XvGykSzTUKOtje3de54UHTmgJ35Tr6B+FVqVhxlrvA1MXzIB2RCj4O8fyYfNdgJUpeoSLV1sb+aLGtGu2bnNG2DQ6P7kffz0O81sUpGo2xFhX90Q== 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=TwQtLGG6+CwJTzrSpr9B3ctoEYlM4IqJYutipWDYHe8=; b=mmnyk55CXmCqVm9nzAy80JqKbxMth2RlNg8aS09V6FKmUoIgGjTihsi6D0kR/l6Znw9lkl5B36Id3xsfRDgl3mAVYysNNfuzWtIK1ujUqQ5/QfCMMWR9IFp8y7b2QAdhhwrqeVXJ1V9mod6nXS8IFv34g8W4fGN1LzQd8wRHq37IFTH0ACHaUYDoTFoPzC+/NHEuEU7C80PXLC4HV+ShZkrhLgNvmkD+U8OXCPxLC4GbWagN47qYdi80aptQNSk8zmxvCUYWdtqfLHDwypK1jXAwnZCYDIMVmD7mBDpD+sDxy98U9OBLw6pzGF7XWj1P3DUGNi7onRIBv0hKwBYT1w== 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=TwQtLGG6+CwJTzrSpr9B3ctoEYlM4IqJYutipWDYHe8=; b=rSxXtwxDqh9XUvblo30X5SB3iiwTtUcxV6DMj8BRfxtVLdWlGSMWr1MUWCQoAV3NLQU32cXMJ7JaDi3WaJY1fPoSLOfzJScSlDKgnzlJchKdaQtnUyC7svZnlDCtWyG3OsjzuSher9fVgCxdC8LmHoBZxomj/H77QloQ5RusK1mx6GOv3/VICk6lvtDvE0tDuq4kdm11A7lz4Osf0AJ4ZmDeZx0D8gpu49KP/AQ4ra61rhytJOy0vrjvNCJyTbI7sI+2su9i8Cft+wkHPxqGPM0LO86GZhl3rtUpegHE9c93OGcGJNxYgS5cCa5nomX34MVM+I4ZThlGymyNHkHWkg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by AM8PR04MB7425.eurprd04.prod.outlook.com (2603:10a6:20b:1d6::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Mon, 13 Jan 2025 11:05:18 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8335.017; Mon, 13 Jan 2025 11:05:18 +0000 From: Ciprian Costea To: Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP S32 Linux , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v5 1/3] arm64: dts: s32g: add I2C[0..2] support for s32g2 and s32g3 Date: Mon, 13 Jan 2025 13:05:10 +0200 Message-ID: <20250113110512.506007-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250113110512.506007-1-ciprianmarian.costea@oss.nxp.com> References: <20250113110512.506007-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0002.eurprd07.prod.outlook.com (2603:10a6:208:ac::15) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AM8PR04MB7425:EE_ X-MS-Office365-Filtering-Correlation-Id: 28522e5e-fdbf-4b33-bfd5-08dd33c22a59 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|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?nPHxsVJY2MEpBaVjDiOffSCYAqdXkCI?= =?utf-8?q?cbNDn4wpr7Cuur+8Wb7FkYYv0UjZvjDUEU47Vt+UDSy6PAzRtNJpudft3uObM1Lh4?= =?utf-8?q?As6OOBdm+g9rmNtYJuRLHAVu6/K/i4OXM9omhAu6knxhDTicdfPV7PPVUUFdURV+d?= =?ut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8?q?CbrUljvOhCt56+44Ztadl0BCBV8c0ldBj2hS7jYIDMKfe0p/eoWAU0bzlYyojNj8Y?= =?utf-8?q?EjHU2qz/7kQ5SrufmmCPxBbTiF3i6oUmyvHakfk5CszO92/LEkezlAvJrHDiCgKp8?= =?utf-8?q?K/O4695RbKeQKdB43GhtN4jA49j1EpufnJl8WcAkkWNEbiQ8CgUXTWjb7dYdJBE0+?= =?utf-8?q?DVWeu7wuzTamGJoMgPli9hFHN/qp1fGkVbcGq+Xa6/DvB9bYsmX5i08BcITNPv4d7?= =?utf-8?q?OEt5lBNsfjG31vKSntV9wM8FYDKMLH/WEveZ+f2w52L016oj4NHRNJkNzSF8ZVKF+?= =?utf-8?q?h9UQvbRDK2ZP?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0lWVMKn7vQRq0b7F03X8qhISRrXO?= =?utf-8?q?MR2z5B5ZNq+XIHkAZgFMkoR4kdImGizDY6c/6LCY85oWojIiWnJLo6WA1VSExjkLS?= =?utf-8?q?/XbvNiTtA0m2CXRjv7lxgI5yVw3qJzrEjaDJMyybONX/1/PsZadhVTpZr0gGPgQOa?= =?utf-8?q?e5fTIs+cnDGuv8gykfgzM6vU1yVSD/hubTxwaSZN8LhPux6MMGV8GCmkzaXUFEyH4?= =?utf-8?q?ezk74c9udy8HpnibejtaOoBKntjdBLR+hUCARMB2xzCum7KbWr+rwE8Kz5lC01h0I?= =?utf-8?q?uzrgeXpPKq1hLZCdhsKVnaJZBAFNdADSl2Z3162zJ+2mtvYLKZKosafFY4YHSUtBh?= =?utf-8?q?oaoJuDD+Nvvvi0xHVu2wk7R+Nxsqo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gqd+8bZ+XbRXNaahneyhS5QczQW?= =?utf-8?q?3O3hvzKcWmHMmvLj6+BPPmNasPExmjSV0eYEWeSRwf3omexcwYkFvt6I9OYwxTmp9?= =?utf-8?q?wX/31gOrGi3EXWiCJFZWB02oOz8j0ZIcL6WctKQefm+qAo45FzfFbbUGv7M0ueepM?= =?utf-8?q?tEMVdTGEi143jUsnjMIpzDByKhNvkIhMeYDgPf9p1B5DbYOZlrbclXNgIFbOkgNxw?= =?utf-8?q?i8kPp4YMhUpovgmxqpB/8RVSy+LJAJ4wsCjQGczvwZX18P5E0YSNkhKrWgDoQWSJO?= =?utf-8?q?CtKn3crN19D3aHNnrTHsUStorPBprfPBeg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28522e5e-fdbf-4b33-bfd5-08dd33c22a59 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2025 11:05:18.4941 (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: xa8kBurFawboDk1H0eLDqC13XfGSx2CtOlYowtTuHgWj/sefQgy8//AC/MwiyNAh/x+8mgRwT0BvxfUQiehqBbO17DEluX7vtcpWCjKfg+E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7425 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250113_030525_933050_90633823 X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ciprian Marian Costea Add I2C[0..2] for S32G2 and S32G3 SoCs. Signed-off-by: Ciprian Marian Costea --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 55 ++++++++++++++++++++++ arch/arm64/boot/dts/freescale/s32g3.dtsi | 60 ++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 7be430b78c83..beae4d5cf54e 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -333,6 +333,39 @@ uart1: serial@401cc000 { status = "disabled"; }; + i2c0: i2c@401e4000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401e4000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401e8000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401ec000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g2-linflexuart", "fsl,s32v234-linflexuart"; @@ -341,6 +374,28 @@ uart2: serial@402bc000 { status = "disabled"; }; + i2c3: i2c@402d8000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x402d8000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x402dc000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + usdhc0: mmc@402f0000 { compatible = "nxp,s32g2-usdhc"; reg = <0x402f0000 0x1000>; diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi index 6c572ffe37ca..79b38cd8b142 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -390,6 +390,42 @@ uart1: serial@401cc000 { status = "disabled"; }; + i2c0: i2c@401e4000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401e4000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401e8000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401ec000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g3-linflexuart", "fsl,s32v234-linflexuart"; @@ -398,6 +434,30 @@ uart2: serial@402bc000 { status = "disabled"; }; + i2c3: i2c@402d8000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x402d8000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x402dc000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + usdhc0: mmc@402f0000 { compatible = "nxp,s32g3-usdhc", "nxp,s32g2-usdhc"; From patchwork Mon Jan 13 11:05:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13937164 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DBF46E7719E for ; Mon, 13 Jan 2025 11:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UdNn4snXo6oooVofIwLnFGavxhgfW2ExUaOQfZOcC+Q=; b=XpgJALaRa4173bSKVS1QOZkMww GDKM3Fjm186SRGEU3uGSCVJcIQn3ZCkYE8BYj0XTM1eY7WT4LqTK2QH0NCPa1jSO/ZRHH3JGz6RQh kKjQqAomoOExQgS3oT0uDo4YlPh9vHibGiWtqBI8cSx2E1LZjy7fYJ9KObVW6VDXyBGZFHEMusbAr xdgL0f44dDLpDja2same0sgMBpP/M32AwGR8ELm2s3RgsR7PvWUAGF59SMpVFetJ3DAsVWLuNKgkr giRxk/ZakoR9qGj0vi9Xc9ldtz5PXDTnMVpzio7+sTLYipCemoutdgoXBtvPtN8l9cX6lrdlpdZzG cxnX/9Mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXIJ0-00000004rJN-2S1f; Mon, 13 Jan 2025 11:08:26 +0000 Received: from mail-am6eur05on2061c.outbound.protection.outlook.com ([2a01:111:f403:2612::61c] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXIG5-00000004qfu-2dmF for linux-arm-kernel@lists.infradead.org; Mon, 13 Jan 2025 11:05:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cb5Wf2/qZHbygW26+UpdOBorGPnsVSEANBRKp1L1TuujEhPbU4Bs2QxTf+m+nlYzi3Jk71ogUATsF6FJex1KfTmEgGDf+xZn6Z1NiWS3HZAioxMY32wi/fkkMkqWCbyHjicgpjCrCkQzFqhJZrNp5mQiTcuIK8ePZ2XlKM23d8bdxzREc1L9wP98GKOQCjXkNNwmd/64LiqY66bGweJZd49waPkcvWNBnHNwWmhfeJ+jQ37wIPO/5+6z92uwoiqAJJweyd/mS/tpx6LlP/24VHzj2vPW0sWJHi0NfcPcJDmcN6zCgNGGUGM7g3Id1ssbEGp4j6EC4cReyb1UHUibhg== 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=UdNn4snXo6oooVofIwLnFGavxhgfW2ExUaOQfZOcC+Q=; b=rXGfX8NpA7Pl0I7N9evF+6tKgTz29mry+pvZB2TKlUwXK6C9cuW3wUJkP594sXWqiiZRsPh1MsiApABPcbMJ/IoNgmhfhQApNMQlHzn19DyubtMOgx3ARQCUUuTovkYb7hcg+a5ZnKo6eLRhHYMcKVZZbS1jMLWZvjHnFFU3kTHgxLUr9WBhUkHsOHq3PLIbO7e4v2rrCv9EQ1gJa6dRw8tYTZCbfn1QQ9znezCLPe4ni0AxTfM6afg7K9Nk1PV7qp3gyakTKHv9dkxrNYKQ8Tnuv4Hm5VTT7X7RtpH5tLGH3DwtSZMmQTwDlBxk3nTs9NPOQ0VXuI8Sp2SV0Jzbbw== 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=UdNn4snXo6oooVofIwLnFGavxhgfW2ExUaOQfZOcC+Q=; b=iGuKK3BFLhRijDYByf/PpaO87wcJFVV6QTyd9bmFzd1/Y5wnAMqIWT4tGwcOYa+CWBFEup+G6iRIBd245m3SgRWHutJaCpJvP5rpz3aDGml2M7sIiLsTpJ/AqZnYEM8FHKThOlxXzNexH3I3tGlSmQs1/gSVoEQkqXyO86bAD95wQ/zJW98vNHAxqiTH4wrHdjjH/ScQwjymyidn5YNgnGz9fd1XUxv9dbezZ6Ppoe3R3ytXeEXDOx4LbctUW23+wp8twZPZoGZev76vjAVpn9e+KGE9qvcfNbaSHjoTJaqTbM8J6wrjFc6XJ0+dszmkuDGky/EaPacZQ6VZJSa+7A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by PAXPR04MB8389.eurprd04.prod.outlook.com (2603:10a6:102:1bf::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Mon, 13 Jan 2025 11:05:20 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8335.017; Mon, 13 Jan 2025 11:05:20 +0000 From: Ciprian Costea To: Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP S32 Linux , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v5 2/3] arm64: dts: s32g: add common 'S32G-EVB' and 'S32G-RDB' board support Date: Mon, 13 Jan 2025 13:05:11 +0200 Message-ID: <20250113110512.506007-3-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250113110512.506007-1-ciprianmarian.costea@oss.nxp.com> References: <20250113110512.506007-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|PAXPR04MB8389:EE_ X-MS-Office365-Filtering-Correlation-Id: 60128616-6a45-4b4e-ace0-08dd33c22b66 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|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?OkHcfXGv9DVP+Xcvf1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UywU0giH3X1mgkFdgm5kCYwkkOY3Y?= =?utf-8?q?DAGK9MWQBwpXbvUtJdVI8QSbSrNh90e+LcCUq9JaE0FCaTm1EixLwqqlVgtC7br9H?= =?utf-8?q?WddBcmzPuORHplzlp8fnzBG5PnKNR1th7WYxpqsUIcm9sDc1pTNbegHn+2xYdAfkR?= =?utf-8?q?IZdgj4HH5OOok1ugeX4IqWq0Xx5pZyAzTBq4XH7m9beDfxcLFonT6N2+zQwGxTlba?= =?utf-8?q?RldUmN0WGdNzC4hwg0B5LQOjPtBt9wnAy+pKqpPqwNV+EF3F+WvZT3WnT5Flnmf71?= =?utf-8?q?3yPyrX+OwfUHE0amdI2//unuAQuKQ1z5pkYUx6lltaBoDj7mzvEjWUM+6uzowGFHE?= =?utf-8?q?MJcISoWo6Eq4Yi0DKlRVV9end4woltjvUsSoLcSDCBr6yUVyk0p1E9rcIUyL+1kAB?= =?utf-8?q?h0gXuh2S5hrw5h6g/0GW2liGYAU3En3bXviFlYzqqKDfgzTAanlE4k4200viq6+kG?= =?utf-8?q?i47064+ESmR4?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?y8yWkQT3obrWAGuh9HEmHMjmitoK?= =?utf-8?q?xL/fic2s+X1pm/NVO+rzY6ie8oNa7uf+sZF4gkGkdbZTXOCT/vF79r8vfFQDqNXa6?= =?utf-8?q?JjBj6UqIuHO8L17CTZ+vlRbE9JKnOgGulcSo6YOAhcjnfdLO6fmCW/Z9+cV8+kxxq?= =?utf-8?q?ss3v7YyusKGhV6ipEj9re5vtScH7WaHvoST7YjNJk90r1E400iP+u3GKM7ECC3KKx?= =?utf-8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qe1XEmN6K9Qh52MjKDBdEAK8KY5jicX0qKM1ubsEqhrbO0iXVMh01?= =?utf-8?q?t6hhjFGBTbe3SOlP4N07FtZn7UlJM3bTmszEPw03+UGYfIQXUe54gWnPPpETKXJZo?= =?utf-8?q?AJWNpGKuhkktSpzToM5KPTYeJ3GfVbkyDdfxsyNGd/omUY5R5pDHM4y4qH2k67Ll1?= =?utf-8?q?VYsz5I+3BKzovZNkWoW77J2/LkTCA2FS481fPeHwykHshpqd6tD8VG4dBnmjhh59a?= =?utf-8?q?ZTAmO5avHXIGd+5TzUodTXMBQ6QK4fCLO9ItsMr24hqjTyd8HD+KU45FBXjyFQmp+?= =?utf-8?q?Lo9NmXeatbPNvIFEcvYuiLlRrSndkQNTubH7Q6VlSSV4aF6xJe93kgYw9bwLxJRn4?= =?utf-8?q?tFixy9jEmmyCxqwxQMtQVjJCnO8BT74C6eFaRsP3FYl4hUzC8bTqvhXx0WZ6eZYtG?= =?utf-8?q?Epi1laR9g3x9ucy2Db5105Yz8/ZRR+YSFQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60128616-6a45-4b4e-ace0-08dd33c22b66 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2025 11:05:20.2895 (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: O7ZbPEAWIkI+HCHvz2Rpj4GydoOKPplW1RmQIxXNiNQN83oUKox8uW6tk0+4A1sq+a+eQ8GxNvb6m4e9jiv1RZ6JXpAMzAtS7Y/YJ/qGouo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8389 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250113_030525_820658_EE51E3EF X-CRM114-Status: GOOD ( 14.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ciprian Marian Costea Create common part, s32gxxa-evb.dtsi and s32gxxa-rdb.dtsi, for S32G2/S32G3 RDB2\3 and EVB G2/G3 boards to avoid copy duplicate part in boards dts file. Prepare to add other modules such as FlexCAN, DSPI easily in the future. Signed-off-by: Ciprian Marian Costea --- .../arm64/boot/dts/freescale/s32g274a-evb.dts | 1 + .../boot/dts/freescale/s32g274a-rdb2.dts | 1 + .../boot/dts/freescale/s32g399a-rdb3.dts | 1 + .../boot/dts/freescale/s32gxxxa-evb.dtsi | 150 ++++++++++++++++++ .../boot/dts/freescale/s32gxxxa-rdb.dtsi | 122 ++++++++++++++ 5 files changed, 275 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi create mode 100644 arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi diff --git a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts index b9a119eea2b7..c4a195dd67bf 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-evb.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-evb.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "s32g2.dtsi" +#include "s32gxxxa-evb.dtsi" / { model = "NXP S32G2 Evaluation Board (S32G-VNP-EVB)"; diff --git a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts index aaa61a8ad0da..b5ba51696f43 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "s32g2.dtsi" +#include "s32gxxxa-rdb.dtsi" / { model = "NXP S32G2 Reference Design Board 2 (S32G-VNP-RDB2)"; diff --git a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts index 828e353455b5..94f531be4017 100644 --- a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts +++ b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts @@ -8,6 +8,7 @@ /dts-v1/; #include "s32g3.dtsi" +#include "s32gxxxa-rdb.dtsi" / { model = "NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3)"; diff --git a/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi b/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi new file mode 100644 index 000000000000..a44eff28073a --- /dev/null +++ b/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi @@ -0,0 +1,150 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright 2024 NXP + * + * Authors: Ciprian Marian Costea + * Ghennadi Procopciuc + * Larisa Grigore + */ + +&pinctrl { + i2c0_pins: i2c0-pins { + i2c0-grp0 { + pinmux = <0x101>, <0x111>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-grp1 { + pinmux = <0x2352>, <0x2362>; + }; + }; + + i2c0_gpio_pins: i2c0-gpio-pins { + i2c0-gpio-grp0 { + pinmux = <0x100>, <0x110>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-gpio-grp1 { + pinmux = <0x2350>, <0x2360>; + }; + }; + + i2c1_pins: i2c1-pins { + i2c1-grp0 { + pinmux = <0x131>, <0x141>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c1-grp1 { + pinmux = <0x2cd2>, <0x2ce2>; + }; + }; + + i2c1_gpio_pins: i2c1-gpio-pins { + i2c1-gpio-grp0 { + pinmux = <0x130>, <0x140>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c1-gpio-grp1 { + pinmux = <0x2cd0>, <0x2ce0>; + }; + }; + + i2c2_pins: i2c2-pins { + i2c2-grp0 { + pinmux = <0x151>, <0x161>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c2-grp1 { + pinmux = <0x2cf2>, <0x2d02>; + }; + }; + + i2c2_gpio_pins: i2c2-gpio-pins { + i2c2-gpio-grp0 { + pinmux = <0x150>, <0x160>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c2-gpio-grp1 { + pinmux = <0x2cf0>, <0x2d00>; + }; + }; + + i2c4_pins: i2c4-pins { + i2c4-grp0 { + pinmux = <0x211>, <0x222>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-grp1 { + pinmux = <0x2d43>, <0x2d33>; + }; + }; + + i2c4_gpio_pins: i2c4-gpio-pins { + i2c4-gpio-grp0 { + pinmux = <0x210>, <0x220>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-gpio-grp1 { + pinmux = <0x2d40>, <0x2d30>; + }; + }; +}; + +&i2c0 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c0_pins>; + pinctrl-1 = <&i2c0_gpio_pins>; + status = "okay"; +}; + +&i2c1 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c1_pins>; + pinctrl-1 = <&i2c1_gpio_pins>; + status = "okay"; +}; + +&i2c2 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c2_pins>; + pinctrl-1 = <&i2c2_gpio_pins>; + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c4_pins>; + pinctrl-1 = <&i2c4_gpio_pins>; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi b/arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi new file mode 100644 index 000000000000..91fd8dbf2224 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi @@ -0,0 +1,122 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright 2024 NXP + * + * Authors: Ciprian Marian Costea + * Ghennadi Procopciuc + * Larisa Grigore + */ + +&pinctrl { + i2c0_pins: i2c0-pins { + i2c0-grp0 { + pinmux = <0x1f2>, <0x201>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-grp1 { + pinmux = <0x2353>, <0x2363>; + }; + }; + + i2c0_gpio_pins: i2c0-gpio-pins { + i2c0-gpio-grp0 { + pinmux = <0x1f0>, <0x200>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-gpio-grp1 { + pinmux = <0x2350>, <0x2360>; + }; + }; + + i2c2_pins: i2c2-pins { + i2c2-grp0 { + pinmux = <0x151>, <0x161>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c2-grp1 { + pinmux = <0x2cf2>, <0x2d02>; + }; + }; + + i2c2_gpio_pins: i2c2-gpio-pins { + i2c2-gpio-grp0 { + pinmux = <0x2cf0>, <0x2d00>; + }; + + i2c2-gpio-grp1 { + pinmux = <0x150>, <0x160>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + }; + + i2c4_pins: i2c4-pins { + i2c4-grp0 { + pinmux = <0x211>, <0x222>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-grp1 { + pinmux = <0x2d43>, <0x2d33>; + }; + }; + + i2c4_gpio_pins: i2c4-gpio-pins { + i2c4-gpio-grp0 { + pinmux = <0x210>, <0x220>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-gpio-grp1 { + pinmux = <0x2d40>, <0x2d30>; + }; + }; +}; + +&i2c0 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c0_pins>; + pinctrl-1 = <&i2c0_gpio_pins>; + status = "okay"; + + pcal6524: gpio-expander@22 { + compatible = "nxp,pcal6524"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&i2c2 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c2_pins>; + pinctrl-1 = <&i2c2_gpio_pins>; + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c4_pins>; + pinctrl-1 = <&i2c4_gpio_pins>; + status = "okay"; +}; From patchwork Mon Jan 13 11:05:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13937166 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DE2F1E7719E for ; Mon, 13 Jan 2025 11:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0NOFTWr2UX6hClWC39LeiYSLoNqOWxR2RlHA6hdUOAQ=; b=AOC1nMWe9uT8wRFb8Q0RqvJB67 ycRovHvZPrkcuN1HtbmG2wYTCqMACRkC+r1aiU/EzC1isXrMDAPnXulsskLJjccjDnU3nqaU8yI49 GKt2EZlp9Q1baGoNr1saw+Pso6UY4uPJi+jOjeRK5K0T8offnWVJ4SEGJzr0DISWF7NSgCVhBARfo lXWxl4kCPhsBVlBiCDOq2CHmEafXuX7oYSqMlkbzUIL/kBIwwgkC4pxWIEBvgENzgFaQVykqCDPZ4 B98dXToE6y6wDXDJa/a75lNnv7eHx5mKQSdkIDRkhy3cNGeGzarfonnq1ycmmGPWDnZnxDwZsdknj N4Wr9q/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXILO-00000004rf2-3Wr5; Mon, 13 Jan 2025 11:10:54 +0000 Received: from mail-am6eur05on2061c.outbound.protection.outlook.com ([2a01:111:f403:2612::61c] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXIG7-00000004qfu-0oSh for linux-arm-kernel@lists.infradead.org; Mon, 13 Jan 2025 11:05:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HnL1PBaNUVKqsFpHjf8m3hPqnccw70P3HcZG/1E5UrrCKnb9ZpbAOSW6EGUD3rld+HSELs+8/C+4kG3UMhbEqxb6G+vCjpHhs/GXLtFiIXDtWfekvIs9out9reL5/KSvONqCsYL9K5CH9SOi5cKpUtQxgESx0dDWXg9s+lDdXoCzuXSUwKRYxDZUO0JhwrWdVZq+ZJ4jsrQrvx8l56MBt+XHCg7YNQQIFn+3wgoeSunY7Ncgb9o4/+rsUNrtILX0y3aQF+nf4Tiwfu9B+ZWSpaf8+37XK65LkBcBCDZnytPVV0nauRuOyYNHK/S0wx1E3kXha3JwHYzVEGRWljaniQ== 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=0NOFTWr2UX6hClWC39LeiYSLoNqOWxR2RlHA6hdUOAQ=; b=BKnrm8Kmyu0cLz8eL+MQ7/Q6EBlQB+IQsHUBrewIW5A4HRSO2vbiaWmYy8qWdh/5w8zdqHKJWeIwf4OYCozV/5vZw5Uoir8FoAiRDCgb0kvt6YGbHGiem/fNRivSIdptkVrxgXBmgMyqsa3mY5xlnQzqbkMm2IB0wZQ3y293QKqYwjVn9NzbkGe21C/LRFOjDG5csB179izJhLj6Kz3pdnVXPINK7lTE4PZMa6ymoGviny2+GmrRxvdoys8k7bJuSz2vhT2x5odi9bJ7r5RxC8YyglpM27qagdLmS1UVnikULDHioHQg+/UXbDOQ3LNkhRsrGMBzIlqFWV6Kp7P8HA== 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=0NOFTWr2UX6hClWC39LeiYSLoNqOWxR2RlHA6hdUOAQ=; b=R9sJQ5nGLy29ULMLWlJyxkIV9iozbxOYREvrEUf2bYOk1ra05tX7FFc+uv9yTvrC1zfbi7BVMZWNgjwdQ4aUc+yqfKqp2uZoM3HuAWGQqmbXZSESNmEv/4zLKWlRZlecbyegwHi8NPHBmcMWYkYwrQuPJgXVcKNBYevFv/wwx78frAceDpjn69WxgKvxq98/NRehR4QTNqUzUw8vAQ+YS5R83yAlZWTQBIw0VI4gEH4w3ZVgphOCt1yu077oLdJ5tF2luA9ofVqXAZ2e/VT2YZrxzE0XiVd4Wxsh7qKjDVWxFU6E6f41d31Cp2CkJ7M7Pu26o17U6rEvxwAsNCaIag== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by PAXPR04MB8389.eurprd04.prod.outlook.com (2603:10a6:102:1bf::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Mon, 13 Jan 2025 11:05:22 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8335.017; Mon, 13 Jan 2025 11:05:22 +0000 From: Ciprian Costea To: Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP S32 Linux , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v5 3/3] arm64: dts: s32g399a-rdb3: Add INA231 sensor entry over I2C4 Date: Mon, 13 Jan 2025 13:05:12 +0200 Message-ID: <20250113110512.506007-4-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250113110512.506007-1-ciprianmarian.costea@oss.nxp.com> References: <20250113110512.506007-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0001.eurprd07.prod.outlook.com (2603:10a6:208:ac::14) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|PAXPR04MB8389:EE_ X-MS-Office365-Filtering-Correlation-Id: cdcf3f44-2d27-4c80-90f3-08dd33c22c88 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|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?MpkxuBaxNwtHexNUPrHxrvo6dpzio4p?= =?utf-8?q?iN/DG9PPgg8usE/IzZDV4Gi8mp6IEO15eM9QPoKiSCzifEhzSdrS8DLr4b7BK79Kl?= =?utf-8?q?XlDLUfrwYcbWc9UnhxzyAIkKrgpKRp/+X5DZJ+/RGOqw9XUbilC192aSxnoYRCiBN?= =?utf-8?q?Q14VMzzKenhvtcmxGyagbktyn6ctlPVtqoAMyznIR+eoRGQqjTxCm6AV24yWNV2qf?= =?utf-8?q?YxwZTEyNGrrjphf+yLbDQ+SL/ivB/VbY4N8kQa3iU1VrgiaUnhNw4tWRFDVIXA9n9?= =?utf-8?q?5I4veprjFB2idEEdzLLVx5ttbPHBVJgf+SDmVigYeBD38Q2IqVdpFXmeqoOjBEecN?= =?utf-8?q?WBuevpTzCcsSYvk4HyDO+uWdAzandaCcNVnTAVBPMTLQ4RUNjTuPujUaog+5PS4zK?= =?utf-8?q?emnPTLdMd4c4fVLbVDykDEFy3DlH0ymCp6U3Ro5lVhR1MI/5weHeK+ICYJyG5zVO+?= =?utf-8?q?TLUnpvpn/kO4porX3xvhpaojnoiM8+SNwz3EDQObj5BxSvQK/tXwqjPJKPr940hW2?= =?utf-8?q?LpLsxpknL+j5rL8M7ymSBj73WpXsKi9+2/8Nxcnr9IKHapEgVNhEA+PbNo3GLs1Et?= =?utf-8?q?sFnxs9XNcVotWEgm0FZCCSdq+2cyOdkTKJxE7hchnWogZZxKGS+pCTEA14BA5+Pfj?= =?utf-8?q?TcmlH4QmrJ1AmCYc8EwvOGJc+LX4fJ7ORQMYJ+8JJv1cryoS1Nx2m6VeE2UqzLVuq?= =?utf-8?q?59viq4VHJOsOpMpTkCW/iiUI87u2kjrac4fyeGpvCo7uoHiX3h0MmEb9uW29AJZIr?= =?utf-8?q?lcZsK5uWiF94Qs802v3BM85ONvsmzPaHC9IbMaTGvmEaAb5/UlDOwJ4bFgEQwLY2s?= =?utf-8?q?7VmNHmjG7qbsoDv8ONrhoV+EpZ8XDFfagQzpyAVOrv0RMloY/3DTBsX9h5t7Cgw2f?= =?utf-8?q?HfxRLYSPGDsnAAP4ryse6Pgaecuzy/msfjBPP4PG9yK0Omt3ed7OUbnGcuKS9H2ym?= =?utf-8?q?EpMTl2WSE5DX7LkDdTELlSFEKDTZONBql2+qZROYJodpktgKUfuSkih3wjhXgwg3X?= =?utf-8?q?MF5+bYCNZRSIr+DkkZjYpZNhZIL6W2xVtxWg5SNGsXMv+0DZbsmmV2ezPFVXeOsXb?= =?utf-8?q?huq9e4sD2wCTQNzvhmqFjq71H7XvKh4bNuUiip/rrvyfPMqsMAVE6zagNm/k1vd+/?= =?utf-8?q?XkBK3B3Cl5yNNtleXyNoo+6/J9cAbVZewZXEZd2juQ0zGefyJpx/h2eVB1Qdj7S9Q?= =?utf-8?q?84NqtEDdALbZqX77ErWuEHSM4OZfG/pNK1dpcSlrFEGp9FjGMCxufbS0HARpuHkCU?= =?utf-8?q?ISUgrZV1N84stWDRLgpP1iy3VIjOgH8QouXPMfFGersSSAaEL1NlvDktGK6aKNNSy?= =?utf-8?q?g6bNY9WcNm4l?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?nTdnJ2MyqgMpwWX1cQSbeo03LODv?= =?utf-8?q?yijDOzRIkD21nvY1q6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E8+EBBenZv8LN8KYsdJwX5x6BT3F/i8K919dIgaFbWMH75MW?= =?utf-8?q?wJL+WnhIw7PECtHGpubI+JqUR/WK2TzergY/H9LyoWAoRjV1zAIQIM33JAphRaJgw?= =?utf-8?q?drDkqxYhvX4PPOg5V8JpC31kHmvHanZ1/WqXYiVc2lefOEPt9ijo3OdjkCI7CT6ep?= =?utf-8?q?rvWdntO2xoQg09f1SoAHLAEaqbCwGhnP82b4zBsfe8W9k9BoIfwzz6vyNYwTs8FcI?= =?utf-8?q?2Q3pFgNulUms72LTzbSX7eQIP7BunLrZu3jfiQ64e01upJ0yd3hp369VpwHxYfMk0?= =?utf-8?q?E4dOatLI3tGeKrC7TPITym+MxfJQptCcyYwSxFa4BUwJq4ZZ6kqu2glKODO5SCHSy?= =?utf-8?q?hDxZH+FSxScQjN9SseHl+uummrMEqKBRe5oNF+b3dK6jNFiNk4qves8bdVoPZnMbn?= =?utf-8?q?JqLfEplCOxWjg4p7oHhvSJeLd6su/GhzAiblYIBbGBO5MkHw7qbOspx2kC85g66Vy?= =?utf-8?q?bajRwerBnqHzHMBBP6ayXs1Z6M+NfbGRmsWefqNMuZ5AFMLokmugCtTS8MDvsn8Lp?= =?utf-8?q?5009yFLEXHQiriAUKb6iGHbPukv3YoYgokoDIxfNUGRHWVcngZS+aYr0yWm/CcckC?= =?utf-8?q?FX8RFgBkuekujiSHGrKssBpRV7iFywya1A=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cdcf3f44-2d27-4c80-90f3-08dd33c22c88 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2025 11:05:22.1508 (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: nZ/9V7lVBiZdeti2JH9EBx8xBUh0NWna3+k1fyUow30kdCOenW255is/7n0UGILvEGJdjKk0UdkJ/I1kAf74fOD++vHNAQf1VAt5d5jKcag= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8389 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250113_030527_232465_45CBE93B X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ciprian Marian Costea Add INA231 current sensor for S32G399A-RDB3 boards. Signed-off-by: Ciprian Marian Costea --- arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts index 94f531be4017..802f543cae4a 100644 --- a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts +++ b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts @@ -40,6 +40,14 @@ &uart1 { status = "okay"; }; +&i2c4 { + current-sensor@40 { + compatible = "ti,ina231"; + reg = <0x40>; + shunt-resistor = <1000>; + }; +}; + &usdhc0 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc0>;