devicetree delete error

Why do I get an error when using Devicetree overlay file to delete devices
The first step is to open the overlay file in the device tree as shown in the figure

The second step, as shown in the figure, is to click on the LED pin and then click on delete, as I want to change this pin.

Then my overlay, which I created myself, got an error message



I really don't understand, shouldn't I be completely right? After all, this is an official tool from Nordic

Parents
  • Hi,

    The error occurs because gpios is a required property of led0. Why do you want to remove it instead of just marking it as disabled?

    If you do want to remove it, you can try this:

    / {
        aliases {
            /delete-property/ led3;
        };
    };
    /delete-node/ &led3;

    As for why this happens in the visual device tree editor, I’m not sure. I see the same behavior when following your steps. I’ll need to check with the team maintaining the tool.

    Best regards,
    Benjamin

Reply
  • Hi,

    The error occurs because gpios is a required property of led0. Why do you want to remove it instead of just marking it as disabled?

    If you do want to remove it, you can try this:

    / {
        aliases {
            /delete-property/ led3;
        };
    };
    /delete-node/ &led3;

    As for why this happens in the visual device tree editor, I’m not sure. I see the same behavior when following your steps. I’ll need to check with the team maintaining the tool.

    Best regards,
    Benjamin

Children
Related