Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: ti,ina2xx: Add ti,alert-polarity-active-high property

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 open collector. Value of 1 maps to
Inverted (active high open collector).

Signed-off-by: Amna Waseem <Amna.Waseem@axis.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240603-apol-ina2xx-fix-v3-1-b9eff3158e4e@axis.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Amna Waseem and committed by
Guenter Roeck
94e33109 cbbb76e4

+9
+9
Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
··· 66 66 description: phandle to the regulator that provides the VS supply typically 67 67 in range from 2.7 V to 5.5 V. 68 68 69 + ti,alert-polarity-active-high: 70 + description: Alert pin is asserted based on the value of Alert polarity Bit 71 + of Mask/Enable register. Default value is Normal (0 which maps to 72 + active-low open collector). The other value is Inverted 73 + (1 which maps to active-high open collector). Specify this property to set 74 + the alert polarity to active-high. 75 + $ref: /schemas/types.yaml#/definitions/flag 76 + 69 77 required: 70 78 - compatible 71 79 - reg ··· 96 88 label = "vdd_3v0"; 97 89 shunt-resistor = <1000>; 98 90 vs-supply = <&vdd_3v0>; 91 + ti,alert-polarity-active-high; 99 92 }; 100 93 };