From patchwork Wed May 29 06:07:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amna Waseem X-Patchwork-Id: 13677903 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2049.outbound.protection.outlook.com [40.107.8.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 D01BE15D5A4; Wed, 29 May 2024 06:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962844; cv=fail; b=AGUqUnQ6zBl+TDM6IMaOSBpfUj3eKVuBvr8797MqNycAcPwXGDKH83bzft+t/fJPO84Rr1fRF1JKl5SuZHObAULECOqzT24o4dC5AVxsCW0QMwIQRkyCavQo/RlIplcfsW8+x5A/UqeCLMBeFfPASI+bwCNU3ynzysGe8RwHyi4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962844; c=relaxed/simple; bh=yI6eddubAbsVQ+HgVAdMTT9pHpEt0ixb4KJcY3b/OYI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=XzDo/KF5B9qLfyu53ZoS+moe/Jc0AaCegvIx59wuREOTqMV3F7Jlq6HCbegjMjvR9rQmp/zLfUgWjM3WH2Y2d2pbZj/n3Wstui6TrGmIvXrzSY4/8CH39uyUaAOv0aRr3dSiRJb/aHNtAnxEJ7Dt8tgaYeCtUhcJ0QKocH3mZHs= 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=EBQCr/ra; arc=fail smtp.client-ip=40.107.8.49 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="EBQCr/ra" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=femCDfiZkHvY6sRc5FhomfPXnPv0K/JEeZXb6LMD/NJSWRQnxdztsmti4qPsTDjoYLPUgvNauGtZr6HNFzV+PD1xkkdpFICQLsq2VZmDGxzqqTHie/GACzfrfmtf5+haQpL180IWbFZBEKSxLjKhAxE4drymALfCLP0E2vFR7w/KOCL08yVcZevxSdmPfjWB+lrKDDEvBvNu7orO4lVGfFUhosBG1Re27qRxnW/p8gN3EubgLf27ZwqOiUoUCe9OUAgc3YZa83xYTLAfiJkVvrwblcbyUp2cY6ZO+Td/qDNNvfaGmiXEAg8m49kRRbCice1CVvdId2shq/CSIJ/8Bg== 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=8Gv49MuucCYTODADqy4bh4cjAN5zqZsTfGFMtbZ3pPo=; b=UAGl9YT6I2ri2bTD5XpAzlsiirzTYZ24Eko8dhzrJ5vRw112LXJwvc6cKkj7qNf5swjfUWcmTP11LfYrDZyp8rXgsSlRz+egxDxbQ+c+bjAqvcoX5mGhXH1067lOc57of80LCR4l4FWfR/LOtqVBAzrXIX+yfw7iTvaLjurY/SWCJ8JlZR56PGbrytSrzdcfbD5WydCeaqNNVFXL1BjxrAu+wTR7lUy86n6g5ToXkJIR2p985N4NvNNm5PNSntrMzyaBfy37vFfbtus/16UhyD20ULJkL2TsIThzHP9Co/93Zkf2ruZqV3RGS1D7qF9at+n6gVL4pI9/Qzwy/95/VQ== 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=8Gv49MuucCYTODADqy4bh4cjAN5zqZsTfGFMtbZ3pPo=; b=EBQCr/raKe8+bZXd83LTe5IZagjnxx8hxNQnofgarkUeRsWHXyIVGsD5jFSNxzdLEdaXNNMGvPOqdTQVcHV/HU+M6fSWUCo3dYE8CkHYLEUkD2AFhKqQOW6EbDgo/gpiuqHAk2ALbsqzpvhYoh/W/yaNXiUs2u/zDfQB2YWoUvI= Received: from AS9PR04CA0129.eurprd04.prod.outlook.com (2603:10a6:20b:531::9) by GV2PR02MB8650.eurprd02.prod.outlook.com (2603:10a6:150:74::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Wed, 29 May 2024 06:07:17 +0000 Received: from AMS0EPF000001A9.eurprd05.prod.outlook.com (2603:10a6:20b:531:cafe::58) by AS9PR04CA0129.outlook.office365.com (2603:10a6:20b:531::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.18 via Frontend Transport; Wed, 29 May 2024 06:07:17 +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:17 +0000 Received: from se-mail02w.axis.com (10.20.40.8) 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-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 2516E1E0B; Wed, 29 May 2024 08:07:17 +0200 (CEST) Received: by lnxamnaw.se.axis.com (Postfix, from userid 12778) id 1A3D62069D6; Wed, 29 May 2024 08:07:17 +0200 (CEST) From: Amna Waseem Date: Wed, 29 May 2024 08:07:14 +0200 Subject: [PATCH 1/2] dt-bindings: hwmon: ti,ina2xx: Add alert-polarity property Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240529-apol-ina2xx-fix-v1-1-77b4b382190f@axis.com> References: <20240529-apol-ina2xx-fix-v1-0-77b4b382190f@axis.com> In-Reply-To: <20240529-apol-ina2xx-fix-v1-0-77b4b382190f@axis.com> 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_|GV2PR02MB8650:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d687d43-6ab3-469b-4d4c-08dc7fa59800 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|376005|1800799015|82310400017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?7JTR3UDz/zy/fx/iHu+xLCgemDzTvSY?= =?utf-8?q?HNzr3a4JbHe34pcY3mpQrGAHAWM+DWp/h8xvr+b/bZYOsGkYxY7VpaXtNXbhFQnof?= =?utf-8?q?Jfl13ynbwE6Qqz5iB5aJOMi0+0ZZSqcYaRnBkV3HGbpZNkaVHVLA1qIgiNyCeEsav?= =?utf-8?q?K8W74W9JAvbw+mwJjx+fWgVm7mix0IJ7r+gpDn+GewYGacfcjSmRV0brsalTAieHe?= =?utf-8?q?nvPEKCIn/wTgxaAloLH31mi0Rg2TVuQC+/pJn8gB5DHFitGxWoMU1sl0PYes2fflm?= =?utf-8?q?fXdw8uguXra5BLvfjd1ZrjmrIvvJQo7d/N/KLPXKe2G67LSK5P36SkITLZWrTeoFD?= =?utf-8?q?khZhu6/DEl/TRy/pp3zLBF4rjBlxBznmgzTelrxJAFTBJdPAlFPolVJEffbTWd/yx?= =?utf-8?q?PHaqcT2j6I95ZKNRDm8cN34SKtUpCK7wvlNBtJ0+7x0H1ktrRptScOHS2M6zUP8SS?= =?utf-8?q?iVkdlYpHbSbzMuy42oCQAriv5F6YAWHASwEsEPohm67v+TWr7fahM9z3uX7K6Ip0u?= =?utf-8?q?tsncGPu9gEMyae6hwCSZcbLCc6X3dpJsskq/9EBI+zv3HZHUvkO1A9v0xOywOn8UL?= =?utf-8?q?QomI1dDhiz8kuZuT4fj66CY9E/yEKpEu+DBM9f50pomY77Kb6sS0tUzxbw+ujSWTm?= =?utf-8?q?03x01XOWPehQSV43Ci5snBIDEE9DwiqRlVxNmJuln/6zXlzsYWRZn7fmHjZBUWnd7?= =?utf-8?q?SCvh+WX4v9y4pQWbH/yLL8KZxbrJ2mOLGuAoDTxoc4/iwVzu8LmfEJv+5ordyc97x?= =?utf-8?q?TudltXTQjxPG1cOwASvG0Rs0WtCMkZrZmvuaJ8lUkaZkenuThX0nnAYxw+n0ufRIW?= =?utf-8?q?IlCnWgm6GUrD3uAEUTYmfl+0sI1tEB+WphNhGs5n0fb0SaYhWAN/3JRpPuU+zcJUp?= =?utf-8?q?r8YwrgfKfihLmlGqqvG/63viKqitlWnXRDQmYaBuOAOpt3ZlPNi1ZToxTnzJHo4Ve?= =?utf-8?q?FYRp6MIrKqxKQTTm8/lo0X2hB1gVKI3PgOuB6zUwFJhUbu7zmLpjAcdiZYzTpgVWO?= =?utf-8?q?WpeeHa9eu7SmPa/BLGri+/4K5ZCakZnQ9pvPn5V3R4wW0PTpNlJ/9Ln+yjl63IZm4?= =?utf-8?q?qc4aE73X1uO1iwj8JvqIuPmGcRAaN4vEotyqAF09BTmekVyXsMyjibYbki8a4PF5f?= =?utf-8?q?Xg4GmLhlViKsS/IyMtXlbGrrKKZGKHRtv3CFLXXZ9psfjYdGKzT391wNL4k7O7Zr+?= =?utf-8?q?gKSFaMXnxicQWBoxMoUBHiZ3JOMgf0mTk95SXrv99ssFX+sww1QFiWfWQchCodHeW?= =?utf-8?q?g9J1UZ8BnJaTbF9cCV7gdH8chEX+pLYYgoc0Pa6i7bQwamzRBs/mMMdI=3D?= 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)(36860700004)(376005)(1800799015)(82310400017);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 06:07:17.5787 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d687d43-6ab3-469b-4d4c-08dc7fa59800 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: GV2PR02MB8650 Add a property to the binding to configure the Alert Polarity. Alert pin is asserted based on the value of Alert Polarity bit of Mask/Enable register. It is by default 0 which means Alert pin is configured to be active low. To configure it to active high, set alert-polarity property value to 1. Signed-off-by: Amna Waseem --- Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml index df86c2c92037..a3f0fd71fcc6 100644 --- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml +++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml @@ -66,6 +66,14 @@ properties: description: phandle to the regulator that provides the VS supply typically in range from 2.7 V to 5.5 V. + alert-polarity: + description: | + Alert polarity bit value of Mask/Enable register. Alert pin is asserted + based on the value of Alert polarity Bit. Default value is active low. + 0 selects active low, 1 selects active high. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + required: - compatible - reg @@ -88,5 +96,6 @@ examples: label = "vdd_3v0"; shunt-resistor = <1000>; vs-supply = <&vdd_3v0>; + alert-polarity = <1>; }; };