2 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
3 SPDX-License-Identifier: BSD-2-Clause-Patent
11 Name(_CRS, ResourceTemplate() {
13 SPISerialBus( // Pin 5, 7, 9 , 11 of JP1 for SIO_SPI
14 1, // Device selection
15 PolarityLow, // Device selection polarity
16 FourWireMode, // wiremode
18 ControllerInitiated, // slave mode
19 8000000, // Connection speed
20 ClockPolarityLow, // Clock polarity
21 ClockPhaseSecond, // clock phase
22 "\\_SB.SPI1", // ResourceSource: SPI bus controller name
23 0, // ResourceSourceIndex
24 ResourceConsumer, // Resource usage
25 JSPI, // DescriptorName: creates name for offset of resource descriptor
29 I2CSerialBus( // Pin 13, 15 of JP1, for SIO_I2C5 (signal)
30 0x00, // SlaveAddress: bus address (TBD)
31 , // SlaveMode: default to ControllerInitiated
32 400000, // ConnectionSpeed: in Hz
33 , // Addressing Mode: default to 7 bit
34 "\\_SB.I2C6", // ResourceSource: I2C bus controller name (For MinnowBoard Max, hardware I2C5(0-based) is reported as ACPI I2C6(1-based))
37 JI2C, // Descriptor Name: creates name for offset of resource descriptor
41 UARTSerialBus( // Pin 17, 19 of JP1, for SIO_UART2
42 115200, // InitialBaudRate: in bits ber second
43 , // BitsPerByte: default to 8 bits
44 , // StopBits: Defaults to one bit
45 0xfc, // LinesInUse: 8 1-bit flags to declare line enabled
46 , // IsBigEndian: default to LittleEndian
47 , // Parity: Defaults to no parity
48 , // FlowControl: Defaults to no flow control
49 32, // ReceiveBufferSize
50 32, // TransmitBufferSize
51 "\\_SB.URT2", // ResourceSource: UART bus controller name
54 UAR2, // DescriptorName: creates name for offset of resource descriptor
58 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO2",) {0} // Pin 21 of JP1 (GPIO_S5[00])
60 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO2",) {0}
63 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO2",) {1} // Pin 23 of JP1 (GPIO_S5[01])
65 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO2",) {1}
68 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO2",) {2} // Pin 25 of JP1 (GPIO_S5[02])
70 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO2",) {2}
73 UARTSerialBus( // Pin 6, 8, 10, 12 of JP1, for SIO_UART1
74 115200, // InitialBaudRate: in bits ber second
75 , // BitsPerByte: default to 8 bits
76 , // StopBits: Defaults to one bit
77 0xfc, // LinesInUse: 8 1-bit flags to declare line enabled
78 , // IsBigEndian: default to LittleEndian
79 , // Parity: Defaults to no parity
80 FlowControlHardware, // FlowControl: Defaults to no flow control
81 32, // ReceiveBufferSize
82 32, // TransmitBufferSize
83 "\\_SB.URT1", // ResourceSource: UART bus controller name
86 UAR1, // DescriptorName: creates name for offset of resource descriptor
90 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {62} // Pin 14 of JP1 (GPIO_SC[62])
92 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {62}
95 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {63} // Pin 16 of JP1 (GPIO_SC[63])
97 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {63}
100 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {65} // Pin 18 of JP1 (GPIO_SC[65])
102 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {65}
105 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {64} // Pin 20 of JP1 (GPIO_SC[64])
107 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {64}
110 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {94} // Pin 22 of JP1 (GPIO_SC[94])
112 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {94}
115 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {95} // Pin 24 of JP1 (GPIO_SC[95])
117 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {95}
120 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {54} // Pin 26 of JP1 (GPIO_SC[54])
122 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {54}
125 Name(_DSD, Package() {
126 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
127 Package(1) { // Just one Property for IOT (at this time)
128 Package(2) { //The
\93symbolic-identifiers
\94 property
129 "symbolic-identifiers",
130 Package() { //Contains all the <resource index, symbolic-identifier> pairs
134 3, 21, // Pin 21 of JP1 (GPIO_S5[00])
135 4, 21, // Pin 21 for separate resource.
136 5, 23, // Pin 23 of JP1 (GPIO_S5[01])
138 7, 25, // Pin 25 of JP1 (GPIO_S5[02])
141 10, 14, // Pin 14 of JP1 (GPIO_SC[62])
143 12, 16, // Pin 16 of JP1 (GPIO_SC[63])
145 14, 18, // Pin 18 of JP1 (GPIO_SC[65])
147 16, 20, // Pin 20 of JP1 (GPIO_SC[64])
149 18, 22, // Pin 22 of JP1 (GPIO_SC[94])
151 20, 24, // Pin 24 of JP1 (GPIO_SC[95])
153 22, 26, // Pin 26 of JP1 (GPIO_SC[54])
160 Method(_STA,0,Serialized) {
163 // Only report IoT virtual device when all pins' configuration follows MSFT's datasheet.
165 If (LEqual(IOT, 1)) {