device.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Devices
  2. =======
  3. Device bindings are described by their own individual binding files.
  4. U-Boot provides for some optional properties which are documented here. See
  5. also hid-over-i2c.txt which describes HID devices. See also
  6. Documentation/firmware-guide/acpi/enumeration.rst in the Linux kernel for
  7. the acpi,compatible property.
  8. - acpi,has-power-resource : (boolean) true if this device has a power resource.
  9. This causes an ACPI PowerResource to be written containing the properties
  10. provided by this binding, to describe how to handle powering the device up
  11. and down using GPIOs
  12. - acpi,compatible : compatible string to report
  13. - acpi,ddn : Contains the string to use as the _DDN (DOS (Disk Operating
  14. System) Device Name)
  15. - acpi,hid : Contains the string to use as the HID (Hardware ID)
  16. identifier _HID
  17. - acpi,path : Specifies the full ACPI path for a device. This overrides the
  18. normal path built from the driver-model hierarchy
  19. - acpi,name : Provides the ACPI name for a device, which is a string consisting
  20. of four alphanumeric character (upper case)
  21. - acpi,uid : _UID value for device
  22. - linux,probed : Tells U-Boot to add 'linux,probed' to the ACPI tables so that
  23. Linux will only load the driver if the device can be detected (e.g. on I2C
  24. bus). Note that this is an out-of-tree Linux feature.
  25. Example
  26. -------
  27. elan_touchscreen: elan-touchscreen@10 {
  28. compatible = "i2c-chip";
  29. reg = <0x10>;
  30. acpi,hid = "ELAN0001";
  31. acpi,ddn = "ELAN Touchscreen";
  32. interrupts-extended = <&acpi_gpe GPIO_21_IRQ IRQ_TYPE_EDGE_FALLING>;
  33. linux,probed;
  34. };
  35. pcie-a0@14,0 {
  36. reg = <0x0000a000 0 0 0 0>;
  37. acpi,name = "RP01";
  38. wifi: wifi {
  39. compatible = "intel,generic-wifi";
  40. acpi,ddn = "Intel WiFi";
  41. acpi,name = "WF00";
  42. interrupts-extended = <&acpi_gpe 0x3c 0>;
  43. };
  44. };
  45. p2sb: p2sb@d,0 {
  46. u-boot,dm-pre-reloc;
  47. reg = <0x02006810 0 0 0 0>;
  48. compatible = "intel,apl-p2sb";
  49. early-regs = <IOMAP_P2SB_BAR 0x100000>;
  50. pci,no-autoconfig;
  51. n {
  52. compatible = "intel,apl-pinctrl";
  53. u-boot,dm-pre-reloc;
  54. intel,p2sb-port-id = <PID_GPIO_N>;
  55. acpi,path = "\\_SB.GPO0";
  56. gpio_n: gpio-n {
  57. compatible = "intel,gpio";
  58. u-boot,dm-pre-reloc;
  59. gpio-controller;
  60. #gpio-cells = <2>;
  61. linux-name = "INT3452:00";
  62. };
  63. };