2 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
3 This program and the accompanying materials
4 are licensed and made available under the terms and conditions of the BSD License
5 which accompanies this distribution. The full text of the license may be found at
6 http://opensource.org/licenses/bsd-license.php
8 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 Name(_HID, "MSFT8000")
15 Name(_CID, "MSFT8000")
17 Name(_CRS, ResourceTemplate() {
19 SPISerialBus( // Pin 5, 7, 9 , 11 of JP1 for SIO_SPI
20 1, // Device selection
21 PolarityLow, // Device selection polarity
22 FourWireMode, // wiremode
24 ControllerInitiated, // slave mode
25 8000000, // Connection speed
26 ClockPolarityLow, // Clock polarity
27 ClockPhaseSecond, // clock phase
28 "\\_SB.SPI1", // ResourceSource: SPI bus controller name
29 0, // ResourceSourceIndex
30 ResourceConsumer, // Resource usage
31 JSPI, // DescriptorName: creates name for offset of resource descriptor
35 I2CSerialBus( // Pin 13, 15 of JP1, for SIO_I2C5 (signal)
36 0x00, // SlaveAddress: bus address (TBD)
37 , // SlaveMode: default to ControllerInitiated
38 400000, // ConnectionSpeed: in Hz
39 , // Addressing Mode: default to 7 bit
40 "\\_SB.I2C6", // ResourceSource: I2C bus controller name (For MinnowBoard Max, hardware I2C5(0-based) is reported as ACPI I2C6(1-based))
43 JI2C, // Descriptor Name: creates name for offset of resource descriptor
47 UARTSerialBus( // Pin 17, 19 of JP1, for SIO_UART2
48 115200, // InitialBaudRate: in bits ber second
49 , // BitsPerByte: default to 8 bits
50 , // StopBits: Defaults to one bit
51 0xfc, // LinesInUse: 8 1-bit flags to declare line enabled
52 , // IsBigEndian: default to LittleEndian
53 , // Parity: Defaults to no parity
54 , // FlowControl: Defaults to no flow control
55 32, // ReceiveBufferSize
56 32, // TransmitBufferSize
57 "\\_SB.URT2", // ResourceSource: UART bus controller name
60 UAR2, // DescriptorName: creates name for offset of resource descriptor
64 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO2",) {0} // Pin 21 of JP1 (GPIO_S5[00])
66 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO2",) {0}
69 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO2",) {1} // Pin 23 of JP1 (GPIO_S5[01])
71 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO2",) {1}
74 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO2",) {2} // Pin 25 of JP1 (GPIO_S5[02])
76 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO2",) {2}
79 UARTSerialBus( // Pin 6, 8, 10, 12 of JP1, for SIO_UART1
80 115200, // InitialBaudRate: in bits ber second
81 , // BitsPerByte: default to 8 bits
82 , // StopBits: Defaults to one bit
83 0xfc, // LinesInUse: 8 1-bit flags to declare line enabled
84 , // IsBigEndian: default to LittleEndian
85 , // Parity: Defaults to no parity
86 FlowControlHardware, // FlowControl: Defaults to no flow control
87 32, // ReceiveBufferSize
88 32, // TransmitBufferSize
89 "\\_SB.URT1", // ResourceSource: UART bus controller name
92 UAR1, // DescriptorName: creates name for offset of resource descriptor
96 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {62} // Pin 14 of JP1 (GPIO_SC[62])
98 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {62}
101 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {63} // Pin 16 of JP1 (GPIO_SC[63])
103 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {63}
106 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {65} // Pin 18 of JP1 (GPIO_SC[65])
108 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {65}
111 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {64} // Pin 20 of JP1 (GPIO_SC[64])
113 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {64}
116 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {94} // Pin 22 of JP1 (GPIO_SC[94])
118 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {94}
121 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {95} // Pin 24 of JP1 (GPIO_SC[95])
123 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {95}
126 GpioIo (Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO0",) {54} // Pin 26 of JP1 (GPIO_SC[54])
128 GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO0",) {54}
131 Name(_DSD, Package() {
132 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
133 Package(1) { // Just one Property for IOT (at this time)
134 Package(2) { //The
\93symbolic-identifiers
\94 property
135 "symbolic-identifiers",
136 Package() { //Contains all the <resource index, symbolic-identifier> pairs
140 3, 21, // Pin 21 of JP1 (GPIO_S5[00])
141 4, 21, // Pin 21 for separate resource.
142 5, 23, // Pin 23 of JP1 (GPIO_S5[01])
144 7, 25, // Pin 25 of JP1 (GPIO_S5[02])
147 10, 14, // Pin 14 of JP1 (GPIO_SC[62])
149 12, 16, // Pin 16 of JP1 (GPIO_SC[63])
151 14, 18, // Pin 18 of JP1 (GPIO_SC[65])
153 16, 20, // Pin 20 of JP1 (GPIO_SC[64])
155 18, 22, // Pin 22 of JP1 (GPIO_SC[94])
157 20, 24, // Pin 24 of JP1 (GPIO_SC[95])
159 22, 26, // Pin 26 of JP1 (GPIO_SC[54])
166 Method(_STA,0,Serialized) {
169 // Only report IoT virtual device when all pins' configuration follows MSFT's datasheet.
171 If (LEqual(IOT, 1)) {