|
(为了高效,请按如下格式提问)
硬件主板型号:youyeetoo X1
固件名称/系统版本:
自编的或固件下载地址:
Log日志: (可以导出,用TXT附件上传)
问题描述及复现步骤:
[color=rgba(0, 0, 0, 0.6)]我想开发spi device,除了要宣告spi资源外,还需要Gpioint 和 Gpio IO (REST 引脚)
[color=rgba(0, 0, 0, 0.6)]我想使用板子上提供的5根GPIO pin的其中一根作为[color=rgba(0, 0, 0, 0.6)]Gpioint [color=rgba(0, 0, 0, 0.6)],还需要一根作为 GPIO IO
请问在ASL CODE里如何声明将 GPIO-H16声明成Gpio Int ,将GPIO-H17 配置成GPIO IO
当前我们声明的设备信息如下:
Device (GTP0)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "SPI1003") // _HID: Hardware ID
Name (_CID, "SPI1001") // _CID: Compatible ID
Name (_UID, "SPI1001") // _UID: Unique ID
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBUF, ResourceTemplate ()
{
SpiSerialBusV2 (0x0000, PolarityLow, FourWireMode, 0x08,
ControllerInitiated, 0x00089544, ClockPolarityLow,
ClockPhaseFirst, "\\_SB.PC00.SPI1",
0x00, ResourceConsumer, , Exclusive,
)
GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x0000,
"\\_SB.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list GPIO-H16
0x0000
}
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
"\\_SB.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list GPIO-H17
0x0000
}
})
Return (RBUF) /* \_SB_.PC00.SPI1.SSPI._CRS.RBUF */
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
}
帮忙指导一下,红色部分的pin list 如何配置?
|
|