Skip to content

Commit

Permalink
tests: drivers: build_all: input: Add config for futaba,sbus
Browse files Browse the repository at this point in the history
Add configuration to add `futaba,sbus` to build test.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
  • Loading branch information
soburi authored and aescolar committed Oct 2, 2024
1 parent 00eaa85 commit cc6dfb6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/drivers/build_all/input/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/input/input-event-codes.h>

/ {
test {
#address-cells = <1>;
Expand Down Expand Up @@ -162,6 +164,24 @@
double-tap-delay-ms = <0>;
};

test_uart: uart@55556666 {
compatible = "vnd,serial";
reg = <0x55556666 0x1000>;
status = "okay";

#address-cells = <1>;
#size-cells = <0>;

sbus {
compatible = "futaba,sbus";
right_stick_x {
channel = <1>;
type = <INPUT_EV_ABS>;
zephyr,code = <INPUT_ABS_RX>;
};
};
};

i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
2 changes: 2 additions & 0 deletions tests/drivers/build_all/input/prj.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
CONFIG_GPIO=y
CONFIG_INPUT=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

0 comments on commit cc6dfb6

Please sign in to comment.