Skip to content

Commit 7c11db9

Browse files
maass-hamburgkartben
authored andcommitted
tests: drivers: mfd: add maxq10xx device
add maxq10xx mfd device to tests Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 2a4b314 commit 7c11db9

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

tests/drivers/build_all/mfd/app.overlay

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,37 @@
4040
};
4141
};
4242
};
43+
44+
test_gpio: gpio@deadbeef {
45+
compatible = "vnd,gpio";
46+
gpio-controller;
47+
reg = <0xdeadbeef 0x1000>;
48+
#gpio-cells = <0x2>;
49+
status = "okay";
50+
};
51+
52+
test_spi: spi@33334444 {
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
compatible = "vnd,spi";
56+
reg = <0x33334444 0x1000>;
57+
status = "okay";
58+
clock-frequency = <2000000>;
59+
60+
/* one entry for every spi devices */
61+
cs-gpios = <&test_gpio 0 0>;
62+
63+
test_spi_maxq10xx@0 {
64+
compatible = "adi,maxq10xx";
65+
reg = <0x0>;
66+
status = "okay";
67+
spi-max-frequency = <0>;
68+
69+
test_spi_maxq10xx_trng: trng {
70+
compatible = "adi,maxq10xx-trng";
71+
status = "okay";
72+
};
73+
};
74+
};
4375
};
4476
};

tests/drivers/build_all/mfd/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ CONFIG_TEST=y
22
CONFIG_GPIO=y
33
CONFIG_TEST_USERSPACE=y
44
CONFIG_I2C=y
5+
CONFIG_SPI=y
6+
CONFIG_MFD=y
7+
CONFIG_ENTROPY_GENERATOR=y
58
CONFIG_SERIAL=y
69
CONFIG_UART_USE_RUNTIME_CONFIGURE=y

0 commit comments

Comments
 (0)