drivers: gpio: Add MAX14916 industrial output

Industrial 8 channel output with advanced diagnostics.
Allowing giagnostic configuration both on per channel or global bases
In SPI communication diagnostic status transmitted on every
READ/WRITE which includes generic status of chip.
Diagnostics includes :
 * Oveload
 * Open Wire
 * Over current
 * Short to VDD
 * Thermal Shutdown
 * VDD Warn
 * Watch Dog Error
 * Communication Error
 * VDD under voltage

Add app.overlay for MAX14916 driver.

Tested with adopted basic/blinky example.

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
This commit is contained in:
Stoyan Bogdanov 2024-06-14 17:41:58 +03:00 committed by Carles Cufí
commit 3ca5cf50fe
6 changed files with 642 additions and 0 deletions

View file

@ -361,6 +361,7 @@
&test_gpio 0 0
&test_gpio 0 0
&test_gpio 0 0
&test_gpio 0 0
&test_gpio 0 0>;
test_spi_mcp23s17: mcp23s17@0 {
@ -461,6 +462,25 @@
sync-gpios = <&test_gpio 0 0>;
en-gpios = <&test_gpio 0 0>;
};
test_spi_max14916: max14916@6 {
compatible = "adi,max1916-gpio";
status = "okay";
reg = <0x07>;
spi-max-frequency = <0>;
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
crc-en;
spi-addr = <0>;
ow-on-en = <0 0 0 0>;
ow-off-en = <0 0 0 0>;
sh-vdd-en = <0 0 0 0>;
drdy-gpios = <&test_gpio 0 0>;
fault-gpios = <&test_gpio 0 0>;
sync-gpios = <&test_gpio 0 0>;
en-gpios = <&test_gpio 0 0>;
};
};
};
};