Amna Waseem
94e33109f9
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 >
2024-06-12 07:11:48 -07:00
Krzysztof Kozlowski
67db0ea3ec
dt-bindings: hwmon: ti,ina2xx: use common hwmon schema
...
Reference common hwmon schema which allows to drop the "label" property.
Acked-by: Rob Herring <robh@kernel.org >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20240224-dt-bindings-hwmon-common-v2-2-b446eecf5480@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2024-02-25 12:37:46 -08:00
Michal Simek
f7ab2d180e
dt-bindings: hwmon: ina2xx: Describe ina260 chip
...
Describe ina260 chip which is precision digital current and power monitor
with precision integrated shunt resistor.
Signed-off-by: Michal Simek <michal.simek@amd.com >
Acked-by: Conor Dooley <conor.dooley@microchip.com >
Link: https://lore.kernel.org/r/4c82dc4d412e91d1601c1da5bca1cdf1a91cd9b8.1704724242.git.michal.simek@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2024-02-11 13:43:08 -08:00
Michal Simek
f29996d029
dt-bindings: hwmon: ina2xx: Describe #io-channel-cells property
...
There are two drivers in the Linux kernel. One is hwmon based and second
IIO. IIO version requires to define #io-channel-cells to operate.
Signed-off-by: Michal Simek <michal.simek@amd.com >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/aa303b9fe3116e7f98d6b72822f7f57694366db3.1703077926.git.michal.simek@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2024-02-11 13:43:08 -08:00
Michal Simek
eea32fafad
dt-bindings: hwmon: ina2xx: Add label property
...
Add a label property to allow a custom name to be used for identifying
a device on the board. This is useful when multiple devices are present on
the same board. Similar change was done by commit ffae65fb1a
("dt-bindings: spi: spi-cadence: Add label property").
Signed-off-by: Michal Simek <michal.simek@amd.com >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/6f3c57d08984c1978569d3918cb38eb295c0c67d.1703077926.git.michal.simek@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2024-02-11 13:43:08 -08:00
Richard Leitner
b1f05cb4b3
dt-bindings: hwmon: ti,ina2xx: add ti,ina237
...
Add ti,ina237 binding to ti,ina2xx as they are very similar and may
share the same properties.
Signed-off-by: Richard Leitner <richard.leitner@linux.dev >
Acked-by: Conor Dooley <conor.dooley@microchip.com >
Link: https://lore.kernel.org/r/20231026-ina237-v2-2-dec44811a3c9@linux.dev
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2023-10-28 09:21:59 -07:00
Svyatoslav Ryhel
4173a5bb7f
dt-bindings: hwmon: ina2xx: add supply property
...
Add vs-supply property.
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20230407160508.20479-2-clamor95@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2023-04-19 07:08:39 -07:00
Nathan Rossi
8be23b9b31
dt-bindings: hwmon: ti,ina2xx: Add ti,shunt-gain property
...
Add a property to the binding to define the selected shunt voltage gain.
This specifies the range and accuracy that applies to the shunt circuit.
This property only applies to devices that have a selectable shunt
voltage range via PGA or ADCRANGE register configuration.
Signed-off-by: Nathan Rossi <nathan.rossi@digi.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20211102052754.817220-2-nathan@nathanrossi.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2021-12-26 15:02:05 -08:00
Nathan Rossi
ed68a0effe
dt-bindings: hwmon: ti,ina2xx: Document ti,ina238 compatible string
...
Document the compatible string for the Texas Instruments INA238, this
device is a variant of the existing INA2xx devices and has the same
device tree bindings (shunt resistor).
Signed-off-by: Nathan Rossi <nathan.rossi@digi.com >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20211102052754.817220-1-nathan@nathanrossi.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2021-12-26 15:02:05 -08:00
Krzysztof Kozlowski
94f1ab9445
dt-bindings: hwmon: convert TI INA2xx bindings to dt-schema
...
Convert the TI INA2xx bindings to dt-schema.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20201117220807.208747-1-krzk@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2020-12-11 07:42:27 -08:00