From patchwork Wed May 29 06:07:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amna Waseem X-Patchwork-Id: 13677902 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2071.outbound.protection.outlook.com [40.107.15.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 AFF5B15CD77; Wed, 29 May 2024 06:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.15.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962843; cv=fail; b=rx8JxKqvJEsPa6E+jxjDtXx8IKhXt/+iIOj92gCWEgvegv9Yx+2E+tSZZg/NYgRflH6yWcs03+KnJKnAmtBcmtfqcSxR7HhahHLB/Cmua67V2abwOETNWvkAs4YGIdwIy4KKObJAmyiexOYWS6T8osgxYd76KvEA20Nu9VwQ06E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962843; c=relaxed/simple; bh=It43Ej86AgPUX82GcwNta3dMVh3MKkr9csmbqlpfWww=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=cY8pIMPQubP7yAACO2JXLLaYP5SYTZXPEv6dWltFUD6e9STILTiWC86dndGCNlCl0WiNRuFYhmigEj72sXtnokDHjVwv/8wX+E401FcwFDomcqGzG2b0AoTfyqpxO1JoBdvZzzz7S8dotOMfYjVR6p89syrjN5SFyM6/+WGUMcA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com; spf=pass smtp.mailfrom=axis.com; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b=Xqp12v7P; arc=fail smtp.client-ip=40.107.15.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=axis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="Xqp12v7P" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fvu+IHsWxgMKzT7Y/zqgv6YmCc6TFnf/KxmCllAExuEek/A02nkH/kz3uKFcy7/opDJ2s/e2BBl6zwV9oTDKRghMqvR7oeD5QU6RwRxZJ3zHaR4f66Kdrk06rUevCy4rJeDVEMV+qj6L1pl/isemotID7HY8YP+AjEuWzY3k6cqLWdJfDAJf4rdulnmDXbnhiK94R9wf0+st7ra4KuCt5bwesQ/fKrz92p3pXe/19RJlClsRKlQO1ha622XhUhX82gDZtipQeqIYGUl7t3fcw+/AR5uBKxJRsk1Ls7Xpdf1H4faEMirZAagkqO959D+Iv9iekFD6cPnshTVgU1pKVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=2mJo5iY4rLSNOhCm94kwwG0uyjRLmAUa4jSdZysES6M=; b=N5Jxr5eou2sm4X4O+wyp4rdmf8SHNhnB7Fm8cQNzSzJ2JwY5BguAH63G1CtGXv2kQBFzZsrmWUjQqV624MWhmDpVNvMakkYydzs3oYElijBqNx3mnRKFf54PC0vdZ2hEuth/uXbixWJZ9PFN8MNHEKS49VrOxHTz0gORnqUxNFtZkM2OARlWor3FvXa+OOfLfPXkcltNT4v4sjQTVGtACKlPDWSKR8wERS7G/RFFoMIJdeZGlNFKwuvwFTY7z6j5ksQCDhGPGmwBYzAyVXKOZtq/Z6nJKV29a7SpVmWoAA+i8jYOo2tHvu4Pjzm+rgXnm7KUzuRLn+THOPVwUoRksg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=kernel.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2mJo5iY4rLSNOhCm94kwwG0uyjRLmAUa4jSdZysES6M=; b=Xqp12v7PmASxkBLL9fMwfazy+kMjX1uDHia+r/DWFIbabb8yCT8bwSjaZ8cBt0TY2yDZzbvFXKEtw+RRhS/li2vuKP/d9GTkO7BpuK+VF91bRFzYXXYvQrm34UOBU1k2+PW8T2svPvCvue3N5Hz6K+rJb+C4H9YRU1qUcOzZ09A= Received: from AS9PR04CA0111.eurprd04.prod.outlook.com (2603:10a6:20b:531::6) by DB9PR02MB9780.eurprd02.prod.outlook.com (2603:10a6:10:451::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19; Wed, 29 May 2024 06:07:18 +0000 Received: from AMS0EPF000001A9.eurprd05.prod.outlook.com (2603:10a6:20b:531:cafe::88) by AS9PR04CA0111.outlook.office365.com (2603:10a6:20b:531::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.29 via Frontend Transport; Wed, 29 May 2024 06:07:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AMS0EPF000001A9.mail.protection.outlook.com (10.167.16.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 29 May 2024 06:07:18 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 29 May 2024 08:07:17 +0200 Received: from se-mail02w.axis.com (10.20.40.8) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 29 May 2024 08:07:17 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 29 May 2024 08:07:17 +0200 Received: from lnxamnaw.se.axis.com (unknown [10.92.129.190]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 19A21B2A; Wed, 29 May 2024 08:07:17 +0200 (CEST) Received: by lnxamnaw.se.axis.com (Postfix, from userid 12778) id 16E68206972; Wed, 29 May 2024 08:07:17 +0200 (CEST) From: Amna Waseem Subject: [PATCH 0/2] hwmon: (ina2xx):Add Suppor for passing alert polarity from device tree to driver Date: Wed, 29 May 2024 08:07:13 +0200 Message-ID: <20240529-apol-ina2xx-fix-v1-0-77b4b382190f@axis.com> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABHGVmYC/x2MQQqAIBAAvyJ7bsFWM+gr0cFqq4WwUAgh/HvSc QZmXkgchRMM6oXIjyS5QoW2UbAcPuyMslYG0mR1Rxb9fZ0owVPOuElGY7l3xrplJge1uiNX/R/ HqZQPxp8Wg2EAAAA= To: Jean Delvare , Guenter Roeck , "Rob Herring" , Krzysztof Kozlowski , "Conor Dooley" CC: Krzysztof Kozlowski , , , , Amna Waseem , X-Mailer: b4 0.13.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A9:EE_|DB9PR02MB9780:EE_ X-MS-Office365-Filtering-Correlation-Id: 359440f6-13b0-41df-220b-08dc7fa59856 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|36860700004|1800799015|82310400017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?TiC/WHKuQnydZZZeL9IRyMp1Hcr9ZgP?= =?utf-8?q?bmYhcmpi3R3my3HlnfhwEcdWY66BRA5W4Ci3utRh/Va6Su5kH1wz5pbz2+EhZm/Ei?= =?utf-8?q?45GZR15+iieg6zh+w15T4shbg/Y6XYtk8GMJzJtsErtGe6sXAqH9nfqlOjoCrlTrI?= =?utf-8?q?89SzWJjKotvav53qlpi9lM6fhG3v7f97Z+qqP/KOmQ46mlwi5H4r+sdP1PavhPq+Q?= =?utf-8?q?aE/mzSCULgB/HBNTICDROGdMkmzkkFf0+MvHMRr8AajK6FuFoKdo9OP7juU0xsYeF?= =?utf-8?q?NvyrggHTlN8mbngZUMWcGS9Pun0OkdK1NbpM+5x6iDBzR6kQ8xjV3bNRG9qyZDeG4?= =?utf-8?q?xRj66h+5WIO3ZpQ093xhBPJQZ8vPfDVoOWqV/6GV/o3vrUMqxyTd1yf03VHG6Eac9?= =?utf-8?q?Elsnp8dcwUFLUVnCB/KKdSzWgKpMV1GM/bo0t0CY6HwbwHiqFhvneLzk7VbIltfqc?= =?utf-8?q?HppFYvP26BErhUIvWukSYfoUQT+tczqRkRgsys2zVUgvN3VWlvH1apKs2hXp7kY70?= =?utf-8?q?qz7W7db6EsLPsfQ9RxGmCysVb0pn5xXnVQjRdleqovkAssNaU+cM0uc31mUHRy9vF?= =?utf-8?q?k3+Wwr2EAi7mFUu6yPy8fOQ7jfhVq3NcCQxUx77xJTqVNDe8MX2wOfP03Eonppnde?= =?utf-8?q?Z686edwqZyaWpz7M46uj2/K1DruD2hIEGGfqZDJHSZgP4lp4uE5RwuwNAtAq5CJ8Q?= =?utf-8?q?b49pkjvL2UMg9/XXIzPlQd8oy4KHTi2gblewXS4JOfoUFphSlT0+AvcE7U1OpWqap?= =?utf-8?q?eLyu6gZaeiQM5ssK7PSmXoBPQLd5aLHqV595vUDksl/wlS0CaFMoQJwG2XKyw65ly?= =?utf-8?q?eJ7cZiR/7c4ec9qijAIXFSPnP9zRW/XpEPFMM1YT3TY/ic6B0aK6ZOuQASa/bsIIP?= =?utf-8?q?p3aUsfeAG8Ju5dcaJISVtpIMs1oocMnWJIN3zqC8durzjBVpPQooJlLQzr3bKBk1f?= =?utf-8?q?sky1VTxOB6SCpMoLIf5SRH74e90IZDhm3Qjsuh31NXAlPPlQrfH9VfndzEXfpxf4E?= =?utf-8?q?cUgV3b5n6JZJqUFB6lfWvs+awJlgzU2lPqlB6eEBfudVIYulqZiORdFpOomFG9DA1?= =?utf-8?q?rKfvxIVhp+wXMD7FC/blHaBZIEtcxOIJbXC4BHdwMuAzawfs6dEFTiXWZxXZ/MVVK?= =?utf-8?q?UY0zLu+NnPtukUXqcv/j6UYSYEk6RnFh/OhHCKOpyFH21PiJXlg6bfnnYuvKx0E/f?= =?utf-8?q?/dJWvrpk+lEuDz4iuLNKsiYkAAVjgo2aZ4qW4tpI5GSNzBIIDKBMNtf8nJfBGPPVn?= =?utf-8?q?86PgJ6ulylFRN8oZrrpzwOlbIvhT5AI71yeOI8ETlrBTq/JyNi2Jx0LsT4jd4tHSk?= =?utf-8?q?HDpHesiuLk6H?= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(376005)(36860700004)(1800799015)(82310400017);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 06:07:18.1412 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 359440f6-13b0-41df-220b-08dc7fa59856 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001A9.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR02MB9780 The INA230 has alert polarity bit in Mask/Enable register which can be configured to be active high or active low depending upon the requirements of the hardware using this chip. The patches in this series adds the support for passing alert polarity value from device tree to the driver. Alert polarity property is added device tree bindings and the driver is modified to read this property and set the Alert polarity (APOL) bit value in Mask/Enable register of INA230. Signed-off-by: Amna Waseem --- Amna Waseem (2): dt-bindings: hwmon: ti,ina2xx: Add alert-polarity property hwmon: (ina2xx) Add device tree support to pass alert polarity .../devicetree/bindings/hwmon/ti,ina2xx.yaml | 9 +++++++ drivers/hwmon/ina2xx.c | 28 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) --- base-commit: a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 change-id: 20240524-apol-ina2xx-fix-34e76346cb26 Best regards,