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: 13916701 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFB50E77188 for ; Fri, 20 Dec 2024 12:45:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=M/Sinyv4+hbZE3+UGqwkZK7zp/FelTC2mTgnvGMOJEw=; b=jOYQCbiXyBQXgoRCBJ0Sq2pcps M+JINEw5q7xV3/AgvRLHvsLjnafdsbOtsaCZaIyeliug/xW43IlyYfVtcDuWf3I9rU39HxH3fekfG q5mM+ppOG6JYWLDdgPjDmhkomZZ4U2P+woAacXLJywf2QdwvoOsit34osVgALtn/r04FtZ3QUwjsZ uAbV/aQ+TpxAbtqY5jHN3wRuhWCiE11iyIrJndkP5Sx8swWHN3EZIY+JNMqTHO2qY0YlmLzgLkKdN orqida0DV1YmsaBqyeoCibnHIrKgQcx+gsjUZw0mEYOJdggcW9J7otmUTsbFsCmBoEnwg61OeFdXd k4AhUJ2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOcNX-00000004vNi-1GE6; Fri, 20 Dec 2024 12:45:15 +0000 Received: from mail-am0eur02on20627.outbound.protection.outlook.com ([2a01:111:f403:2606::627] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOcI1-00000004udA-3vEx for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 12:39:34 +0000 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) 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?eAkmKt6A3J6g4hc96mDVN5GPy4Vah0h4OuetAMYO20kVyMBQzntge1l0lv1GF//Gw?= =?utf-8?q?YnB5HUpGg8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?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+5hYujQrX8zYCBHtl5MJQJoLXgUpqa6SmP06NbQgYtp3FFEpv+y?= =?utf-8?q?3DpJwvbeN2JOlV+4pXmgVca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8W/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_043933_967587_4B47F8D8 X-CRM114-Status: UNSURE ( 8.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ciprian Marian Costea 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>;