xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/resource-names.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSome properties contain an ordered list of 1 or more datum which are
2*4882a593Smuzhiyunnormally accessed by index.  However, some devices will have multiple
3*4882a593Smuzhiyunvalues which are more naturally accessed by name.  Device nodes can
4*4882a593Smuzhiyuninclude a supplemental property for assigning names to each of the list
5*4882a593Smuzhiyunitems.  The names property consists of a list of strings in the same
6*4882a593Smuzhiyunorder as the data in the resource property.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunThe following supplemental names properties are defined.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunResource Property	Supplemental Names Property
11*4882a593Smuzhiyun-----------------	---------------------------
12*4882a593Smuzhiyunreg			reg-names
13*4882a593Smuzhiyunclocks			clock-names
14*4882a593Smuzhiyuninterrupts		interrupt-names
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunUsage:
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunThe -names property must be used in conjunction with the normal resource
19*4882a593Smuzhiyunproperty. If not it will be ignored.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunExamples:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunl4-abe {
24*4882a593Smuzhiyun	compatible = "simple-bus";
25*4882a593Smuzhiyun	#address-cells = <2>;
26*4882a593Smuzhiyun	#size-cells = <1>;
27*4882a593Smuzhiyun	ranges = <0 0 0x48000000 0x00001000>, /* MPU path */
28*4882a593Smuzhiyun		 <1 0 0x49000000 0x00001000>; /* L3 path */
29*4882a593Smuzhiyun	mcasp {
30*4882a593Smuzhiyun		compatible = "ti,mcasp";
31*4882a593Smuzhiyun		reg = <0 0x10 0x10>, <0 0x20 0x10>,
32*4882a593Smuzhiyun		      <1 0x10 0x10>, <1 0x20 0x10>;
33*4882a593Smuzhiyun		reg-names = "mpu", "dat",
34*4882a593Smuzhiyun			    "dma", "dma_dat";
35*4882a593Smuzhiyun		interrupts = <11>, <12>;
36*4882a593Smuzhiyun		interrupt-names = "rx", "tx";
37*4882a593Smuzhiyun	};
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	timer {
40*4882a593Smuzhiyun		compatible = "ti,timer";
41*4882a593Smuzhiyun		reg = <0 0x40 0x10>, <1 0x40 0x10>;
42*4882a593Smuzhiyun		reg-names = "mpu", "dma";
43*4882a593Smuzhiyun	};
44*4882a593Smuzhiyun};
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun
47*4882a593Smuzhiyunusb {
48*4882a593Smuzhiyun	compatible = "ti,usb-host";
49*4882a593Smuzhiyun	reg = <0x4a064000 0x800>, <0x4a064800 0x200>,
50*4882a593Smuzhiyun	      <0x4a064c00 0x200>;
51*4882a593Smuzhiyun	reg-names = "config", "ohci", "ehci";
52*4882a593Smuzhiyun	interrupts = <14>, <15>;
53*4882a593Smuzhiyun	interrupt-names = "ohci", "ehci";
54*4882a593Smuzhiyun};
55