devicetree: update DT_PROP_LEN documentation about ranges and dma-ranges

Like reg and interrupts, using DT_PROP_LEN doesn't make sense since
the ranges & dma-ranges block lengths and values depends on the DT
node #address-cells, #size-cells and parents #address-cells value.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2021-10-08 10:34:11 +02:00 committed by Christopher Friedt
commit 053e54c2de
2 changed files with 5 additions and 1 deletions

View file

@ -38,6 +38,9 @@ Changes in this release
* Added function for getting status of USB device remote wakeup feature. * Added function for getting status of USB device remote wakeup feature.
* Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN()
along ``reg`` and ``interrupts``.
========================== ==========================
Removed APIs in this release Removed APIs in this release

View file

@ -549,7 +549,8 @@
* - reg property: use DT_NUM_REGS(node_id) instead * - reg property: use DT_NUM_REGS(node_id) instead
* - interrupts property: use DT_NUM_IRQS(node_id) instead * - interrupts property: use DT_NUM_IRQS(node_id) instead
* *
* It is an error to use this macro with the reg or interrupts properties. * It is an error to use this macro with the ranges, dma-ranges, reg
* or interrupts properties.
* *
* For other properties, behavior is undefined. * For other properties, behavior is undefined.
* *