Skip to content

Commit 2815b6d

Browse files
soburihenrikbrixandersen
authored andcommitted
tests: drivers: build_all: gpio: Add ti,lmp90xxx-gpio configuration
Add the following devices to build tests. - ti,lmp90xxx-gpio Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 0ea5ef8 commit 2815b6d

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright (c) 2024 TOKITA Hiroshi
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
test {
9+
#address-cells = <1>;
10+
#size-cells = <1>;
11+
12+
test_gpio: gpio@deadbeef {
13+
compatible = "vnd,gpio";
14+
gpio-controller;
15+
reg = <0xdeadbeef 0x1000>;
16+
#gpio-cells = <0x2>;
17+
status = "okay";
18+
};
19+
20+
test_spi: spi@33334444 {
21+
#address-cells = <1>;
22+
#size-cells = <0>;
23+
compatible = "vnd,spi";
24+
reg = <0x33334444 0x1000>;
25+
status = "okay";
26+
clock-frequency = <2000000>;
27+
28+
cs-gpios = <&test_gpio 0 0>;
29+
30+
test_spi_lmp90100: lmp90100@0 {
31+
compatible = "ti,lmp90100";
32+
status = "okay";
33+
spi-max-frequency = <10000000>;
34+
reg = <0x00>;
35+
#address-cells = <1>;
36+
#size-cells = <0>;
37+
#io-channel-cells = <1>;
38+
39+
test_spi_lmp90xxx_gpio_gpio: lmp90xxx_gpio {
40+
compatible = "ti,lmp90xxx-gpio";
41+
gpio-controller;
42+
ngpios = <4>;
43+
#gpio-cells = <2>;
44+
};
45+
};
46+
};
47+
};
48+
};

tests/drivers/build_all/gpio/testcase.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ tests:
4242
- CONFIG_ADC_INIT_PRIORITY=80
4343
- CONFIG_ADC_ADS114S0X_GPIO=y
4444

45+
drivers.gpio.build.adc_lmp90xxx_gpio:
46+
min_ram: 32
47+
platform_allow:
48+
- native_sim
49+
- native_sim/native/64
50+
depends_on:
51+
- gpio
52+
- adc
53+
- spi
54+
extra_args:
55+
- DTC_OVERLAY_FILE="adc_lmp90xxx_gpio.overlay"
56+
extra_configs:
57+
- CONFIG_ADC=y
58+
- CONFIG_ADC_INIT_PRIORITY=80
59+
- CONFIG_ADC_LMP90XXX_GPIO=y
60+
4561
drivers.gpio.build.iproc:
4662
platform_allow: qemu_cortex_m3
4763
depends_on: gpio

0 commit comments

Comments
 (0)