File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed
tests/drivers/build_all/gpio Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 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+ };
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments