dts文件格式:

路由表:

路由表详解:https://blog.csdn.net/zyboy2000/article/details/50528253
Linux 路由表详解及 route 命令详解:https://blog.csdn.net/kikajack/article/details/80457841

192.168.1.0/24 dev eno1 proto kernel scope link src 10.151.151.46 metric 100

# 查看当前机器路由:
route

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 tap_ci

1、引用:

1)、phandle引用

  • 被引用的节点中增加phandle属性,引用节点可在属性中使用phandle值引用该节点:
pic@10000000 {
    phandle = <123>;
    interrupt-controller;
};

another-device-node {
    interrupt-parent = <123>;   // 使用phandle值为123来引用上述节点
};

2)、标签引用:

  • 被引用节点增加标签,引用节点可在属性中使用标签引用该节点,本质是在编译dts时,dtc为有标签的节点增加了phandle属性,并为其赋唯一值。
PIC: pic@11000000 {
    interrupt-controller;
};

another-device-node {
    interrupt-parent = <&PIC>;   // 使用label来引用上述节点, 
};
posted @ 2021-10-06 16:19  hug567  阅读(389)  评论(0)    收藏  举报