zephyr/samples/basic
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
..
blinky twister: replace dt_compat_enabled_with_alias filter 2021-03-10 15:09:09 -05:00
blinky_pwm samples: basic: blinky_pwm: fix bad path in README 2021-03-04 11:29:53 +03:00
button twister: replace dt_compat_enabled_with_alias filter 2021-03-10 15:09:09 -05:00
fade_led samples: basic: Convert to use DEVICE_DT_GET 2021-02-24 13:45:46 -06:00
minimal power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
rgb_led samples: basic: Convert to use DEVICE_DT_GET 2021-02-24 13:45:46 -06:00
servo_motor samples: servo_motor: Convert to use DEVICE_DT_GET 2021-02-24 15:46:18 -06:00
threads twister: replace dt_compat_enabled_with_alias filter 2021-03-10 15:09:09 -05:00
basic.rst