PCAL9555A.asi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /** @file
  2. NXP PCAL9555A i2c-accessible I/O expander.
  3. Copyright (c) 2013-2015 Intel Corporation.
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. Device(NIO1)
  7. {
  8. Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.
  9. Name(_CID, "INT3491")
  10. Name(_UID, 1)
  11. Name(RBUF, ResourceTemplate()
  12. {
  13. I2CSerialBus(0x25, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
  14. })
  15. Method(_CRS, 0x0, NotSerialized)
  16. {
  17. Return(RBUF)
  18. }
  19. Method(_STA, 0x0, NotSerialized)
  20. {
  21. //
  22. // Only Platform Type / Id 8 has this device.
  23. //
  24. If(LNotEqual(PTYP, 8))
  25. {
  26. return (0)
  27. }
  28. Return(0xf)
  29. }
  30. }
  31. Device(NIO2)
  32. {
  33. Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.
  34. Name(_CID, "INT3491")
  35. Name(_UID, 2)
  36. Name(RBUF, ResourceTemplate()
  37. {
  38. I2CSerialBus(0x26, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
  39. })
  40. Method(_CRS, 0x0, NotSerialized)
  41. {
  42. Return(RBUF)
  43. }
  44. Method(_STA, 0x0, NotSerialized)
  45. {
  46. //
  47. // Only Platform Type / Id 8 has this device.
  48. //
  49. If(LNotEqual(PTYP, 8))
  50. {
  51. return (0)
  52. }
  53. Return(0xf)
  54. }
  55. }
  56. Device(NIO3)
  57. {
  58. Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.
  59. Name(_CID, "INT3491")
  60. Name(_UID, 3)
  61. Name(RBUF, ResourceTemplate()
  62. {
  63. I2CSerialBus(0x27, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
  64. GpioInt (Level, ActiveLow, Exclusive, PullDefault, , "\\_SB.PCI0.GIP0.GPO", 0, ResourceConsumer, , ) {QUARK_GPIO1_MAPPING} /* GPIO<1> is EXP2_INT */
  65. })
  66. Method(_CRS, 0x0, NotSerialized)
  67. {
  68. Return(RBUF)
  69. }
  70. Method(_STA, 0x0, NotSerialized)
  71. {
  72. //
  73. // Only Platform Type / Id 8 has this device.
  74. //
  75. If(LNotEqual(PTYP, 8))
  76. {
  77. return (0)
  78. }
  79. Return(0xf)
  80. }
  81. }