nRF5340 + Zephyr cannot disable led node

Hello,

Using nRF7002DK, I would like to disable &led0 and &led1 connected on pin P1.06 and P1.07.
So I added to my overlay the following lines:

/{
    leds {
        status = "disabled";
    };
}

Unfortunately, they are still in use after build as observed using the Devicetree tool:

I managed to correctly disable others peripherals, such as uart0 and i2c1 for example but I'm stuck with leds... Do you know how I could disable those to use P1.06 and P1.07 for others purposes ?

If I disabled them using the GUI tool, it adds the following lines to the overlay:

&led0 {
    /delete-property/ gpios;
};
&led1 {
    /delete-property/ gpios;
};

But I then have the following error when building the project:
-- Found BOARD.dts: C:/ncs/v2.5.2/nrf/boards/arm/nrf7002dk_nrf5340/nrf7002dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: nrf7002.overlay
devicetree error: 'gpios' is marked as required in 'properties:' in C:/ncs/v2.5.2/zephyr/dts/bindings\led\gpio-leds.yaml, but does not appear in <Node /leds/led_0 in 'C:/ncs/v2.5.2/zephyr/misc/empty_file.c'>

Thank you for your help,
best regards

Parents Reply Children
Related