zephyr/samples/subsys
Martí Bolívar 51f55b437f twister: replace dt_compat_enabled_with_alias filter
Originally added in 7733b94224.

This filter is not well-formed. It's meant to match nodes like
/leds/led_0 in this DTS:

/ {
	aliases {
		led0 = &led0;
	};

	leds {
		compatible = "gpio-leds";
		led0: led_0 {
			gpios = <...>;
			label = "LED 0";
		};
	};
};

Uses look like this:

    filter: dt_compat_enabled_with_alias("gpio-leds", "led0")

But notice how the led_0 node doesn't have compatible "gpio-leds";
it's actually the *parent* node that has that compatible.

Replace this with a new filter, dt_enabled_alias_with_parent_compat(),
which is used like this:

    filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")

This has a name and argument order that makes the meaning of the
filter clearer.

Replace in-tree users with the new filter.

Deprecate the old filter and warn about its use using the standard
logging module.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-03-10 15:09:09 -05:00
..
audio/sof sampels: move audio into subsys/audio 2021-03-09 17:48:18 -05:00
canbus samples: canbus: canopen: mass-erase flash prior to running sample 2021-01-24 21:22:25 -05:00
console samples: console: set integration_platforms to mps2_an385 2021-03-03 09:12:30 -06:00
cpp samples: move cpp samples into subsys/cpp 2021-03-09 17:48:18 -05:00
debug samples: move debug samples under subsys/debug 2021-03-09 17:48:18 -05:00
display sampels: move display into subsys/display 2021-03-09 17:48:18 -05:00
edac edac: Use Device Tree values for BDF and PCI VID 2021-02-04 09:37:42 -05:00
fs drivers: spi: Remove unused Kconfig symbols 2021-03-09 04:53:46 -05:00
ipc samples: subsys: ipc: Remove references to v2m_musca 2021-03-05 07:23:23 -06:00
logging samples: logging: logger: Explicitly enable deferred mode 2021-03-09 08:58:02 +01:00
lorawan/class_a samples: move lorawan to subsys/lorawan 2021-03-09 17:48:18 -05:00
mgmt twister: replace dt_compat_enabled_with_alias filter 2021-03-10 15:09:09 -05:00
nvs samples: nvs: Do full chip erase when flashing 2020-08-11 09:39:49 -04:00
power/device_pm power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
settings samples/subsys/settings: fixed typo in readme 2021-01-04 10:34:35 -06:00
shell shell: sample: add getopt 2021-03-01 09:50:32 -05:00
testsuite/integration samples: move testing -> subsys/testsuite 2021-03-09 17:48:18 -05:00
tracing samples: tracing: Extend the SystemView configuration to more platforms 2020-11-20 12:54:09 -06:00
usb samples: hid: convert to use new common HID macros 2021-02-28 16:50:24 -05:00
video sampels: move video into subsys/video 2021-03-09 17:48:18 -05:00
subsys.rst