zephyr/samples/sensor/sensor_shell/fake_sensor.overlay
Benjamin Cabé 86eea62e0b samples: sensor: Use dedicated overlay for fake sensor in sensor_shell
Using an app.overlay file is inherently preventing the use of board
overlays. Switch to a dedicated overlay file so that e.g.
the vmu_rt1170/mimxrt1176/cm7 board target can pass this test where
before it would have failed due to its board-specific overlay "winning"
over the app.overlay file.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-24 10:49:52 +01:00

27 lines
418 B
Plaintext

/*
* Copyright (c) 2024 Meta Platforms
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
app {
#address-cells = <1>;
#size-cells = <0>;
vsensor0: sensor@0 {
compatible = "vnd,fake-sensor";
reg = <0>;
friendly-name = "Fake sensor 0";
status = "okay";
};
vsensor1: sensor@1 {
compatible = "vnd,fake-sensor";
reg = <1>;
friendly-name = "Fake sensor 1";
status = "okay";
};
};
};