Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: dt: Update overlay file extension

Building DTB overlays from .dts files is no longer supported.
Update the documentation to reflect this.

Fixes: 81d362732bac05f6 ("kbuild: Disallow DTB overlays to built from .dts named source files")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Andrew Davis <afd@ti.com>
Reviewed-by: Yanteng Si <siyanteng@loongson.cn>
Link: https://lore.kernel.org/r/ebce4d9591dd0259a636196dda31d40901dc04b0.1738752288.git.geert+renesas@glider.be
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Geert Uytterhoeven and committed by
Rob Herring (Arm)
10fc30ea 2b18eda5

+12 -12
+6 -6
Documentation/devicetree/overlay-notes.rst
··· 38 38 }; 39 39 ---- foo.dts --------------------------------------------------------------- 40 40 41 - The overlay bar.dts, 41 + The overlay bar.dtso, 42 42 :: 43 43 44 - ---- bar.dts - overlay target location by label ---------------------------- 44 + ---- bar.dtso - overlay target location by label --------------------------- 45 45 /dts-v1/; 46 46 /plugin/; 47 47 &ocp { ··· 51 51 ... /* various properties and child nodes */ 52 52 }; 53 53 }; 54 - ---- bar.dts --------------------------------------------------------------- 54 + ---- bar.dtso -------------------------------------------------------------- 55 55 56 56 when loaded (and resolved as described in [1]) should result in foo+bar.dts:: 57 57 ··· 88 88 location by label syntax is preferred because the overlay can be applied to 89 89 any base DT containing the label, no matter where the label occurs in the DT. 90 90 91 - The above bar.dts example modified to use target path syntax is:: 91 + The above bar.dtso example modified to use target path syntax is:: 92 92 93 - ---- bar.dts - overlay target location by explicit path -------------------- 93 + ---- bar.dtso - overlay target location by explicit path ------------------- 94 94 /dts-v1/; 95 95 /plugin/; 96 96 &{/ocp} { ··· 100 100 ... /* various properties and child nodes */ 101 101 } 102 102 }; 103 - ---- bar.dts --------------------------------------------------------------- 103 + ---- bar.dtso -------------------------------------------------------------- 104 104 105 105 106 106 Overlay in-kernel API
+6 -6
Documentation/translations/zh_CN/devicetree/overlay-notes.rst
··· 43 43 }; 44 44 ---- foo.dts --------------------------------------------------------------- 45 45 46 - 覆盖bar.dts, 46 + 覆盖bar.dtso, 47 47 :: 48 48 49 - ---- bar.dts - 按标签覆盖目标位置 ---------------------------- 49 + ---- bar.dtso - 按标签覆盖目标位置 --------------------------- 50 50 /dts-v1/; 51 51 /插件/; 52 52 &ocp { ··· 56 56 ... /* 各种属性和子节点 */ 57 57 }; 58 58 }; 59 - ---- bar.dts --------------------------------------------------------------- 59 + ---- bar.dtso -------------------------------------------------------------- 60 60 61 61 当加载(并按照[1]中描述的方式解决)时,应该产生foo+bar.dts:: 62 62 ··· 90 90 DT中的适当位置。在这种情况下,可以提供目标路径。通过标签的目标位置的语法是比 91 91 较好的,因为不管标签在DT中出现在哪里,覆盖都可以被应用到任何包含标签的基础DT上。 92 92 93 - 上面的bar.dts例子被修改为使用目标路径语法,即为:: 93 + 上面的bar.dtso例子被修改为使用目标路径语法,即为:: 94 94 95 - ---- bar.dts - 通过明确的路径覆盖目标位置 -------------------- 95 + ---- bar.dtso - 通过明确的路径覆盖目标位置 ------------------- 96 96 /dts-v1/; 97 97 /插件/; 98 98 &{/ocp} { ··· 102 102 ... /* 各种外围设备和子节点 */ 103 103 } 104 104 }; 105 - ---- bar.dts --------------------------------------------------------------- 105 + ---- bar.dtso -------------------------------------------------------------- 106 106 107 107 108 108 内核中关于覆盖的API