tests: drivers: build_all: add build test for ad559x i2c driver

Add build-only test of the ad559x I2C based ADC, DAC and GPIO driver.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
Jeppe Odgaard 2024-01-26 13:22:18 +01:00 committed by Maureen Helm
commit 128e8059d2
3 changed files with 42 additions and 3 deletions

View file

@ -94,6 +94,19 @@
conversion-speed = <60>; conversion-speed = <60>;
#io-channel-cells = <1>; #io-channel-cells = <1>;
}; };
test_i2c_ad559x: ad559x@9 {
compatible = "adi,ad559x";
status = "okay";
reg = <0x9>;
#io-channel-cells = <1>;
reset-gpios = <&test_gpio 0 0>;
test_i2c_ad559x_adc: adc-controller {
compatible = "adi,ad559x-adc";
#io-channel-cells = <1>;
};
};
}; };
test_spi: spi@33334444 { test_spi: spi@33334444 {
@ -322,7 +335,7 @@
spi-max-frequency = <0>; spi-max-frequency = <0>;
reset-gpios = <&test_gpio 0 0>; reset-gpios = <&test_gpio 0 0>;
ad559x_adc: adc-controller { test_spi_ad559x_adc: adc-controller {
compatible = "adi,ad559x-adc"; compatible = "adi,ad559x-adc";
#io-channel-cells = <1>; #io-channel-cells = <1>;
}; };

View file

@ -43,6 +43,18 @@
#io-channel-cells = <1>; #io-channel-cells = <1>;
}; };
test_i2c_ad559x: ad559x@3 {
compatible = "adi,ad559x";
status = "okay";
reg = <0x3>;
reset-gpios = <&test_gpio 0 0>;
test_i2c_ad559x_dac: dac-controller {
compatible = "adi,ad559x-dac";
#io-channel-cells = <1>;
};
};
test_i2c_mcp4725: mcp4725@60 { test_i2c_mcp4725: mcp4725@60 {
compatible = "microchip,mcp4725"; compatible = "microchip,mcp4725";
reg = <0x60>; reg = <0x60>;
@ -242,7 +254,7 @@
spi-max-frequency = <0>; spi-max-frequency = <0>;
reset-gpios = <&test_gpio 0 0>; reset-gpios = <&test_gpio 0 0>;
ad559x_dac: dac-controller { test_spi_ad559x_dac: dac-controller {
compatible = "adi,ad559x-dac"; compatible = "adi,ad559x-dac";
#io-channel-cells = <1>; #io-channel-cells = <1>;
}; };

View file

@ -210,6 +210,20 @@
ngpios = <6>; ngpios = <6>;
}; };
}; };
test_i2c_ad559x: ad559x@e {
compatible = "adi,ad559x";
status = "okay";
reg = <0x0e>;
reset-gpios = <&test_gpio 0 0>;
test_i2c_ad559x_gpio: gpio-controller {
compatible = "adi,ad559x-gpio";
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
};
};
}; };
nct3807_alert_1 { nct3807_alert_1 {
@ -275,7 +289,7 @@
spi-max-frequency = <0>; spi-max-frequency = <0>;
reset-gpios = <&test_gpio 0 0>; reset-gpios = <&test_gpio 0 0>;
ad559x_gpio: gpio-controller { test_spi_ad559x_gpio: gpio-controller {
compatible = "adi,ad559x-gpio"; compatible = "adi,ad559x-gpio";
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;