From 05a34819e59d57f3a2465d0a1b8148aa98bb7a37 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 23 Mar 2021 14:10:30 +1300 Subject: [PATCH] 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 --- source/chapter2-devicetree-basics.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/chapter2-devicetree-basics.rst b/source/chapter2-devicetree-basics.rst index 976d75c..fa39625 100644 --- a/source/chapter2-devicetree-basics.rst +++ b/source/chapter2-devicetree-basics.rst @@ -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";``