Delete Default Devicetree Aliases Snippet (del-default-aliases)
west build -S del-default-aliases [...]
Overview
This snippet deletes common default alias properties from the
Devicetree, e.g. such as
sw0 = &gpio_key_node;
, or
led0 = &gpio_led_node;
, or
pwm-led0 = &pwm_led_node;
.
In general, these are only expected from simple examples or test cases but
can potentially cause ugly side effects if, for example, both an application
and a Zephyr subsystem simultaneously initialize interrupt callbacks on the
underlying hardware.
In such a constellation, for example the LVGL basic sample
with the zephyr,input-longpress
function in the input system
on exactly the same GPIO pin, every second event would not be handled there
for by the input system but at the application level and would therefore be
lost for the input system. The end user is free to use this snippet in such
cases or to use another adequate solution.
Current Deletions
1/ {
2 aliases {
3 /delete-property/ sw0;
4 /delete-property/ led0;
5 /delete-property/ pwm-led0;
6 };
7};