Skip to content

Commit 05a3481

Browse files
sjg20robherring
authored andcommitted
Add more restrictions on compatible strings
Mostly we use lower case and we try to avoid underscores. Add a note about this. I believe this is just writing down the existing conventions. I have not gone as far as using a character table (as with aliases) or specifying a maximum length. Signed-off-by: Simon Glass <[email protected]>
1 parent 089b0f3 commit 05a3481

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/chapter2-devicetree-basics.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ Description:
484484
(such as a stock ticker symbol), and ``model`` specifies the model
485485
number.
486486

487+
The compatible string should consist only of lowercase letters, digits
488+
and dashes. A single comma is typically only used following a vendor
489+
prefix. Underscores should not be used.
490+
487491
Example:
488492

489493
``compatible = "fsl,mpc8641", "ns16550";``

0 commit comments

Comments
 (0)