deleteing default device tree nodes

Hi,

piggying-back on BT nus shell sample (workspace project), I try to define my own dt nodes.

// *** These two are deleted gracefully ***
/delete-node/ &spi0;	// conflicts with i2c0
/delete-node/ &spi1;	// conflicts with i2c1

// *** I want to remove all the below ***
// /delete-node/ &button3;
// /delete-node/ &button2;
// /delete-node/ &button1;
// /delete-node/ &button0;
// /delete-node/ &led3;
// /delete-node/ &led2;
// /delete-node/ &led1;
// /delete-node/ &led0;
// /delete-node/ &pwm0;
// /delete-node/ &qspi;

I keep getting error like devicetree error: /aliases: undefined node label 'button0'

I looked through devzone and found this post -  Cant delete button nodes. ,

following the advice in zephyr.dts that "sw0 = &button0;"
however I don't find any reference to button0 or sw0 within the project tree.

I do get many many references in the /external folder (my app is under /application) .

So my question is, how can I delete all/most default nrf52840dk nodes and the redefine my own ?

Attached are screen caps of the project structure

Thanks

Parents Reply Children
No Data
Related