public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [RFC] ACPI table HID/CID allocation
@ 2017-11-21  9:19 Udit Kumar
  2017-11-21  9:38 ` Ard Biesheuvel
  0 siblings, 1 reply; 21+ messages in thread
From: Udit Kumar @ 2017-11-21  9:19 UTC (permalink / raw)
  To: Ard Biesheuvel, Leif Lindholm; +Cc: edk2-devel@lists.01.org, Varun Sethi

Hi,

I am enabling ACPI on NXP platform , In order to do minimal changes in Linux driver for device-driver binding.

I want to use PRP0001 device as CID and HID as actual (NXP allocated HID).

So that Linux can bind with PRP0001 and  compatible field, where as other OS (Window etc) can rely on HID.

Below is sample, ACPI table for SPI controller and its slave device.



Hope this approach is ok ?



Thanks

Udit





Scope(_SB)

{

        Device(SPI0) {

                Name(_HID, "NXP0001")

                Name(_CID, "PRP0001")

                Name(_CRS, ResourceTemplate() {

                        }) // end of _CRS for i2c0 device

                Name (_DSD, Package () {

                        ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),

                                Package () {

                                Package() {"compatible", " fsl,ls2085a-dspi"},

                        }

                }) // end of DSD SPI device

                Device (EEP0) {

                        Name(_HID, " NXP0002")  //HID can be discussed with flash vendor

                        Name(_CID, "PRP0001") // m25p80 flash

                        Name(_CRS, ResourceTemplate()

                        {

                               SPISerialBus(....)

                        }) // ResourceTemplate()

                        Name (_DSD, Package () {

                                ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),

                                        Package () {

                                        Package() {"compatible", "st,m25p80"},

                        }

                } // End of e2prom device

        } // end of SPI device

}





^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-11-27 13:27 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-21  9:19 [RFC] ACPI table HID/CID allocation Udit Kumar
2017-11-21  9:38 ` Ard Biesheuvel
2017-11-21  9:59   ` Udit Kumar
2017-11-21 10:13     ` Ard Biesheuvel
2017-11-21 11:32       ` Udit Kumar
2017-11-21 12:29         ` Ard Biesheuvel
2017-11-21 13:24           ` Udit Kumar
2017-11-21 14:03             ` Ard Biesheuvel
2017-11-21 18:10               ` Udit Kumar
2017-11-22 11:30                 ` Daniel Thompson
2017-11-22 13:39                   ` Udit Kumar
2017-11-22 17:34                     ` Andrew Fish
2017-11-25 12:40                       ` Udit Kumar
2017-11-22 19:39                   ` Ard Biesheuvel
2017-11-22 20:11                     ` Daniel Thompson
2017-11-25 12:56                       ` Udit Kumar
2017-11-25 19:41                         ` Andrew Fish
2017-11-26  8:35                           ` Udit Kumar
2017-11-27 12:13                         ` Daniel Thompson
2017-11-27 13:31                           ` Udit Kumar
2017-11-25 12:47                     ` Udit Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox