From a8b44fd1d19cbe79941b6acbc73d5b7cb732f268 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 3 Mar 2025 10:54:29 +0100 Subject: [PATCH] dts: zephyr,native-posix-cpu changed to zephyr,native-sim-cpu The old binding remains until 4.4 but is deprecated. Signed-off-by: Alberto Escolar Piedras --- boards/native/native_sim/native_sim.dts | 2 +- dts/bindings/cpu/zephyr,native-sim-cpu.yaml | 8 ++++++++ .../native/native_sim_extend/native_sim_native_one.dts | 2 +- tests/subsys/pm/policy_api/app.overlay | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 dts/bindings/cpu/zephyr,native-sim-cpu.yaml diff --git a/boards/native/native_sim/native_sim.dts b/boards/native/native_sim/native_sim.dts index 0bccb217bef..d8f7cc49073 100644 --- a/boards/native/native_sim/native_sim.dts +++ b/boards/native/native_sim/native_sim.dts @@ -54,7 +54,7 @@ #size-cells = <0>; cpu0: cpu@0 { - compatible = "zephyr,native-posix-cpu"; + compatible = "zephyr,native-sim-cpu"; reg = <0>; }; }; diff --git a/dts/bindings/cpu/zephyr,native-sim-cpu.yaml b/dts/bindings/cpu/zephyr,native-sim-cpu.yaml new file mode 100644 index 00000000000..804bf61fb23 --- /dev/null +++ b/dts/bindings/cpu/zephyr,native-sim-cpu.yaml @@ -0,0 +1,8 @@ +# Copyright (c) 2021 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +description: native_sim CPU + +compatible: "zephyr,native-sim-cpu" + +include: cpu.yaml diff --git a/tests/cmake/hwm/board_extend/oot_root/boards/native/native_sim_extend/native_sim_native_one.dts b/tests/cmake/hwm/board_extend/oot_root/boards/native/native_sim_extend/native_sim_native_one.dts index 04e5c661fc3..d12737469d2 100644 --- a/tests/cmake/hwm/board_extend/oot_root/boards/native/native_sim_extend/native_sim_native_one.dts +++ b/tests/cmake/hwm/board_extend/oot_root/boards/native/native_sim_extend/native_sim_native_one.dts @@ -52,7 +52,7 @@ #size-cells = <0>; cpu0: cpu@0 { - compatible = "zephyr,native-posix-cpu"; + compatible = "zephyr,native-sim-cpu"; reg = <0>; }; }; diff --git a/tests/subsys/pm/policy_api/app.overlay b/tests/subsys/pm/policy_api/app.overlay index 5f1324b5285..54b02e0b28e 100644 --- a/tests/subsys/pm/policy_api/app.overlay +++ b/tests/subsys/pm/policy_api/app.overlay @@ -6,7 +6,7 @@ / { cpus { cpu1: cpu@1 { - compatible = "zephyr,native-posix-cpu"; + compatible = "zephyr,native-sim-cpu"; reg = <1>; cpu-power-states = <&state2>; };