Skip to content

Commit

Permalink
Add more restrictions on compatible strings
Browse files Browse the repository at this point in the history
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 <sjg@chromium.org>
  • Loading branch information
sjg20 authored and robherring committed Mar 23, 2021
1 parent 089b0f3 commit 05a3481
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/chapter2-devicetree-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ Description:
(such as a stock ticker symbol), and ``model`` specifies the model
number.

The compatible string should consist only of lowercase letters, digits
and dashes. A single comma is typically only used following a vendor
prefix. Underscores should not be used.

Example:

``compatible = "fsl,mpc8641", "ns16550";``
Expand Down

0 comments on commit 05a3481

Please sign in to comment.