coreboot/src/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.c acpi: Support MSDM table signature as SLIC 2020-10-13 10:16:22 +00:00
acpigen.c acpi: Add SSDT pstate helper functions 2020-09-22 16:06:34 +00:00
acpigen_dptf.c src/acpi: Add missing <{stdbool,stdint}.h> 2020-07-29 09:37:10 +00:00
acpigen_dsm.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
acpigen_ps2_keybd.c src/acpi: Add missing <{stdbool,stdint}.h> 2020-07-29 09:37:10 +00:00
acpigen_usb.c acpi: Add new file for implementing Type-C Connector class 2020-05-28 23:54:43 +00:00
chromeos-gnvs.c src: Remove unused 'include <types.h>' 2020-07-14 16:10:17 +00:00
device.c acpi/device: Add GPIO binding property for an array of GPIOs 2020-10-14 05:43:00 +00:00
gnvs.c ACPI: Add framework for GNVS initialisation 2020-06-24 11:46:26 +00:00
Kconfig ACPI: Replace smm_setup_structures() 2020-06-24 11:49:15 +00:00
Makefile.inc dptf: Add support for generation of Active Policies 2020-07-07 17:20:13 +00:00
pld.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sata.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
soundwire.c src/acpi/soundwire.c: Add missing <stddef.h> 2020-07-14 16:10:43 +00:00