From patchwork Fri Dec 20 12:39:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13916691 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2049.outbound.protection.outlook.com [40.107.247.49]) (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 EEE6F207DFF for ; Fri, 20 Dec 2024 12:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698370; cv=fail; b=a8t2AE4mU17vJJ7tFJfOIEyCj6tx1GZiKfHryOtlsnOsfCKRWjYdKlhEV7CSgknL6xwRhUHMVXYdijM8CpDsYf2ExjOIKf+7+j9xEBmGVAdKDnLiWj6XrY+t439HEsO1lz23wvLVeA72ZJiFsmryCHEypLHpx83h/nWMd2O6y0E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698370; c=relaxed/simple; bh=qjAh7JXM3ug12jOCcMTSfUwQ3j65SjJpFW6THDAF0TA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=X6cyfNzWFme6+BrD0KYZkkf1pV0SPoeeW6LVvcmCOBJzi1Bb5yjN2yxjXlwktZhVjvYimS6BgbVoN91ER/u6eGQ2WM0ZVUMU6TUwsoP/6UONd0NRYQKMNjA6fFHPxRGZKdrcCB07iA2czNFcoN3iFSnZRcUv8sowHgV3xQXejUE= 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=L7dYXwij; arc=fail smtp.client-ip=40.107.247.49 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="L7dYXwij" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vVT7AOKFOqae8cwZ2eZ9vEQv3/+ZM/XzJOEHdSwDQHFuIMDbp/1nTxCEPRDU6WGnhk58HlKK8ueOFwX6fe3IL/B3Pv6X5RQ5yP+KAENjj+5e8/pyh0P5T68vwO7plOOqi1YayrLkrrh2hjUwR30oej9dm85Z6zbyzovrchhLoUgUuYm/7SGDmhiB3os36uvVICWKibH/LSr3v7TjhBcD8Vadjb/l9mTBQW0ehtZfhBrzHj5C9nZzEgGq+1s5Pp0YPkNFndR2NzUv5Q9Q4EXqM4eoEMKW1FXGUEaUJ1aiWLrUi/ZaPjDD5tQBgBoT9l3ufn9M/kToaRYLmHMZBP5Q2g== 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=sLDZdMfm0LSWtSutfUN+opQ8EXFgZw5Bsf307lvmrCE=; b=VU9cGXklPsC0DsgwQ5D1hq/lFZtFm0dO4nFM4b7tDI7qrA1+IHMVbqU/+WGzVU5KoxduEeao88JNh7CHOVB+g8+vkp/y2zncStDvZWWKVkfqqHBRP+KuI3Ci8unFhnM8fhcgUVXEWtL8+ywt5krn8jkb/B0WBuIICoEEXamoSZ1PRjidvxoFCD1sqy0ovYxnf4/AysDB06UxWL9zZKmHxcBKbcvx+YvQ1WBUFygWd6ZcTs76LAnJGVU0Y7jl4bUPbChpjusZptbauSBqIV/wd0iteJZVNFGlCLPrFGahotFrc1Pp4pgzYtAq7maOCHBOSXBc9s3w2VJytobkVQsMJw== 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=sLDZdMfm0LSWtSutfUN+opQ8EXFgZw5Bsf307lvmrCE=; b=L7dYXwijaRuDQEvKkAt6TgGVOjb5Sv+FEz3O9AH/7dE9d2/wgOrKSL7+AqktkNv18tIH/YmV9YHp+NHpESS2srwQWF7l5gkmBF6ZAtCMRGOfNcju0sRsrPO6O8DWYB6By3Vj1qSKHpEXkSBBYrRfVC4ls6PCc+CaZUmisJCuufDQmnfxn+5EO5KH0tltlzdtLfGLdOlFtOAcwmJ9Y9IM8m2z91Kilugn04Yi5lB78YUBEtHpyF216rHAeHhVbvG1pHN6zvwZYKIMZvxrscUxwc8sibu0cEEZrYX0zZI1kjEsFQfoE7AMPpNm+3Q1ki/6MCSrxvJd9a8P+n0MQ9zgAw== 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 GV1PR04MB9516.eurprd04.prod.outlook.com (2603:10a6:150:29::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.16; Fri, 20 Dec 2024 12:39:25 +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.8272.013; Fri, 20 Dec 2024 12:39:24 +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 v4 1/4] arm64: dts: s32g: add 'I2C' common board support Date: Fri, 20 Dec 2024 14:39:13 +0200 Message-ID: <20241220123916.1452582-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> References: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0020.eurprd02.prod.outlook.com (2603:10a6:208:3e::33) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) 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: DU0PR04MB9251:EE_|GV1PR04MB9516:EE_ X-MS-Office365-Filtering-Correlation-Id: 06a94e1a-fd13-468a-92c9-08dd20f355fb 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|366016|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?a1zT7uNDlFZ8SKJ64paVmmKFDmKwJnv?= =?utf-8?q?3RzxDsMSHqYJ85Z7lhA6qvyHWuIj4Sw1KnzZw54RvPDrgc85A0MFg1WALd464Vgh7?= =?utf-8?q?XVNob+x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nY4MY8opfYj0j56t2pOD9Rr0bb5mTv8sawe+WnxTBWCL3aOGP65f?= =?utf-8?q?bqvd6w2ViK3yl8ol4SNGA0h48dD/0UHZiKwmlI/bxnWXbPLUj4h66tBo61gWUQxo6?= =?utf-8?q?k8TTYFnk4eSNlilj9LpU2l5FEbQyT7ba3t+wEkW+uuvq3hBm1SEn624iDEe5opRQy?= =?utf-8?q?BOzCQaYKqt7iGoffgH0HeOnu1RJSqUcNF63enRaMBcsema4ZhLjyVnY3o6msnQkBH?= =?utf-8?q?NR5N9lsLZYNvYQvvqliSQD4xyDN2DCOIdFcuq+1TexvZATw3LXdTA6AfuT6pCHvNu?= =?utf-8?q?8gtlujCBa5HziigMQHVPUT8DYDkePv2RYjYpGD2l9ze+dUx6nf8mVeFuP86vIefTn?= =?utf-8?q?fiaaHJBhDwgi?= 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)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TT1iI32/veBUFkvBYRBN2kyVGXy/?= =?utf-8?q?SF/Qp4pcH0a/78Tq/tuN6NwSkFhIOh8uM1uLePkmXMOIiHjtbN2mhRX+o3kzHij3j?= =?utf-8?q?p2wSSArm0Oc8l9B8qXiPnRbhBKEKNhWasRg60PDsLbgMmIhJpPILAUO7rY34MzTm3?= =?utf-8?q?9QsAkp+lxH30DAPISTuiQePl4ZGq8zjsZUPP2ubbj5e/i1ts68eFvG1Q9Dmd0ALKm?= =?utf-8?q?qw5p8xDc7slOuPnZy5Io/wI6ZolDUsvsVWMArIrM9Tc2oPzVyqDxr2I7eTxLqryR4?= =?utf-8?q?80aNWtdySac0JbDg1ZvR19B/w3C9vMr52DbSC/iLI4RwBr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bK2udHEv6ALg+J3l2Sa?= =?utf-8?q?3driIN3+INwI3sJ35xlYBT65J1M14lDNcFT8QdloB17vvUhpNQRKHKGZtL+K12nmt?= =?utf-8?q?WDTlJFkPn9dV06/Tu8fpNoJtseqvXaGQeL1pdN7eJBd/eyZGqMbn1A6i1b2cOQUqp?= =?utf-8?q?+7SZSYQsAeLXmbjgY+WVNiLIdaZaHGTPpywU/OLjggf1ifJUMpArUlNWNXV0jAYVM?= =?utf-8?q?iDHTvA1TYHp1bornM7veQTH+oiIven6a4Evp8XZr7sVH3cH0+9rsBddpHgAmQKrBf?= =?utf-8?q?WRmT/Ia4vd+vrrapWaKskt6V0z60eC2qPs1Qugi6DcottbtugMGNk+8GBDq3+GfA6?= =?utf-8?q?aSLPMRQVN+ERFd3jBIX2/xUhLMyfp+B/4A=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 06a94e1a-fd13-468a-92c9-08dd20f355fb X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 12:39:24.9185 (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: oG+gl26vAyjli0/O7/YyvOm2QypgwVwrBAWWrKBMY6/LI5ieDJEzrUOHJsGigTF91XfdeQkUjWmLwQhFUQC0nkoAWWkPt7201nU9QbtKitY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9516 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 | 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..1a9683c234b7 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"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x401e4000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g2-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x401e8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g2-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x401ec000 0x1000>; + 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"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x402d8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g2-i2c"; + #address-cells = <1>; + #size-cells = <0>; + 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..5d28b439906d 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"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x401e4000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x401e8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x401ec000 0x1000>; + 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"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x402d8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x402dc000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + usdhc0: mmc@402f0000 { compatible = "nxp,s32g3-usdhc", "nxp,s32g2-usdhc"; From patchwork Fri Dec 20 12:39:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13916692 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2049.outbound.protection.outlook.com [40.107.247.49]) (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 2E3EB2153EE for ; Fri, 20 Dec 2024 12:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698373; cv=fail; b=BtqCqFAczprNR50oh9/wK8lf+3QazCNJ+62JKdrsAMkLyvGQpfPeTXm0HUAcrRkbfUW2s19w0rXFjNinguKmCzimRPcpQb/NvV+slVR0QoHtya3T6Te29ZQyKMCKpBbFxKbZCa5ZIt5o5ajYLuTDhUxD8+AkNHAVXTa6IuXxpvw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698373; c=relaxed/simple; bh=V6Z4ZVwvqpMn16SzKuQYkVBLoy8s3e08eftEKp1LnJI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=FOHst4R7DRe03vGh3o5dirj9dham2UWKdEEMo/2bKO2fmHfc8H2NZT6rDQ0wdxy4i/3lVEMk1h95M0S7++wTguVHgHldhCcI+UK54sihLg/8Tgkjmz+Ewgtco3+SEwKIkwBn7nV+8Gn+nR4SZWRWskxEzm9NblX1WoratJTp/Q0= 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=vrroVWVu; arc=fail smtp.client-ip=40.107.247.49 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="vrroVWVu" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MiaPUX3K+p0PAZ+xvyqpH/VYoyJiab2TurgoYd+GM/9utMlYvmqEW7ysK0imdpGimrBKcmaG7l+46xZVOIfheEkKeb1WFTeOtMyfjqM0rudM2WcPLf9sZeKiRLzyuedYggMXoBoVbdk+qEXJPIrGHFxQD9JA0dINZn+RajV97sdwPLaFNel8C0nIO1C36HpoZwU0/4JG8r14mdRuPUbIihxFYeqTozTo45XV1R5qdAF/saoeLaZdvSBZJGt8D8dt56JPE4hpD2oJNTHqOF91g9VYoHsQjrzSuQLf7gam+uhFPEuaKjZicBcbv6qacse4JvOQEwhU4JdzfTcq5Zdvqw== 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=DpJH0m5r5QjlS1rUHDKPt57GkZmO1r8jol7GkA50rNM=; b=IZb46E0Glh50LUWKF80gxvkh7zv/iRCSRJt/LeeRvQ8TJez6d9cdYLeHr5tNHv6cQHs9W5y3kEFL16OZSIJjnXThG43wCyi506MLO6GasMWH9OWFBKYmng0KaQ0cJEpC7hJKhrygVOof1c75IxeWBHb5TgfFFjocuJuVLEcjFFibrxovf6Rx+/8lcADRMS3Z/wQsPMx3zfCPpx33EFkMJpDGY8HBNZ1JyhJlfJ8V0l09wwpDntvh521wKtBhuGwxU5tX71BWMX6LIIJjJ/3XYHmDW7waaVEDjrQRArTGl3DwGC3fNmobVmD1DPK5vxeWQ1/gLrCfTUyKbjnw0kgOKQ== 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=DpJH0m5r5QjlS1rUHDKPt57GkZmO1r8jol7GkA50rNM=; b=vrroVWVusOdrS3kDuC5B5ExXw9naAUCyD2/6gMdryTIXjopO3mVFUBlohe5varktIr2yzLF1tTY/OKMVCBNTafeExzbJkzC1OFJvdpN3ZFXCgxUs17EASlTXTNHjo+HcmVklojSDP7LQs1zmXbrymi65gdjCzsgq01Fdc905qwXvgiot+Q2Jbfv9Xqs11kBnVEVA4ZbZcY0XYF3IJG2awKAlJ2WjS/mKJnUCDuK4jCeDcDNNsFSsq//20sNpG48EzRq18McoycMIktf8ya04dIjCcsiCqFWVlerMENvG2w2G83/0y0oCwCOcljMr2FNrkI04ujB0ce6Qy018qhPgYw== 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 GV1PR04MB9516.eurprd04.prod.outlook.com (2603:10a6:150:29::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.16; Fri, 20 Dec 2024 12:39:26 +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.8272.013; Fri, 20 Dec 2024 12:39:26 +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 v4 2/4] arm64: dts: s32g: add common 'S32G-EVB' and 'S32G-RDB' board support Date: Fri, 20 Dec 2024 14:39:14 +0200 Message-ID: <20241220123916.1452582-3-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> References: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0007.eurprd02.prod.outlook.com (2603:10a6:208:3e::20) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) 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: DU0PR04MB9251:EE_|GV1PR04MB9516:EE_ X-MS-Office365-Filtering-Correlation-Id: efe9b32e-e19e-42ce-92c9-08dd20f356f3 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|366016|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Mng+4FYu/RQpK6i8uAocTKSwAy6ARSq?= =?utf-8?q?AGBRJrFwc2ojTZD5HMdZ5XeG1s678quiSEjIYormu0lkc1pULQ5Ez8jH0X0q7gez+?= =?utf-8?q?1vbcHiEOzQPsA6MlvdX719sRogqR6zO/soJ+mju5X/qYybosDwbT7APVYOOKz0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?q?rIm7NK17GOVoQ4LpSV6wdYoNX0lF49zeK+c+NrVmtWZa/+hFj6vSnpMP2CpC71QIx?= =?utf-8?q?ed62e0AZWWZgNElA9gIaNwv7vgwRcRwn5Lk5PRL9Q5c59/PBTWQDztuRodb+cvU7/?= =?utf-8?q?CqzCEvvjyIlTCJjIGbwcopNv5Ww1c5uxILcC1mr2FaLxHM9IeFP5872I71xgTx/qg?= =?utf-8?q?19w2CIo9gqWxQ0ahrjodGg8YZVPVHldVWYeuJ+yDrPs7mwpA45gzZdnQrAHsdVzjt?= =?utf-8?q?eStybQeMAF6YjmEnGf6QKTum8NXhoiUED3Ic5DKUEmDOOkG+6hz6F/x6usOR1kRRx?= =?utf-8?q?klHU6WYp7N2M?= 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)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?edhuoN8O+d6QWXV/R/nuUvkUtvYI?= =?utf-8?q?ZWYZmq0glKW9uZ00cWPelod0hXU6O75kTJJHs9H5+ObJjqfQ9BVqUqEC9qcj12ocr?= =?utf-8?q?P0IF5GtAz2QQD1tQdur5gXaw84fBkwUqcgiECqAH+38aq/EB7T1DG6KnDI595Tz6n?= =?utf-8?q?Ffa8YrxGNn+AYsphqe7Xxr8lwjQLCkt6uh/T/vnR/C5E1Yz/qpYthFoEXPCeH8G61?= =?utf-8?q?1DU66tjpgJj3ybUIgxTyZb9e6873rdWZIwiUtyIUD6O1Wo3uG0YAmqTrC+Z6g27H5?= =?utf-8?q?waXN3f/CJYrzL4AB1uNlcOhNmsjmzLXqBiFHavK2Wcc/9LrWuYOMRiPdTo5JGCuDo?= =?utf-8?q?WMs1b2Vl/ml36XY8Q8V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AoA8ovWnmtIPURvCQgVsCtYRPg9nfc8KlZqpJIVfPq?= =?utf-8?q?TI+iSAwcrq4zp5Zmi323khJw5eMHQ6M+9jPNxCfsulfhJsNPr32wSkXjwxj1Ztl8y?= =?utf-8?q?EnMlH+GCPAqa0uk7yw4ehu6fw5+w2yfGANZEqvqJdiVIYG3eI078q3wr+Nr9ahL90?= =?utf-8?q?S7qyOy/6afs5S+3nQaCePhP20THTCR1VsV6Gq8JMa06tMvmsCCVAfgWn9ua1X3k/F?= =?utf-8?q?nmks/+/TfeQSeLaUzKenaUjstxmD63Y1jNQGZp0e0Qt/qGHiGg1vgi1bROrAtQUSY?= =?utf-8?q?Ag9TnO8zpE1fzJ3KQPC+YbsJxNhEVK2Ayw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: efe9b32e-e19e-42ce-92c9-08dd20f356f3 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 12:39:26.6450 (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: Txmaclv+iR3v+J2//xAj/1Fvo+nHJYZC4xJuUydXSq/IMGkECru4VGlKYcgCyUZ6cVegl1iXVpkU6WOXteBNLxnz7bCiBuh7rdBoHWEKmx0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9516 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 | 122 ++++++++++++++ 2 files changed, 272 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..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 Fri Dec 20 12:39:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13916693 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2049.outbound.protection.outlook.com [40.107.247.49]) (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 70C2A2156F6 for ; Fri, 20 Dec 2024 12:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698375; cv=fail; b=auSGxxqAAaUhkWMesgBCOlWoBdgfN+vWhHs/1o7CfdGuDD35NqH9MNLiI0G67o6lpYYmBMU7edDi5hv9Jn3PZAc98zrlkFPTIrd/DyUCAgFkbdWqbRn5KkU9igJBxyz7gZfrYuYpWpSuesJhrBNYoWtgwfH9aNxtmRcn7H1JjdM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698375; c=relaxed/simple; bh=fKJZ0yRZJBhdcBIvBo7tIoRZVSYpM761/9nDtOzAdpE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=CuMLn68vM1hkoBwho48Jgi90j8FbRKPQmicMAE1thLpEN1dYjFtRXxkwPLONksxlIwQZWFg4Cho8we3wy2IeuExILKfRyfIn8JQTNdoHZZ40LAvBVMw/UfEC7Wn0HwsMiM1itStK5Va8rC92piNLPW0lYN4QxJAF2ymicUvD23g= 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=cO2DAkVM; arc=fail smtp.client-ip=40.107.247.49 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="cO2DAkVM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yhjNiTpCkMtMi/CU/LHUIvzfBtX9csFclPDnrg742coyL+MLZDbkUxx7a/V91VVHqkcYs68zCyJxi6HcktjlqiXavIjjz7SEhZ9OyUxA4bRd2QHj0wG00jrBhxMS6+EdaNWMUUid91WVI8KSnvbU0rqOBLAZ336ddC0G4SYphJF7BF0TJahRtrFYuj7EgcKjTRNE4my5/0sGe/rNAdbMymXTut4uDAtA75k6FeEA7PtDxrQHcXSiCCOCTb5gQ3K0UjGgqOxK7vdGh96bt4GkV5r7rUiz76w2BZ40/5i1UegMjdf1RiJDpmjYmaeHMkpxV0h7MJ2yTx+t+H4SciMJ3w== 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=BL5SzSo9z2enJPV5TSZdNNC1w7TIP36vkxPoZnW1G89DAPnDxTaqHtSqU/hve3E5tARxf2UOplCeJmA9blAaqoJtVdIeA1vKnVJTNZILEb3AdBrLn0jaLGlBYK1MmUkbL1iRi3Afv/l6FCljvDYqJ2voY5R/oaQBLAcpKosI5DIUfeV4zfkGMuyl3NiEG8TTAC9p1xZPt65y1MF6ooJK7Ucce3i+i/lRIPQ2wsV4ml9oUrISyOI2ECnim75XkiTR6c5I719tg0kVM5BIP7f780cbskOTPVRkJpfZYuX13xxFwJe5k8P5gEDiKGcRlP1WcDkNBkmnXhJeJBfjcVrYTg== 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=cO2DAkVMsmH8+SnR/OceD3FUFrFQojHtCpf6zvdOBw0J0BvXCO1CIsOwt/6eKV6wAysOMXrILcVkyUglPQDv80jiqfgmtXqwCZT2MyhtEPFRTHPkqlBdTsZRERg2WMxUqop88GG50Etpjby1je/QsKlkDXgJb0Cw6UYPQGI4Jinyb0uTwZ6PjNKzv9VXNbi3dhdYu+ayQ9xEQoErGimSR+g1Wh4/qFBu73Kc4ZUOr4azDuScGI32oqBRkYpV/TbTinuv9u5OEa8OqU8u0YhHaLejVbSG3IsQcWG6LMgFuMr99u1wMY9mxPEhYMf4EBvzUati/gDmaJZpkRRGWTnGfw== 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 GV1PR04MB9516.eurprd04.prod.outlook.com (2603:10a6:150:29::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.16; Fri, 20 Dec 2024 12:39:28 +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.8272.013; Fri, 20 Dec 2024 12:39:28 +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 v4 3/4] arm64: dts: s32g: include necessary 'EVB/RDB' common board dtsi Date: Fri, 20 Dec 2024 14:39:15 +0200 Message-ID: <20241220123916.1452582-4-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> References: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0002.eurprd02.prod.outlook.com (2603:10a6:208:3e::15) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) 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: DU0PR04MB9251:EE_|GV1PR04MB9516:EE_ X-MS-Office365-Filtering-Correlation-Id: 4591ec42-ad8b-48fc-a68c-08dd20f357fd 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|366016|7416014|1800799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?utf-8?q?hxmEDkwHQjAqfH/UagSjeeR+EinavAYzlxkrYCRqqp65dG5hamFeAghEoZRvTECGJ?= =?utf-8?q?btbnJZZVYmuycc9Kur11s1wgdueHI6PwVKA0Fmnbrhwwt5JSA1/Yl5ks74LdoRQKF?= =?utf-8?q?qx68yk+pU102ToO5N3oQfoBoP4fLmLLi/igTrC5PaUy56rI7N/sWFVspVxBHlNbo0?= =?utf-8?q?pBD1MFb36y31M1hemKjQxAk2k79RZq4oLnHEq6hzOS1kConWRc1RpBLpQ/QBXIDWK?= =?utf-8?q?AcHAEjidQX7j0URavUkLMYPSGXZ/JaThhJ2Um9VE85+Mb2DWcO9+vq1JstWwRL8QN?= =?utf-8?q?k4eeovwfRAlIYLtm2MioQNftyxmP9tX+OqzdPMV9e3M2G9IOqK5JVwx8xx9SzVL3s?= =?utf-8?q?+J7klOs1OtcDNZW9mVCfV5NP7XM3OEnni5gnjU0V3pMaeueBbxfKDojLj0VmF/faf?= =?utf-8?q?tMR1GNMSOCYgjWu0nZuKVbQdDHa3tv7Is0UsrcKmZ1Sk3G+Rd8XvULKjZcnmitB/w?= =?utf-8?q?mvC3V16MJFkK?= 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)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?1JT3OFNUvNtXfC6Nx+4o8Pi8cfFq?= =?utf-8?q?JM+TA5pcaNp9fzT/sKAMa8y5oOJsei0VFNuigzLL6GsKkhbkKAnlpb+4bctm+U+Z9?= =?utf-8?q?yzoAO0igRlEBv5+oggJjSmCMFcBJ+f141htIBtUbEYnqqsLoq1rKx0uRTHYajrvpo?= =?utf-8?q?TyCW6QTZ3oLGSZTyqJYOA4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CmYyscIXZC2nwMlOB4dPOdRDaRxefyG+2+fucUdr8Xa1K?= =?utf-8?q?8lfmD/na+UX0ECSBtxAzdKsGJGGDKX6nHKfKjqLoTAWbRHIfZZiUM4DM/GL1rjFcR?= =?utf-8?q?OKWYIVLSvy/zFzxAOKDml0Maj4tEr+4CHCNypYkSItpIKCfbItkI1mlpSmJGq/bgE?= =?utf-8?q?QV1K8dNldX3Ln14Btwggihy7xsKpv32OgVGo8BJDcS54Ya2/ZPW5fA5zqiPqCy6HF?= =?utf-8?q?tg8n0v15fvyYX9cIbj6R8Qt6g8phsFRiXC/sAVtVRk5AhDQGu2E+F9NVQtDHGIsR9?= =?utf-8?q?aqSV5nB5t0D5N4NwRnxh5nzlEggVPySTsB9BqmyrCpPO1MfSYHhMgtJDpUEL/3mDq?= =?utf-8?q?i4Ael5ijQLRPgjfuXVdqQHWnl7JZEAgi0qfwdxYW3jkJAFi9UR7XApIbbom9LCJw8?= =?utf-8?q?RtPP/2bvmHs0wdZOBQsat1OAmlwMZOZVuniP66hP07I2lIFMacjyRPjW9I+THEmoN?= =?utf-8?q?8JzMnp/X5CvotGr2ETejcq0Bs2dgILID3g=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4591ec42-ad8b-48fc-a68c-08dd20f357fd X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 12:39:28.3332 (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: mM120ZVjku1aK1uKZPk6gm7pNiC1VyvTBjJfyNp0IKWKVhFGN/p/8u+HE+TzO0ptG+g/H7kBwd75v4t0r1kn6vp/fBzXI36YLF6zMOTdM48= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9516 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 Fri Dec 20 12:39:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13916694 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2049.outbound.protection.outlook.com [40.107.247.49]) (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 B0B47215717 for ; Fri, 20 Dec 2024 12:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698377; cv=fail; b=VkFWFCQjivosQD/VmIGOySRI/DHFlQNd6eDwFOL+PEkQ9vnFpQ2NHcVgvKJY/Zv1yaPwFX+KV7zuSrikqUDpdo7fGciKIkx9IUDGEDwALIWYezlSz3hyiSN8EUrwBFlixxOj3TUUgvC+qSD6bNpb7/XpW6Uk3Gs1eCJfugfserc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698377; c=relaxed/simple; bh=So1qb1mZdf5crPgsgJIDQ6r9AYqepnxNsPGymQdqI/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=DFI7/0UklJGVhAbt6gT3v2k2hxy/XsagWGiqeNTlU8EPpEhFjd7WN382Y+MfJEoYhClDkOkXU/6DFTata6SHXilGJewnMfRavalCD7bApRwEJTTYowJFZeAyc24IOudPXJm1B5awHN8iQK1eDFDV+iJg2LE2G7N16C71CUGRtf4= 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=DFCWXAoM; arc=fail smtp.client-ip=40.107.247.49 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="DFCWXAoM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sL6s+jx803nQ+faK1uBBDjrxxJJx9VTVnke86nsjtJcrN6/AegHvPHTEmFXja61zwvU3nSdxBQ7rdRafoCR0s/zvG+9g/nNzWhcTSBhmYYQHWXzaBo/rpVynOTQvHLENd76+SlTCA9wovhaRB2Bf0ypr2UoVn6h75pwIlN+t3qpG1KSfCPHedah0lVuytbLGZ5Bw3MICYNdRhATyLdXo/jf3vEGLLT70E7e1/ltSDeWmtQoARNV7VSAgTR2qgUw38Jm3LCejzBi9G7inF5DN1sCYqg3JEy1iPwz5b8fppMKpiIcwMn+NJi0SPtbObBaH5jdTDPpa2O9WgujahOwARg== 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=qKjwGqJf+/TMWf12rRvafQBGM19Z0OV9l8N86WOlreeBoRObViy3KKtI1goLVaUo3pPT3l2XHI0PUla0do/dTUjZgCsIQ+b2fpGqtrWWX5Bnp0Qypq90n/dve2vIABxz26BFX8Bk660rUFWLqvbkvtm6era4wcAQ4F2E9NHLvKqoKr6pdDK/iFouJgefLLfQcOBVRdmXrnfSOXNRqM6j428R5ZnlmT4quaxib4O+HKATN6BLFiX2p490cyfsonM07Zlf/iz09QiThQbFD2dKbriCZtb65GGFk2PKVNjKe3BGqAAP0RYRjMmPeROZ0JDq0fJDpFAEwSFaV5B/cENvbQ== 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=DFCWXAoMN9nvw3XX6ieA99fq9Jfwg91CxLqMWQwXPmke7RqgEvDlm0tMBlfzj2O+q6Dt3wk7F7vYnbZN94c4MQybpJOSrDUmeQoz/2ykhQxaoVuURJikV/xms99rRzm/4pN/xFr6Y+AjV7GDO3dTUDZjxsOKasfANuj4s6cawm2IuOagtXmgt80e4G2iDReRBonxaBdGCILNLs1AmgDQCyfhf8ySZO+XTLiQ0U7xp/EssWEGSynVSkhwTKgNczKseHsMB5h+s1XOl4U09OP4s5RyxMqyUpkwVnKPU7oYJCc6AEJXav2z53DJOGsxvDQbyClWPzD0bo9dJ72RI+K8XQ== 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 GV1PR04MB9516.eurprd04.prod.outlook.com (2603:10a6:150:29::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.16; Fri, 20 Dec 2024 12:39:30 +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.8272.013; Fri, 20 Dec 2024 12:39:30 +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 v4 4/4] arm64: dts: s32g399a-rdb3: Add INA231 sensor entry over I2C4 Date: Fri, 20 Dec 2024 14:39:16 +0200 Message-ID: <20241220123916.1452582-5-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> References: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0017.eurprd02.prod.outlook.com (2603:10a6:208:3e::30) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) 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: DU0PR04MB9251:EE_|GV1PR04MB9516:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f48f6d9-34e4-405b-3255-08dd20f3591c 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|366016|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?91/ttKM+eiaKnvg67KaqOYu2PUNedok?= =?utf-8?q?2qXNW/6A/oIPVzjXi9eCe9GW5bnK/gpYtszzVl5HNrUYY/hQ7+oMLOEgSrTZQF4Mq?= =?utf-8?q?eAkmKt6A3J6g4hc96mDVN5GPy4Vah0h4OuetAMYO20kVyMB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3ZdQjnciIHoTlaFfM+IJxeYNXKtVO/OkD/?= =?utf-8?q?ztp+qo/7xcn/jOvDV19p06ULe19TKUQ1uOZTdAZ9BdWxJCiChzgFot4Tpp4wCxAzE?= =?utf-8?q?6OFGMWcWOmtXafx4yortVH87VW1VhlRpeTbq8msv7lcfjjEPIxHTw8d5RtZgbyhRO?= =?utf-8?q?q7JXA1tU3ipVfA0zO0ifowgmvt2EzxYf+s7FkSZjaZC6JOYYo5/TtKEZXqMqm64s4?= =?utf-8?q?cWMGHu4lhvXEZXbgR6cRknnKOsTX6dUnqzkWEO0u9IdCfsTGH1C2UZg6C3RIfnH4/?= =?utf-8?q?oE6o5zaCA1+4HX/OIfDdD/n15mNgxd7obf9/7q62G34ptgphzh31WzUllY+HzCELR?= =?utf-8?q?Vg+XyHBJyRjm?= 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)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OqjpR3CJ4qPXwTQ9e2Exq1/oEVXG?= =?utf-8?q?5KM8lLB57gj2JRVVCMmCcajwxxBAz6SHn/GI5X82807KVfQucTG7sg4CAE1uLSvOp?= =?utf-8?q?SIvTTdUOgWyNU7RbUhqD97VGg+Qimrai8bcBvsws69bUNX2p1JVoIW7m268T5LR0A?= =?utf-8?q?K99XNa/Oi61HkdnElGTGxq8hONt5rIzL0l6h45mv6Y9Lie9qWYdV11Sqpd1H3g7MO?= =?utf-8?q?RX0gGvaXvlGd0wXEgtRmxUMtfId2NmyVj6Z4ZOJJookZYFEqCR5yd81hLMMsdGLTK?= =?utf-8?q?pxXiceUE87uL3O+5hYujQrX8zYCBHtl5MJQJoLXgUpqa6SmP06NbQgYtp3FFEp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r?= =?utf-8?q?F9RX/Sj41ziqyDk9mRT0YhNsK8W/ocxoookGrjp6gV/+3BexpiPRYxfQTJgqpoB0G?= =?utf-8?q?cMcLp21O230dH/WBiP3VZNXcwmpzw6Y02PY3DEBYsGQ/GmTOHLRfFsg6QPqYEWXa9?= =?utf-8?q?Bcvu1oVCzmpMEBG8sdeRk8W7ohpNhhCi1+UHE6ejdl9MCUKJ4MR2Un53F3vaLkWCg?= =?utf-8?q?ZOFoF6/FLneUepYxrRH8VakuORP3ePBZlTTAu0vU0X+U5Pc+SRrWKp+isJs29V/m/?= =?utf-8?q?vhdt84N/X0olohDnyVJ8ZYKtz6QUYmqG0iB25+efyfnavkO5r5Jx2E8oYo1d3Wayy?= =?utf-8?q?8X6mdNxdOmbsHM+aHbFFjZYZ6cUeHRJduA=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f48f6d9-34e4-405b-3255-08dd20f3591c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 12:39:30.1685 (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: 4fGWoXTwpnJiPxF8N0CG4GUInx+7nIo5w4R+SPPcyP5qn9Pyg9mmDdqY0FuRwjUuYY9ZiN/31Vmf5XeilL6e/+fh61Iy44VhxrEpsW2O8ak= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9516 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>;