boards: posix: native_posix: enable can_loopback0 by default

The .yaml file states that CAN is supported, but the basic sample
application samples/drivers/can/counter cannot be compiled without
additional configuration.

The loopback driver does not require any additional steps like the
linux SocketCAN driver, so it is safe to enable it by default and
get rid of the many overlay files in the tests.

ISO-TP tests and the counter sample are excluded via .yaml from
twister tests because of timing issues.

Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
Martin Jäger 2022-09-22 11:11:08 +02:00 committed by Carles Cufí
commit 9cec058e8e
12 changed files with 4 additions and 73 deletions

View file

@ -188,7 +188,7 @@
};
can_loopback0: can_loopback0 {
status = "disabled";
status = "okay";
compatible = "zephyr,can-loopback";
sjw = <1>;
sample-point = <875>;

View file

@ -5,6 +5,7 @@ tests:
tags: can
depends_on: can
filter: dt_chosen_enabled("zephyr,canbus")
platform_exclude: native_posix native_posix_64
harness: console
harness_config:
type: one_line

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2022 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2022 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2021 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2021 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2022 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2022 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2021 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -1,9 +0,0 @@
/*
* Copyright (c) 2021 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
&can_loopback0 {
status = "okay";
};

View file

@ -3,3 +3,4 @@ tests:
tags: can isotp
depends_on: can
filter: dt_chosen_enabled("zephyr,canbus")
platform_exclude: native_posix native_posix_64

View file

@ -3,3 +3,4 @@ tests:
tags: can isotp
depends_on: can
filter: dt_chosen_enabled("zephyr,canbus")
platform_exclude: native_posix native_posix_64