€•Œ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”Œ3/translations/zh_CN/firmware-guide/acpi/enumeration”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/zh_TW/firmware-guide/acpi/enumeration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/it_IT/firmware-guide/acpi/enumeration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/ja_JP/firmware-guide/acpi/enumeration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/ko_KR/firmware-guide/acpi/enumeration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/pt_BR/firmware-guide/acpi/enumeration”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/sp_SP/firmware-guide/acpi/enumeration”Œ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³ŒM/var/lib/git/docbuild/linux/Documentation/firmware-guide/acpi/enumeration.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒACPI Based Device Enumeration”h]”hŒACPI Based Device Enumeration”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hŒ·ACPI 5 introduced a set of new resources (UartTSerialBus, I2cSerialBus, SpiSerialBus, GpioIo and GpioInt) which can be used in enumerating slave devices behind serial bus controllers.”h]”hŒ·ACPI 5 introduced a set of new resources (UartTSerialBus, I2cSerialBus, SpiSerialBus, GpioIo and GpioInt) which can be used in enumerating slave devices behind serial bus controllers.”…”�”}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒ½In addition we are starting to see peripherals integrated in the SoC/Chipset to appear only in ACPI namespace. These are typically devices that are accessed through memory-mapped registers.”h]”hŒ½In addition we are starting to see peripherals integrated in the SoC/Chipset to appear only in ACPI namespace. These are typically devices that are accessed through memory-mapped registers.”…”�”}”(hhíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hhÊh²hubhÞ)�”}”(hŒgIn order to support this and reuse the existing drivers as much as possible we decided to do following:”h]”hŒgIn order to support this and reuse the existing drivers as much as possible we decided to do following:”…”�”}”(hhûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhŒ block_quote”“”)�”}”(hXe- Devices that have no bus connector resource are represented as platform devices. - Devices behind real busses where there is a connector resource are represented as struct spi_device or struct i2c_client. Note that standard UARTs are not busses so there is no struct uart_device, although some of them may be represented by struct serdev_device. ”h]”hŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒQDevices that have no bus connector resource are represented as platform devices. ”h]”hÞ)�”}”(hŒPDevices that have no bus connector resource are represented as platform devices.”h]”hŒPDevices that have no bus connector resource are represented as platform devices.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)�”}”(hXDevices behind real busses where there is a connector resource are represented as struct spi_device or struct i2c_client. Note that standard UARTs are not busses so there is no struct uart_device, although some of them may be represented by struct serdev_device. ”h]”hÞ)�”}”(hXDevices behind real busses where there is a connector resource are represented as struct spi_device or struct i2c_client. Note that standard UARTs are not busses so there is no struct uart_device, although some of them may be represented by struct serdev_device.”h]”hXDevices behind real busses where there is a connector resource are represented as struct spi_device or struct i2c_client. Note that standard UARTs are not busses so there is no struct uart_device, although some of them may be represented by struct serdev_device.”…”�”}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khj.ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jh³hÇh´Khj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j h³hÇh´KhhÊh²hubhÞ)�”}”(hŒ“As both ACPI and Device Tree represent a tree of devices (and their resources) this implementation follows the Device Tree way as much as possible.”h]”hŒ“As both ACPI and Device Tree represent a tree of devices (and their resources) this implementation follows the Device Tree way as much as possible.”…”�”}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒ¾The ACPI implementation enumerates devices behind busses (platform, SPI, I2C, and in some cases UART), creates the physical devices and binds them to their ACPI handle in the ACPI namespace.”h]”hŒ¾The ACPI implementation enumerates devices behind busses (platform, SPI, I2C, and in some cases UART), creates the physical devices and binds them to their ACPI handle in the ACPI namespace.”…”�”}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒÐThis means that when ACPI_HANDLE(dev) returns non-NULL the device was enumerated from ACPI namespace. This handle can be used to extract other device-specific configuration. There is an example of this below.”h]”hŒÐThis means that when ACPI_HANDLE(dev) returns non-NULL the device was enumerated from ACPI namespace. This handle can be used to extract other device-specific configuration. There is an example of this below.”…”�”}”(hjph²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K"hhÊh²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒPlatform bus support”h]”hŒPlatform bus support”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj~h²hh³hÇh´K'ubhÞ)�”}”(hX;Since we are using platform devices to represent devices that are not connected to any physical bus we only need to implement a platform driver for the device and add supported ACPI IDs. If this same IP-block is used on some other non-ACPI platform, the driver might work out of the box or needs some minor changes.”h]”hX;Since we are using platform devices to represent devices that are not connected to any physical bus we only need to implement a platform driver for the device and add supported ACPI IDs. If this same IP-block is used on some other non-ACPI platform, the driver might work out of the box or needs some minor changes.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K)hj~h²hubhÞ)�”}”(hŒkAdding ACPI support for an existing driver should be pretty straightforward. Here is the simplest example::”h]”hŒjAdding ACPI support for an existing driver should be pretty straightforward. Here is the simplest example:”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K/hj~h²hubhŒ literal_block”“”)�”}”(hX"static const struct acpi_device_id mydrv_acpi_match[] = { /* ACPI IDs here */ { } }; MODULE_DEVICE_TABLE(acpi, mydrv_acpi_match); static struct platform_driver my_driver = { ... .driver = { .acpi_match_table = mydrv_acpi_match, }, };”h]”hX"static const struct acpi_device_id mydrv_acpi_match[] = { /* ACPI IDs here */ { } }; MODULE_DEVICE_TABLE(acpi, mydrv_acpi_match); static struct platform_driver my_driver = { ... .driver = { .acpi_match_table = mydrv_acpi_match, }, };”…”�”}”hj­sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´K2hj~h²hubhÞ)�”}”(hŒ§If the driver needs to perform more complex initialization like getting and configuring GPIOs it can get its ACPI handle and extract this information from ACPI tables.”h]”hŒ§If the driver needs to perform more complex initialization like getting and configuring GPIOs it can get its ACPI handle and extract this information from ACPI tables.”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K?hj~h²hubeh}”(h]”Œplatform-bus-support”ah ]”h"]”Œplatform bus support”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K'ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒACPI device objects”h]”hŒACPI device objects”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÑh²hh³hÇh´KDubhÞ)�”}”(hXÍGenerally speaking, there are two categories of devices in a system in which ACPI is used as an interface between the platform firmware and the OS: Devices that can be discovered and enumerated natively, through a protocol defined for the specific bus that they are on (for example, configuration space in PCI), without the platform firmware assistance, and devices that need to be described by the platform firmware so that they can be discovered. Still, for any device known to the platform firmware, regardless of which category it falls into, there can be a corresponding ACPI device object in the ACPI Namespace in which case the Linux kernel will create a struct acpi_device object based on it for that device.”h]”hXÍGenerally speaking, there are two categories of devices in a system in which ACPI is used as an interface between the platform firmware and the OS: Devices that can be discovered and enumerated natively, through a protocol defined for the specific bus that they are on (for example, configuration space in PCI), without the platform firmware assistance, and devices that need to be described by the platform firmware so that they can be discovered. Still, for any device known to the platform firmware, regardless of which category it falls into, there can be a corresponding ACPI device object in the ACPI Namespace in which case the Linux kernel will create a struct acpi_device object based on it for that device.”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KFhjÑh²hubhÞ)�”}”(hX‹Those struct acpi_device objects are never used for binding drivers to natively discoverable devices, because they are represented by other types of device objects (for example, struct pci_dev for PCI devices) that are bound to by device drivers (the corresponding struct acpi_device object is then used as an additional source of information on the configuration of the given device). Moreover, the core ACPI device enumeration code creates struct platform_device objects for the majority of devices that are discovered and enumerated with the help of the platform firmware and those platform device objects can be bound to by platform drivers in direct analogy with the natively enumerable devices case. Therefore it is logically inconsistent and so generally invalid to bind drivers to struct acpi_device objects, including drivers for devices that are discovered with the help of the platform firmware.”h]”hX‹Those struct acpi_device objects are never used for binding drivers to natively discoverable devices, because they are represented by other types of device objects (for example, struct pci_dev for PCI devices) that are bound to by device drivers (the corresponding struct acpi_device object is then used as an additional source of information on the configuration of the given device). Moreover, the core ACPI device enumeration code creates struct platform_device objects for the majority of devices that are discovered and enumerated with the help of the platform firmware and those platform device objects can be bound to by platform drivers in direct analogy with the natively enumerable devices case. Therefore it is logically inconsistent and so generally invalid to bind drivers to struct acpi_device objects, including drivers for devices that are discovered with the help of the platform firmware.”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KQhjÑh²hubhÞ)�”}”(hX Historically, ACPI drivers that bound directly to struct acpi_device objects were implemented for some devices enumerated with the help of the platform firmware, but this is not recommended for any new drivers. As explained above, platform device objects are created for those devices as a rule (with a few exceptions that are not relevant here) and so platform drivers should be used for handling them, even though the corresponding ACPI device objects are the only source of device configuration information in that case.”h]”hX Historically, ACPI drivers that bound directly to struct acpi_device objects were implemented for some devices enumerated with the help of the platform firmware, but this is not recommended for any new drivers. As explained above, platform device objects are created for those devices as a rule (with a few exceptions that are not relevant here) and so platform drivers should be used for handling them, even though the corresponding ACPI device objects are the only source of device configuration information in that case.”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K^hjÑh²hubhÞ)�”}”(hXýFor every device having a corresponding struct acpi_device object, the pointer to it is returned by the ACPI_COMPANION() macro, so it is always possible to get to the device configuration information stored in the ACPI device object this way. Accordingly, struct acpi_device can be regarded as a part of the interface between the kernel and the ACPI Namespace, whereas device objects of other types (for example, struct pci_dev or struct platform_device) are used for interacting with the rest of the system.”h]”hXýFor every device having a corresponding struct acpi_device object, the pointer to it is returned by the ACPI_COMPANION() macro, so it is always possible to get to the device configuration information stored in the ACPI device object this way. Accordingly, struct acpi_device can be regarded as a part of the interface between the kernel and the ACPI Namespace, whereas device objects of other types (for example, struct pci_dev or struct platform_device) are used for interacting with the rest of the system.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KfhjÑh²hubeh}”(h]”Œacpi-device-objects”ah ]”h"]”Œacpi device objects”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KDubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ DMA support”h]”hŒ DMA support”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj"h²hh³hÇh´KoubhÞ)�”}”(hX&DMA controllers enumerated via ACPI should be registered in the system to provide generic access to their resources. For example, a driver that would like to be accessible to slave devices via generic API call dma_request_chan() must register itself at the end of the probe function like this::”h]”hX%DMA controllers enumerated via ACPI should be registered in the system to provide generic access to their resources. For example, a driver that would like to be accessible to slave devices via generic API call dma_request_chan() must register itself at the end of the probe function like this:”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kqhj"h²hubj¬)�”}”(hŒwerr = devm_acpi_dma_controller_register(dev, xlate_func, dw); /* Handle the error if it's not a case of !CONFIG_ACPI */”h]”hŒwerr = devm_acpi_dma_controller_register(dev, xlate_func, dw); /* Handle the error if it's not a case of !CONFIG_ACPI */”…”�”}”hjAsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´Kwhj"h²hubhÞ)�”}”(hŒóand implement custom xlate function if needed (usually acpi_dma_simple_xlate() is enough) which converts the FixedDMA resource provided by struct acpi_dma_spec into the corresponding DMA channel. A piece of code for that case could look like::”h]”hŒòand implement custom xlate function if needed (usually acpi_dma_simple_xlate() is enough) which converts the FixedDMA resource provided by struct acpi_dma_spec into the corresponding DMA channel. A piece of code for that case could look like:”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kzhj"h²hubj¬)�”}”(hX¡#ifdef CONFIG_ACPI struct filter_args { /* Provide necessary information for the filter_func */ ... }; static bool filter_func(struct dma_chan *chan, void *param) { /* Choose the proper channel */ ... } static struct dma_chan *xlate_func(struct acpi_dma_spec *dma_spec, struct acpi_dma *adma) { dma_cap_mask_t cap; struct filter_args args; /* Prepare arguments for filter_func */ ... return dma_request_channel(cap, filter_func, &args); } #else static struct dma_chan *xlate_func(struct acpi_dma_spec *dma_spec, struct acpi_dma *adma) { return NULL; } #endif”h]”hX¡#ifdef CONFIG_ACPI struct filter_args { /* Provide necessary information for the filter_func */ ... }; static bool filter_func(struct dma_chan *chan, void *param) { /* Choose the proper channel */ ... } static struct dma_chan *xlate_func(struct acpi_dma_spec *dma_spec, struct acpi_dma *adma) { dma_cap_mask_t cap; struct filter_args args; /* Prepare arguments for filter_func */ ... return dma_request_channel(cap, filter_func, &args); } #else static struct dma_chan *xlate_func(struct acpi_dma_spec *dma_spec, struct acpi_dma *adma) { return NULL; } #endif”…”�”}”hj]sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´Khj"h²hubhÞ)�”}”(hŒôdma_request_chan() will call xlate_func() for each registered DMA controller. In the xlate function the proper channel must be chosen based on information in struct acpi_dma_spec and the properties of the controller provided by struct acpi_dma.”h]”hŒôdma_request_chan() will call xlate_func() for each registered DMA controller. In the xlate function the proper channel must be chosen based on information in struct acpi_dma_spec and the properties of the controller provided by struct acpi_dma.”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K�hj"h²hubhÞ)�”}”(hŒôClients must call dma_request_chan() with the string parameter that corresponds to a specific FixedDMA resource. By default "tx" means the first entry of the FixedDMA resource array, "rx" means the second entry. The table below shows a layout::”h]”hŒûClients must call dma_request_chan() with the string parameter that corresponds to a specific FixedDMA resource. By default “txâ€� means the first entry of the FixedDMA resource array, “rxâ€� means the second entry. The table below shows a layout:”…”�”}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¢hj"h²hubj¬)�”}”(hX>Device (I2C0) { ... Method (_CRS, 0, NotSerialized) { Name (DBUF, ResourceTemplate () { FixedDMA (0x0018, 0x0004, Width32bit, _Y48) FixedDMA (0x0019, 0x0005, Width32bit, ) }) ... } }”h]”hX>Device (I2C0) { ... Method (_CRS, 0, NotSerialized) { Name (DBUF, ResourceTemplate () { FixedDMA (0x0018, 0x0004, Width32bit, _Y48) FixedDMA (0x0019, 0x0005, Width32bit, ) }) ... } }”…”�”}”hj‡sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´K§hj"h²hubhÞ)�”}”(hŒWSo, the FixedDMA with request line 0x0018 is "tx" and next one is "rx" in this example.”h]”hŒ_So, the FixedDMA with request line 0x0018 is “txâ€� and next one is “rxâ€� in this example.”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kµhj"h²hubhÞ)�”}”(hŒ¨In robust cases the client unfortunately needs to call acpi_dma_request_slave_chan_by_index() directly and therefore choose the specific FixedDMA resource by its index.”h]”hŒ¨In robust cases the client unfortunately needs to call acpi_dma_request_slave_chan_by_index() directly and therefore choose the specific FixedDMA resource by its index.”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¸hj"h²hubeh}”(h]”Œ dma-support”ah ]”h"]”Œ dma support”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KoubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒNamed Interrupts”h]”hŒNamed Interrupts”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¹h²hh³hÇh´K½ubhÞ)�”}”(hŒ�Drivers enumerated via ACPI can have names to interrupts in the ACPI table which can be used to get the IRQ number in the driver.”h]”hŒ�Drivers enumerated via ACPI can have names to interrupts in the ACPI table which can be used to get the IRQ number in the driver.”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¿hj¹h²hubhÞ)�”}”(hŒÉThe interrupt name can be listed in _DSD as 'interrupt-names'. The names should be listed as an array of strings which will map to the Interrupt() resource in the ACPI table corresponding to its index.”h]”hŒÍThe interrupt name can be listed in _DSD as ‘interrupt-names’. The names should be listed as an array of strings which will map to the Interrupt() resource in the ACPI table corresponding to its index.”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÂhj¹h²hubhÞ)�”}”(hŒ/The table below shows an example of its usage::”h]”hŒ.The table below shows an example of its usage:”…”�”}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÆhj¹h²hubj¬)�”}”(hX˜Device (DEV0) { ... Name (_CRS, ResourceTemplate() { ... Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 0x20, 0x24 } }) Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "interrupt-names", Package () { "default", "alert" } }, } ... }) }”h]”hX˜Device (DEV0) { ... Name (_CRS, ResourceTemplate() { ... Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 0x20, 0x24 } }) Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "interrupt-names", Package () { "default", "alert" } }, } ... }) }”…”�”}”hjôsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´KÈhj¹h²hubhÞ)�”}”(hŒ±The interrupt name 'default' will correspond to 0x20 in Interrupt() resource and 'alert' to 0x24. Note that only the Interrupt() resource is mapped and not GpioInt() or similar.”h]”hŒ¹The interrupt name ‘default’ will correspond to 0x20 in Interrupt() resource and ‘alert’ to 0x24. Note that only the Interrupt() resource is mapped and not GpioInt() or similar.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÛhj¹h²hubhÞ)�”}”(hŒ�The driver can call the function - fwnode_irq_get_byname() with the fwnode and interrupt name as arguments to get the corresponding IRQ number.”h]”hŒ�The driver can call the function - fwnode_irq_get_byname() with the fwnode and interrupt name as arguments to get the corresponding IRQ number.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kßhj¹h²hubeh}”(h]”Œnamed-interrupts”ah ]”h"]”Œnamed interrupts”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K½ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒSPI serial bus support”h]”hŒSPI serial bus support”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj&h²hh³hÇh´KãubhÞ)�”}”(hŒÖSlave devices behind SPI bus have SpiSerialBus resource attached to them. This is extracted automatically by the SPI core and the slave devices are enumerated once spi_register_master() is called by the bus driver.”h]”hŒÖSlave devices behind SPI bus have SpiSerialBus resource attached to them. This is extracted automatically by the SPI core and the slave devices are enumerated once spi_register_master() is called by the bus driver.”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kåhj&h²hubhÞ)�”}”(hŒAHere is what the ACPI namespace for a SPI slave might look like::”h]”hŒ@Here is what the ACPI namespace for a SPI slave might look like:”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kéhj&h²hubj¬)�”}”(hX�Device (EEP0) { Name (_ADR, 1) Name (_CID, Package () { "ATML0025", "AT25", }) ... Method (_CRS, 0, NotSerialized) { SPISerialBus(1, PolarityLow, FourWireMode, 8, ControllerInitiated, 1000000, ClockPolarityLow, ClockPhaseFirst, "\\_SB.PCI0.SPI1",) } ...”h]”hX�Device (EEP0) { Name (_ADR, 1) Name (_CID, Package () { "ATML0025", "AT25", }) ... Method (_CRS, 0, NotSerialized) { SPISerialBus(1, PolarityLow, FourWireMode, 8, ControllerInitiated, 1000000, ClockPolarityLow, ClockPhaseFirst, "\\_SB.PCI0.SPI1",) } ...”…”�”}”hjSsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´Këhj&h²hubhÞ)�”}”(hŒÖThe SPI device drivers only need to add ACPI IDs in a similar way to the platform device drivers. Below is an example where we add ACPI support to at25 SPI eeprom driver (this is meant for the above ACPI snippet)::”h]”hŒÕThe SPI device drivers only need to add ACPI IDs in a similar way to the platform device drivers. Below is an example where we add ACPI support to at25 SPI eeprom driver (this is meant for the above ACPI snippet):”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kûhj&h²hubj¬)�”}”(hXstatic const struct acpi_device_id at25_acpi_match[] = { { "AT25", 0 }, { } }; MODULE_DEVICE_TABLE(acpi, at25_acpi_match); static struct spi_driver at25_driver = { .driver = { ... .acpi_match_table = at25_acpi_match, }, };”h]”hXstatic const struct acpi_device_id at25_acpi_match[] = { { "AT25", 0 }, { } }; MODULE_DEVICE_TABLE(acpi, at25_acpi_match); static struct spi_driver at25_driver = { .driver = { ... .acpi_match_table = at25_acpi_match, }, };”…”�”}”hjosbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´Kÿhj&h²hubhÞ)�”}”(hŒŽNote that this driver actually needs more information like page size of the eeprom, etc. This information can be passed via _DSD method like::”h]”hŒ�Note that this driver actually needs more information like page size of the eeprom, etc. This information can be passed via _DSD method like:”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hj&h²hubj¬)�”}”(hXxDevice (EEP0) { ... Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "size", 1024 }, Package () { "pagesize", 32 }, Package () { "address-width", 16 }, } }) }”h]”hXxDevice (EEP0) { ... Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "size", 1024 }, Package () { "pagesize", 32 }, Package () { "address-width", 16 }, } }) }”…”�”}”hj‹sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´Mhj&h²hubhÞ)�”}”(hŒqThen the at25 SPI driver can get this configuration by calling device property APIs during ->probe() phase like::”h]”hŒpThen the at25 SPI driver can get this configuration by calling device property APIs during ->probe() phase like:”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj&h²hubj¬)�”}”(hX'err = device_property_read_u32(dev, "size", &size); if (err) ...error handling... err = device_property_read_u32(dev, "pagesize", &page_size); if (err) ...error handling... err = device_property_read_u32(dev, "address-width", &addr_width); if (err) ...error handling...”h]”hX'err = device_property_read_u32(dev, "size", &size); if (err) ...error handling... err = device_property_read_u32(dev, "pagesize", &page_size); if (err) ...error handling... err = device_property_read_u32(dev, "address-width", &addr_width); if (err) ...error handling...”…”�”}”hj§sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´M!hj&h²hubeh}”(h]”Œspi-serial-bus-support”ah ]”h"]”Œspi serial bus support”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KãubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒI2C serial bus support”h]”hŒI2C serial bus support”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj½h²hh³hÇh´M.ubhÞ)�”}”(hŒßThe slaves behind I2C bus controller only need to add the ACPI IDs like with the platform and SPI drivers. The I2C core automatically enumerates any slave devices behind the controller device once the adapter is registered.”h]”hŒßThe slaves behind I2C bus controller only need to add the ACPI IDs like with the platform and SPI drivers. The I2C core automatically enumerates any slave devices behind the controller device once the adapter is registered.”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M0hj½h²hubhÞ)�”}”(hŒUBelow is an example of how to add ACPI support to the existing mpu3050 input driver::”h]”hŒTBelow is an example of how to add ACPI support to the existing mpu3050 input driver:”…”�”}”(hjÜh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M5hj½h²hubj¬)�”}”(hX?static const struct acpi_device_id mpu3050_acpi_match[] = { { "MPU3050", 0 }, { } }; MODULE_DEVICE_TABLE(acpi, mpu3050_acpi_match); static struct i2c_driver mpu3050_i2c_driver = { .driver = { .name = "mpu3050", .pm = &mpu3050_pm, .of_match_table = mpu3050_of_match, .acpi_match_table = mpu3050_acpi_match, }, .probe = mpu3050_probe, .remove = mpu3050_remove, .id_table = mpu3050_ids, }; module_i2c_driver(mpu3050_i2c_driver);”h]”hX?static const struct acpi_device_id mpu3050_acpi_match[] = { { "MPU3050", 0 }, { } }; MODULE_DEVICE_TABLE(acpi, mpu3050_acpi_match); static struct i2c_driver mpu3050_i2c_driver = { .driver = { .name = "mpu3050", .pm = &mpu3050_pm, .of_match_table = mpu3050_of_match, .acpi_match_table = mpu3050_acpi_match, }, .probe = mpu3050_probe, .remove = mpu3050_remove, .id_table = mpu3050_ids, }; module_i2c_driver(mpu3050_i2c_driver);”…”�”}”hjêsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´M8hj½h²hubeh}”(h]”Œi2c-serial-bus-support”ah ]”h"]”Œi2c serial bus support”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M.ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒReference to PWM device”h]”hŒReference to PWM device”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´MLubhÞ)�”}”(hŒ¨Sometimes a device can be a consumer of PWM channel. Obviously OS would like to know which one. To provide this mapping the special property has been introduced, i.e.::”h]”hŒ§Sometimes a device can be a consumer of PWM channel. Obviously OS would like to know which one. To provide this mapping the special property has been introduced, i.e.:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MNhjh²hubj¬)�”}”(hXNDevice (DEV) { Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "compatible", Package () { "pwm-leds" } }, Package () { "label", "alarm-led" }, Package () { "pwms", Package () { "\\_SB.PCI0.PWM", // 0, // 600000000, // 0, // } } } }) ... }”h]”hXNDevice (DEV) { Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "compatible", Package () { "pwm-leds" } }, Package () { "label", "alarm-led" }, Package () { "pwms", Package () { "\\_SB.PCI0.PWM", // 0, // 600000000, // 0, // } } } }) ... }”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´MRhjh²hubhÞ)�”}”(hŒ¼In the above example the PWM-based LED driver references to the PWM channel 0 of \_SB.PCI0.PWM device with initial period setting equal to 600 ms (note that value is given in nanoseconds).”h]”hŒ¼In the above example the PWM-based LED driver references to the PWM channel 0 of _SB.PCI0.PWM device with initial period setting equal to 600 ms (note that value is given in nanoseconds).”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mghjh²hubeh}”(h]”Œreference-to-pwm-device”ah ]”h"]”Œreference to pwm device”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MLubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ GPIO support”h]”hŒ GPIO support”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjCh²hh³hÇh´MlubhÞ)�”}”(hXACPI 5 introduced two new resources to describe GPIO connections: GpioIo and GpioInt. These resources can be used to pass GPIO numbers used by the device to the driver. ACPI 5.1 extended this with _DSD (Device Specific Data) which made it possible to name the GPIOs among other things.”h]”hXACPI 5 introduced two new resources to describe GPIO connections: GpioIo and GpioInt. These resources can be used to pass GPIO numbers used by the device to the driver. ACPI 5.1 extended this with _DSD (Device Specific Data) which made it possible to name the GPIOs among other things.”…”�”}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MnhjCh²hubhÞ)�”}”(hŒ For example::”h]”hŒ For example:”…”�”}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MshjCh²hubj¬)�”}”(hX Device (DEV) { Method (_CRS, 0, NotSerialized) { Name (SBUF, ResourceTemplate() { // Used to power on/off the device GpioIo (Exclusive, PullNone, 0, 0, IoRestrictionOutputOnly, "\\_SB.PCI0.GPI0", 0, ResourceConsumer) { 85 } // Interrupt for the device GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0, "\\_SB.PCI0.GPI0", 0, ResourceConsumer) { 88 } } Return (SBUF) } // ACPI 5.1 _DSD used for naming the GPIOs Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "power-gpios", Package () { ^DEV, 0, 0, 0 } }, Package () { "irq-gpios", Package () { ^DEV, 1, 0, 0 } }, } }) ... }”h]”hX Device (DEV) { Method (_CRS, 0, NotSerialized) { Name (SBUF, ResourceTemplate() { // Used to power on/off the device GpioIo (Exclusive, PullNone, 0, 0, IoRestrictionOutputOnly, "\\_SB.PCI0.GPI0", 0, ResourceConsumer) { 85 } // Interrupt for the device GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0, "\\_SB.PCI0.GPI0", 0, ResourceConsumer) { 88 } } Return (SBUF) } // ACPI 5.1 _DSD used for naming the GPIOs Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "power-gpios", Package () { ^DEV, 0, 0, 0 } }, Package () { "irq-gpios", Package () { ^DEV, 1, 0, 0 } }, } }) ... }”…”�”}”hjpsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´MuhjCh²hubhÞ)�”}”(hŒ×These GPIO numbers are controller relative and path "\\_SB.PCI0.GPI0" specifies the path to the controller. In order to use these GPIOs in Linux we need to translate them to the corresponding Linux GPIO descriptors.”h]”hŒÛThese GPIO numbers are controller relative and path “\_SB.PCI0.GPI0â€� specifies the path to the controller. In order to use these GPIOs in Linux we need to translate them to the corresponding Linux GPIO descriptors.”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M”hjCh²hubhÞ)�”}”(hŒ^There is a standard GPIO API for that and it is documented in Documentation/admin-guide/gpio/.”h]”hŒ^There is a standard GPIO API for that and it is documented in Documentation/admin-guide/gpio/.”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M˜hjCh²hubhÞ)�”}”(hŒ^In the above example we can get the corresponding two GPIO descriptors with a code like this::”h]”hŒ]In the above example we can get the corresponding two GPIO descriptors with a code like this:”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M›hjCh²hubj¬)�”}”(hX'#include ... struct gpio_desc *irq_desc, *power_desc; irq_desc = gpiod_get(dev, "irq"); if (IS_ERR(irq_desc)) /* handle error */ power_desc = gpiod_get(dev, "power"); if (IS_ERR(power_desc)) /* handle error */ /* Now we can use the GPIO descriptors */”h]”hX'#include ... struct gpio_desc *irq_desc, *power_desc; irq_desc = gpiod_get(dev, "irq"); if (IS_ERR(irq_desc)) /* handle error */ power_desc = gpiod_get(dev, "power"); if (IS_ERR(power_desc)) /* handle error */ /* Now we can use the GPIO descriptors */”…”�”}”hj¨sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´MžhjCh²hubhÞ)�”}”(hŒlThere are also devm_* versions of these functions which release the descriptors once the device is released.”h]”hŒlThere are also devm_* versions of these functions which release the descriptors once the device is released.”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M­hjCh²hubhÞ)�”}”(hŒwSee Documentation/firmware-guide/acpi/gpio-properties.rst for more information about the _DSD binding related to GPIOs.”h]”hŒwSee Documentation/firmware-guide/acpi/gpio-properties.rst for more information about the _DSD binding related to GPIOs.”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M°hjCh²hubeh}”(h]”Œ gpio-support”ah ]”h"]”Œ gpio support”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MlubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒRS-485 support”h]”hŒRS-485 support”…”�”}”(hjÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÚh²hh³hÇh´M´ubhÞ)�”}”(hŒSACPI _DSD (Device Specific Data) can be used to describe RS-485 capability of UART.”h]”hŒSACPI _DSD (Device Specific Data) can be used to describe RS-485 capability of UART.”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¶hjÚh²hubhÞ)�”}”(hŒ For example::”h]”hŒ For example:”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¹hjÚh²hubj¬)�”}”(hX×Device (DEV) { ... // ACPI 5.1 _DSD used for RS-485 capabilities Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () {"rs485-rts-active-low", Zero}, Package () {"rs485-rx-active-high", Zero}, Package () {"rs485-rx-during-tx", Zero}, } }) ...”h]”hX×Device (DEV) { ... // ACPI 5.1 _DSD used for RS-485 capabilities Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () {"rs485-rts-active-low", Zero}, Package () {"rs485-rx-active-high", Zero}, Package () {"rs485-rx-during-tx", Zero}, } }) ...”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´M»hjÚh²hubeh}”(h]”Œrs-485-support”ah ]”h"]”Œrs-485 support”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M´ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ MFD devices”h]”hŒ MFD devices”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´MÍubhÞ)�”}”(hŒóThe MFD devices register their children as platform devices. For the child devices there needs to be an ACPI handle that they can use to reference parts of the ACPI namespace that relate to them. In the Linux MFD subsystem we provide two ways:”h]”hŒóThe MFD devices register their children as platform devices. For the child devices there needs to be an ACPI handle that they can use to reference parts of the ACPI namespace that relate to them. In the Linux MFD subsystem we provide two ways:”…”�”}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÏhjh²hubj )�”}”(hŒc- The children share the parent ACPI handle. - The MFD cell can specify the ACPI id of the device. ”h]”j)�”}”(hhh]”(j)�”}”(hŒ*The children share the parent ACPI handle.”h]”hÞ)�”}”(hjEh]”hŒ*The children share the parent ACPI handle.”…”�”}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÔhjCubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj@ubj)�”}”(hŒ4The MFD cell can specify the ACPI id of the device. ”h]”hÞ)�”}”(hŒ3The MFD cell can specify the ACPI id of the device.”h]”hŒ3The MFD cell can specify the ACPI id of the device.”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÕhjZubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj@ubeh}”(h]”h ]”h"]”h$]”h&]”jLjMuh1jh³hÇh´MÔhj<ubah}”(h]”h ]”h"]”h$]”h&]”uh1j h³hÇh´MÔhjh²hubhÞ)�”}”(hŒ¥For the first case, the MFD drivers do not need to do anything. The resulting child platform device will have its ACPI_COMPANION() set to point to the parent device.”h]”hŒ¥For the first case, the MFD drivers do not need to do anything. The resulting child platform device will have its ACPI_COMPANION() set to point to the parent device.”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M×hjh²hubhÞ)�”}”(hŒpIf the ACPI namespace has a device that we can match using an ACPI id or ACPI adr, the cell should be set like::”h]”hŒoIf the ACPI namespace has a device that we can match using an ACPI id or ACPI adr, the cell should be set like:”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÛhjh²hubj¬)�”}”(hX0static struct mfd_cell_acpi_match my_subdevice_cell_acpi_match = { .pnpid = "XYZ0001", .adr = 0, }; static struct mfd_cell my_subdevice_cell = { .name = "my_subdevice", /* set the resources relative to the parent */ .acpi_match = &my_subdevice_cell_acpi_match, };”h]”hX0static struct mfd_cell_acpi_match my_subdevice_cell_acpi_match = { .pnpid = "XYZ0001", .adr = 0, }; static struct mfd_cell my_subdevice_cell = { .name = "my_subdevice", /* set the resources relative to the parent */ .acpi_match = &my_subdevice_cell_acpi_match, };”…”�”}”hjšsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´MÞhjh²hubhÞ)�”}”(hŒ³The ACPI id "XYZ0001" is then used to lookup an ACPI device directly under the MFD device and if found, that ACPI companion device is bound to the resulting child platform device.”h]”hŒ·The ACPI id “XYZ0001â€� is then used to lookup an ACPI device directly under the MFD device and if found, that ACPI companion device is bound to the resulting child platform device.”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Méhjh²hubeh}”(h]”Œ mfd-devices”ah ]”h"]”Œ mfd devices”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MÍubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ$Device Tree namespace link device ID”h]”hŒ$Device Tree namespace link device ID”…”�”}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¾h²hh³hÇh´MîubhÞ)�”}”(hXµThe Device Tree protocol uses device identification based on the "compatible" property whose value is a string or an array of strings recognized as device identifiers by drivers and the driver core. The set of all those strings may be regarded as a device identification namespace analogous to the ACPI/PNP device ID namespace. Consequently, in principle it should not be necessary to allocate a new (and arguably redundant) ACPI/PNP device ID for a devices with an existing identification string in the Device Tree (DT) namespace, especially if that ID is only needed to indicate that a given device is compatible with another one, presumably having a matching driver in the kernel already.”h]”hX¹The Device Tree protocol uses device identification based on the “compatibleâ€� property whose value is a string or an array of strings recognized as device identifiers by drivers and the driver core. The set of all those strings may be regarded as a device identification namespace analogous to the ACPI/PNP device ID namespace. Consequently, in principle it should not be necessary to allocate a new (and arguably redundant) ACPI/PNP device ID for a devices with an existing identification string in the Device Tree (DT) namespace, especially if that ID is only needed to indicate that a given device is compatible with another one, presumably having a matching driver in the kernel already.”…”�”}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mðhj¾h²hubhÞ)�”}”(hXyIn ACPI, the device identification object called _CID (Compatible ID) is used to list the IDs of devices the given one is compatible with, but those IDs must belong to one of the namespaces prescribed by the ACPI specification (see Section 6.1.2 of ACPI 6.0 for details) and the DT namespace is not one of them. Moreover, the specification mandates that either a _HID or an _ADR identification object be present for all ACPI objects representing devices (Section 6.1 of ACPI 6.0). For non-enumerable bus types that object must be _HID and its value must be a device ID from one of the namespaces prescribed by the specification too.”h]”hXyIn ACPI, the device identification object called _CID (Compatible ID) is used to list the IDs of devices the given one is compatible with, but those IDs must belong to one of the namespaces prescribed by the ACPI specification (see Section 6.1.2 of ACPI 6.0 for details) and the DT namespace is not one of them. Moreover, the specification mandates that either a _HID or an _ADR identification object be present for all ACPI objects representing devices (Section 6.1 of ACPI 6.0). For non-enumerable bus types that object must be _HID and its value must be a device ID from one of the namespaces prescribed by the specification too.”…”�”}”(hjÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Múhj¾h²hubhÞ)�”}”(hXüThe special DT namespace link device ID, PRP0001, provides a means to use the existing DT-compatible device identification in ACPI and to satisfy the above requirements following from the ACPI specification at the same time. Namely, if PRP0001 is returned by _HID, the ACPI subsystem will look for the "compatible" property in the device object's _DSD and will use the value of that property to identify the corresponding device in analogy with the original DT device identification algorithm. If the "compatible" property is not present or its value is not valid, the device will not be enumerated by the ACPI subsystem. Otherwise, it will be enumerated automatically as a platform device (except when an I2C or SPI link from the device to its parent is present, in which case the ACPI core will leave the device enumeration to the parent's driver) and the identification strings from the "compatible" property value will be used to find a driver for the device along with the device IDs listed by _CID (if present).”h]”hX The special DT namespace link device ID, PRP0001, provides a means to use the existing DT-compatible device identification in ACPI and to satisfy the above requirements following from the ACPI specification at the same time. Namely, if PRP0001 is returned by _HID, the ACPI subsystem will look for the “compatibleâ€� property in the device object’s _DSD and will use the value of that property to identify the corresponding device in analogy with the original DT device identification algorithm. If the “compatibleâ€� property is not present or its value is not valid, the device will not be enumerated by the ACPI subsystem. Otherwise, it will be enumerated automatically as a platform device (except when an I2C or SPI link from the device to its parent is present, in which case the ACPI core will leave the device enumeration to the parent’s driver) and the identification strings from the “compatibleâ€� property value will be used to find a driver for the device along with the device IDs listed by _CID (if present).”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¾h²hubhÞ)�”}”(hXhAnalogously, if PRP0001 is present in the list of device IDs returned by _CID, the identification strings listed by the "compatible" property value (if present and valid) will be used to look for a driver matching the device, but in that case their relative priority with respect to the other device IDs listed by _HID and _CID depends on the position of PRP0001 in the _CID return package. Specifically, the device IDs returned by _HID and preceding PRP0001 in the _CID return package will be checked first. Also in that case the bus type the device will be enumerated to depends on the device ID returned by _HID.”h]”hXlAnalogously, if PRP0001 is present in the list of device IDs returned by _CID, the identification strings listed by the “compatibleâ€� property value (if present and valid) will be used to look for a driver matching the device, but in that case their relative priority with respect to the other device IDs listed by _HID and _CID depends on the position of PRP0001 in the _CID return package. Specifically, the device IDs returned by _HID and preceding PRP0001 in the _CID return package will be checked first. Also in that case the bus type the device will be enumerated to depends on the device ID returned by _HID.”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¾h²hubhÞ)�”}”(hŒ§For example, the following ACPI sample might be used to enumerate an lm75-type I2C temperature sensor and match it to the driver using the Device Tree namespace link::”h]”hŒ¦For example, the following ACPI sample might be used to enumerate an lm75-type I2C temperature sensor and match it to the driver using the Device Tree namespace link:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mhj¾h²hubj¬)�”}”(hX°Device (TMP0) { Name (_HID, "PRP0001") Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "compatible", "ti,tmp75" }, } }) Method (_CRS, 0, Serialized) { Name (SBUF, ResourceTemplate () { I2cSerialBusV2 (0x48, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.I2C1", 0x00, ResourceConsumer, , Exclusive,) }) Return (SBUF) } }”h]”hX°Device (TMP0) { Name (_HID, "PRP0001") Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "compatible", "ti,tmp75" }, } }) Method (_CRS, 0, Serialized) { Name (SBUF, ResourceTemplate () { I2cSerialBusV2 (0x48, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.I2C1", 0x00, ResourceConsumer, , Exclusive,) }) Return (SBUF) } }”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´Mhj¾h²hubhÞ)�”}”(hXzIt is valid to define device objects with a _HID returning PRP0001 and without the "compatible" property in the _DSD or a _CID as long as one of their ancestors provides a _DSD with a valid "compatible" property. Such device objects are then simply regarded as additional "blocks" providing hierarchical configuration information to the driver of the composite ancestor device.”h]”hX†It is valid to define device objects with a _HID returning PRP0001 and without the “compatibleâ€� property in the _DSD or a _CID as long as one of their ancestors provides a _DSD with a valid “compatibleâ€� property. Such device objects are then simply regarded as additional “blocksâ€� providing hierarchical configuration information to the driver of the composite ancestor device.”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M5hj¾h²hubhÞ)�”}”(hX©However, PRP0001 can only be returned from either _HID or _CID of a device object if all of the properties returned by the _DSD associated with it (either the _DSD of the device object itself or the _DSD of its ancestor in the "composite device" case described above) can be used in the ACPI environment. Otherwise, the _DSD itself is regarded as invalid and therefore the "compatible" property returned by it is meaningless.”h]”hX±However, PRP0001 can only be returned from either _HID or _CID of a device object if all of the properties returned by the _DSD associated with it (either the _DSD of the device object itself or the _DSD of its ancestor in the “composite deviceâ€� case described above) can be used in the ACPI environment. Otherwise, the _DSD itself is regarded as invalid and therefore the “compatibleâ€� property returned by it is meaningless.”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M;hj¾h²hubhÞ)�”}”(hŒYRefer to Documentation/firmware-guide/acpi/DSD-properties-rules.rst for more information.”h]”hŒYRefer to Documentation/firmware-guide/acpi/DSD-properties-rules.rst for more information.”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MBhj¾h²hubeh}”(h]”Œ$device-tree-namespace-link-device-id”ah ]”h"]”Œ$device tree namespace link device id”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MîubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒPCI hierarchy representation”h]”hŒPCI hierarchy representation”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjUh²hh³hÇh´MFubhÞ)�”}”(hŒ\Sometimes it could be useful to enumerate a PCI device, knowing its position on the PCI bus.”h]”hŒ\Sometimes it could be useful to enumerate a PCI device, knowing its position on the PCI bus.”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MHhjUh²hubhÞ)�”}”(hŒûFor example, some systems use PCI devices soldered directly on the mother board, in a fixed position (ethernet, Wi-Fi, serial ports, etc.). In this conditions it is possible to refer to these PCI devices knowing their position on the PCI bus topology.”h]”hŒûFor example, some systems use PCI devices soldered directly on the mother board, in a fixed position (ethernet, Wi-Fi, serial ports, etc.). In this conditions it is possible to refer to these PCI devices knowing their position on the PCI bus topology.”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MKhjUh²hubhÞ)�”}”(hŒ¶To identify a PCI device, a complete hierarchical description is required, from the chipset root port to the final device, through all the intermediate bridges/switches of the board.”h]”hŒ¶To identify a PCI device, a complete hierarchical description is required, from the chipset root port to the final device, through all the intermediate bridges/switches of the board.”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MPhjUh²hubhÞ)�”}”(hXFor example, let's assume we have a system with a PCIe serial port, an Exar XR17V3521, soldered on the main board. This UART chip also includes 16 GPIOs and we want to add the property ``gpio-line-names`` [1]_ to these pins. In this case, the ``lspci`` output for this component is::”h]”(hŒ»For example, let’s assume we have a system with a PCIe serial port, an Exar XR17V3521, soldered on the main board. This UART chip also includes 16 GPIOs and we want to add the property ”…”�”}”(hj�h²hh³Nh´NubhŒliteral”“”)�”}”(hŒ``gpio-line-names``”h]”hŒgpio-line-names”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j˜hj�ubhŒ ”…”�”}”(hj�h²hh³Nh´NubhŒfootnote_reference”“”)�”}”(hŒ[1]_”h]”hŒ1”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”Œid1”ah ]”h"]”h$]”h&]”Œrefid”Œid4”Œdocname”Œfirmware-guide/acpi/enumeration”uh1j¬hj�Œresolved”KubhŒ" to these pins. In this case, the ”…”�”}”(hj�h²hh³Nh´Nubj™)�”}”(hŒ ``lspci``”h]”hŒlspci”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j˜hj�ubhŒ output for this component is:”…”�”}”(hj�h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MThjUh²hubj¬)�”}”(hŒG07:00.0 Serial controller: Exar Corp. XR17V3521 Dual PCIe UART (rev 03)”h]”hŒG07:00.0 Serial controller: Exar Corp. XR17V3521 Dual PCIe UART (rev 03)”…”�”}”hjÞsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´MYhjUh²hubhÞ)�”}”(hŒ?The complete ``lspci`` output (manually reduced in length) is::”h]”(hŒ The complete ”…”�”}”(hjìh²hh³Nh´Nubj™)�”}”(hŒ ``lspci``”h]”hŒlspci”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j˜hjìubhŒ( output (manually reduced in length) is:”…”�”}”(hjìh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M[hjUh²hubj¬)�”}”(hXÕ00:00.0 Host bridge: Intel Corp... Host Bridge (rev 0d) ... 00:13.0 PCI bridge: Intel Corp... PCI Express Port A #1 (rev fd) 00:13.1 PCI bridge: Intel Corp... PCI Express Port A #2 (rev fd) 00:13.2 PCI bridge: Intel Corp... PCI Express Port A #3 (rev fd) 00:14.0 PCI bridge: Intel Corp... PCI Express Port B #1 (rev fd) 00:14.1 PCI bridge: Intel Corp... PCI Express Port B #2 (rev fd) ... 05:00.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 06:01.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 06:02.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 06:03.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 07:00.0 Serial controller: Exar Corp. XR17V3521 Dual PCIe UART (rev 03) <-- Exar ...”h]”hXÕ00:00.0 Host bridge: Intel Corp... Host Bridge (rev 0d) ... 00:13.0 PCI bridge: Intel Corp... PCI Express Port A #1 (rev fd) 00:13.1 PCI bridge: Intel Corp... PCI Express Port A #2 (rev fd) 00:13.2 PCI bridge: Intel Corp... PCI Express Port A #3 (rev fd) 00:14.0 PCI bridge: Intel Corp... PCI Express Port B #1 (rev fd) 00:14.1 PCI bridge: Intel Corp... PCI Express Port B #2 (rev fd) ... 05:00.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 06:01.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 06:02.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 06:03.0 PCI bridge: Pericom Semiconductor Device 2404 (rev 05) 07:00.0 Serial controller: Exar Corp. XR17V3521 Dual PCIe UART (rev 03) <-- Exar ...”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´M]hjUh²hubhÞ)�”}”(hŒThe bus topology is::”h]”hŒThe bus topology is:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MlhjUh²hubj¬)�”}”(hXw-[0000:00]-+-00.0 ... +-13.0-[01]----00.0 +-13.1-[02]----00.0 +-13.2-[03]-- +-14.0-[04]----00.0 +-14.1-[05-09]----00.0-[06-09]--+-01.0-[07]----00.0 <-- Exar | +-02.0-[08]----00.0 | \-03.0-[09]-- ... \-1f.1”h]”hXw-[0000:00]-+-00.0 ... +-13.0-[01]----00.0 +-13.1-[02]----00.0 +-13.2-[03]-- +-14.0-[04]----00.0 +-14.1-[05-09]----00.0-[06-09]--+-01.0-[07]----00.0 <-- Exar | +-02.0-[08]----00.0 | \-03.0-[09]-- ... \-1f.1”…”�”}”hj(sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´MnhjUh²hubhÞ)�”}”(hŒŒTo describe this Exar device on the PCI bus, we must start from the ACPI name of the chipset bridge (also called "root port") with address::”h]”hŒ�To describe this Exar device on the PCI bus, we must start from the ACPI name of the chipset bridge (also called “root portâ€�) with address:”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MzhjUh²hubj¬)�”}”(hŒ!Bus: 0 - Device: 14 - Function: 1”h]”hŒ!Bus: 0 - Device: 14 - Function: 1”…”�”}”hjDsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´M}hjUh²hubhÞ)�”}”(hŒwTo find this information, it is necessary to disassemble the BIOS ACPI tables, in particular the DSDT (see also [2]_)::”h]”(hŒpTo find this information, it is necessary to disassemble the BIOS ACPI tables, in particular the DSDT (see also ”…”�”}”(hjRh²hh³Nh´Nubj­)�”}”(hŒ[2]_”h]”hŒ2”…”�”}”(hjZh²hh³Nh´Nubah}”(h]”Œid2”ah ]”h"]”h$]”h&]”j½Œid5”j¿jÀuh1j¬hjRjÁKubhŒ):”…”�”}”(hjRh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjUh²hubj¬)�”}”(hŒcmkdir ~/tables/ cd ~/tables/ acpidump > acpidump acpixtract -a acpidump iasl -e ssdt?.* -d dsdt.dat”h]”hŒcmkdir ~/tables/ cd ~/tables/ acpidump > acpidump acpixtract -a acpidump iasl -e ssdt?.* -d dsdt.dat”…”�”}”hjtsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´M‚hjUh²hubhÞ)�”}”(hŒ¡Now, in the dsdt.dsl, we have to search the device whose address is related to 0x14 (device) and 0x01 (function). In this case we can find the following device::”h]”hŒ Now, in the dsdt.dsl, we have to search the device whose address is related to 0x14 (device) and 0x01 (function). In this case we can find the following device:”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MˆhjUh²hubj¬)�”}”(hXùScope (_SB.PCI0) { ... other definitions follow ... Device (RP02) { Method (_ADR, 0, NotSerialized) // _ADR: Address { If ((RPA2 != Zero)) { Return (RPA2) /* \RPA2 */ } Else { Return (0x00140001) } } ... other definitions follow ...”h]”hXùScope (_SB.PCI0) { ... other definitions follow ... Device (RP02) { Method (_ADR, 0, NotSerialized) // _ADR: Address { If ((RPA2 != Zero)) { Return (RPA2) /* \RPA2 */ } Else { Return (0x00140001) } } ... other definitions follow ...”…”�”}”hj�sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´MŒhjUh²hubhÞ)�”}”(hX;and the _ADR method [3]_ returns exactly the device/function couple that we are looking for. With this information and analyzing the above ``lspci`` output (both the devices list and the devices tree), we can write the following ACPI description for the Exar PCIe UART, also adding the list of its GPIO line names::”h]”(hŒand the _ADR method ”…”�”}”(hjžh²hh³Nh´Nubj­)�”}”(hŒ[3]_”h]”hŒ3”…”�”}”(hj¦h²hh³Nh´Nubah}”(h]”Œid3”ah ]”h"]”h$]”h&]”j½Œid6”j¿jÀuh1j¬hjžjÁKubhŒs returns exactly the device/function couple that we are looking for. With this information and analyzing the above ”…”�”}”(hjžh²hh³Nh´Nubj™)�”}”(hŒ ``lspci``”h]”hŒlspci”…”�”}”(hjº•$&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j˜hjžubhŒ¦ output (both the devices list and the devices tree), we can write the following ACPI description for the Exar PCIe UART, also adding the list of its GPIO line names:”…”�”}”(hjžh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MžhjUh²hubj¬)�”}”(hX�Scope (_SB.PCI0.RP02) { Device (BRG1) //Bridge { Name (_ADR, 0x0000) Device (BRG2) //Bridge { Name (_ADR, 0x00010000) Device (EXAR) { Name (_ADR, 0x0000) Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "gpio-line-names", Package () { "mode_232", "mode_422", "mode_485", "misc_1", "misc_2", "misc_3", "", "", "aux_1", "aux_2", "aux_3", } } } }) } } } }”h]”hX�Scope (_SB.PCI0.RP02) { Device (BRG1) //Bridge { Name (_ADR, 0x0000) Device (BRG2) //Bridge { Name (_ADR, 0x00010000) Device (EXAR) { Name (_ADR, 0x0000) Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () { "gpio-line-names", Package () { "mode_232", "mode_422", "mode_485", "misc_1", "misc_2", "misc_3", "", "", "aux_1", "aux_2", "aux_3", } } } }) } } } }”…”�”}”hjÒsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j«h³hÇh´M¤hjUh²hubhÞ)�”}”(hŒÚThe location "_SB.PCI0.RP02" is obtained by the above investigation in the dsdt.dsl table, whereas the device names "BRG1", "BRG2" and "EXAR" are created analyzing the position of the Exar UART in the PCI bus topology.”h]”hŒêThe location “_SB.PCI0.RP02â€� is obtained by the above investigation in the dsdt.dsl table, whereas the device names “BRG1â€�, “BRG2â€� and “EXARâ€� are created analyzing the position of the Exar UART in the PCI bus topology.”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÐhjUh²hubeh}”(h]”Œpci-hierarchy-representation”ah ]”h"]”Œpci hierarchy representation”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MFubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ References”h]”hŒ References”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjöh²hh³hÇh´MÕubhŒfootnote”“”)�”}”(hŒ6Documentation/firmware-guide/acpi/gpio-properties.rst ”h]”(hŒlabel”“”)�”}”(hŒ1”h]”hŒ1”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj ubhÞ)�”}”(hŒ5Documentation/firmware-guide/acpi/gpio-properties.rst”h]”hŒ5Documentation/firmware-guide/acpi/gpio-properties.rst”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M×hj ubeh}”(h]”j¾ah ]”h"]”Œ1”ah$]”h&]”j¸aj¿jÀuh1jh³hÇh´M×hjöh²hjÁKubj)�”}”(hŒ9Documentation/admin-guide/acpi/initrd_table_override.rst ”h]”(j)�”}”(hŒ2”h]”hŒ2”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj2ubhÞ)�”}”(hŒ8Documentation/admin-guide/acpi/initrd_table_override.rst”h]”hŒ8Documentation/admin-guide/acpi/initrd_table_override.rst”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÙhj2ubeh}”(h]”jiah ]”h"]”Œ2”ah$]”h&]”jdaj¿jÀuh1jh³hÇh´MÙhjöh²hjÁKubj)�”}”(hŒ™ACPI Specifications, Version 6.3 - Paragraph 6.1.1 _ADR Address) https://uefi.org/sites/default/files/resources/ACPI_6_3_May16.pdf, referenced 2020-11-18”h]”(j)�”}”(hŒ3”h]”hŒ3”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjYubhÞ)�”}”(hŒ™ACPI Specifications, Version 6.3 - Paragraph 6.1.1 _ADR Address) https://uefi.org/sites/default/files/resources/ACPI_6_3_May16.pdf, referenced 2020-11-18”h]”(hŒAACPI Specifications, Version 6.3 - Paragraph 6.1.1 _ADR Address) ”…”�”}”(hjkh²hh³Nh´NubhŒ reference”“”)�”}”(hŒAhttps://uefi.org/sites/default/files/resources/ACPI_6_3_May16.pdf”h]”hŒAhttps://uefi.org/sites/default/files/resources/ACPI_6_3_May16.pdf”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jwuh1jshjkubhŒ, referenced 2020-11-18”…”�”}”(hjkh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÛhjYubeh}”(h]”jµah ]”h"]”Œ3”ah$]”h&]”j°aj¿jÀuh1jh³hÇh´MÛhjöh²hjÁKubeh}”(h]”Œ references”ah ]”h"]”Œ references”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MÕubeh}”(h]”Œacpi-based-device-enumeration”ah ]”h"]”Œacpi based device enumeration”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”Œentry”Œ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”jÈŒ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”}”(Œ1”]”j®aŒ2”]”jZaŒ3”]”j¦auŒrefids”}”Œnameids”}”(j¢jŸjÎjËjjj¶j³j#j jºj·jýjúj@j=j×jÔjjj»j¸jRjOjójðjšj—j/j¾jVjij’jµuŒ nametypes”}”(j¢‰jΉj‰j¶‰j#‰jº‰jý‰j@‰j׉j‰j»‰jR‰jó‰jš‰j/ˆjVˆj’ˆuh}”(jŸhÊjËj~jjÑj³j"j j¹j·j&júj½j=jjÔjCjjÚj¸jjOj¾jðjUj¸j®jdjZj°j¦j—jöj¾j jij2jµjYuŒ footnote_refs”}”(j ]”j®aj ]”jZaj ]”j¦auŒ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”(j j2jYeŒ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”jÖKs…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.