tests: drivers: adc: move ad5592-adc node into native_posix.overlay

Remove the `app.overlay` file which has been
wrongly added in ad3c5a2 commit. Instead of that
add the ad5592-adc node into `native_posix.overlay` file.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
This commit is contained in:
Bartosz Bilas 2023-11-08 16:15:09 +01:00 committed by Carles Cufí
parent 6af171d44b
commit f409f67db4
2 changed files with 14 additions and 50 deletions

View file

@ -1,50 +0,0 @@
/*
* Copyright (c) 2023 Grinn
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for testing driver builds
*
* Names in this file should be chosen in a way that won't conflict
* with real-world devicetree nodes, to allow these tests to run on
* (and be extended to test) real hardware.
*/
/ {
test {
#address-cells = <1>;
#size-cells = <1>;
test_gpio: gpio@deadbeef {
compatible = "vnd,gpio";
gpio-controller;
reg = <0xdeadbeef 0x1000>;
#gpio-cells = <0x2>;
status = "okay";
};
test_spi: spi@33334444 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,spi";
reg = <0x33334444 0x1000>;
status = "okay";
clock-frequency = <2000000>;
cs-gpios = <&test_gpio 0 0>;
test_spi_ad5592: ad5592@0 {
compatible = "adi,ad5592";
status = "okay";
reg = <0x0>;
spi-max-frequency = <0>;
reset-gpios = <&test_gpio 0 0>;
ad5592_adc: adc-controller {
compatible = "adi,ad5592-adc";
#io-channel-cells = <1>;
};
};
};
};
};

View file

@ -118,6 +118,7 @@
<&test_gpio 0 0>,
<&test_gpio 0 0>,
<&test_gpio 0 0>,
<&test_gpio 0 0>,
<&test_gpio 0 0>;
test_spi_mcp3204: mcp3204@0 {
@ -305,6 +306,19 @@
spi-max-frequency = <0>;
#io-channel-cells = <1>;
};
test_spi_ad5592: ad5592@13 {
compatible = "adi,ad5592";
status = "okay";
reg = <0x13>;
spi-max-frequency = <0>;
reset-gpios = <&test_gpio 0 0>;
ad5592_adc: adc-controller {
compatible = "adi,ad5592-adc";
#io-channel-cells = <1>;
};
};
};
};
};