Skip to content

Commit 053e54c

Browse files
superna9999cfriedt
authored andcommitted
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 <[email protected]>
1 parent 1fb263c commit 053e54c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/releases/release-notes-3.0.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Changes in this release
3838

3939
* Added function for getting status of USB device remote wakeup feature.
4040

41+
* Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN()
42+
along ``reg`` and ``interrupts``.
43+
4144
==========================
4245

4346
Removed APIs in this release

include/devicetree.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@
549549
* - reg property: use DT_NUM_REGS(node_id) instead
550550
* - interrupts property: use DT_NUM_IRQS(node_id) instead
551551
*
552-
* It is an error to use this macro with the reg or interrupts properties.
552+
* It is an error to use this macro with the ranges, dma-ranges, reg
553+
* or interrupts properties.
553554
*
554555
* For other properties, behavior is undefined.
555556
*

0 commit comments

Comments
 (0)