drivers: gpio: add driver for AD5592
Add MFD subdriver for the built-in GPIO controller in AD5592 chip. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
This commit is contained in:
parent
ad3c5a27b4
commit
0689d3dc11
7 changed files with 273 additions and 1 deletions
|
@ -210,7 +210,11 @@
|
|||
clock-frequency = <2000000>;
|
||||
|
||||
/* one entry for every devices at spi.dtsi */
|
||||
cs-gpios = <&test_gpio 0 0 &test_gpio 0 0 &test_gpio 0 0>;
|
||||
cs-gpios = <&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 {
|
||||
compatible = "microchip,mcp23s17";
|
||||
|
@ -259,6 +263,21 @@
|
|||
#gpio-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
test_spi_ad5592: ad5592@4 {
|
||||
compatible = "adi,ad5592";
|
||||
status = "okay";
|
||||
reg = <0x04>;
|
||||
spi-max-frequency = <0>;
|
||||
reset-gpios = <&test_gpio 0 0>;
|
||||
|
||||
ad5592_gpio: gpio-controller {
|
||||
compatible = "adi,ad5592-gpio";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue