xref: /freebsd/sys/contrib/device-tree/Bindings/resource-names.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotSome properties contain an ordered list of 1 or more datum which are
2*c66ec88fSEmmanuel Vadotnormally accessed by index.  However, some devices will have multiple
3*c66ec88fSEmmanuel Vadotvalues which are more naturally accessed by name.  Device nodes can
4*c66ec88fSEmmanuel Vadotinclude a supplemental property for assigning names to each of the list
5*c66ec88fSEmmanuel Vadotitems.  The names property consists of a list of strings in the same
6*c66ec88fSEmmanuel Vadotorder as the data in the resource property.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotThe following supplemental names properties are defined.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotResource Property	Supplemental Names Property
11*c66ec88fSEmmanuel Vadot-----------------	---------------------------
12*c66ec88fSEmmanuel Vadotreg			reg-names
13*c66ec88fSEmmanuel Vadotclocks			clock-names
14*c66ec88fSEmmanuel Vadotinterrupts		interrupt-names
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotUsage:
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotThe -names property must be used in conjunction with the normal resource
19*c66ec88fSEmmanuel Vadotproperty. If not it will be ignored.
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel VadotExamples:
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadotl4-abe {
24*c66ec88fSEmmanuel Vadot	compatible = "simple-bus";
25*c66ec88fSEmmanuel Vadot	#address-cells = <2>;
26*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
27*c66ec88fSEmmanuel Vadot	ranges = <0 0 0x48000000 0x00001000>, /* MPU path */
28*c66ec88fSEmmanuel Vadot		 <1 0 0x49000000 0x00001000>; /* L3 path */
29*c66ec88fSEmmanuel Vadot	mcasp {
30*c66ec88fSEmmanuel Vadot		compatible = "ti,mcasp";
31*c66ec88fSEmmanuel Vadot		reg = <0 0x10 0x10>, <0 0x20 0x10>,
32*c66ec88fSEmmanuel Vadot		      <1 0x10 0x10>, <1 0x20 0x10>;
33*c66ec88fSEmmanuel Vadot		reg-names = "mpu", "dat",
34*c66ec88fSEmmanuel Vadot			    "dma", "dma_dat";
35*c66ec88fSEmmanuel Vadot		interrupts = <11>, <12>;
36*c66ec88fSEmmanuel Vadot		interrupt-names = "rx", "tx";
37*c66ec88fSEmmanuel Vadot	};
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot	timer {
40*c66ec88fSEmmanuel Vadot		compatible = "ti,timer";
41*c66ec88fSEmmanuel Vadot		reg = <0 0x40 0x10>, <1 0x40 0x10>;
42*c66ec88fSEmmanuel Vadot		reg-names = "mpu", "dma";
43*c66ec88fSEmmanuel Vadot	};
44*c66ec88fSEmmanuel Vadot};
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel Vadotusb {
48*c66ec88fSEmmanuel Vadot	compatible = "ti,usb-host";
49*c66ec88fSEmmanuel Vadot	reg = <0x4a064000 0x800>, <0x4a064800 0x200>,
50*c66ec88fSEmmanuel Vadot	      <0x4a064c00 0x200>;
51*c66ec88fSEmmanuel Vadot	reg-names = "config", "ohci", "ehci";
52*c66ec88fSEmmanuel Vadot	interrupts = <14>, <15>;
53*c66ec88fSEmmanuel Vadot	interrupt-names = "ohci", "ehci";
54*c66ec88fSEmmanuel Vadot};
55