]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dt-bindings: iio: mcp9600: Add microchip,mcp9601 and add constraints
authorBen Collins <bcollins@watter.com>
Fri, 22 Aug 2025 13:23:51 +0000 (09:23 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 09:34:47 +0000 (10:34 +0100)
commitf6a52403fd2c1b581d4f78d79def57b803f29635
tree65f598d3eaad380611e06fe13da7ec01864b053a
parentd6d389646a35daae9fc1f21fe9221dcb7b3cc41f
dt-bindings: iio: mcp9600: Add microchip,mcp9601 and add constraints

Add microchip,mcp9601 compatible in addition to the original
microchip,mcp9600 to designate support between these two chips.

The current dt-binding has open-circuit and short-circuit as interrupt
names, but these are only supported in mcp9601.

The OC and SC detection requires that mcp9601 VSENSE be wired up, which
not only enables the OC SC interrupts, but also the OC and SC status
register bits.

Add a microchip,vsense boolean to show the chip is wired for this
support.

Add constraints so this feature only applies if the mcp9601 compatible
is selected.

Signed-off-by: Ben Collins <bcollins@watter.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250822-upstream-changes-v8-2-40bb1739e3e2@watter.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/temperature/microchip,mcp9600.yaml