Documentation/devicetree/bindings/resource-names.txt
2013-11-03 16:07
387 查看
Chinese translated version of Documentation/devicetree/bindings/resource-names.txt
If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help. Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.
Chinese maintainer: 徐红 1534342777@qq.com
---------------------------------------------------------------------
Documentation/devicetree/bindings/resource-names.txt的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者: 徐红 1534342777@qq.com
中文版翻译者: 徐红 1534342777@qq.com
以下为正文
---------------------------------------------------------------------
Some properties contain an ordered list of 1 or more datum which are
normally accessed by index. However, some devices will have multiple
values which are more naturally accessed by name. Device nodes can
include a supplemental property for assigning names to each of the list
items. The names property consists of a list of strings in the same
order as the data in the resource property.
一些属性包含了一个或多个数据集的有序列表,它们通常是被索引访问
的。然而有些设备各种值,通常通过名字访问。设备节点包含一个补充属性:
为每个列表项目分配名字。名字属性由一串和资源属性中的数据顺序一样
的字符串组成。
The following supplemental names properties are defined.
下面补充的名字属性是定义的。
Resource Property Supplemental Names Property
资源属性 补充的名称属性
----------------- ---------------------------
reg reg-names
clocks clock-names
interrupts interrupt-names
Usage:
用法:
The -names property must be used in conjunction with the normal resource
property. If not it will be ignored.
名称属性必须用于连接普通的资源属性。否则它将会被忽略。
Examples:
例如:
l4-abe {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x48000000 0x00001000>, /* MPU path */
<1 0 0x49000000 0x00001000>; /* L3 path */
mcasp {
compatible = "ti,mcasp";
reg = <0 0x10 0x10>, <0 0x20 0x10>,
<1 0x10 0x10>, <1 0x20 0x10>;
reg-names = "mpu", "dat",
"dma", "dma_dat";
interrupts = <11>, <12>;
interrupt-names = "rx", "tx";
};
timer {
compatible = "ti,timer";
reg = <0 0x40 0x10>, <1 0x40 0x10>;
reg-names = "mpu", "dma";
};
};
usb {
compatible = "ti,usb-host";
reg = <0x4a064000 0x800>, <0x4a064800 0x200>,
<0x4a064c00 0x200>;
reg-names = "config", "ohci", "ehci";
interrupts = <14>, <15>;
interrupt-names = "ohci", "ehci";
};
If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help. Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.
Chinese maintainer: 徐红 1534342777@qq.com
---------------------------------------------------------------------
Documentation/devicetree/bindings/resource-names.txt的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者: 徐红 1534342777@qq.com
中文版翻译者: 徐红 1534342777@qq.com
以下为正文
---------------------------------------------------------------------
Some properties contain an ordered list of 1 or more datum which are
normally accessed by index. However, some devices will have multiple
values which are more naturally accessed by name. Device nodes can
include a supplemental property for assigning names to each of the list
items. The names property consists of a list of strings in the same
order as the data in the resource property.
一些属性包含了一个或多个数据集的有序列表,它们通常是被索引访问
的。然而有些设备各种值,通常通过名字访问。设备节点包含一个补充属性:
为每个列表项目分配名字。名字属性由一串和资源属性中的数据顺序一样
的字符串组成。
The following supplemental names properties are defined.
下面补充的名字属性是定义的。
Resource Property Supplemental Names Property
资源属性 补充的名称属性
----------------- ---------------------------
reg reg-names
clocks clock-names
interrupts interrupt-names
Usage:
用法:
The -names property must be used in conjunction with the normal resource
property. If not it will be ignored.
名称属性必须用于连接普通的资源属性。否则它将会被忽略。
Examples:
例如:
l4-abe {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x48000000 0x00001000>, /* MPU path */
<1 0 0x49000000 0x00001000>; /* L3 path */
mcasp {
compatible = "ti,mcasp";
reg = <0 0x10 0x10>, <0 0x20 0x10>,
<1 0x10 0x10>, <1 0x20 0x10>;
reg-names = "mpu", "dat",
"dma", "dma_dat";
interrupts = <11>, <12>;
interrupt-names = "rx", "tx";
};
timer {
compatible = "ti,timer";
reg = <0 0x40 0x10>, <1 0x40 0x10>;
reg-names = "mpu", "dma";
};
};
usb {
compatible = "ti,usb-host";
reg = <0x4a064000 0x800>, <0x4a064800 0x200>,
<0x4a064c00 0x200>;
reg-names = "config", "ohci", "ehci";
interrupts = <14>, <15>;
interrupt-names = "ohci", "ehci";
};
相关文章推荐
- Unity编程回忆录之控制物体移动
- 命名参数 named parameter
- java变量
- Oracle SQL Lesson (9) - 操作数据(增删改)
- 设计模式 之 《模板方法模式》
- 传统路径导出 VS 直接路径导出(oracle exp direct=y)
- 心理成熟的十五条标准(转)
- HDu1241 DFS搜索
- HDu1241 DFS搜索
- 在Android Studio 中加入jar 和.so 文件
- Hibernate——(3)主键生成方式
- Hibernate——(3)主键生成方式
- HDU3067:小t的游戏
- 庞果网之字符串消除
- 中国证书CHINASSL正式启用中国证书.com
- 了解Activity的Intent用法
- linux shell脚本编程技巧介绍(一)
- LeetCode -- Single Number 代码分析
- C++编程——微生物增殖
- [Unity3D]AssetBundles的使用