€•#Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ%/translations/zh_CN/hid/intel-thc-hid”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/zh_TW/hid/intel-thc-hid”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/it_IT/hid/intel-thc-hid”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/ja_JP/hid/intel-thc-hid”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/ko_KR/hid/intel-thc-hid”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/pt_BR/hid/intel-thc-hid”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/sp_SP/hid/intel-thc-hid”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ?/var/lib/git/docbuild/linux/Documentation/hid/intel-thc-hid.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒ!Intel Touch Host Controller (THC)”h]”hŒ!Intel Touch Host Controller (THC)”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hŒ¨Touch Host Controller is the name of the IP block in PCH that interface with Touch Devices (ex: touchscreen, touchpad etc.). It is comprised of 3 key functional blocks:”h]”hŒ¨Touch Host Controller is the name of the IP block in PCH that interface with Touch Devices (ex: touchscreen, touchpad etc.). It is comprised of 3 key functional blocks:”…”�”}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒ2A natively half-duplex Quad I/O capable SPI master”h]”hÞ)�”}”(hhöh]”hŒ2A natively half-duplex Quad I/O capable SPI master”…”�”}”(hhøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hhôubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhhïh²hh³hÇh´Nubhó)�”}”(hŒ=Low latency I2C interface to support HIDI2C compliant devices”h]”hÞ)�”}”(hj h]”hŒ=Low latency I2C interface to support HIDI2C compliant devices”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhhïh²hh³hÇh´Nubhó)�”}”(hŒ7A HW sequencer with RW DMA capability to system memory ”h]”hÞ)�”}”(hŒ6A HW sequencer with RW DMA capability to system memory”h]”hŒ6A HW sequencer with RW DMA capability to system memory”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhhïh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1híh³hÇh´K hhÊh²hubhÞ)�”}”(hX#It has a single root space IOSF Primary interface that supports transactions to/from touch devices. Host driver configures and controls the touch devices over THC interface. THC provides high bandwidth DMA services to the touch driver and transfers the HID report to host system main memory.”h]”hX#It has a single root space IOSF Primary interface that supports transactions to/from touch devices. Host driver configures and controls the touch devices over THC interface. THC provides high bandwidth DMA services to the touch driver and transfers the HID report to host system main memory.”…”�”}”(hjBh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hXHardware sequencer within the THC is responsible for transferring (via DMA) data from touch devices into system memory. A ring buffer is used to avoid data loss due to asynchronous nature of data consumption (by host) in relation to data production (by touch device via DMA).”h]”hXHardware sequencer within the THC is responsible for transferring (via DMA) data from touch devices into system memory. A ring buffer is used to avoid data loss due to asynchronous nature of data consumption (by host) in relation to data production (by touch device via DMA).”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒnUnlike other common SPI/I2C controllers, THC handles the HID device data interrupt and reset signals directly.”h]”hŒnUnlike other common SPI/I2C controllers, THC handles the HID device data interrupt and reset signals directly.”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 1. Overview”h]”hŒ 1. Overview”…”�”}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjlh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ1.1 THC software/hardware stack”h]”hŒ1.1 THC software/hardware stack”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj}h²hh³hÇh´KubhÞ)�”}”(hŒžBelow diagram illustrates the high-level architecture of THC software/hardware stack, which is fully capable of supporting HIDSPI/HIDI2C protocol in Linux OS.”h]”hŒžBelow diagram illustrates the high-level architecture of THC software/hardware stack, which is fully capable of supporting HIDSPI/HIDI2C protocol in Linux OS.”…”�”}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khj}h²hubhŒ literal_block”“”)�”}”(hXê ---------------------------------------------- | +-----------------------------------+ | | | Input Device | | | +-----------------------------------+ | | +-----------------------------------+ | | | HID Multi-touch Driver | | | +-----------------------------------+ | | +-----------------------------------+ | | | HID Core | | | +-----------------------------------+ | | +-----------------------------------+ | | | THC QuickSPI/QuickI2C Driver | | | +-----------------------------------+ | | +-----------------------------------+ | | | THC Hardware Driver | | | +-----------------------------------+ | | +----------------+ +----------------+ | | SW | PCI Bus Driver | | ACPI Resource | | | +----------------+ +----------------+ | ---------------------------------------------- ---------------------------------------------- | +-----------------------------------+ | | HW | PCI Bus | | | +-----------------------------------+ | | +-----------------------------------+ | | | THC Controller | | | +-----------------------------------+ | | +-----------------------------------+ | | | Touch IC | | | +-----------------------------------+ | ----------------------------------------------”h]”hXê ---------------------------------------------- | +-----------------------------------+ | | | Input Device | | | +-----------------------------------+ | | +-----------------------------------+ | | | HID Multi-touch Driver | | | +-----------------------------------+ | | +-----------------------------------+ | | | HID Core | | | +-----------------------------------+ | | +-----------------------------------+ | | | THC QuickSPI/QuickI2C Driver | | | +-----------------------------------+ | | +-----------------------------------+ | | | THC Hardware Driver | | | +-----------------------------------+ | | +----------------+ +----------------+ | | SW | PCI Bus Driver | | ACPI Resource | | | +----------------+ +----------------+ | ---------------------------------------------- ---------------------------------------------- | +-----------------------------------+ | | HW | PCI Bus | | | +-----------------------------------+ | | +-----------------------------------+ | | | THC Controller | | | +-----------------------------------+ | | +-----------------------------------+ | | | Touch IC | | | +-----------------------------------+ | ----------------------------------------------”…”�”}”hjžsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jœh³hÇh´K$hj}h²hubhÞ)�”}”(hXTouch IC (TIC), also as known as the Touch devices (touchscreen or touchpad). The discrete analog components that sense and transfer either discrete touch data or heatmap data in the form of HID reports over the SPI/I2C bus to the THC Controller on the host.”h]”hXTouch IC (TIC), also as known as the Touch devices (touchscreen or touchpad). The discrete analog components that sense and transfer either discrete touch data or heatmap data in the form of HID reports over the SPI/I2C bus to the THC Controller on the host.”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KDhj}h²hubhÞ)�”}”(hŒ—THC Host Controller, which is a PCI device HBA (host bus adapter), integrated into the PCH, that serves as a bridge between the Touch ICs and the host.”h]”hŒ—THC Host Controller, which is a PCI device HBA (host bus adapter), integrated into the PCH, that serves as a bridge between the Touch ICs and the host.”…”�”}”(hjºh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KHhj}h²hubhÞ)�”}”(hŒ£THC Hardware Driver, provides THC hardware operation APIs for above QuickSPI/QuickI2C driver, it accesses THC MMIO registers to configure and control THC hardware.”h]”hŒ£THC Hardware Driver, provides THC hardware operation APIs for above QuickSPI/QuickI2C driver, it accesses THC MMIO registers to configure and control THC hardware.”…”�”}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KKhj}h²hubhÞ)�”}”(hŒ³THC QuickSPI/QuickI2C driver, also as known as HIDSPI/HIDI2C driver, is registered as a HID low-level driver that manages the THC Controller and implements HIDSPI/HIDI2C protocol.”h]”hŒ³THC QuickSPI/QuickI2C driver, also as known as HIDSPI/HIDI2C driver, is registered as a HID low-level driver that manages the THC Controller and implements HIDSPI/HIDI2C protocol.”…”�”}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KNhj}h²hubeh}”(h]”Œthc-software-hardware-stack”ah ]”h"]”Œ1.1 thc software/hardware stack”ah$]”h&]”uh1hÈhjlh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ1.2 THC hardware diagram”h]”hŒ1.2 THC hardware diagram”…”�”}”(hjïh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjìh²hh³hÇh´KSubhÞ)�”}”(hŒ-Below diagram shows THC hardware components::”h]”hŒ,Below diagram shows THC hardware components:”…”�”}”(hjýh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KThjìh²hubj�)�”}”(hX% --------------------------------- | THC Controller | | +---------------------------+ | | | PCI Config Space | | | +---------------------------+ | | +---------------------------+ | | + MMIO Registers | | | +---------------------------+ | +---------------+ | +------------+ +------------+ | | System Memory +---+--+ DMA | | PIO | | +---------------+ | +------------+ +------------+ | | +---------------------------+ | | | HW Sequencer | | | +---------------------------+ | | +------------+ +------------+ | | | SPI/I2C | | GPIO | | | | Controller | | Controller | | | +------------+ +------------+ | ---------------------------------”h]”hX% --------------------------------- | THC Controller | | +---------------------------+ | | | PCI Config Space | | | +---------------------------+ | | +---------------------------+ | | + MMIO Registers | | | +---------------------------+ | +---------------+ | +------------+ +------------+ | | System Memory +---+--+ DMA | | PIO | | +---------------+ | +------------+ +------------+ | | +---------------------------+ | | | HW Sequencer | | | +---------------------------+ | | +------------+ +------------+ | | | SPI/I2C | | GPIO | | | | Controller | | Controller | | | +------------+ +------------+ | ---------------------------------”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jœh³hÇh´KVhjìh²hubhÞ)�”}”(hŒxAs THC is exposed as a PCI devices, so it has standard PCI config space registers for PCI enumeration and configuration.”h]”hŒxAs THC is exposed as a PCI devices, so it has standard PCI config space registers for PCI enumeration and configuration.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kjhjìh²hubhÞ)�”}”(hXEMMIO Registers, which provide registers access for driver to configure and control THC hardware, the registers include several categories: Interrupt status and control, DMA configure, PIO (Programmed I/O, defined in section 3.2) status and control, SPI bus configure, I2C subIP status and control, reset status and control...”h]”hXEMMIO Registers, which provide registers access for driver to configure and control THC hardware, the registers include several categories: Interrupt status and control, DMA configure, PIO (Programmed I/O, defined in section 3.2) status and control, SPI bus configure, I2C subIP status and control, reset status and control...”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kmhjìh²hubhÞ)�”}”(hŒàTHC provides two ways for driver to communicate with external Touch ICs: PIO and DMA. PIO can let driver manually write/read data to/from Touch ICs, instead, THC DMA can automatically write/read data without driver involved.”h]”hŒàTHC provides two ways for driver to communicate with external Touch ICs: PIO and DMA. PIO can let driver manually write/read data to/from Touch ICs, instead, THC DMA can automatically write/read data without driver involved.”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Krhjìh²hubhÞ)�”}”(hXHW Sequencer includes THC major logic, it gets instruction from MMIO registers to control SPI bus and I2C bus to finish a bus data transaction, it also can automatically handle Touch ICs interrupt and start DMA receive/send data from/to Touch ICs according to interrupt type. That means THC HW Sequencer understands HIDSPI/HIDI2C transfer protocol, and handle the communication without driver involved, what driver needs to do is just configure the THC properly, and prepare the formatted data packet or handle received data packet.”h]”hXHW Sequencer includes THC major logic, it gets instruction from MMIO registers to control SPI bus and I2C bus to finish a bus data transaction, it also can automatically handle Touch ICs interrupt and start DMA receive/send data from/to Touch ICs according to interrupt type. That means THC HW Sequencer understands HIDSPI/HIDI2C transfer protocol, and handle the communication without driver involved, what driver needs to do is just configure the THC properly, and prepare the formatted data packet or handle received data packet.”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kvhjìh²hubhÞ)�”}”(hŒÑAs THC supports HIDSPI/HIDI2C protocols, it has SPI controller and I2C subIP in it to expose SPI bus and I2C bus. THC also integrates a GPIO controller to provide interrupt line support and reset line support.”h]”hŒÑAs THC supports HIDSPI/HIDI2C protocols, it has SPI controller and I2C subIP in it to expose SPI bus and I2C bus. THC also integrates a GPIO controller to provide interrupt line support and reset line support.”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K}hjìh²hubeh}”(h]”Œthc-hardware-diagram”ah ]”h"]”Œ1.2 thc hardware diagram”ah$]”h&]”uh1hÈhjlh²hh³hÇh´KSubeh}”(h]”Œoverview”ah ]”h"]”Œ 1. overview”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2. THC Hardware Interface”h]”hŒ2. THC Hardware Interface”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjoh²hh³hÇh´K‚ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.1 Host Interface”h]”hŒ2.1 Host Interface”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj€h²hh³hÇh´K…ubhÞ)�”}”(hŒåTHC is exposed as "PCI Digitizer device" to the host. The PCI product and device IDs are changed from different generations of processors. So the source code which enumerates drivers needs to update from generation to generation.”h]”hŒéTHC is exposed as “PCI Digitizer deviceâ€� to the host. The PCI product and device IDs are changed from different generations of processors. So the source code which enumerates drivers needs to update from generation to generation.”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K‡hj€h²hubeh}”(h]”Œhost-interface”ah ]”h"]”Œ2.1 host interface”ah$]”h&]”uh1hÈhjoh²hh³hÇh´K…ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.2 Device Interface”h]”hŒ2.2 Device Interface”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj§h²hh³hÇh´K�ubhÞ)�”}”(hŒTTHC supports two types of bus for Touch IC connection: Enhanced SPI bus and I2C bus.”h]”hŒTTHC supports two types of bus for Touch IC connection: Enhanced SPI bus and I2C bus.”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K�hj§h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.2.1 SPI Port”h]”hŒ2.2.1 SPI Port”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÆh²hh³hÇh´K’ubhÞ)�”}”(hŒÑWhen PORT_TYPE = 00b in MMIO registers, THC uses SPI interfaces to communicate with external Touch IC. THC enhanced SPI Bus supports different SPI modes: standard Single IO mode, Dual IO mode and Quad IO mode.”h]”hŒÑWhen PORT_TYPE = 00b in MMIO registers, THC uses SPI interfaces to communicate with external Touch IC. THC enhanced SPI Bus supports different SPI modes: standard Single IO mode, Dual IO mode and Quad IO mode.”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K”hjÆh²hubhÞ)�”}”(hXóIn Single IO mode, THC drives MOSI line to send data to Touch ICs, and receives data from Touch ICs data from MISO line. In Dual IO mode, THC drivers MOSI and MISO both for data sending, and also receives the data on both line. In Quad IO mode, there are other two lines (IO2 and IO3) are added, THC drives MOSI (IO0), MISO (IO1), IO2 and IO3 at the same time for data sending, and also receives the data on those 4 lines. Driver needs to configure THC in different mode by setting different opcode.”h]”hXóIn Single IO mode, THC drives MOSI line to send data to Touch ICs, and receives data from Touch ICs data from MISO line. In Dual IO mode, THC drivers MOSI and MISO both for data sending, and also receives the data on both line. In Quad IO mode, there are other two lines (IO2 and IO3) are added, THC drives MOSI (IO0), MISO (IO1), IO2 and IO3 at the same time for data sending, and also receives the data on those 4 lines. Driver needs to configure THC in different mode by setting different opcode.”…”�”}”(hjåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K˜hjÆh²hubhÞ)�”}”(hŒ~Beside IO mode, driver also needs to configure SPI bus speed. THC supports up to 42MHz SPI clock on Intel Lunar Lake platform.”h]”hŒ~Beside IO mode, driver also needs to configure SPI bus speed. THC supports up to 42MHz SPI clock on Intel Lunar Lake platform.”…”�”}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KŸhjÆh²hubhÞ)�”}”(hŒ<24Bits Slave Address>...........”h]”hŒƒ| --------------------THC sends---------------------------------| <8Bits OPCode><24Bits Slave Address>...........”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jœh³hÇh´K¤hjÆh²hubhÞ)�”}”(hŒ@For THC receiving data from Touch IC, the data flow on SPI bus::”h]”hŒ?For THC receiving data from Touch IC, the data flow on SPI bus:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K§hjÆh²hubj�)�”}”(hŒƒ| ---------THC Sends---------------||-----Touch IC sends--------| <8Bits OPCode><24Bits Slave Address>...........”h]”hŒƒ| ---------THC Sends---------------||-----Touch IC sends--------| <8Bits OPCode><24Bits Slave Address>...........”…”�”}”hj+sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jœh³hÇh´K©hjÆh²hubeh}”(h]”Œspi-port”ah ]”h"]”Œ2.2.1 spi port”ah$]”h&]”uh1hÈhj§h²hh³hÇh´K’ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.2.2 I2C Port”h]”hŒ2.2.2 I2C Port”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjAh²hh³hÇh´K­ubhÞ)�”}”(hXmTHC also integrates I2C controller in it, it's called I2C SubSystem. When PORT_TYPE = 01, THC is configured to I2C mode. Comparing to SPI mode which can be configured through MMIO registers directly, THC needs to use PIO read (by setting SubIP read opcode) to I2C subIP APB registers' value and use PIO write (by setting SubIP write opcode) to do a write operation.”h]”hXqTHC also integrates I2C controller in it, it’s called I2C SubSystem. When PORT_TYPE = 01, THC is configured to I2C mode. Comparing to SPI mode which can be configured through MMIO registers directly, THC needs to use PIO read (by setting SubIP read opcode) to I2C subIP APB registers’ value and use PIO write (by setting SubIP write opcode) to do a write operation.”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¯hjAh²hubeh}”(h]”Œi2c-port”ah ]”h"]”Œ2.2.2 i2c port”ah$]”h&]”uh1hÈhj§h²hh³hÇh´K­ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.2.3 GPIO interface”h]”hŒ2.2.3 GPIO interface”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjhh²hh³hÇh´KµubhÞ)�”}”(hŒZTHC also includes two GPIO pins, one for interrupt and the other for device reset control.”h]”hŒZTHC also includes two GPIO pins, one for interrupt and the other for device reset control.”…”�”}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K·hjhh²hubhÞ)�”}”(hŒnInterrupt line can be configured to either level triggered or edge triggered by setting MMIO Control register.”h]”hŒnInterrupt line can be configured to either level triggered or edge triggered by setting MMIO Control register.”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¹hjhh²hubhÞ)�”}”(hŒžReset line is controlled by BIOS (or EFI) through ACPI _RST method, driver needs to call this device ACPI _RST method to reset touch IC during initialization.”h]”hŒžReset line is controlled by BIOS (or EFI) through ACPI _RST method, driver needs to call this device ACPI _RST method to reset touch IC during initialization.”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¼hjhh²hubeh}”(h]”Œgpio-interface”ah ]”h"]”Œ2.2.3 gpio interface”ah$]”h&]”uh1hÈhj§h²hh³hÇh´Kµubeh}”(h]”Œdevice-interface”ah ]”h"]”Œ2.2 device interface”ah$]”h&]”uh1hÈhjoh²hh³hÇh´K�ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.3 Max input size control”h]”hŒ2.3 Max input size control”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj³h²hh³hÇh´KÀubhÞ)�”}”(hXDThis is a new feature introduced in Panther Lake platform, THC hardware allows driver to set a max input size for RxDMA. After this max size gets set and enabled, for every input report packet reading, THC hardware sequencer will first read incoming input packet size, then compare input packet size with the given max size:”h]”hXDThis is a new feature introduced in Panther Lake platform, THC hardware allows driver to set a max input size for RxDMA. After this max size gets set and enabled, for every input report packet reading, THC hardware sequencer will first read incoming input packet size, then compare input packet size with the given max size:”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÂhj³h²hubhî)�”}”(hhh]”(hó)�”}”(hŒ]if input packet size <= max size, THC continues using input packet size to finish the reading”h]”hÞ)�”}”(hj×h]”hŒ]if input packet size <= max size, THC continues using input packet size to finish the reading”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÇhjÕubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjÒh²hh³hÇh´Nubhó)�”}”(hŒžif input packet size > max size, there is potential input data crash risk during transferring, THC will use max size instead of input packet size for reading ”h]”hÞ)�”}”(hŒ�if input packet size > max size, there is potential input data crash risk during transferring, THC will use max size instead of input packet size for reading”h]”hŒ�if input packet size > max size, there is potential input data crash risk during transferring, THC will use max size instead of input packet size for reading”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÈhjìubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjÒh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´KÇhj³h²hubhÞ)�”}”(hŒŠThis feature is used to avoid data corruption which will cause RxDMA buffer overrun issue for I2C bus, and enhance whole system stability.”h]”hŒŠThis feature is used to avoid data corruption which will cause RxDMA buffer overrun issue for I2C bus, and enhance whole system stability.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KËhj³h²hubeh}”(h]”Œmax-input-size-control”ah ]”h"]”Œ2.3 max input size control”ah$]”h&]”uh1hÈhjoh²hh³hÇh´KÀubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.4 Interrupt delay”h]”hŒ2.4 Interrupt delay”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj h²hh³hÇh´KÏubhÞ)�”}”(hX§Because of MCU performance limitation, some touch devices cannot de-assert interrupt pin immediately after input data is transferred, which cause an interrupt toggle delay. But THC always detects next interrupt immediately after last input interrupt is handled. In this case, the delayed interrupt de-assertion will be recognized as a new interrupt signal by THC, and causes THC to start an input report reading spuriously.”h]”hX§Because of MCU performance limitation, some touch devices cannot de-assert interrupt pin immediately after input data is transferred, which cause an interrupt toggle delay. But THC always detects next interrupt immediately after last input interrupt is handled. In this case, the delayed interrupt de-assertion will be recognized as a new interrupt signal by THC, and causes THC to start an input report reading spuriously.”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÑhj h²hubhÞ)�”}”(hŒõIn order to avoid this situation, THC introduced interrupt delay new feature in Panther Lake platform, where THC allows driver to set an interrupt delay. After this feature is enabled, THC will delay this given time for next interrupt detection.”h]”hŒõIn order to avoid this situation, THC introduced interrupt delay new feature in Panther Lake platform, where THC allows driver to set an interrupt delay. After this feature is enabled, THC will delay this given time for next interrupt detection.”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K×hj h²hubeh}”(h]”Œinterrupt-delay”ah ]”h"]”Œ2.4 interrupt delay”ah$]”h&]”uh1hÈhjoh²hh³hÇh´KÏubeh}”(h]”Œthc-hardware-interface”ah ]”h"]”Œ2. thc hardware interface”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K‚ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3. High level concept”h]”hŒ3. High level concept”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj]h²hh³hÇh´KÜubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 3.1 Opcode”h]”hŒ 3.1 Opcode”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjnh²hh³hÇh´KßubhÞ)�”}”(hŒrOpcode (operation code) is used to tell THC or Touch IC what the operation will be, such as PIO read or PIO write.”h]”hŒrOpcode (operation code) is used to tell THC or Touch IC what the operation will be, such as PIO read or PIO write.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Káhjnh²hubhÞ)�”}”(hŒŒWhen THC is configured to SPI mode, opcodes are used for determining the read/write IO mode. There are some OPCode examples for SPI IO mode:”h]”hŒŒWhen THC is configured to SPI mode, opcodes are used for determining the read/write IO mode. There are some OPCode examples for SPI IO mode:”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kähjnh²hubhŒtable”“”)�”}”(hhh]”hŒtgroup”“”)�”}”(hhh]”(hŒcolspec”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1j¥hj¢ubj¦)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1j¥hj¢ubhŒthead”“”)�”}”(hhh]”hŒrow”“”)�”}”(hhh]”(hŒentry”“”)�”}”(hhh]”hÞ)�”}”(hŒopcode”h]”hŒopcode”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KèhjÇubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjÂubjÆ)�”}”(hhh]”hÞ)�”}”(hŒCorresponding SPI command”h]”hŒCorresponding SPI command”…”�”}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KèhjÞubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjÂubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj½ubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hj¢ubhŒtbody”“”)�”}”(hhh]”(jÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0x0B”h]”hŒ0x0B”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kêhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjubjÆ)�”}”(hhh]”hÞ)�”}”(hŒRead Single I/O”h]”hŒRead Single I/O”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kêhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0x02”h]”hŒ0x02”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Këhj@ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj=ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒWrite Single I/O”h]”hŒWrite Single I/O”…”�”}”(hjZh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KëhjWubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj=ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0xBB”h]”hŒ0xBB”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kìhjwubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjtubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ Read Dual I/O”h]”hŒ Read Dual I/O”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KìhjŽubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjtubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0xB2”h]”hŒ0xB2”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kíhj®ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj«ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒWrite Dual I/O”h]”hŒWrite Dual I/O”…”�”}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KíhjÅubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj«ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0xEB”h]”hŒ0xEB”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kîhjåubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjâubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ Read Quad I/O”h]”hŒ Read Quad I/O”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kîhjüubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjâubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0xE2”h]”hŒ0xE2”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kïhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjubjÆ)�”}”(hhh]”hÞ)�”}”(hŒWrite Quad I/O”h]”hŒWrite Quad I/O”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kïhj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj¢ubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1j hj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjnh²hh³hÇh´NubhÞ)�”}”(hX7In general, different touch IC has different OPCode definition. According to HIDSPI protocol whitepaper, those OPCodes are defined in device ACPI table, and driver needs to query those information through OS ACPI APIs during driver initialization, then configures THC MMIO OPCode registers with correct setting.”h]”hX7In general, different touch IC has different OPCode definition. According to HIDSPI protocol whitepaper, those OPCodes are defined in device ACPI table, and driver needs to query those information through OS ACPI APIs during driver initialization, then configures THC MMIO OPCode registers with correct setting.”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kòhjnh²hubhÞ)�”}”(hŒóWhen THC is working in I2C mode, opcodes are used to tell THC what's the next PIO type: I2C SubIP APB register read, I2C SubIP APB register write, I2C touch IC device read, I2C touch IC device write, I2C touch IC device write followed by read.”h]”hŒõWhen THC is working in I2C mode, opcodes are used to tell THC what’s the next PIO type: I2C SubIP APB register read, I2C SubIP APB register write, I2C touch IC device read, I2C touch IC device write, I2C touch IC device write followed by read.”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K÷hjnh²hubhÞ)�”}”(hŒ2Here are the THC pre-defined opcodes for I2C mode:”h]”hŒ2Here are the THC pre-defined opcodes for I2C mode:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kûhjnh²hubjœ)�”}”(hhh]”j¡)�”}”(hhh]”(j¦)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1j¥hj�ubj¦)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K3uh1j¥hj�ubj¦)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K uh1j¥hj�ubj¼)�”}”(hhh]”jÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒopcode”h]”hŒopcode”…”�”}”(hjºh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kþhj·ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj´ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒCorresponding I2C command”h]”hŒCorresponding I2C command”…”�”}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KþhjÎubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj´ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒAddress”h]”hŒAddress”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kþhjåubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj´ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj±ubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hj�ubj)�”}”(hhh]”(jÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0x12”h]”hŒ0x12”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ%Read I2C SubIP APB internal registers”h]”hŒ%Read I2C SubIP APB internal registers”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ0h - FFh”h]”hŒ0h - FFh”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj<ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0x13”h]”hŒ0x13”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj\ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjYubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ&Write I2C SubIP APB internal registers”h]”hŒ&Write I2C SubIP APB internal registers”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjsubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjYubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ0h - FFh”h]”hŒ0h - FFh”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjŠubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjYubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0x14”h]”hŒ0x14”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjªubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj§ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ&Read external Touch IC through I2C bus”h]”hŒ&Read external Touch IC through I2C bus”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjÁubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj§ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒN/A”h]”hŒN/A”…”�”}”(hjÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjØubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj§ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0x18”h]”hŒ0x18”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjøubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjõubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ'Write external Touch IC through I2C bus”h]”hŒ'Write external Touch IC through I2C bus”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjõubjÆ)�”}”(hhh]”hÞ)�”}”(hŒN/A”h]”hŒN/A”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj&ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjõubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ0x1C”h]”hŒ0x1C”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjFubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjCubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ1Write then read external Touch IC through I2C bus”h]”hŒ1Write then read external Touch IC through I2C bus”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjCubjÆ)�”}”(hhh]”hÞ)�”}”(hŒN/A”h]”hŒN/A”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjCubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj�ubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1j hj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjnh²hh³hÇh´Nubeh}”(h]”Œopcode”ah ]”h"]”Œ 3.1 opcode”ah$]”h&]”uh1hÈhj]h²hh³hÇh´KßubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.2 PIO”h]”hŒ3.2 PIO”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¬h²hh³hÇh´MubhÞ)�”}”(hX¤THC provides a programmed I/O (PIO) access interface for the driver to access the touch IC's configuration registers, or access I2C subIP's configuration registers. To use PIO to perform I/O operations, driver should pre-program PIO control registers and PIO data registers and kick off the sequencing cycle. THC uses different PIO opcodes to distinguish different PIO operations (PIO read/write/write followed by read).”h]”hX¨THC provides a programmed I/O (PIO) access interface for the driver to access the touch IC’s configuration registers, or access I2C subIP’s configuration registers. To use PIO to perform I/O operations, driver should pre-program PIO control registers and PIO data registers and kick off the sequencing cycle. THC uses different PIO opcodes to distinguish different PIO operations (PIO read/write/write followed by read).”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hj¬h²hubhÞ)�”}”(hŒ¹If there is a Sequencing Cycle In Progress and an attempt is made to program any of the control, address, or data register the cycle is blocked and a sequence error will be encountered.”h]”hŒ¹If there is a Sequencing Cycle In Progress and an attempt is made to program any of the control, address, or data register the cycle is blocked and a sequence error will be encountered.”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¬h²hubhÞ)�”}”(hŒäA status bit indicates when the cycle has completed allowing the driver to know when read results can be checked and/or when to initiate a new command. If enabled, the cycle done assertion can interrupt driver with an interrupt.”h]”hŒäA status bit indicates when the cycle has completed allowing the driver to know when read results can be checked and/or when to initiate a new command. If enabled, the cycle done assertion can interrupt driver with an interrupt.”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¬h²hubhÞ)�”}”(hŒoBecause THC only has 16 FIFO registers for PIO, so all the data transfer through PIO shouldn't exceed 64 bytes.”h]”hŒqBecause THC only has 16 FIFO registers for PIO, so all the data transfer through PIO shouldn’t exceed 64 bytes.”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¬h²hubhÞ)�”}”(hXŸAs DMA needs max packet size for transferring configuration, and the max packet size information always in HID device descriptor which needs THC driver to read it out from HID Device (Touch IC). So PIO typical use case is, before DMA initialization, write RESET command (PIO write), read RESET response (PIO read or PIO write followed by read), write Power ON command (PIO write), read device descriptor (PIO read).”h]”hXŸAs DMA needs max packet size for transferring configuration, and the max packet size information always in HID device descriptor which needs THC driver to read it out from HID Device (Touch IC). So PIO typical use case is, before DMA initialization, write RESET command (PIO write), read RESET response (PIO read or PIO write followed by read), write Power ON command (PIO write), read device descriptor (PIO read).”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¬h²hubhÞ)�”}”(hŒNFor how to issue a PIO operation, here is the steps which driver needs follow:”h]”hŒNFor how to issue a PIO operation, here is the steps which driver needs follow:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hj¬h²hubhî)�”}”(hhh]”(hó)�”}”(hŒ*Program read/write data size in THC_SS_BC.”h]”hÞ)�”}”(hj h]”hŒ*Program read/write data size in THC_SS_BC.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M"hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj h²hh³hÇh´Nubhó)�”}”(hŒ4Program I/O target address in THC_SW_SEQ_DATA0_ADDR.”h]”hÞ)�”}”(hj- h]”hŒ4Program I/O target address in THC_SW_SEQ_DATA0_ADDR.”…”�”}”(hj/ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M#hj+ ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj h²hh³hÇh´Nubhó)�”}”(hŒGIf write, program the write data in THC_SW_SEQ_DATA0..THC_SW_SEQ_DATAn.”h]”hÞ)�”}”(hjD h]”hŒGIf write, program the write data in THC_SW_SEQ_DATA0..THC_SW_SEQ_DATAn.”…”�”}”(hjF h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M$hjB ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj h²hh³hÇh´Nubhó)�”}”(hŒ%Program the PIO opcode in THC_SS_CMD.”h]”hÞ)�”}”(hj[ h]”hŒ%Program the PIO opcode in THC_SS_CMD.”…”�”}”(hj] h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M%hjY ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj h²hh³hÇh´Nubhó)�”}”(hŒ.Set TSSGO = 1 to start the PIO write sequence.”h]”hÞ)�”}”(hjr h]”hŒ.Set TSSGO = 1 to start the PIO write sequence.”…”�”}”(hjt h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M&hjp ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj h²hh³hÇh´Nubhó)�”}”(hŒFIf THC_SS_CD_IE = 1, SW will receives a MSI when the PIO is completed.”h]”hÞ)�”}”(hj‰ h]”hŒFIf THC_SS_CD_IE = 1, SW will receives a MSI when the PIO is completed.”…”�”}”(hj‹ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M'hj‡ ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj h²hh³hÇh´Nubhó)�”}”(hŒBIf read, read out the data in THC_SW_SEQ_DATA0..THC_SW_SEQ_DATAn. ”h]”hÞ)�”}”(hŒAIf read, read out the data in THC_SW_SEQ_DATA0..THC_SW_SEQ_DATAn.”h]”hŒAIf read, read out the data in THC_SW_SEQ_DATA0..THC_SW_SEQ_DATAn.”…”�”}”(hj¢ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M(hjž ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´M"hj¬h²hubeh}”(h]”Œpio”ah ]”h"]”Œ3.2 pio”ah$]”h&]”uh1hÈhj]h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.3 DMA”h]”hŒ3.3 DMA”…”�”}”(hjÇ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÄ h²hh³hÇh´M+ubhÞ)�”}”(hŒITHC has 4 DMA channels: Read DMA1, Read DMA2, Write DMA and Software DMA.”h]”hŒITHC has 4 DMA channels: Read DMA1, Read DMA2, Write DMA and Software DMA.”…”�”}”(hjÕ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M-hjÄ h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.3.1 Read DMA Channel”h]”hŒ3.3.1 Read DMA Channel”…”�”}”(hjæ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjã h²hh³hÇh´M0ubhÞ)�”}”(hŒåTHC has two Read DMA engines: 1st RxDMA (RxDMA1) and 2nd RxDMA (RxDMA2). RxDMA1 is reserved for raw data mode. RxDMA2 is used for HID data mode and it is the RxDMA engine currently driver uses for HID input report data retrieval.”h]”hŒåTHC has two Read DMA engines: 1st RxDMA (RxDMA1) and 2nd RxDMA (RxDMA2). RxDMA1 is reserved for raw data mode. RxDMA2 is used for HID data mode and it is the RxDMA engine currently driver uses for HID input report data retrieval.”…”�”}”(hjô h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M2hjã h²hubhÞ)�”}”(hŒ“RxDMA's typical use case is auto receiving the data from Touch IC. Once RxDMA is enabled by software, THC will start auto-handling receiving logic.”h]”hŒ•RxDMA’s typical use case is auto receiving the data from Touch IC. Once RxDMA is enabled by software, THC will start auto-handling receiving logic.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M6hjã h²hubhÞ)�”}”(hXãFor SPI mode, THC RxDMA sequence is: when Touch IC triggers a interrupt to THC, THC reads out report header to identify what's the report type, and what's the report length, according to above information, THC reads out report body to internal FIFO and start RxDMA coping the data to system memory. After that, THC update interrupt cause register with report type, and update RxDMA PRD table read pointer, then trigger a MSI interrupt to notify driver RxDMA finishing data receiving.”h]”hXçFor SPI mode, THC RxDMA sequence is: when Touch IC triggers a interrupt to THC, THC reads out report header to identify what’s the report type, and what’s the report length, according to above information, THC reads out report body to internal FIFO and start RxDMA coping the data to system memory. After that, THC update interrupt cause register with report type, and update RxDMA PRD table read pointer, then trigger a MSI interrupt to notify driver RxDMA finishing data receiving.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M9hjã h²hubhÞ)�”}”(hX+For I2C mode, THC RxDMA's behavior is a little bit different, because of HIDI2C protocol difference with HIDSPI protocol, RxDMA only be used to receive input report. The sequence is, when Touch IC triggers a interrupt to THC, THC first reads out 2 bytes from input report address to determine the packet length, then use this packet length to start a DMA reading from input report address for input report data. After that, THC update RxDMA PRD table read pointer, then trigger a MSI interrupt to notify driver input report data is ready in system memory.”h]”hX-For I2C mode, THC RxDMA’s behavior is a little bit different, because of HIDI2C protocol difference with HIDSPI protocol, RxDMA only be used to receive input report. The sequence is, when Touch IC triggers a interrupt to THC, THC first reads out 2 bytes from input report address to determine the packet length, then use this packet length to start a DMA reading from input report address for input report data. After that, THC update RxDMA PRD table read pointer, then trigger a MSI interrupt to notify driver input report data is ready in system memory.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M@hjã h²hubhÞ)�”}”(hŒªAll above sequence is hardware automatically handled, all driver needs to do is configure RxDMA and waiting for interrupt ready then read out the data from system memory.”h]”hŒªAll above sequence is hardware automatically handled, all driver needs to do is configure RxDMA and waiting for interrupt ready then read out the data from system memory.”…”�”}”(hj, h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MGhjã h²hubeh}”(h]”Œread-dma-channel”ah ]”h"]”Œ3.3.1 read dma channel”ah$]”h&]”uh1hÈhjÄ h²hh³hÇh´M0ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.3.2 Software DMA channel”h]”hŒ3.3.2 Software DMA channel”…”�”}”(hjE h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjB h²hh³hÇh´MKubhÞ)�”}”(hX‡THC supports a software triggered RxDMA mode to read the touch data from touch IC. This SW RxDMA is the 3rd THC RxDMA engine with the similar functionalities as the existing two RxDMAs, the only difference is this SW RxDMA is triggered by software, and RxDMA2 is triggered by external Touch IC interrupt. It gives a flexibility to software driver to use RxDMA read Touch IC data in any time.”h]”hX‡THC supports a software triggered RxDMA mode to read the touch data from touch IC. This SW RxDMA is the 3rd THC RxDMA engine with the similar functionalities as the existing two RxDMAs, the only difference is this SW RxDMA is triggered by software, and RxDMA2 is triggered by external Touch IC interrupt. It gives a flexibility to software driver to use RxDMA read Touch IC data in any time.”…”�”}”(hjS h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MMhjB h²hubhÞ)�”}”(hŒÐBefore software starts a SW RxDMA, it shall stop the 1st and 2nd RxDMA, clear PRD read/write pointer and quiesce the device interrupt (THC_DEVINT_QUIESCE_HW_STS = 1), other operations are the same with RxDMA.”h]”hŒÐBefore software starts a SW RxDMA, it shall stop the 1st and 2nd RxDMA, clear PRD read/write pointer and quiesce the device interrupt (THC_DEVINT_QUIESCE_HW_STS = 1), other operations are the same with RxDMA.”…”�”}”(hja h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MRhjB h²hubeh}”(h]”Œsoftware-dma-channel”ah ]”h"]”Œ3.3.2 software dma channel”ah$]”h&]”uh1hÈhjÄ h²hh³hÇh´MKubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.3.3 Write DMA Channel”h]”hŒ3.3.3 Write DMA Channel”…”�”}”(hjz h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjw h²hh³hÇh´MWubhÞ)�”}”(hX:THC has one write DMA engine, which can be used for sending data to Touch IC automatically. According to HIDSPI and HIDI2C protocol, every time only one command can be sent to touch IC, and before last command is completely handled, next command cannot be sent, THC write DMA engine only supports single PRD table.”h]”hX:THC has one write DMA engine, which can be used for sending data to Touch IC automatically. According to HIDSPI and HIDI2C protocol, every time only one command can be sent to touch IC, and before last command is completely handled, next command cannot be sent, THC write DMA engine only supports single PRD table.”…”�”}”(hjˆ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MYhjw h²hubhÞ)�”}”(hX"What driver needs to do is, preparing PRD table and DMA buffer, then copy data to DMA buffer and update PRD table with buffer address and buffer length, then start write DMA. THC will automatically send the data to touch IC, and trigger a DMA completion interrupt once transferring is done.”h]”hX"What driver needs to do is, preparing PRD table and DMA buffer, then copy data to DMA buffer and update PRD table with buffer address and buffer length, then start write DMA. THC will automatically send the data to touch IC, and trigger a DMA completion interrupt once transferring is done.”…”�”}”(hj– h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M^hjw h²hubeh}”(h]”Œwrite-dma-channel”ah ]”h"]”Œ3.3.3 write dma channel”ah$]”h&]”uh1hÈhjÄ h²hh³hÇh´MWubeh}”(h]”Œdma”ah ]”h"]”Œ3.3 dma”ah$]”h&]”uh1hÈhj]h²hh³hÇh´M+ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.4 PRD”h]”hŒ3.4 PRD”…”�”}”(hj· h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj´ h²hh³hÇh´MdubhÞ)�”}”(hŒVPhysical Region Descriptor (PRD) provides the memory mapping description for THC DMAs.”h]”hŒVPhysical Region Descriptor (PRD) provides the memory mapping description for THC DMAs.”…”�”}”(hjÅ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mfhj´ h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.4.1 PRD table and entry”h]”hŒ3.4.1 PRD table and entry”…”�”}”(hjÖ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÓ h²hh³hÇh´MiubhÞ)�”}”(hŒôIn order to improve physical DMA memory usage, modern drivers trend to allocate a virtually contiguous, but physically fragmented buffer of memory for each data buffer. Linux OS also provide SGL (scatter gather list) APIs to support this usage.”h]”hŒôIn order to improve physical DMA memory usage, modern drivers trend to allocate a virtually contiguous, but physically fragmented buffer of memory for each data buffer. Linux OS also provide SGL (scatter gather list) APIs to support this usage.”…”�”}”(hjä h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MkhjÓ h²hubhÞ)�”}”(hŒ‘THC uses PRD table (physical region descriptor) to support the corresponding OS kernel SGL that describes the virtual to physical buffer mapping.”h]”hŒ‘THC uses PRD table (physical region descriptor) to support the corresponding OS kernel SGL that describes the virtual to physical buffer mapping.”…”�”}”(hjò h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MohjÓ h²hubj�)�”}”(hX] ------------------------ -------------- -------------- | PRD table base address +----+ PRD table #1 +-----+ PRD Entry #1 | ------------------------ -------------- -------------- -------------- | PRD Entry #2 | -------------- -------------- | PRD Entry #n | --------------”h]”hX] ------------------------ -------------- -------------- | PRD table base address +----+ PRD table #1 +-----+ PRD Entry #1 | ------------------------ -------------- -------------- -------------- | PRD Entry #2 | -------------- -------------- | PRD Entry #n | --------------”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jœh³hÇh´MthjÓ h²hubhÞ)�”}”(hX™The read DMA engine supports multiple PRD tables held within a circular buffer that allow the THC to support multiple data buffers from the Touch IC. This allows host SW to arm the Read DMA engine with multiple buffers, allowing the Touch IC to send multiple data frames to the THC without SW interaction. This capability is required when the CPU processes touch frames slower than the Touch IC can send them.”h]”hX™The read DMA engine supports multiple PRD tables held within a circular buffer that allow the THC to support multiple data buffers from the Touch IC. This allows host SW to arm the Read DMA engine with multiple buffers, allowing the Touch IC to send multiple data frames to the THC without SW interaction. This capability is required when the CPU processes touch frames slower than the Touch IC can send them.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M~hjÓ h²hubhÞ)�”}”(hŒéTo simplify the design, SW assumes worst-case memory fragmentation. Therefore,each PRD table shall contain the same number of PRD entries, allowing for a global register (per Touch IC) to hold the number of PRD-entries per PRD table.”h]”hŒéTo simplify the design, SW assumes worst-case memory fragmentation. Therefore,each PRD table shall contain the same number of PRD entries, allowing for a global register (per Touch IC) to hold the number of PRD-entries per PRD table.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M„hjÓ h²hubhÞ)�”}”(hŒ´SW allocates up to 128 PRD tables per Read DMA engine as specified in the THC_M_PRT_RPRD_CNTRL.PCD register field. The number of PRD tables should equal the number of data buffers.”h]”hŒ´SW allocates up to 128 PRD tables per Read DMA engine as specified in the THC_M_PRT_RPRD_CNTRL.PCD register field. The number of PRD tables should equal the number of data buffers.”…”�”}”(hj* h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MˆhjÓ h²hubhÞ)�”}”(hX_Max OS memory fragmentation will be at a 4KB boundary, thus to address 1MB of virtually contiguous memory 256 PRD entries are required for a single PRD Table. SW writes the number of PRD entries for each PRD table in the THC_M_PRT_RPRD_CNTRL.PTEC register field. The PRD entry's length must be multiple of 4KB except for the last entry in a PRD table.”h]”hXaMax OS memory fragmentation will be at a 4KB boundary, thus to address 1MB of virtually contiguous memory 256 PRD entries are required for a single PRD Table. SW writes the number of PRD entries for each PRD table in the THC_M_PRT_RPRD_CNTRL.PTEC register field. The PRD entry’s length must be multiple of 4KB except for the last entry in a PRD table.”…”�”}”(hj8 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‹hjÓ h²hubhÞ)�”}”(hŒRSW allocates all the data buffers and PRD tables only once at host initialization.”h]”hŒRSW allocates all the data buffers and PRD tables only once at host initialization.”…”�”}”(hjF h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M�hjÓ h²hubeh}”(h]”Œprd-table-and-entry”ah ]”h"]”Œ3.4.1 prd table and entry”ah$]”h&]”uh1hÈhj´ h²hh³hÇh´MiubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ(3.4.2 PRD Write pointer and read pointer”h]”hŒ(3.4.2 PRD Write pointer and read pointer”…”�”}”(hj_ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj\ h²hh³hÇh´M“ubhÞ)�”}”(hŒnAs PRD tables are organized as a Circular Buffer (CB), a read pointer and a write pointer for a CB are needed.”h]”hŒnAs PRD tables are organized as a Circular Buffer (CB), a read pointer and a write pointer for a CB are needed.”…”�”}”(hjm h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M•hj\ h²hubhÞ)�”}”(hX DMA HW consumes the PRD tables in the CB, one PRD entry at a time until the EOP bit is found set in a PRD entry. At this point HW increments the PRD read pointer. Thus, the read pointer points to the PRD which the DMA engine is currently processing. This pointer rolls over once the circular buffer's depth has been traversed with bit[7] the Rollover bit. E.g. if the DMA CB depth is equal to 4 entries (0011b), then the read pointers will follow this pattern (HW is required to honor this behavior): 00h 01h 02h 03h 80h 81h 82h 83h 00h 01h ...”h]”hX"DMA HW consumes the PRD tables in the CB, one PRD entry at a time until the EOP bit is found set in a PRD entry. At this point HW increments the PRD read pointer. Thus, the read pointer points to the PRD which the DMA engine is currently processing. This pointer rolls over once the circular buffer’s depth has been traversed with bit[7] the Rollover bit. E.g. if the DMA CB depth is equal to 4 entries (0011b), then the read pointers will follow this pattern (HW is required to honor this behavior): 00h 01h 02h 03h 80h 81h 82h 83h 00h 01h ...”…”�”}”(hj{ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M˜hj\ h²hubhÞ)�”}”(hXÑThe write pointer is updated by SW. The write pointer points to location in the DMA CB, where the next PRD table is going to be stored. SW needs to ensure that this pointer rolls over once the circular buffer's depth has been traversed with Bit[7] as the rollover bit. E.g. if the DMA CB depth is equal to 5 entries (0100b), then the write pointers will follow this pattern (SW is required to honor this behavior): 00h 01h 02h 03h 04h 80h 81h 82h 83h 84h 00h 01h ..”h]”hXÓThe write pointer is updated by SW. The write pointer points to location in the DMA CB, where the next PRD table is going to be stored. SW needs to ensure that this pointer rolls over once the circular buffer’s depth has been traversed with Bit[7] as the rollover bit. E.g. if the DMA CB depth is equal to 5 entries (0100b), then the write pointers will follow this pattern (SW is required to honor this behavior): 00h 01h 02h 03h 04h 80h 81h 82h 83h 84h 00h 01h ..”…”�”}”(hj‰ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MŸhj\ h²hubeh}”(h]”Œ"prd-write-pointer-and-read-pointer”ah ]”h"]”Œ(3.4.2 prd write pointer and read pointer”ah$]”h&]”uh1hÈhj´ h²hh³hÇh´M“ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.4.3 PRD descriptor structure”h]”hŒ3.4.3 PRD descriptor structure”…”�”}”(hj¢ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjŸ h²hh³hÇh´M¦ubhÞ)�”}”(hŒoIntel THC uses PRD entry descriptor for every PRD entry. Every PRD entry descriptor occupies 128 bits memories:”h]”hŒoIntel THC uses PRD entry descriptor for every PRD entry. Every PRD entry descriptor occupies 128 bits memories:”…”�”}”(hj° h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¨hjŸ h²hubjœ)�”}”(hhh]”j¡)�”}”(hhh]”(j¦)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1j¥hjÁ ubj¦)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1j¥hjÁ ubj¦)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K/uh1j¥hjÁ ubj¼)�”}”(hhh]”jÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ struct field”h]”hŒ struct field”…”�”}”(hjë h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¬hjè ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjå ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒbit(s)”h]”hŒbit(s)”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¬hjÿ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjå ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ description”h]”hŒ description”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¬hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjå ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhjâ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hjÁ ubj)�”}”(hhh]”(jÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ dest_addr”h]”hŒ dest_addr”…”�”}”(hjB h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M®hj? ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj< ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ53..0”h]”hŒ53..0”…”�”}”(hjY h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M®hjV ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj< ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒTdestination memory address, as every entry is 4KB, ignore lowest 10 bits of address.”h]”hŒTdestination memory address, as every entry is 4KB, ignore lowest 10 bits of address.”…”�”}”(hjp h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M®hjm ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj< ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj9 ubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ reserved1”h]”hŒ reserved1”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M°hj� ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjŠ ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ54..62”h]”hŒ54..62”…”�”}”(hj§ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M°hj¤ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjŠ ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒreserved”h]”hŒreserved”…”�”}”(hj¾ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M°hj» ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjŠ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj9 ubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒint_on_completion”h]”hŒint_on_completion”…”�”}”(hjÞ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M±hjÛ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjØ ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ63”h]”hŒ63”…”�”}”(hjõ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M±hjò ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjØ ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ€completion interrupt enable bit, if this bit set it means THC will trigger a completion interrupt. This bit is set by SW driver.”h]”hŒ€completion interrupt enable bit, if this bit set it means THC will trigger a completion interrupt. This bit is set by SW driver.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M±hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjØ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj9 ubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒlen”h]”hŒlen”…”�”}”(hj, h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M´hj) ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj& ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ87..64”h]”hŒ87..64”…”�”}”(hjC h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M´hj@ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj& ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ%how many bytes of data in this entry.”•…ˆh]”hŒ%how many bytes of data in this entry.”…”�”}”(hjZ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M´hjW ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj& ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj9 ubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ end_of_prd”h]”hŒ end_of_prd”…”�”}”(hjz h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mµhjw ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjt ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ88”h]”hŒ88”…”�”}”(hj‘ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MµhjŽ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjt ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ|end of PRD table bit, if this bit is set, it means this entry is last entry in this PRD table. This bit is set by SW driver.”h]”hŒ|end of PRD table bit, if this bit is set, it means this entry is last entry in this PRD table. This bit is set by SW driver.”…”�”}”(hj¨ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mµhj¥ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjt ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj9 ubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ hw_status”h]”hŒ hw_status”…”�”}”(hjÈ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¸hjÅ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ90..89”h]”hŒ90..89”…”�”}”(hjß h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¸hjÜ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj ubjÆ)�”}”(hhh]”hÞ)�”}”(hŒHW status bits”h]”hŒHW status bits”…”�”}”(hjö h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¸hjó ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj9 ubjÁ)�”}”(hhh]”(jÆ)�”}”(hhh]”hÞ)�”}”(hŒ reserved2”h]”hŒ reserved2”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¹hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjubjÆ)�”}”(hhh]”hÞ)�”}”(hŒ127..91”h]”hŒ127..91”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¹hj*ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjubjÆ)�”}”(hhh]”hÞ)�”}”(hŒreserved”h]”hŒreserved”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¹hjAubah}”(h]”h ]”h"]”h$]”h&]”uh1jÅhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÀhj9 ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjÁ ubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1j hj¾ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j›hjŸ h²hh³hÇh´NubhÞ)�”}”(hŒƒAnd one PRD table can include up to 256 PRD entries, as every entries is 4K bytes, so every PRD table can describe 1M bytes memory.”h]”hŒƒAnd one PRD table can include up to 256 PRD entries, as every entries is 4K bytes, so every PRD table can describe 1M bytes memory.”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¼hjŸ h²hubj�)�”}”(hŒMstruct thc_prd_table { struct thc_prd_entry entries[PRD_ENTRIES_NUM]; };”h]”hŒMstruct thc_prd_table { struct thc_prd_entry entries[PRD_ENTRIES_NUM]; };”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒforce”‰Œlanguage”Œc”Œhighlight_args”}”uh1jœh³hÇh´M¿hjŸ h²hubhÞ)�”}”(hX.In general, every PRD table means one HID touch data packet. Every DMA engine can support up to 128 PRD tables (except write DMA, write DMA only has one PRD table). SW driver is responsible to get max packet length from touch IC, and use this max packet length to create PRD entries for each PRD table.”h]”hX.In general, every PRD table means one HID touch data packet. Every DMA engine can support up to 128 PRD tables (except write DMA, write DMA only has one PRD table). SW driver is responsible to get max packet length from touch IC, and use this max packet length to create PRD entries for each PRD table.”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÅhjŸ h²hubeh}”(h]”Œprd-descriptor-structure”ah ]”h"]”Œ3.4.3 prd descriptor structure”ah$]”h&]”uh1hÈhj´ h²hh³hÇh´M¦ubeh}”(h]”Œprd”ah ]”h"]”Œ3.4 prd”ah$]”h&]”uh1hÈhj]h²hh³hÇh´Mdubeh}”(h]”Œhigh-level-concept”ah ]”h"]”Œ3. high level concept”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KÜubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4. HIDSPI support (QuickSPI)”h]”hŒ4. HIDSPI support (QuickSPI)”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¸h²hh³hÇh´MËubhÞ)�”}”(hŒqIntel THC is total compatible with HIDSPI protocol, THC HW sequenser can accelerate HIDSPI protocol transferring.”h]”hŒqIntel THC is total compatible with HIDSPI protocol, THC HW sequenser can accelerate HIDSPI protocol transferring.”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÍhj¸h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.1 Reset Flow”h]”hŒ4.1 Reset Flow”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj×h²hh³hÇh´MÑubhî)�”}”(hhh]”(hó)�”}”(hŒ/Call ACPI _RST method to reset Touch IC device.”h]”hÞ)�”}”(hjíh]”hŒ/Call ACPI _RST method to reset Touch IC device.”…”�”}”(hjïh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÓhjëubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjèh²hh³hÇh´Nubhó)�”}”(hŒ2Read the reset response from TIC through PIO read.”h]”hÞ)�”}”(hjh]”hŒ2Read the reset response from TIC through PIO read.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÔhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjèh²hh³hÇh´Nubhó)�”}”(hŒNIssue a command to retrieve device descriptor from Touch IC through PIO write.”h]”hÞ)�”}”(hjh]”hŒNIssue a command to retrieve device descriptor from Touch IC through PIO write.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÕhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjèh²hh³hÇh´Nubhó)�”}”(hŒ:Read the device descriptor from Touch IC through PIO read.”h]”hÞ)�”}”(hj2h]”hŒ:Read the device descriptor from Touch IC through PIO read.”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÖhj0ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjèh²hh³hÇh´Nubhó)�”}”(hŒWIf the device descriptor is valid, allocate DMA buffers and configure all DMA channels.”h]”hÞ)�”}”(hjIh]”hŒWIf the device descriptor is valid, allocate DMA buffers and configure all DMA channels.”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M×hjGubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjèh²hh³hÇh´Nubhó)�”}”(hŒIIssue a command to retrieve report descriptor from Touch IC through DMA. ”h]”hÞ)�”}”(hŒHIssue a command to retrieve report descriptor from Touch IC through DMA.”h]”hŒHIssue a command to retrieve report descriptor from Touch IC through DMA.”…”�”}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MØhj^ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjèh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´MÓhj×h²hubeh}”(h]”Œ reset-flow”ah ]”h"]”Œ4.1 reset flow”ah$]”h&]”uh1hÈhj¸h²hh³hÇh´MÑubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.2 Input Report Data Flow”h]”hŒ4.2 Input Report Data Flow”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj„h²hh³hÇh´MÛubhÞ)�”}”(hŒ Basic Flow:”h]”hŒ Basic Flow:”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÝhj„h²hubhî)�”}”(hhh]”(hó)�”}”(hŒFTouch IC interrupts the THC Controller using an in-band THC interrupt.”h]”hÞ)�”}”(hj¨h]”hŒFTouch IC interrupts the THC Controller using an in-band THC interrupt.”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mßhj¦ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj£h²hh³hÇh´Nubhó)�”}”(hŒ’THC Sequencer reads the input report header by transmitting read approval as a signal to the Touch IC to prepare for host to read from the device.”h]”hÞ)�”}”(hŒ’THC Sequencer reads the input report header by transmitting read approval as a signal to the Touch IC to prepare for host to read from the device.”h]”hŒ’THC Sequencer reads the input report header by transmitting read approval as a signal to the Touch IC to prepare for host to read from the device.”…”�”}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Màhj½ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj£h²hh³hÇh´Nubhó)�”}”(hŒ�THC Sequencer executes a Input Report Body Read operation corresponding to the value reflected in “Input Report Lengthâ€� field of the Input Report Header.”h]”hÞ)�”}”(hŒ�THC Sequencer executes a Input Report Body Read operation corresponding to the value reflected in “Input Report Lengthâ€� field of the Input Report Header.”h]”hŒ�THC Sequencer executes a Input Report Body Read operation corresponding to the value reflected in “Input Report Lengthâ€� field of the Input Report Header.”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MâhjÕubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj£h²hh³hÇh´Nubhó)�”}”(hX"THC DMA engine begins fetching data from the THC Sequencer and writes to host memory at PRD entry 0 for the current CB PRD table entry. This process continues until the THC Sequencer signals all data has been read or the THC DMA Read Engine reaches the end of it's last PRD entry (or both).”h]”hÞ)�”}”(hX"THC DMA engine begins fetching data from the THC Sequencer and writes to host memory at PRD entry 0 for the current CB PRD table entry. This process continues until the THC Sequencer signals all data has been read or the THC DMA Read Engine reaches the end of it's last PRD entry (or both).”h]”hX$THC DMA engine begins fetching data from the THC Sequencer and writes to host memory at PRD entry 0 for the current CB PRD table entry. This process continues until the THC Sequencer signals all data has been read or the THC DMA Read Engine reaches the end of it’s last PRD entry (or both).”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mähjíubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj£h²hh³hÇh´Nubhó)�”}”(hŒ‘The THC Sequencer checks for the “Last Fragment Flagâ€� bit in the Input Report Header. If it is clear, the THC Sequencer enters an idle state.”h]”hÞ)�”}”(hŒ‘The THC Sequencer checks for the “Last Fragment Flagâ€� bit in the Input Report Header. If it is clear, the THC Sequencer enters an idle state.”h]”hŒ‘The THC Sequencer checks for the “Last Fragment Flagâ€� bit in the Input Report Header. If it is clear, the THC Sequencer enters an idle state.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mèhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj£h²hh³hÇh´Nubhó)�”}”(hŒaIf the “Last Fragment Flagâ€� bit is enabled the THC Sequencer enters End-of-Frame Processing. ”h]”hÞ)�”}”(hŒ`If the “Last Fragment Flagâ€� bit is enabled the THC Sequencer enters End-of-Frame Processing.”h]”hŒ`If the “Last Fragment Flagâ€� bit is enabled the THC Sequencer enters End-of-Frame Processing.”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mêhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj£h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´Mßhj„h²hubhÞ)�”}”(hŒ&THC Sequencer End of Frame Processing:”h]”hŒ&THC Sequencer End of Frame Processing:”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mìhj„h²hubhî)�”}”(hhh]”(hó)�”}”(hŒ‹THC DMA engine increments the read pointer of the Read PRD CB, sets EOF interrupt status in RxDMA2 register (THC_M_PRT_READ_DMA_INT_STS_2).”h]”hÞ)�”}”(hŒ‹THC DMA engine increments the read pointer of the Read PRD CB, sets EOF interrupt status in RxDMA2 register (THC_M_PRT_READ_DMA_INT_STS_2).”h]”hŒ‹THC DMA engine increments the read pointer of the Read PRD CB, sets EOF interrupt status in RxDMA2 register (THC_M_PRT_READ_DMA_INT_STS_2).”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MîhjLubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjIh²hh³hÇh´Nubhó)�”}”(hŒ…If THC EOF interrupt is enabled by the driver in the control register (THC_M_PRT_READ_DMA_CNTRL_2), generates interrupt to software. ”h]”hÞ)�”}”(hŒ„If THC EOF interrupt is enabled by the driver in the control register (THC_M_PRT_READ_DMA_CNTRL_2), generates interrupt to software.”h]”hŒ„If THC EOF interrupt is enabled by the driver in the control register (THC_M_PRT_READ_DMA_CNTRL_2), generates interrupt to software.”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mðhjdubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjIh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´Mîhj„h²hubhÞ)�”}”(hŒ2Sequence of steps to read data from RX DMA buffer:”h]”hŒ2Sequence of steps to read data from RX DMA buffer:”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Móhj„h²hubhî)�”}”(hhh]”(hó)�”}”(hŒnTHC QuickSPI driver checks CB write Ptr and CB read Ptr to identify if any data frame in DMA circular buffers.”h]”hÞ)�”}”(hŒnTHC QuickSPI driver checks CB write Ptr and CB read Ptr to identify if any data frame in DMA circular buffers.”h]”hŒnTHC QuickSPI driver checks CB write Ptr and CB read Ptr to identify if any data frame in DMA circular buffers.”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mõhj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj�h²hh³hÇh´Nubhó)�”}”(hŒ5THC QuickSPI driver gets first unprocessed PRD table.”h]”hÞ)�”}”(hj­h]”hŒ5THC QuickSPI driver gets first unprocessed PRD table.”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M÷hj«ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj�h²hh³hÇh´Nubhó)�”}”(hŒ^THC QuickSPI driver scans all PRD entries in this PRD table to calculate the total frame size.”h]”hÞ)�”}”(hjÄh]”hŒ^THC QuickSPI driver scans all PRD entries in this PRD table to calculate the total frame size.”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MøhjÂubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj�h²hh³hÇh´Nubhó)�”}”(hŒ.THC QuickSPI driver copies all frame data out.”h]”hÞ)�”}”(hjÛh]”hŒ.THC QuickSPI driver copies all frame data out.”…”�”}”(hjÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MùhjÙubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj�h²hh³hÇh´Nubhó)�”}”(hŒyTHC QuickSPI driver checks the data type according to input report body, and calls related callbacks to process the data.”h]”hÞ)�”}”(hŒyTHC QuickSPI driver checks the data type according to input report body, and calls related callbacks to process the data.”h]”hŒyTHC QuickSPI driver checks the data type according to input report body, and calls related callbacks to process the data.”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Múhjðubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj�h²hh³hÇh´Nubhó)�”}”(hŒ'THC QuickSPI driver updates write Ptr. ”h]”hÞ)�”}”(hŒ&THC QuickSPI driver updates write Ptr.”h]”hŒ&THC QuickSPI driver updates write Ptr.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mühjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj�h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´Mõhj„h²hubeh}”(h]”Œinput-report-data-flow”ah ]”h"]”Œ4.2 input report data flow”ah$]”h&]”uh1hÈhj¸h²hh³hÇh´MÛubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.3 Output Report Data Flow”h]”hŒ4.3 Output Report Data Flow”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj.h²hh³hÇh´MÿubhÞ)�”}”(hŒGeneric Output Report Flow:”h]”hŒGeneric Output Report Flow:”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj.h²hubhî)�”}”(hhh]”(hó)�”}”(hŒJHID core calls raw_request callback with a request to THC QuickSPI driver.”h]”hÞ)�”}”(hjRh]”hŒJHID core calls raw_request callback with a request to THC QuickSPI driver.”…”�”}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjPubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjMh²hh³hÇh´Nubhó)�”}”(hŒyTHC QuickSPI Driver converts request provided data into the output report packet and copies it to THC's write DMA buffer.”h]”hÞ)�”}”(hŒyTHC QuickSPI Driver converts request provided data into the output report packet and copies it to THC's write DMA buffer.”h]”hŒ{THC QuickSPI Driver converts request provided data into the output report packet and copies it to THC’s write DMA buffer.”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjgubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjMh²hh³hÇh´Nubhó)�”}”(hŒ-Start TxDMA to complete the write operation. ”h]”hÞ)�”}”(hŒ,Start TxDMA to complete the write operation.”h]”hŒ,Start TxDMA to complete the write operation.”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjMh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´Mhj.h²hubeh}”(h]”Œoutput-report-data-flow”ah ]”h"]”Œ4.3 output report data flow”ah$]”h&]”uh1hÈhj¸h²hh³hÇh´Mÿubeh}”(h]”Œhidspi-support-quickspi”ah ]”h"]”Œ4. hidspi support (quickspi)”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MËubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5. HIDI2C support (QuickI2C)”h]”hŒ5. HIDI2C support (QuickI2C)”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj­h²hh³hÇh´M ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5.1 Reset Flow”h]”hŒ5.1 Reset Flow”…”�”}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¾h²hh³hÇh´M ubhî)�”}”(hhh]”(hó)�”}”(hŒORead device descriptor from Touch IC device through PIO write followed by read.”h]”hÞ)�”}”(hjÔh]”hŒORead device descriptor from Touch IC device through PIO write followed by read.”…”�”}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjÒubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjÏh²hh³hÇh´Nubhó)�”}”(hŒWIf the device descriptor is valid, allocate DMA buffers and configure all DMA channels.”h]”hÞ)�”}”(hjëh]”hŒWIf the device descriptor is valid, allocate DMA buffers and configure all DMA channels.”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjéubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjÏh²hh³hÇh´Nubhó)�”}”(hŒ„Use PIO or TxDMA to write a SET_POWER request to TIC's command register, and check if the write operation is successfully completed.”h]”hÞ)�”}”(hŒ„Use PIO or TxDMA to write a SET_POWER request to TIC's command register, and check if the write operation is successfully completed.”h]”hŒ†Use PIO or TxDMA to write a SET_POWER request to TIC’s command register, and check if the write operation is successfully completed.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjÏh²hh³hÇh´Nubhó)�”}”(hŒ˜Use PIO or TxDMA to write a RESET request to TIC's command register. If the write operation is successfully completed, wait for reset response from TIC.”h]”hÞ)�”}”(hŒ˜Use PIO or TxDMA to write a RESET request to TIC's command register. If the write operation is successfully completed, wait for reset response from TIC.”h]”hŒšUse PIO or TxDMA to write a RESET request to TIC’s command register. If the write operation is successfully completed, wait for reset response from TIC.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjÏh²hh³hÇh´Nubhó)�”}”(hŒNUse SWDMA to read report descriptor through TIC's report descriptor register. ”h]”hÞ)�”}”(hŒMUse SWDMA to read report descriptor through TIC's report descriptor register.”h]”hŒOUse SWDMA to read report descriptor through TIC’s report descriptor register.”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj0ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjÏh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´Mhj¾h²hubeh}”(h]”Œid1”ah ]”h"]”Œ5.1 reset flow”ah$]”h&]”uh1hÈhj­h²hh³hÇh´M ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5.2 Input Report Data Flow”h]”hŒ5.2 Input Report Data Flow”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjVh²hh³hÇh´MubhÞ)�”}”(hŒ Basic Flow:”h]”hŒ Basic Flow:”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjVh²hubhî)�”}”(hhh]”(hó)�”}”(hŒüTouch IC asserts the interrupt indicating that it has an interrupt to send to HOST. THC Sequencer issues a READ request over the I2C bus. The HIDI2C device returns the first 2 bytes from the HIDI2C device which contains the length of the received data.”h]”hÞ)�”}”(hŒüTouch IC asserts the interrupt indicating that it has an interrupt to send to HOST. THC Sequencer issues a READ request over the I2C bus. The HIDI2C device returns the first 2 bytes from the HIDI2C device which contains the length of the received data.”h]”hŒüTouch IC asserts the interrupt indicating that it has an interrupt to send to HOST. THC Sequencer issues a READ request over the I2C bus. The HIDI2C device returns the first 2 bytes from the HIDI2C device which contains the length of the received data.”…”�”}”(hj|h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhjxubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjuh²hh³hÇh´Nubhó)�”}”(hŒaTHC Sequencer continues the Read operation as per the size of data indicated in the length field.”h]”hÞ)�”}”(hŒaTHC Sequencer continues the Read operation as per the size of data indicated in the length field.”h]”hŒaTHC Sequencer continues the Read operation as per the size of data indicated in the length field.”…”�”}”(hj”h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjuh²hh³hÇh´Nubhó)�”}”(hXnTHC DMA engine begins fetching data from the THC Sequencer and writes to host memory at PRD entry 0 for the current CB PRD table entry. THC writes 2Bytes for length field plus the remaining data to RxDMA buffer. This process continues until the THC Sequencer signals all data has been read or the THC DMA Read Engine reaches the end of it's last PRD entry (or both).”h]”hÞ)�”}”(hXnTHC DMA engine begins fetching data from the THC Sequencer and writes to host memory at PRD entry 0 for the current CB PRD table entry. THC writes 2Bytes for length field plus the remaining data to RxDMA buffer. This process continues until the THC Sequencer signals all data has been read or the THC DMA Read Engine reaches the end of it's last PRD entry (or both).”h]”hXpTHC DMA engine begins fetching data from the THC Sequencer and writes to host memory at PRD entry 0 for the current CB PRD table entry. THC writes 2Bytes for length field plus the remaining data to RxDMA buffer. This process continues until the THC Sequencer signals all data has been read or the THC DMA Read Engine reaches the end of it’s last PRD entry (or both).”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hj¨ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjuh²hh³hÇh´Nubhó)�”}”(hŒ4THC Sequencer enters End-of-Input Report Processing.”h]”hÞ)�”}”(hjÂh]”hŒ4THC Sequencer enters End-of-Input Report Processing.”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M%hjÀubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjuh²hh³hÇh´Nubhó)�”}”(hŒÚIf the device has no more input reports to send to the host, it de-asserts the interrupt line. For any additional input reports, device keeps the interrupt line asserted and steps 1 through 4 in the flow are repeated. ”h]”hÞ)�”}”(hŒÙIf the device has no more input reports to send to the host, it de-asserts the interrupt line. For any additional input reports, device keeps the interrupt line asserted and steps 1 through 4 in the flow are repeated.”h]”hŒÙIf the device has no more input reports to send to the host, it de-asserts the interrupt line. For any additional input reports, device keeps the interrupt line asserted and steps 1 through 4 in the flow are repeated.”…”�”}”(hjÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M&hj×ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjuh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´MhjVh²hubhÞ)�”}”(hŒ-THC Sequencer End of Input Report Processing:”h]”hŒ-THC Sequencer End of Input Report Processing:”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M*hjVh²hubhî)�”}”(hhh]”(hó)�”}”(hŒŒTHC DMA engine increments the read pointer of the Read PRD CB, sets EOF interrupt status in RxDMA 2 register (THC_M_PRT_READ_DMA_INT_STS_2).”h]”hÞ)�”}”(hŒŒTHC DMA engine increments the read pointer of the Read PRD CB, sets EOF interrupt status in RxDMA 2 register (THC_M_PRT_READ_DMA_INT_STS_2).”h]”hŒŒTHC DMA engine increments the read pointer of the Read PRD CB, sets EOF interrupt status in RxDMA 2 register (THC_M_PRT_READ_DMA_INT_STS_2).”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M,hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjh²hh³hÇh´Nubhó)�”}”(hŒ…If THC EOF interrupt is enabled by the driver in the control register (THC_M_PRT_READ_DMA_CNTRL_2), generates interrupt to software. ”h]”hÞ)�”}”(hŒ„If THC EOF interrupt is enabled by the driver in the control register (THC_M_PRT_READ_DMA_CNTRL_2), generates interrupt to software.”h]”hŒ„If THC EOF interrupt is enabled by the driver in the control register (THC_M_PRT_READ_DMA_CNTRL_2), generates interrupt to software.”…”�”}”(hj"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M.hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´M,hjVh²hubhÞ)�”}”(hŒ2Sequence of steps to read data from RX DMA buffer:”h]”hŒ2Sequence of steps to read data from RX DMA buffer:”…”�”}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M1hjVh²hubhî)�”}”(hhh]”(hó)�”}”(hŒnTHC QuickI2C driver checks CB write Ptr and CB read Ptr to identify if any data frame in DMA circular buffers.”h]”hÞ)�”}”(hŒnTHC QuickI2C driver checks CB write Ptr and CB read Ptr to identify if any data frame in DMA circular buffers.”h]”hŒnTHC QuickI2C driver checks CB write Ptr and CB read Ptr to identify if any data frame in DMA circular buffers.”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M3hjMubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjJh²hh³hÇh´Nubhó)�”}”(hŒ5THC QuickI2C driver gets first unprocessed PRD table.”h]”hÞ)�”}”(hjgh]”hŒ5THC QuickI2C driver gets first unprocessed PRD table.”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M5hjeubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjJh²hh³hÇh´Nubhó)�”}”(hŒ^THC QuickI2C driver scans all PRD entries in this PRD table to calculate the total frame size.”h]”hÞ)�”}”(hj~h]”hŒ^THC QuickI2C driver scans all PRD entries in this PRD table to calculate the total frame size.”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M6hj|ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjJh²hh³hÇh´Nubhó)�”}”(hŒ.THC QuickI2C driver copies all frame data out.”h]”hÞ)�”}”(hj•h]”hŒ.THC QuickI2C driver copies all frame data out.”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M7hj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjJh²hh³hÇh´Nubhó)�”}”(hŒ¿THC QuickI2C driver call hid_input_report to send the input report content to HID core, which includes Report ID + Report Data Content (remove the length field from the original report data).”h]”hÞ)�”}”(hŒ¿THC QuickI2C driver call hid_input_report to send the input report content to HID core, which includes Report ID + Report Data Content (remove the length field from the original report data).”h]”hŒ¿THC QuickI2C driver call hid_input_report to send the input report content to HID core, which includes Report ID + Report Data Content (remove the length field from the original report data).”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M8hjªubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjJh²hh³hÇh´Nubhó)�”}”(hŒ'THC QuickI2C driver updates write Ptr. ”h]”hÞ)�”}”(hŒ&THC QuickI2C driver updates write Ptr.”h]”hŒ&THC QuickI2C driver updates write Ptr.”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M;hjÂubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjJh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´M3hjVh²hubeh}”(h]”Œid2”ah ]”h"]”Œ5.2 input report data flow”ah$]”h&]”uh1hÈhj­h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5.3 Output Report Data Flow”h]”hŒ5.3 Output Report Data Flow”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjèh²hh³hÇh´M>ubhÞ)�”}”(hŒGeneric Output Report Flow:”h]”hŒGeneric Output Report Flow:”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M@hjèh²hubhî)�”}”(hhh]”(hó)�”}”(hŒ0HID core call THC QuickI2C raw_request callback.”h]”hÞ)�”}”(hj h]”hŒ0HID core call THC QuickI2C raw_request callback.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MBhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjh²hh³hÇh´Nubhó)�”}”(hŒŠTHC QuickI2C uses PIO or TXDMA to write a SET_REPORT request to TIC's command register. Report type in SET_REPORT should be set to Output.”h]”hÞ)�”}”(hŒŠTHC QuickI2C uses PIO or TXDMA to write a SET_REPORT request to TIC's command register. Report type in SET_REPORT should be set to Output.”h]”hŒŒTHC QuickI2C uses PIO or TXDMA to write a SET_REPORT request to TIC’s command register. Report type in SET_REPORT should be set to Output.”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MChj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjh²hh³hÇh´Nubhó)�”}”(hŒÆTHC QuickI2C programs TxDMA buffer with TX Data to be written to TIC's data register. The first 2 bytes should indicate the length of the report followed by the report contents including Report ID. ”h]”hÞ)�”}”(hŒÅTHC QuickI2C programs TxDMA buffer with TX Data to be written to TIC's data register. The first 2 bytes should indicate the length of the report followed by the report contents including Report ID.”h]”hŒÇTHC QuickI2C programs TxDMA buffer with TX Data to be written to TIC’s data register. The first 2 bytes should indicate the length of the report followed by the report contents including Report ID.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MEhj9ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhjh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´MBhjèh²hubeh}”(h]”Œid3”ah ]”h"]”Œ5.3 output report data flow”ah$]”h&]”uh1hÈhj­h²hh³hÇh´M>ubeh}”(h]”Œhidi2c-support-quicki2c”ah ]”h"]”Œ5. hidi2c support (quicki2c)”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ6. THC Debugging”h]”hŒ6. THC Debugging”…”�”}”(hjjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjgh²hh³hÇh´MJubhÞ)�”}”(hŒETo debug THC, event tracing mechanism is used. To enable debug logs::”h]”hŒDTo debug THC, event tracing mechanism is used. To enable debug logs:”…”�”}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MLhjgh²hubj�)�”}”(hŒ^echo 1 > /sys/kernel/debug/tracing/events/intel_thc/enable cat /sys/kernel/debug/tracing/trace”h]”hŒ^echo 1 > /sys/kernel/debug/tracing/events/intel_thc/enable cat /sys/kernel/debug/tracing/trace”…”�”}”hj†sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jœh³hÇh´MNhjgh²hubeh}”(h]”Œ thc-debugging”ah ]”h"]”Œ6. thc debugging”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MJubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 7. Reference”h]”hŒ 7. Reference”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjœh²hh³hÇh´MRubhî)�”}”(hhh]”(hó)�”}”(hŒqHIDSPI: https://download.microsoft.com/download/c/a/0/ca07aef3-3e10-4022-b1e9-c98cea99465d/HidSpiProtocolSpec.pdf”h]”hÞ)�”}”(hj²h]”(hŒHIDSPI: ”…”�”}”(hj´h²hh³Nh´NubhŒ reference”“”)�”}”(hŒihttps://download.microsoft.com/download/c/a/0/ca07aef3-3e10-4022-b1e9-c98cea99465d/HidSpiProtocolSpec.pdf”h]”hŒihttps://download.microsoft.com/download/c/a/0/ca07aef3-3e10-4022-b1e9-c98cea99465d/HidSpiProtocolSpec.pdf”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j¿uh1j»hj´ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MShj°ubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj­h²hh³hÇh´Nubhó)�”}”(hŒHIDI2C: https://download.microsoft.com/download/7/d/d/7dd44bb7-2a7a-4505-ac1c-7227d3d96d5b/hid-over-i2c-protocol-spec-v1-0.docx”h]”hÞ)�”}”(hjÚh]”(hŒHIDI2C: ”…”�”}”(hjÜh²hh³Nh´Nubj¼)�”}”(hŒwhttps://download.microsoft.com/download/7/d/d/7dd44bb7-2a7a-4505-ac1c-7227d3d96d5b/hid-over-i2c-protocol-spec-v1-0.docx”h]”hŒwhttps://download.microsoft.com/download/7/d/d/7dd44bb7-2a7a-4505-ac1c-7227d3d96d5b/hid-over-i2c-protocol-spec-v1-0.docx”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jåuh1j»hjÜubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MThjØubah}”(h]”h ]”h"]”h$]”h&]”uh1hòhj­h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j@jAuh1híh³hÇh´MShjœh²hubeh}”(h]”Œ reference”ah ]”h"]”Œ 7. reference”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MRubeh}”(h]”Œintel-touch-host-controller-thc”ah ]”h"]”Œ!intel touch host controller (thc)”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”jÅŒfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j6Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jjjljijéjæjdjajZjWj¤j¡j°j­j>j;jejbj¨j¥jjjRjOjµj²j©j¦jÁ j¾ j± j® j? j< jt jq j© j¦ j­jªjY jV jœ j™ j¥j¢jªj§j�j~j+j(j¢jŸjdjajSjPjåjâj\jYj™j–j juŒ nametypes”}”(j‰jl‰jé‰jd‰jZ‰j¤‰j°‰j>‰je‰j¨‰j‰jR‰jµ‰j©‰jÁ ‰j± ‰j? ‰jt ‰j© ‰j­‰jY ‰jœ ‰j¥‰jª‰j�‰j+‰j¢‰jd‰jS‰jå‰j\‰j™‰j ‰uh}”(jhÊjijljæj}jajìjWjoj¡j€j­j§j;jÆjbjAj¥jhjj³jOj j²j]j¦jnj¾ j¬j® jÄ j< jã jq jB j¦ jw jªj´ jV jÓ j™ j\ j¢jŸ j§j¸j~j×j(j„jŸj.jaj­jPj¾jâjVjYjèj–jgjjœuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”jDKs…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.