您的位置:首页 > 其它

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";

};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: