From cc6dfb6220ab2a07d44e8b8e8406601c7902c471 Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Fri, 27 Sep 2024 11:16:55 +0900 Subject: [PATCH] tests: drivers: build_all: input: Add config for futaba,sbus Add configuration to add `futaba,sbus` to build test. Signed-off-by: TOKITA Hiroshi --- tests/drivers/build_all/input/app.overlay | 20 ++++++++++++++++++++ tests/drivers/build_all/input/prj.conf | 2 ++ 2 files changed, 22 insertions(+) diff --git a/tests/drivers/build_all/input/app.overlay b/tests/drivers/build_all/input/app.overlay index 06e91145fa132a..80be92b765d25b 100644 --- a/tests/drivers/build_all/input/app.overlay +++ b/tests/drivers/build_all/input/app.overlay @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + / { test { #address-cells = <1>; @@ -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 = ; + zephyr,code = ; + }; + }; + }; + i2c@1 { #address-cells = <1>; #size-cells = <0>; diff --git a/tests/drivers/build_all/input/prj.conf b/tests/drivers/build_all/input/prj.conf index d87817b31bd7c6..9f77aa3dfa3c5b 100644 --- a/tests/drivers/build_all/input/prj.conf +++ b/tests/drivers/build_all/input/prj.conf @@ -1,2 +1,4 @@ CONFIG_GPIO=y CONFIG_INPUT=y +CONFIG_SERIAL=y +CONFIG_UART_INTERRUPT_DRIVEN=y