tests: drivers: build_all: eeprom: Add config for ti,tmp116-eeprom
Add configuration to add `ti,tmp116-eeprom` to build test. Also, adding emulator build test. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
48a2aedb78
commit
23496f5208
3 changed files with 28 additions and 0 deletions
|
@ -51,6 +51,20 @@
|
|||
wp-gpios = <&test_gpio 0 0>;
|
||||
/* read-only; */
|
||||
};
|
||||
|
||||
test_i2c_tmp116: tmp116@2 {
|
||||
status = "okay";
|
||||
compatible = "ti,tmp116";
|
||||
reg = <0x2>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
eeprom: ti_tmp116_eeprom@0 {
|
||||
compatible = "ti,tmp116-eeprom";
|
||||
reg = <0x0>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
test_spi: spi@33334444 {
|
||||
|
|
|
@ -2,3 +2,6 @@ CONFIG_TEST=y
|
|||
CONFIG_TEST_USERSPACE=y
|
||||
CONFIG_EEPROM=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SENSOR=y
|
||||
CONFIG_SENSOR_INIT_PRIORITY=60
|
||||
CONFIG_EEPROM_INIT_PRIORITY=70
|
||||
|
|
|
@ -11,3 +11,14 @@ tests:
|
|||
- gpio
|
||||
- i2c
|
||||
- spi
|
||||
|
||||
drivers.eeprom.emul.build:
|
||||
min_ram: 32
|
||||
platform_exclude: serpente
|
||||
depends_on:
|
||||
- gpio
|
||||
- i2c
|
||||
- spi
|
||||
extra_configs:
|
||||
- CONFIG_EMUL=y
|
||||
- CONFIG_EEPROM_AT2X_EMUL=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue