~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/submitting-patches.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/submitting-patches.rst (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/submitting-patches.rst (Version linux-6.11.7)


  1 .. SPDX-License-Identifier: GPL-2.0                 1 .. SPDX-License-Identifier: GPL-2.0
  2                                                     2 
  3 ==========================================          3 ==========================================
  4 Submitting Devicetree (DT) binding patches          4 Submitting Devicetree (DT) binding patches
  5 ==========================================          5 ==========================================
  6                                                     6 
  7 I. For patch submitters                             7 I. For patch submitters
  8 =======================                             8 =======================
  9                                                     9 
 10   0) Normal patch submission rules from            10   0) Normal patch submission rules from
 11      Documentation/process/submitting-patches.     11      Documentation/process/submitting-patches.rst applies.
 12                                                    12 
 13   1) The Documentation/ and include/dt-binding     13   1) The Documentation/ and include/dt-bindings/ portion of the patch should
 14      be a separate patch. The preferred subjec     14      be a separate patch. The preferred subject prefix for binding patches is::
 15                                                    15 
 16        "dt-bindings: <binding dir>: ..."           16        "dt-bindings: <binding dir>: ..."
 17                                                    17 
 18      Few subsystems, like ASoC, media, regulat     18      Few subsystems, like ASoC, media, regulators and SPI, expect reverse order
 19      of the prefixes::                             19      of the prefixes::
 20                                                    20 
 21        "<binding dir>: dt-bindings: ..."           21        "<binding dir>: dt-bindings: ..."
 22                                                    22 
 23      The 80 characters of the subject are prec     23      The 80 characters of the subject are precious. It is recommended to not
 24      use "Documentation" or "doc" because that     24      use "Documentation" or "doc" because that is implied. All bindings are
 25      docs. Repeating "binding" again should al     25      docs. Repeating "binding" again should also be avoided.
 26                                                    26 
 27   2) DT binding files are written in DT schema     27   2) DT binding files are written in DT schema format using json-schema
 28      vocabulary and YAML file format. The DT b     28      vocabulary and YAML file format. The DT binding files must pass validation
 29      by running::                                  29      by running::
 30                                                    30 
 31        make dt_binding_check                       31        make dt_binding_check
 32                                                    32 
 33      See Documentation/devicetree/bindings/wri     33      See Documentation/devicetree/bindings/writing-schema.rst for more details
 34      about schema and tools setup.                 34      about schema and tools setup.
 35                                                    35 
 36   3) DT binding files should be dual licensed.     36   3) DT binding files should be dual licensed. The preferred license tag is
 37      (GPL-2.0-only OR BSD-2-Clause).               37      (GPL-2.0-only OR BSD-2-Clause).
 38                                                    38 
 39   4) Submit the entire series to the devicetre     39   4) Submit the entire series to the devicetree mailinglist at
 40                                                    40 
 41        devicetree@vger.kernel.org                  41        devicetree@vger.kernel.org
 42                                                    42 
 43      and Cc: the DT maintainers. Use scripts/g     43      and Cc: the DT maintainers. Use scripts/get_maintainer.pl to identify
 44      all of the DT maintainers.                    44      all of the DT maintainers.
 45                                                    45 
 46   5) The Documentation/ portion of the patch s     46   5) The Documentation/ portion of the patch should come in the series before
 47      the code implementing the binding.            47      the code implementing the binding.
 48                                                    48 
 49   6) Any compatible strings used in a chip or      49   6) Any compatible strings used in a chip or board DTS file must be
 50      previously documented in the correspondin     50      previously documented in the corresponding DT binding file
 51      in Documentation/devicetree/bindings.  Th     51      in Documentation/devicetree/bindings.  This rule applies even if
 52      the Linux device driver does not yet matc     52      the Linux device driver does not yet match on the compatible
 53      string.  [ checkpatch will emit warnings      53      string.  [ checkpatch will emit warnings if this step is not
 54      followed as of commit bff5da4335256513497     54      followed as of commit bff5da4335256513497cc8c79f9a9d1665e09864
 55      ("checkpatch: add DT compatible string do     55      ("checkpatch: add DT compatible string documentation checks"). ]
 56                                                    56 
 57   7) If a documented compatible string is not      57   7) If a documented compatible string is not yet matched by the
 58      driver, the documentation should also inc     58      driver, the documentation should also include a compatible
 59      string that is matched by the driver.         59      string that is matched by the driver.
 60                                                    60 
 61   8) Bindings are actively used by multiple pr     61   8) Bindings are actively used by multiple projects other than the Linux
 62      Kernel, extra care and consideration may      62      Kernel, extra care and consideration may need to be taken when making changes
 63      to existing bindings.                         63      to existing bindings.
 64                                                    64 
 65 II. For kernel maintainers                         65 II. For kernel maintainers
 66 ==========================                         66 ==========================
 67                                                    67 
 68   1) If you aren't comfortable reviewing a giv     68   1) If you aren't comfortable reviewing a given binding, reply to it and ask
 69      the devicetree maintainers for guidance.      69      the devicetree maintainers for guidance.  This will help them prioritize
 70      which ones to review and which ones are o     70      which ones to review and which ones are ok to let go.
 71                                                    71 
 72   2) For driver (not subsystem) bindings: If y     72   2) For driver (not subsystem) bindings: If you are comfortable with the
 73      binding, and it hasn't received an Acked-     73      binding, and it hasn't received an Acked-by from the devicetree
 74      maintainers after a few weeks, go ahead a     74      maintainers after a few weeks, go ahead and take it.
 75                                                    75 
 76      For subsystem bindings (anything affectin     76      For subsystem bindings (anything affecting more than a single device),
 77      getting a devicetree maintainer to review     77      getting a devicetree maintainer to review it is required.
 78                                                    78 
 79   3) For a series going though multiple trees,     79   3) For a series going though multiple trees, the binding patch should be
 80      kept with the driver using the binding.       80      kept with the driver using the binding.
 81                                                    81 
 82 III. Notes                                         82 III. Notes
 83 ==========                                         83 ==========
 84                                                    84 
 85   0) Please see Documentation/devicetree/bindi     85   0) Please see Documentation/devicetree/bindings/ABI.rst for details
 86      regarding devicetree ABI.                     86      regarding devicetree ABI.
 87                                                    87 
 88   1) This document is intended as a general fa     88   1) This document is intended as a general familiarization with the process as
 89      decided at the 2013 Kernel Summit.  When      89      decided at the 2013 Kernel Summit.  When in doubt, the current word of the
 90      devicetree maintainers overrules this doc     90      devicetree maintainers overrules this document.  In that situation, a patch
 91      updating this document would be appreciat     91      updating this document would be appreciated.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php