From 313762487c53a17fa35c622f7ab5fd64d23c8d6f Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 11 Sep 2020 10:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Linux/Kernel/Modules/DeviceTree/DeviceTree.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Software/Development/OperatingSystem/Linux/Kernel/Modules/DeviceTree/DeviceTree.md b/Software/Development/OperatingSystem/Linux/Kernel/Modules/DeviceTree/DeviceTree.md index 76798eb..c8881c3 100644 --- a/Software/Development/OperatingSystem/Linux/Kernel/Modules/DeviceTree/DeviceTree.md +++ b/Software/Development/OperatingSystem/Linux/Kernel/Modules/DeviceTree/DeviceTree.md @@ -99,6 +99,16 @@ reg = <0 0x00000000 0x04000000>, <1 0x00000000 0x04000000>; ``` +按 property-name 可以表述的数据类型,可以分为: + +* 字符串:string-prop = “a string”; +* 字符串列表:string-list = “hi”,”str”,”list”; +* 整型数据:cell-prop = <0xaa>; +* 二进制数据:binary-prop = [aa bb f8]; +* 混合数据:mixed-prop = “str”,<0x123>,[ff dd]; +* 布尔类型:bool-porp; +* 引用类型:ref-prop = <&other-node> + ### 2.4.标准属性 #### 2.4.1.compatible