Skip to content

Commit

Permalink
tests: drivers: build_all: gpio: Add ti,lmp90xxx-gpio configuration
Browse files Browse the repository at this point in the history
Add the following devices to build tests.

- ti,lmp90xxx-gpio

Signed-off-by: TOKITA Hiroshi <[email protected]>
  • Loading branch information
soburi authored and henrikbrixandersen committed Sep 30, 2024
1 parent 0ea5ef8 commit 2815b6d
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
48 changes: 48 additions & 0 deletions tests/drivers/build_all/gpio/adc_lmp90xxx_gpio.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright (c) 2024 TOKITA Hiroshi
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
test {
#address-cells = <1>;
#size-cells = <1>;

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>;

cs-gpios = <&test_gpio 0 0>;

test_spi_lmp90100: lmp90100@0 {
compatible = "ti,lmp90100";
status = "okay";
spi-max-frequency = <10000000>;
reg = <0x00>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;

test_spi_lmp90xxx_gpio_gpio: lmp90xxx_gpio {
compatible = "ti,lmp90xxx-gpio";
gpio-controller;
ngpios = <4>;
#gpio-cells = <2>;
};
};
};
};
};
16 changes: 16 additions & 0 deletions tests/drivers/build_all/gpio/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ tests:
- CONFIG_ADC_INIT_PRIORITY=80
- CONFIG_ADC_ADS114S0X_GPIO=y

drivers.gpio.build.adc_lmp90xxx_gpio:
min_ram: 32
platform_allow:
- native_sim
- native_sim/native/64
depends_on:
- gpio
- adc
- spi
extra_args:
- DTC_OVERLAY_FILE="adc_lmp90xxx_gpio.overlay"
extra_configs:
- CONFIG_ADC=y
- CONFIG_ADC_INIT_PRIORITY=80
- CONFIG_ADC_LMP90XXX_GPIO=y

drivers.gpio.build.iproc:
platform_allow: qemu_cortex_m3
depends_on: gpio
Expand Down

0 comments on commit 2815b6d

Please sign in to comment.