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: 13937162 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2071.outbound.protection.outlook.com [40.107.20.71]) (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 31D3F233159 for ; Mon, 13 Jan 2025 11:05:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736766328; cv=fail; b=tTbA22mVOP9obYvwLdqGsYc+jv3pXah8JnTZp0OumBvFOvYyYd419wgWK64y+hOJ+RC0vX805VCgpLFQwXHmTJZmMMAapsFuMNtEJ4RrVAnLkQOQ00yI/3FVd1O6av6WyAG4XMJUaT5eEt1zSbHwOOcXQATmN55F2bPCIyuEmqM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736766328; c=relaxed/simple; bh=yeL3erO/e+GLObzHKCC0a5jleBIx1pEPSjUUpl408oM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=sDOkfogIphzWNdvEM2JixK+dVR1UB2VFyl4th5wbfzMfGFYZxt9ggdsRFBrVK803vx+sdC+WbzCGt8t+ASBjpCmUxHnn8zJxbNA/rbGQYTh50vREW0krIBr9Rh35KJxPj3HUP4Vldo8eqvWSvG6s37uETxYB81DD3iCzBUPFJrI= 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=R9sJQ5nG; arc=fail smtp.client-ip=40.107.20.71 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="R9sJQ5nG" 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) 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_|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?XlDLU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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?yijDOzRIkD21nvY1q6CQuv/CGYhemo+2UYfJa2KrCrn+J+n4lhxDmQCpjBsEe9lVP?= =?utf-8?q?C3FhBUdGh596KhupUSSPk/QOi0SWgwduYJ64YocY/djPrD2x1+4jXWPANkTIDjhX0?= =?utf-8?q?D13Yejy8I6BMjmqRrk+2Y24ekTGtSTEux++2uQkcGVy/pHuZSjo47jKFUH0xSrANX?= =?utf-8?q?KVb1Ey9Mpvn+ImX5tUPLlpDkVyy1Lt2N4BtrK1ca/1Y+pd+O5sq0mREjeR8WC9DGA?= =?utf-8?q?1i5ggaMaJqcCVTAgrtfW+5tnHZTf6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64e01upJ0yd3hp369VpwHxYfMk0?= =?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 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>;