From patchwork Thu Dec 19 13:10:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13915066 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2083.outbound.protection.outlook.com [40.107.20.83]) (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 619121BC5C for ; Thu, 19 Dec 2024 13:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613843; cv=fail; b=Sa0i2nn4qRft0rHtkQK48QsZ8rfMU+1Gk0tO+c0ARLR8wiH8e5zFmY75J9yfY2uWs/MXR6koAySJo4WM3IQcRXc9e/seczc7h5JxuZ+kfm+bc/8rdJUx1DOBGM/r6wOY+dhoR93ciVJ0Hbv7+OVCp6vM8wbawJQ7LWVPriqa9Jo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613843; c=relaxed/simple; bh=ToWQyx3na7JB6mI0GAsXFrPJ8rc3mCzPfVOLB8qZ/GY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=s9mbhRcHGQL6MXxWbAWTDn/FYZfobog0Xw+EXpqMsB1iL1SEz1vs+hJgtJTEq8CAYIpQZnXvw71Xpw8B/YIc5Wr6RjKJNfo31OfoMy/ptwh9x8j+qEk1cMeMmGeqhbwPSRVL9mvKfHVHkdA2CwzqRm07eGr2ZfbdsvZbV3bYbDk= 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=rPCPX88p; arc=fail smtp.client-ip=40.107.20.83 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="rPCPX88p" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kVNTnyhf3VaCFmQee8itZrEwO+5OptGRJHHdk9yarjSHAUZONHDhLNqaARVJsf/kaXSlEpq3zHvFMu9NgaDC7+0sJ25kbsF4bUnAN2g4u05bB5KN+Cz8xfEAcLWHmwKcEd/MWrCbTKdJIgDAhBX6JcKfQqVhcEMoKCcUPpHhuUT+OYmd2h6hkkV91hDwdmIkWtxS72o4HocpQNqXktqxciF8JFcOQIkKGvr/6bq/dWlGd1qOyxbAJ+0Fvs1KDGNxt235zNEhgaye3JBSReoJfZM8XDJtq38fcSjMzCclFetUP5z79OcsOF9QUIr4OAfwVGr1KrRsdXcBQ4YFIjOJ7Q== 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=thzcWzw1R36DqPgdvtIL7BED6jyvYSKKHuq3aSitJp0=; b=DI/kqOLQyD/cRikF59vg1cAqdSV+MXGMB3UhaxHS33mlGBKipxoOZSqX6j7syAgoZEIcqjD5FBExbibVzKOOuISi9pV0n6GllRRBkvedN0ouvFLtj1Rtfq/o6z38qp20/lF77mris5l+UX/cHFPM1sDlJ5iVecjpr9qMUi5q/NoeEQ7gzqfaYVrSANn47e7gjVwb9XBkVZvDdEFlVcOh2CbPism9qe/5CRfXCrfxpDR0tKQ/2Ye/uFT1bW/0juqQc872/DNXzUYZ/RkxwZHSPMTdnK7/eZhZgQU4wMsvc74dvzuVpdQLTe48JtlnFQVo7LiUyuFSgDvOC259Byeqqg== 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=thzcWzw1R36DqPgdvtIL7BED6jyvYSKKHuq3aSitJp0=; b=rPCPX88pg/JhNN0LuYgkAuP+eVOMnXH80LSgE38Zgre+e8sPGXCDcpdaEXs1KxUnmk6f8kSIJjPDPzOXQQK3ne/9CnqFKtSV0dHLiT3U6o105hc31RCMwlAqUUqGA+bjsmWe1MOI/ZP4PgoDXcppouKbRR/X/Slj+mYYKttjbZJ+N/Zanar+7IHlmODbI8kqpHPLgB+0Z7RB1x3s1wSRHLcS72h+A1WiQfYY5PhhX6YErIUvYTvlidOSKlBbu2OoaYCB0fvGuhEThOZjL40GV6yvDkI543r4UAuLHjDZQSVYx2Yfvnfhq8rxLUEviQK1TEtOGUQzkNLhDfXUVSaqOw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) by DBBPR04MB7754.eurprd04.prod.outlook.com (2603:10a6:10:1ee::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Thu, 19 Dec 2024 13:10:36 +0000 Received: from DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a]) by DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 13:10:36 +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 v3 1/4] arm64: dts: s32g: add 'I2C' common board support Date: Thu, 19 Dec 2024 15:10:26 +0200 Message-ID: <20241219131029.1139720-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> References: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0071.eurprd04.prod.outlook.com (2603:10a6:208:1::48) To DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) 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: DU0SPRMB0099:EE_|DBBPR04MB7754:EE_ X-MS-Office365-Filtering-Correlation-Id: c28842bf-33d5-448d-7103-08dd202e8717 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?brrozXsWTd31cYXZRkIDC9R2X45eSyE?= =?utf-8?q?w2cEoz53hJ1Q7mUQLVdXDbvHXzf49h7cncDlQ/cqZ2f2wbOXbeTDcMKCm2pizXdRH?= =?utf-8?q?R3dbDuRZ37VMLvgJ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0Ux09j9m4K/oOpS1P4JMPEikSEdc4jeCUFoQUvGvPXws?= =?utf-8?q?H+qgLj/b9Rt9UCwQK6Q0rZi0+2yGhi79eTY3yWyZkBbqB0STMurY1yn0Zw8yDC9lp?= =?utf-8?q?I4LI7s2mltDxl21V22RJb0j5cQm+qQxtKiKXDeKYPNhXAcwtrMlP84Qxop7ZJI217?= =?utf-8?q?q88wTuWnknZeTW5dPZbVnjkN3E/JEcpGCU9UrzqMt9PdL44k0l1hTsnQ+gHCBOqXI?= =?utf-8?q?4lWLNXF3VJ6yrtfEWC+TCozqS/vMJrujmyktdIWEVID38gzOQ70FeQzYp5BnQGone?= =?utf-8?q?u6wjS8clhLm56PK8+J2Lhij3a30wz2DI/TizeaSeE4gcf7Jq9xc1Bvu1a/ncUaYkN?= =?utf-8?q?3IUCIaNn1JdA?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0SPRMB0099.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?5Nsbfi4uIm7hxZHku7vrvCeSutQf?= =?utf-8?q?jSmzOfEQRaR7oP0YLvq8B89G+JpYG7UBrYgbBxoxKUKys4Ecjh3VzST6YT+n6t/bS?= =?utf-8?q?c6qcPFCrKocfeZVIKOR/ir3wiObemxdH77w9sKao31Ghu3R1/tIsQq/2skP5mArQh?= =?utf-8?q?28UV4M9tW4d6PLC9PBVhV/Ga8NP5Yk9MWsq/duF3YJl/4mPwCh1ljcvCUuHBp6vDQ?= =?utf-8?q?iOo0OUoSEIkufbdNTtc1QjjhNKLIklxe2tq4+cs+pYhmAxja5k0wGKt6XqTY83vSk?= =?utf-8?q?RivyKAI2uolO9TrKbIK/fo8vgs9OUhHJdRzMafGSh9Pc6XUm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WWcQKzdyZa+HjziwrtgDOq9T?= =?utf-8?q?owGjNFmj/DtG6+gt0kvj1Km7NMUV1Nq5a3Vg9mKbe78moIN8FdUiHhQXz89GhTFFK?= =?utf-8?q?MkiCgsoM5FmmV/+ockXt80AidwwB26rq0cbwCKwAV4VTcu2Tx3He1ZZoyNH5gbzwe?= =?utf-8?q?f846VTtsM3Hso0NgFTO9scsVq3NnbirgAfzyROrmst4z50n1yJljplxvwcLzR4cUF?= =?utf-8?q?0VUixFIoqc5ryUDNWlRuOOV3gCa+vlB7pJRvpei172dlKIbPNty2mU0y3yCbv8pnY?= =?utf-8?q?JVwzxYieDhVlfrGMlMN3MzHzA4lXoIjDyhet7H1HWFH5mhY8vnEDXjUFAtt9ZrVOU?= =?utf-8?q?GWZEqiHZLGEr9ZngnfGNR8jXa/vaPfGbug=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c28842bf-33d5-448d-7103-08dd202e8717 X-MS-Exchange-CrossTenant-AuthSource: DU0SPRMB0099.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 13:10:36.4381 (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: s/1VqvR+XBb8t0slGxiNIfDhtNNVzTa0bSii5k4l1q6Bt0J4spR4ignarBX38PkDhSsj44wFlVpcLrbX+47czCnf0kPh2sYPfE1fhleNfqI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7754 From: Ciprian Marian Costea On both 'S32G2' and 'S32G3' SoCs there are five i2c controllers available (i2c0-i2c4). Specific S32G2/S32G3 based board 'i2c' dts device support will be added in further commits. Signed-off-by: Ciprian Marian Costea --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 45 +++++++++++++++++++++ arch/arm64/boot/dts/freescale/s32g3.dtsi | 50 ++++++++++++++++++++++++ 2 files changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 7be430b78c83..0e6c847ab0c3 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -333,6 +333,33 @@ uart1: serial@401cc000 { status = "disabled"; }; + i2c0: i2c@401e4000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401e4000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401e8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401ec000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g2-linflexuart", "fsl,s32v234-linflexuart"; @@ -341,6 +368,24 @@ uart2: serial@402bc000 { status = "disabled"; }; + i2c3: i2c@402d8000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x402d8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x402dc000 0x1000>; + 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..666e4029e588 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -390,6 +390,36 @@ uart1: serial@401cc000 { status = "disabled"; }; + i2c0: i2c@401e4000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401e4000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401e8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401ec000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g3-linflexuart", "fsl,s32v234-linflexuart"; @@ -398,6 +428,26 @@ uart2: serial@402bc000 { status = "disabled"; }; + i2c3: i2c@402d8000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x402d8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x402dc000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + usdhc0: mmc@402f0000 { compatible = "nxp,s32g3-usdhc", "nxp,s32g2-usdhc"; From patchwork Thu Dec 19 13:10:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13915067 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2059.outbound.protection.outlook.com [40.107.247.59]) (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 3177E224B1F for ; Thu, 19 Dec 2024 13:10:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613847; cv=fail; b=QB91H4NBZLHcyWJAvlBEcpHXZ7js6e0X9732B5I4kJEvyY0ZfjhP9Hsz4cLGH8sSfnmd525U0SDcwC4WL8cQhMDN5rrvn82n3SSE0blRB0uDfv4lCwzmc44udxkoh1dNvB8M8D68J7SM6wRsI0UMBEMCC7XT60wazRGotCbzg5Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613847; c=relaxed/simple; bh=YutGKzVnvJj5KOarxZjL0Etv1sm34ivtUBhsg6PrZlw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=J6nOu5vUqn+d2m5BgSXelr9PGNm9BuioWY5rcGVA6ZEZG07Xxd8vjHzWT+iVvFPvJui3UbZ9mQRW64uVsoHaohgS7gaWViGDz2x5jgrZUFfd+IBSEy3YciB982Ql18EunTFeJdpacvdjpL45eVSxSimjSQoWHk7+nnm6L9Wuxvo= 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=pHQD6ERA; arc=fail smtp.client-ip=40.107.247.59 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="pHQD6ERA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bZXj+2HjyPRPKnr34YIKdHiQWYiXC94bEJ77ZpNrzLLNst1+wvnHA7fbGzjh7yDg78xkOJPSH02P7WbSPfg1CX3a0vczr2nqq9o8PAAbCsFz8SYh7PfPOaiXNDzsVCQNKA3A3HN/pZNZzb9+1Nyjcj1OFpsNFkA6t25KMgDuYV5tZmKveCVP6QCKvieMMw0UzIl9g0yiFe3resSzKf/Ym15mvXi1533mQwEWUbQqlD97DUnDIrGZCsnte1fBq9quwDxrlHTQtqVChb6MZtKb3VVYRt/EnHhuu0uPdvvP6eG5iF8A2aAj8cijZC/IvHpgXhHGz86a815F7FvyR9tEBA== 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=jCn8GxIzq0WMXy2L8JFpBH088CalC4FenbOqphdvFso=; b=BRXBABQv0/eFyZQsgOgxzIqscqa/KL/6BUEcoyo4T5xpu5iD2A8ydFJGUmzqTgPseMMZODczC4BqlD/PfL2GBgXKToS9ohVy+MqBVZcVZIeKBaJkp7t49AWLcRpLtFaNqZXao5blqmd2wYBdGgZKWsZi+htxoYsQZySbSH55RNoS55Gn8+BBFHheh0KMbpyRkfxWZKwdnWYQm+NlvijuHBQyP+E0BUvk0SlWdZMmdk8lH4Hc9+iZjnhGz/YxZOm+So2qMwLgWt1+kVmr369eBgemzmS0omc3XsB/6MEedLJIAypqhk2Ry1cVLD50X894mk4wCy4PHrTUAz8MKEmJiQ== 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=jCn8GxIzq0WMXy2L8JFpBH088CalC4FenbOqphdvFso=; b=pHQD6ERAWjtMkPkVOQehaOM0eDuCzvMpQAobxo8m/s7LOuWYCqpzoVvSmXcPptiyMPDb6ERuUZLam1RaJllk0m1KEaIoAVyTe+pi7+iMRUBPdDTf1vLT5kDjb/GVorVmwyKg2j/b0tQCq3MCbm64S0xH8OlPMMuCYKchMZ46S7DF3wehwtp0syfvy8TczbNiXf3CLQSCLK4YP6wyvdxeMxFIYG36tZVAVm7Cc17Nkq8mwvtxh25mO8WEU4hv75odWXZWGzX7JczI2MyhjjIm8OF++8jy3K0YpY7toN+8pTBQ4LHlTNQ7YoXOImtybtakx1nKHfbVnW9mfxIu67UDag== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) by VE1PR04MB7278.eurprd04.prod.outlook.com (2603:10a6:800:1b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 13:10:41 +0000 Received: from DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a]) by DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 13:10:38 +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 v3 2/4] arm64: dts: s32g: add common 'S32G-EVB' and 'S32G-RDB' board support Date: Thu, 19 Dec 2024 15:10:27 +0200 Message-ID: <20241219131029.1139720-3-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> References: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0068.eurprd04.prod.outlook.com (2603:10a6:208:1::45) To DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) 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: DU0SPRMB0099:EE_|VE1PR04MB7278:EE_ X-MS-Office365-Filtering-Correlation-Id: 423a09b5-7aeb-448c-a313-08dd202e8826 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|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?kpY+Ifs9DuWKvAxUVSJ7cvYpLinTtSN?= =?utf-8?q?iWWy/ULNEt2i8SgYtQmmkjQOcq+sG2BXPAnrhtF0DM4T+XPI7JWmYZ9etyVIstnn4?= =?utf-8?q?DOrny8HVT0DefF1wRYNRvjuvD8M+zyeMI572dO/jJBOuVpzLrumeIPesfyrYGx2cX?= =?utf-8?q?30kRKE2H1zLZRSUDN9bAwtfGOlgGypqnTtJ7tr0OrZvwUIQHnxKyl+SKjBQAzRUrv?= =?utf-8?q?nfEATwqQYY5uoMYVV2ScE8aThGTf4OIYEUIiPV6DU8qR1pu52eh5wT7hkzU8PhBYq?= =?utf-8?q?69QXsC/c0o4r8c9xTzqdq7Ht0z8s9xD1idE/v04mbpMz/G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XVF5MJiSW/N1n+zr5GzdaBf3sEa27kxHC2eTEd4U4RyzbJxc/Hz4haGToz1t8l4E?= =?utf-8?q?j6Re00a5b430tflH8Zw7qFhsvK0c9HER6P8iLrcmcHelJlZvuXSbMCRqG7OMXNmRC?= =?utf-8?q?OvLd/glLlJmC?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0SPRMB0099.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?yhyRo5t1kmt1jDiJfM/CLVKRvpJR?= =?utf-8?q?DhQkag1DPqsCmpL7eAHA3EOlf9RpwKBKbxBnWmVsJ5NeDk0BCRyS9P2d4kUwRbRv6?= =?utf-8?q?GJlHwctrr5gpMgRD1sOKOjFPYuAtN+JtG4eTRlWAcbC4g6lTl4P2kGUO7Aq5iYqAK?= =?utf-8?q?tWwWZBU6TJIPGqmo89WQ5z/kGoVCeLowpUrBixPQpT/kX/ma4HKkgYmjI+FQFXLdE?= =?utf-8?q?qR7iMP5f7sqE7li1Khxwlo9qXKATHpLiDSe5FF00m1sZNsC3bI7EduFL8/5MAQyg4?= =?utf-8?q?2aqeMtn39ofMc9kDVs+BUjMJnnHyJLua2fdAJ7b0s/lpdoW2qjEYlAsYWbRWhF9SY?= =?utf-8?q?4zP4LmqmqMHeOc1PBZ2Nn+ccES3uKB6dhJuqNQcMRBVjzenkDLQJ8j5xmTbQOrEEX?= =?utf-8?q?+UkbHlRawAvUVuUrYFq7BKIL1NvPSmEt+UPTswE3p8GZuoy5ql57/qyAubOrOQ01b?= =?utf-8?q?Cd8zTVhq2I6U4r4GpJN/ZXgIYwXtjBbg4tACK7dEPOZaFFtUuIGLMDBqh716UNHCH?= =?utf-8?q?JEHPw2Wmzaasbpmi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y9KgVjs2ljTuRAuizqcHH33/+pPOuEMLsrHrTR/hfeyg9Jlkuo2gzx9?= =?utf-8?q?44sNwYMRubM07xJsL4LoSz9V175B+Ts3dY06CojvJYXeVOmeYpaBx1YIfyNmsfflV?= =?utf-8?q?fWKWFZB8+0GVUHqcKzcTFYrmQYKTTqpxwQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 423a09b5-7aeb-448c-a313-08dd202e8826 X-MS-Exchange-CrossTenant-AuthSource: DU0SPRMB0099.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 13:10:38.5105 (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: KEy8VX2KPOb6/UKGoDyafj4YVBEtx5ujtgQiD6+ewtZZjI4oMi6DIFQoyVww+jata2/3mboqNaFJJzKyh1UD+Gq5M1Xfw/waIT0TepWALII= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7278 From: Ciprian Marian Costea With respect to S32G2/S32G3 SoC based boards, there are multiple RDB (rdb2 vs rdb3) and EVB (for G2 vs for G3) board revisions. These versions are quite similar. The common part for the EVB revisions will be centralized in 's32gxxa-evb.dtsi' file, while the RDB commonalities will be placed in 's32gxxa-rdb.dtsi' file. This refactor will also serve for other modules in the future, such as FlexCAN, DSPI. Signed-off-by: Ciprian Marian Costea --- .../boot/dts/freescale/s32gxxxa-evb.dtsi | 150 ++++++++++++++++++ .../boot/dts/freescale/s32gxxxa-rdb.dtsi | 126 +++++++++++++++ 2 files changed, 276 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/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..50fe6aaa1605 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi @@ -0,0 +1,126 @@ +// 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 { + #address-cells = <1>; + #size-cells = <0>; + 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 { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c4_pins>; + pinctrl-1 = <&i2c4_gpio_pins>; + status = "okay"; +}; From patchwork Thu Dec 19 13:10:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13915068 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2059.outbound.protection.outlook.com [40.107.247.59]) (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 B0BB1224B1F for ; Thu, 19 Dec 2024 13:10:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613849; cv=fail; b=F4qQnUSvBh27U9ow0zu+pmDlmXs0cNpwlnzXFMO900QqEa/N1UNWiEFiPLPua17qyLrxu/F8rz8M6d9Zep8NKefNJtwPglnSWbQxPf99O6kDYFIWQ1jNqXwhUk9cCUv2mrDKMIyV4k05uRAn7akqfoVi+jTzn1y6qKFzzQgapcQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613849; c=relaxed/simple; bh=fKJZ0yRZJBhdcBIvBo7tIoRZVSYpM761/9nDtOzAdpE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=eqIQmG+Scdd9M4CBdk0+WY7eAIjdMkwt/mTL2VRqsHn+qfjgQ3Q/BCXEVa5DbmBT4CM7UICemIJ3aF91FObwbDh2soDWRq1L1TefWOZ2Ikv0FtK7hwXQaHbzUFAJsME5DqpXZ4TKYXlVxF0ry0sKSGFQLGn39VZ5+2JlcZRfAUg= 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=Xvz7Cfst; arc=fail smtp.client-ip=40.107.247.59 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="Xvz7Cfst" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NKrojv7Rki81ocbfnmEiElzrQfXqlGJ7aMkxh8iBXchKgYUlG5OQEUFSIU/2+lF1DXnq5BLxbi1WcQLvjCO3m3CKuV7RLhBYmL06LmiI/4i+GfknF334Ak6mmM04kiPYCz9ExbWcIEJc+2nUkcuKBvfFYxkB32Sibq0ubVlSZQO5DYtoBedavzB5MOj0jBMCVzndF34n+1jT8mAF5uO9Xk45K99BfuQSCxZsEYU/VjUOHHwBsJF/oXr5eRwLVvTh/9fJa+g8yVJTl559u5K4w+OuEkHbs6h1djRkhkx0wBm2bfUWo/Lnv7tDWC/cQUb+hA78jYJ2vDwu7RyUtUs0bg== 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=MkNB8LywE7M88QDtjZgOzjmkSZR4KFRF9D1R1Fvu8ZA=; b=Myyw8v1gutltVaZTcgfnTIUTN9weYhy7lEbUAc9I/Y+82vTLx80hhGJGlCiiLCxlD8ObZf/7bOw8eB/zqki75jPzZstUITo++iTXH423irjuCYQijbkjKRlQi82m2XB+C51HvAdmOS2Yb6PUBvHDUvNg+PZdQFXKbun4qLa2zcUQlQPS0Tqp/9wBoJsPpHavnIF9Cuvvz27KkiCpNEeEOnfAMfwH2F3KPY7RVlOPIGe+ZBDjaYWkzCA3tq0CxEfd3Drpw/wJe6gVX7dnFtVz6SK8Ah0d60W7Pahp/OnYMNm4KDAzdC3JnNuhOFXW3EkujV5pSPONmNNhwapCqQMfxA== 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=MkNB8LywE7M88QDtjZgOzjmkSZR4KFRF9D1R1Fvu8ZA=; b=Xvz7Cfst8tBIZmH1gz6C9LgV3cH9Wo4v+Yxjfii2rDyE2Z6Ggl7Ojd4moUaOyivkm/WCQFLvi7q3bmvJJC7KdakyzNC6HxoxrcqfPKSFn2TibiMGUlKturd/BmW+/XeMIfCTGXdXBF+VBHCJSSIS7wEo+ov1PqblzUINV0jManWp4q2m6VpY5nJK1XOdDh1aRoJRG3nfuNEyQg+d2VhSCjJCGo7EJ9ZcVmbRO6Tbvzah5ioXyf+Zqddge2x2sh/CiSj9fPyjiL1uDRw0g2l5AKAUcG34rYhYA1hts7nmAI12rjOp0p9wv601wX6EP2PujZD7zTdBOPA0D4ZkPfkiqw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) by VE1PR04MB7278.eurprd04.prod.outlook.com (2603:10a6:800:1b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 13:10:42 +0000 Received: from DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a]) by DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 13:10:41 +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 v3 3/4] arm64: dts: s32g: include necessary 'EVB/RDB' common board dtsi Date: Thu, 19 Dec 2024 15:10:28 +0200 Message-ID: <20241219131029.1139720-4-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> References: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0047.eurprd04.prod.outlook.com (2603:10a6:208:1::24) To DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) 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: DU0SPRMB0099:EE_|VE1PR04MB7278:EE_ X-MS-Office365-Filtering-Correlation-Id: b5988501-6ff0-4d90-831c-08dd202e894a 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|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?1sOUXCGt7Ozuz+pE8CYj9xe1gupuvaF?= =?utf-8?q?hRId1i0n2+knzmRPv5do0YCJwE/DSsITShiMGrp4E5iwroDZJ2o7A34pqxBBBf8qb?= =?utf-8?q?Ki8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DP99e1k/91ZfDesA5drvSYOSHBGgbKKATC2j5uKe?= =?utf-8?q?8eLV8JLj/XpK0U+SGw85p2uzy9ptOIcT/LK35k9E4gU3gkQt+pI1vrM11H7TUkoEQ?= =?utf-8?q?bkzootVnvmC4BsI+dxkpPPJkLry/wZqpTuymWQMJZU9AmVUuT/uW+BwSqa3sEnp8g?= =?utf-8?q?GFNp671tXqXpUvr1Jl0PXr7NHp8BUzxA7fXEHFz1meGfNhZIBxJ2ijQZDuNUZsmYy?= =?utf-8?q?Ddcnt/gS9EDZPXlPZqN4sHxeUWIblOUSNYcvPzQ9SsopB2ER6X4e8O8Mvm7StovF2?= =?utf-8?q?Mq8PzWlz4amKk9R5MSCNqG7u6evZ/MZYSsZq1S44RYz9VyNdOFyhh/jdQ55r4sWmY?= =?utf-8?q?TXWMaNMtEN8r?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0SPRMB0099.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?+Jjn9fd24h3ub1P/f28swni3ujSu?= =?utf-8?q?HO1Nejn8iU3BkkIf2nXrs64ZRXUgOgablwxhSC/efFCyY83qkGN0plEFnhhslvGxw?= =?utf-8?q?cqLI0xnVmIAhLPZeqxgY0gIfdEx9NKTBOe9mPT+MdfckjDebBGxYOk2p8aJNEJtUc?= =?utf-8?q?74KViLt+upL1TkJHTj7Jkl1/ZsNa2Gmcyvi0yOivBiMTFLXvy5G2hp/j+bgBHcKCG?= =?utf-8?q?ZSsr5RUEB2ISQixKjKYhcJCvIWMrAn5VhOMMU/ptMJRY04VoIIyhOZ0ytxF8JgIhV?= =?utf-8?q?4X71YvGVJusRzR3bLU+arNrg+VGweHv9gvs8s0eot+0/260Jfx3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= =?utf-8?q?Yrnbta2ocVynepdYlOUOJZ+D1TDBCo4V9Fh5QX5Z8xUypjS1wgekqT8XXM62PMBNw?= =?utf-8?q?QGQrpt/S+/pol3SaH4H8IEQPPFVLr4Te3FJEyhiqDF3sTK65hzaCWh+v5ktd8AzPB?= =?utf-8?q?LVnd5aKsaRgZcmju6SvKJidek/F7xLofl9deN8KMDhtKm2eCKl/L/e2plg+eLGO83?= =?utf-8?q?iIjHY3wuMHxyi2h4hODB2i87YhylTGaKzJV/NN1620jxJTzinXT57WHasOzVBvKrw?= =?utf-8?q?qIDU4kYy70rGtPIg6Tbl22mDgIq+pIv4BgxAjD9ql6zxFWZIJ/9Xi/QTg8+1kKKGJ?= =?utf-8?q?3Vd2DMvNXrwEPA68ki2yQ21FjcPHQQlBfw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5988501-6ff0-4d90-831c-08dd202e894a X-MS-Exchange-CrossTenant-AuthSource: DU0SPRMB0099.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 13:10:40.1855 (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: 8t6Z3TSFFscKbrMm6bZd3gTfjOpZA0SsWWbS/bd2tIooGrTJsCVnn0m7Zc0D0A4CGYPzzYn5xw5fkryaVVFoQRAjD+l8N1fIek4LPS+Lapc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7278 From: Ciprian Marian Costea After the 'S32G2/S32G3' common 'EVB' and 'RDB' dtsi support addition, include the necessary header depending on board flavour. Signed-off-by: Ciprian Marian Costea --- arch/arm64/boot/dts/freescale/s32g274a-evb.dts | 1 + arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts | 1 + arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts | 1 + 3 files changed, 3 insertions(+) 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)"; From patchwork Thu Dec 19 13:10:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13915069 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2059.outbound.protection.outlook.com [40.107.247.59]) (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 EFF44225774 for ; Thu, 19 Dec 2024 13:10:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613851; cv=fail; b=QyBRYdehH3UTtit16XjQ5Sa94F/8R1FZVislM88I0IzqEv2vY8Y2ezITzKq3p4E/QFrxGYcVRDRb6CuW3vZMutk78sNgipsr9Zg4hyLzjtPUQTWojpjn3EVGdP0of44/mGY7Gal5eR0z+nXQhxaA/RTK0wWzVCuxeooI4fvMZZ8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613851; c=relaxed/simple; bh=So1qb1mZdf5crPgsgJIDQ6r9AYqepnxNsPGymQdqI/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=sRgBK/jVpG4swQUh1IVETytOrPYqTVvy3IgNLiEL5QGIabOSrv8Upyf3AtA9rurU07H3EhfoeStQgxIOWonOgNdVtqwEhUNIHtEl2AQGy8BDFXWJzKkqPeGADa/mL5I2sMdw8DAvLAK5r7f8BeOs9bZmCNARNE5nN6b00JEq1jA= 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=dSHGny+Q; arc=fail smtp.client-ip=40.107.247.59 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="dSHGny+Q" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=myKSdBiKGn8cM5A32Dc/+T9OuQtEB3/MpCmjW9mCbcs/zCj3rBMRJIc9iofGHzvFE2z72ahWjK7n7nuszYQL6fgsHv2yvhA03tIUhrzslA4HnTgjKIDL7/km9JuA/nqnoesTcMPhohCPWa17ga0GMXKPrHYg8frh8qHldAk3PFqpUkYIYUNfvr5X3CnUjoL23o3OZlSpqzQ8IrQcA/KDZNt/fNCsdr5u3nCnfKs2MLP/PK2qjZWkKFHwl40YeZhCdD7xMD5TlU+7Yt2eBPDI2XEM8csIhuTzcwsmHd3vEaUB1x3/1Ff35Ix/rA8qn4SOdBL4YDmiIf7kKCL1yTuusQ== 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=M/Sinyv4+hbZE3+UGqwkZK7zp/FelTC2mTgnvGMOJEw=; b=xmxD9IFg2iJ4Rd0kR5GXYrwdpv2kcpHBzIgF5mke9dciHO0rDS10FCqD/6vBi4QkLOb+oxYULd0ot7WM0+3cbAkN6CyzDEH65vne0+GutIyl44M2308GPdCAFpaEyVgahAwbMKDOcIFK1U3yNhTv87Jw2cyw1jLzJhhtt7bnblEVHTpttqG6qcqknfPqkdcQBYIyqm/dZ3Zj3EUbwvCWdhpRvL5EJB7EeVodq4NwWY5PHogPk0ND3QdZ4MxqMqWe1m5UQNN2/jq6MIz/+nOcCjvyiSwxzL1W85NJOkuyKIIy8Zzo7AjawdzynpklujqZHC5LCQSuAOQq5RyPgmHdLA== 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=M/Sinyv4+hbZE3+UGqwkZK7zp/FelTC2mTgnvGMOJEw=; b=dSHGny+Qfu9wI6scRV6bEDdVqlR3Z0T2eNccA6J/x47Z7PA1NJ2hHX0lUUVz1Db4QRHmaRRGH6PT4j2Dvwqiq+/iCKI6VR1E+nbKDkxmLxy0eali7fLxWmL3aNTOvE1V42ivgDapdlDm8m16Kb/VKXZAPGCq6zJu2SVSKyiOYJlYgkS1ub2f1mjweRK8i2irvK9SzpkxSh1guCSeN5GPuuSKCAZulPfxfYG2Ta+sKM9AbnBZaPhcZn21hI87MZxsftXjFciS6zvwJ2My3dlYy+ztdhn2uS2x7CPt/y48lJ2656uMIgsye/zb+v8YrU/eXW76P9bT26J9ABoViSCRTw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) by VE1PR04MB7278.eurprd04.prod.outlook.com (2603:10a6:800:1b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 13:10:42 +0000 Received: from DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a]) by DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 13:10:42 +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 v3 4/4] arm64: dts: s32g399a-rdb3: Add INA231 sensor entry over I2C4 Date: Thu, 19 Dec 2024 15:10:29 +0200 Message-ID: <20241219131029.1139720-5-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> References: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0060.eurprd04.prod.outlook.com (2603:10a6:208:1::37) To DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) 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: DU0SPRMB0099:EE_|VE1PR04MB7278:EE_ X-MS-Office365-Filtering-Correlation-Id: 606ecdf7-8be6-4f57-007f-08dd202e8a5e 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|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?AcEugXip2hJcOOaEyjcPkZ5gGb9KNUZ?= =?utf-8?q?2f/d0yi6/Z1z/42UqJk9W6Ync5/RzpHErGGA5uBnXkD8ciV1FRlKJsKV+09zoVUHe?= =?utf-8?q?wrJ8P5UzaJl0MIRI196GTcGsGvs2nMLzSKs+wEb1Sxe3b+5721VEZv+8JLoSeNBxM?= =?utf-8?q?Q5iLdNIdofNBKjjtWcsSWuAzA0eZMibuE98bTf+nsYcn2/nm30cQVE04E03KXXjBO?= =?utf-8?q?TqjLsJ8RonLnhaJhBwiizmLucj7uHsjio1FgZngu1fYhlrqmTxmrrIX32hAviSH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qVD1P8KkJX0e4eXiCChcKjJe6rG2lrFLwW1b7cY4Lr9NyYaSu8DseijpFzE?= =?utf-8?q?UprGjRrcMue3X8pwzbDveKN4xZDQOQFo65I8MiUKCVkVUJVjU0W2ATzjGDAPFSJ11?= =?utf-8?q?N//r2t9ca2PIoXdeoWfTzymCuFTcPVLX7W5lgAT4vcVBVK1yJeQmx9S9w06C/p5n+?= =?utf-8?q?8mZXTEnvq+Up?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0SPRMB0099.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?MGsTqv+rn2IhN0XHsJljJFN7Ag2/?= =?utf-8?q?l6T8ZTqc2UzfLxYxWdZk57xEfUqmK2yohFyqvsfMqleXlCiFtEmzjIm7kHKsrpZG2?= =?utf-8?q?eO+l2p2SuhfPAL0FTtd3zZpfzb8cyuj8T6ATJdWXvrlkwL9nRz2TXtfRv8floHNxc?= =?utf-8?q?qIK6JDyRuLLxhRslRA3pbXWJsPD7m8/KUvHPzEiw6XTKJzv2/xGAgBC07Grl/GOwh?= =?utf-8?q?wXg5U6ZLfZJWQaBeDZGttoiXwhtAf1EPsxYCBjlrjlcekQZHsYtJJsn9p7gEs2x/R?= =?utf-8?q?ja7Nmv5ihMJmP6TfWZVxWGB1R7ZQDQmKQK5M0gapZcvti6ZaaVzPZ/wlADTARkpR9?= =?utf-8?q?vKLw4Xt4iwypc4M1/wYBrpmZa+ahOhhqqIy5+XUEgYl+tBJv5QBo+boDcf1rsRhfU?= =?utf-8?q?uy2RU/9f8Tg1dLP4Mys6iaBJ0yGa+tU2STiShOY7Acb31rhMqd6UZV0NVUQNYsumi?= =?utf-8?q?XZDcwjxE83MbJ3lVNmWm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t3QhLNz8L7D9Af9geYi064uCMvCjPj1118rFcuVmCxe?= =?utf-8?q?qAQgMjtc6xxoTPNIl6g+mFk5vmUayxu0/roMMa0jbU+DcX5jEg+lKFz28ur56EPpW?= =?utf-8?q?WJUHWJs+SLSufd/ehqKmN5BN4ImI7+d8e+YH33JtJ/MsPtDsXYSmboivBvRMf0gLC?= =?utf-8?q?uOUX0tnptPr2Bmp7BtL4es/CTxyPMBKRgw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 606ecdf7-8be6-4f57-007f-08dd202e8a5e X-MS-Exchange-CrossTenant-AuthSource: DU0SPRMB0099.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 13:10:41.9754 (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: UudmyV3+dqBIkVV08v1ve//DTWgrddBY8jHeSF/gJjVf3F4ThJOY8+UcYd7cQDFWyrVmkqza7Tzoo0u3588AOqaKMcwIHLbMqMULc5dyIbY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7278 From: Ciprian Marian Costea On S32G399A-RDB3 boards, an INA231 current sensor is connected over I2C4 bus. 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..5f8739c068c6 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 { + ina231@40 { + compatible = "ti,ina231"; + reg = <0x40>; + shunt-resistor = <1000>; + }; +}; + &usdhc0 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc0>;