coreboot/src/include/acpi
Karthikeyan Ramasubramanian 685dbe14e9 acpi/device: Add GPIO binding property for an array of GPIOs
This change is required for use-cases like GPIO based I2C multiplexer
where more than one GPIOs are used as select lines.

BUG=b:169444894
TEST=Build and boot waddledee to OS. Ensure that the GPIO bindings for
an array of GPIOs are added to the ACPI table as follows:
Device (MUX0)
{
    ...
    Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
    {
        GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
                "\\_SB.PCI0.GPIO", 0x00, ResourceConsumer, ,
                )
        {   // Pin list
            0x0125
        }
        GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
                "\\_SB.PCI0.GPIO", 0x00, ResourceConsumer, ,
                )
        {   // Pin list
            0x0126
        }
    })
    Name (_DSD, Package (0x02)  // _DSD: Device-Specific Data
    {
        ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
                Package (0x01)
        {
            Package (0x02)
            {
                "mux-gpios",
                Package (0x08)
                {
                    \_SB.PCI0.I2C3.MUX0,
                    Zero,
                    Zero,
                    Zero,
                    \_SB.PCI0.I2C3.MUX0,
                    One,
                    Zero,
                    Zero
                }
            }
        }
    })
}

Change-Id: I7c6cc36b1bfca2d48c84f169e6b43fd4be8ba330
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46056
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2020-10-14 05:43:00 +00:00
..
acpi.h include/acpi/acpi.h: Add ACPI_DSDT_REV_1 macro 2020-10-13 17:34:11 +00:00
acpi_device.h acpi/device: Add GPIO binding property for an array of GPIOs 2020-10-14 05:43:00 +00:00
acpi_gnvs.h ACPI: Drop typedef global_nvs_t 2020-06-30 09:19:10 +00:00
acpi_ivrs.h soc/amd/acpi: Move ACPI IVRS generation to coreboot 2020-08-20 19:42:05 +00:00
acpi_pld.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
acpi_sata.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
acpi_soundwire.h acpi/soundwire: Add functions to generate SoundWire properties 2020-05-21 08:04:02 +00:00
acpigen.h acpi: Add SSDT pstate helper functions 2020-09-22 16:06:34 +00:00
acpigen_dptf.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
acpigen_dsm.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
acpigen_ps2_keybd.h src: Remove extra lines in license header 2020-07-26 20:57:18 +00:00
acpigen_usb.h acpi: Add new file for implementing Type-C Connector class 2020-05-28 23:54:43 +00:00