Skip to content

Commit

Permalink
tests: drivers: mfd: add maxq10xx device
Browse files Browse the repository at this point in the history
add maxq10xx mfd device to tests

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
  • Loading branch information
maass-hamburg committed Jan 13, 2025
1 parent 2a20bfd commit 73387de
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/drivers/build_all/mfd/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
};
};
};
};
3 changes: 3 additions & 0 deletions tests/drivers/build_all/mfd/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 73387de

Please sign in to comment.