-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an input build_all test with a bunch of input driver, move the ft5336 one out of sensors as well. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
- Loading branch information
1 parent
c214ec3
commit 80a986f
Showing
7 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(build_all) | ||
|
||
FILE(GLOB app_sources src/*.c) | ||
target_sources(app PRIVATE ${app_sources}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
test { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
test_gpio: gpio@0 { | ||
compatible = "vnd,gpio"; | ||
gpio-controller; | ||
reg = <00 0x1000>; | ||
#gpio-cells = <0x2>; | ||
status = "okay"; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "zephyr,gpio-keys"; | ||
debounce-interval-ms = <30>; | ||
button_0 { | ||
gpios = <&test_gpio 0 0>; | ||
zephyr,code = <0>; | ||
}; | ||
}; | ||
|
||
qdec-gpio { | ||
compatible = "gpio-qdec"; | ||
gpios = <&test_gpio 0 0>, <&test_gpio 1 0>; | ||
steps-per-period = <4>; | ||
zephyr,axis = <0>; | ||
sample-time-us = <2000>; | ||
idle-timeout-ms = <200>; | ||
}; | ||
|
||
longpress: longpress { | ||
input = <&longpress>; | ||
compatible = "zephyr,input-longpress"; | ||
input-codes = <0>; | ||
short-codes = <0>; | ||
long-codes = <0>; | ||
long-delay-ms = <100>; | ||
}; | ||
|
||
i2c@1 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "vnd,i2c"; | ||
reg = <0x1 0x1000>; | ||
status = "okay"; | ||
clock-frequency = <100000>; | ||
|
||
ft5336@0 { | ||
compatible = "focaltech,ft5336"; | ||
reg = <0x0>; | ||
int-gpios = <&test_gpio 0 0>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_GPIO=y | ||
CONFIG_INPUT=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
int main(void) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tests: | ||
drivers.input.build: | ||
tags: | ||
- drivers | ||
- input | ||
build_only: true | ||
platform_allow: native_posix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters