resource-names.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Some properties contain an ordered list of 1 or more datum which are
  2. normally accessed by index. However, some devices will have multiple
  3. values which are more naturally accessed by name. Device nodes can
  4. include a supplemental property for assigning names to each of the list
  5. items. The names property consists of a list of strings in the same
  6. order as the data in the resource property.
  7. The following supplemental names properties are defined.
  8. Resource Property Supplemental Names Property
  9. ----------------- ---------------------------
  10. reg reg-names
  11. clocks clock-names
  12. interrupts interrupt-names
  13. Usage:
  14. The -names property must be used in conjunction with the normal resource
  15. property. If not it will be ignored.
  16. Examples:
  17. l4-abe {
  18. compatible = "simple-bus";
  19. #address-cells = <2>;
  20. #size-cells = <1>;
  21. ranges = <0 0 0x48000000 0x00001000>, /* MPU path */
  22. <1 0 0x49000000 0x00001000>; /* L3 path */
  23. mcasp {
  24. compatible = "ti,mcasp";
  25. reg = <0 0x10 0x10>, <0 0x20 0x10>,
  26. <1 0x10 0x10>, <1 0x20 0x10>;
  27. reg-names = "mpu", "dat",
  28. "dma", "dma_dat";
  29. interrupts = <11>, <12>;
  30. interrupt-names = "rx", "tx";
  31. };
  32. timer {
  33. compatible = "ti,timer";
  34. reg = <0 0x40 0x10>, <1 0x40 0x10>;
  35. reg-names = "mpu", "dma";
  36. };
  37. };
  38. usb {
  39. compatible = "ti,usb-host";
  40. reg = <0x4a064000 0x800>, <0x4a064800 0x200>,
  41. <0x4a064c00 0x200>;
  42. reg-names = "config", "ohci", "ehci";
  43. interrupts = <14>, <15>;
  44. interrupt-names = "ohci", "ehci";
  45. };