Why can't I have a *.dts property (as type boolean) being marked as required.

Dear All,

I am creating a device driver (for ncs v2.2.0) for a battery charger. 

One of the properties for the battery charger is the bit-value of the battery FET. (so it is a Boolean value on/off).
It is also mandatory to supply this value in the devicetree configuration (thus it's mandatory).

question: How do I do this correctly in zephyr / nCS.

I try (without success):
a Boolean property in dts and marking as mandatory is not working.

Main reason for the failure is due to zephyr's way of device tree :
- assign true (to the property )by adding the property to the dts
- assign false (to the property) by removing the property from the dts (this clash with zephyr's "required" keyword)

Help is most welcome.

Best regards,
    nRF5xFanBoy

Related