From 73387dea55a4c4aa7c3cd0298f5d0c00975cdfe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Mon, 13 Jan 2025 16:29:30 +0100 Subject: [PATCH] tests: drivers: mfd: add maxq10xx device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add maxq10xx mfd device to tests Signed-off-by: Fin Maaß --- tests/drivers/build_all/mfd/app.overlay | 32 +++++++++++++++++++++++++ tests/drivers/build_all/mfd/prj.conf | 3 +++ 2 files changed, 35 insertions(+) diff --git a/tests/drivers/build_all/mfd/app.overlay b/tests/drivers/build_all/mfd/app.overlay index 5f4ae6e8a8e4..92e4cd79c003 100644 --- a/tests/drivers/build_all/mfd/app.overlay +++ b/tests/drivers/build_all/mfd/app.overlay @@ -40,5 +40,37 @@ }; }; }; + + 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>; + + /* one entry for every spi devices */ + cs-gpios = <&test_gpio 0 0>; + + test_spi_maxq10xx@0 { + compatible = "adi,maxq10xx"; + reg = <0x0>; + status = "okay"; + spi-max-frequency = <0>; + + test_spi_maxq10xx_trng: trng { + compatible = "adi,maxq10xx-trng"; + status = "okay"; + }; + }; + }; }; }; diff --git a/tests/drivers/build_all/mfd/prj.conf b/tests/drivers/build_all/mfd/prj.conf index 3862bfcbf6d7..78155e5638e6 100644 --- a/tests/drivers/build_all/mfd/prj.conf +++ b/tests/drivers/build_all/mfd/prj.conf @@ -2,5 +2,8 @@ CONFIG_TEST=y CONFIG_GPIO=y CONFIG_TEST_USERSPACE=y CONFIG_I2C=y +CONFIG_SPI=y +CONFIG_MFD=y +CONFIG_ENTROPY_GENERATOR=y CONFIG_SERIAL=y CONFIG_UART_USE_RUNTIME_CONFIGURE=y