当前位置:网站首页>设备树(devicetree)-dts语法
设备树(devicetree)-dts语法
2022-08-03 05:23:00 【SEVENTHD7】
设备树的属性取值
<1 0x5> 32位整数
"string" 字符串
[44 cc] 字节序列
#address-cells = <1> 在它的子节点 reg属性中,使用了多少个32整数来描述地址
#size-cells= <1> 在它的子节点 reg属性中,使用了多少个32整数来描述长度
reg = <0x100 0x200>
#address-cells = <2> 在它的子节点 reg属性中,使用了多少个32整数来描述地址#size-cells= <1> 在它的子节点 reg属性中,使用了多少个32整数来描述长度
reg = <0x100 0x400 0x200>
soc {
#address-cells = <1>;
#size-cells = <1>;
[email protected] {
compatible = "ns16550";
reg = <0x4600 0x100>;
clock-frequency = <0>;
interrupts = <0xA 0x8>;
interrupt-parent = <&ipic>;
};
};
节点的#address-cells数和#size-cells属性都设置为 1。此设置指定需要一个单元来表示地址,并且需要一个单元来表示此节点的子节点大小。串行设备 reg 属性必须遵循父 (soc) 节点中的此规范,地址由1个单元格 (0x4600) 表示,大小由1个单元格 (0x100) 表示。
边栏推荐
猜你喜欢

Kettle Spoon 安装配置详解

自监督论文阅读笔记 Self-Supervised Deep Learning for Vehicle Detection in High-Resolution Satellite Imagery

Router-view

block底层探索

当奈飞的NFT忘记了web2的业务安全

漫谈Map Reduce 参数优化

【源码解读】你买的NFT到底是什么?

Qlik Sense 字符串截取和拼接详解(Left、Right、&)

自监督论文阅读笔记 Ship Detection in Sentinel 2 Multi-Spectral Images with Self-Supervised Learning

Sentinel初次使用Demo测试
随机推荐
IO 复用
controller层到底能不能用@Transactional注解?
Router-view
Oracle 注释详解(--、/**/、rem)
[CSRF, SSRF, XXE, PHP deserialization, Burpsuite]
Playing with Markdown(2) - Extraction and Manipulation of Abstract Syntax Trees
关于梯度下降法的一些优化方法
中国水产养殖行业市场投资分析及未来风险预测报告2022~2028年
理论上的嵌入式跑马灯
自监督论文阅读笔记 Ship Detection in Sentinel 2 Multi-Spectral Images with Self-Supervised Learning
Delightful Nuxt3 Tutorial (1): Application Creation and Configuration
Convolutional Nerual Nertwork(CNN)
【Yarn】yarn常用命令 查看日志和Kill任务
【第三周】ResNet+ResNeXt
深度学习理论课程第八、九、十章总结
中国水煤浆行业“十四五”规划与运营模式分析报告2022~2028年
Kettle Spoon 安装配置详解
MySQL 下载和安装详解
Invalid signature file digest for Manifest main attributes解决方法
神经网络之感知机