devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: (ina2xx):Add Suppor for passing alert polarity from device tree to driver
@ 2024-05-29  6:07 Amna Waseem
  2024-05-29  6:07 ` [PATCH 1/2] dt-bindings: hwmon: ti,ina2xx: Add alert-polarity property Amna Waseem
  2024-05-29  6:07 ` [PATCH 2/2] hwmon: (ina2xx) Add device tree support to pass alert polarity Amna Waseem
  0 siblings, 2 replies; 15+ messages in thread
From: Amna Waseem @ 2024-05-29  6:07 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Krzysztof Kozlowski, linux-hwmon, devicetree, linux-kernel,
	Amna Waseem, kernel

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@axis.com>
---
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,
-- 
Amna Waseem <Amna.Waseem@axis.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-06-03 22:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29  6:07 [PATCH 0/2] hwmon: (ina2xx):Add Suppor for passing alert polarity from device tree to driver Amna Waseem
2024-05-29  6:07 ` [PATCH 1/2] dt-bindings: hwmon: ti,ina2xx: Add alert-polarity property Amna Waseem
2024-05-29  7:07   ` Krzysztof Kozlowski
2024-05-29 14:01     ` Guenter Roeck
2024-05-30  8:18       ` Amna Waseem
2024-05-30 13:20         ` Guenter Roeck
2024-05-31  7:41       ` Krzysztof Kozlowski
2024-05-31 21:50         ` Guenter Roeck
2024-06-03 15:47   ` Rob Herring
2024-06-03 22:44     ` Guenter Roeck
2024-05-29  6:07 ` [PATCH 2/2] hwmon: (ina2xx) Add device tree support to pass alert polarity Amna Waseem
2024-05-29  7:09   ` Krzysztof Kozlowski
2024-05-29 14:07   ` Guenter Roeck
2024-05-30  8:06     ` Amna Waseem
2024-05-30 13:18       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).