Angel Pons | 60ec365 | 2020-04-03 01:22:13 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 2 | |
| 3 | Scope (\_SB.PCI0.IPU0) |
| 4 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 5 | Name (_DSD, Package (0x02) /* _DSD: Device-Specific Data */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 6 | { |
| 7 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 8 | Package (0x02) |
| 9 | { |
| 10 | Package (0x02) |
| 11 | { |
| 12 | "port0", |
| 13 | "PRT0" |
| 14 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 15 | Package (0x02) |
| 16 | { |
| 17 | "port1", |
| 18 | "PRT1" |
| 19 | } |
| 20 | } |
| 21 | }) |
| 22 | |
| 23 | Name (PRT0, Package (0x04) |
| 24 | { |
| 25 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 26 | Package (0x01) |
| 27 | { |
| 28 | Package (0x02) |
| 29 | { |
| 30 | "port", |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame^] | 31 | 1 |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 32 | } |
| 33 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 34 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 35 | Package (0x01) |
| 36 | { |
| 37 | Package (0x02) |
| 38 | { |
| 39 | "endpoint0", |
| 40 | "EP00" |
| 41 | } |
| 42 | } |
| 43 | }) |
| 44 | |
| 45 | Name (PRT1, Package (0x04) |
| 46 | { |
| 47 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 48 | Package (0x01) |
| 49 | { |
| 50 | Package (0x02) |
| 51 | { |
| 52 | "port", |
| 53 | 2 |
| 54 | } |
| 55 | }, |
| 56 | |
| 57 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 58 | Package (0x01) |
| 59 | { |
| 60 | Package (0x02) |
| 61 | { |
| 62 | "endpoint0", |
| 63 | "EP10" |
| 64 | } |
| 65 | } |
| 66 | }) |
| 67 | } |
| 68 | |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 69 | Scope (\_SB.PCI0.IPU0) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 70 | { |
| 71 | Name (EP00, Package (0x02) |
| 72 | { |
| 73 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 74 | Package (0x04) |
| 75 | { |
| 76 | Package (0x02) |
| 77 | { |
| 78 | "endpoint", |
| 79 | Zero |
| 80 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 81 | Package (0x02) |
| 82 | { |
| 83 | "clock-lanes", |
| 84 | Zero |
| 85 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 86 | Package (0x02) |
| 87 | { |
| 88 | "data-lanes", |
| 89 | Package (0x04) |
| 90 | { |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame^] | 91 | 1, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 92 | 0x02, |
| 93 | 0x03, |
| 94 | 0x04 |
| 95 | } |
| 96 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 97 | Package (0x02) |
| 98 | { |
| 99 | "remote-endpoint", |
| 100 | Package (0x03) |
| 101 | { |
| 102 | ^I2C3.CAM0, |
| 103 | Zero, |
| 104 | Zero |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | }) |
| 109 | Name (EP10, Package (0x02) |
| 110 | { |
| 111 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 112 | Package (0x04) |
| 113 | { |
| 114 | Package (0x02) |
| 115 | { |
| 116 | "endpoint", |
| 117 | Zero |
| 118 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 119 | Package (0x02) |
| 120 | { |
| 121 | "clock-lanes", |
| 122 | Zero |
| 123 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 124 | Package (0x02) |
| 125 | { |
| 126 | "data-lanes", |
| 127 | Package (0x04) |
| 128 | { |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame^] | 129 | 1, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 130 | 0x02, |
| 131 | 0x03, |
| 132 | 0x04 |
| 133 | } |
| 134 | }, |
| 135 | |
| 136 | Package (0x02) |
| 137 | { |
| 138 | "remote-endpoint", |
| 139 | Package (0x03) |
| 140 | { |
| 141 | ^I2C5.CAM1, |
| 142 | Zero, |
| 143 | Zero |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | }) |
| 148 | } |
| 149 | |
| 150 | Scope (\_SB.PCI0.I2C3) |
| 151 | { |
| 152 | PowerResource (RCPR, 0x00, 0x0000) |
| 153 | { |
| 154 | Name (STA, Zero) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 155 | Method (_ON, 0, Serialized) /* Rear camera_ON_: Power On */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 156 | { |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 157 | If (STA == 0) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 158 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 159 | /* Enable IMG_CLK */ |
| 160 | MCON(0,1) /* Clock 0, 19.2MHz */ |
| 161 | |
| 162 | /* Pull RST low */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 163 | CTXS(GPP_C15) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 164 | |
| 165 | /* Pull PWREN high */ |
| 166 | STXS(GPP_B23) |
| 167 | Sleep(2) /* reset pulse width */ |
| 168 | |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 169 | /* Pull RST high */ |
| 170 | STXS(GPP_C15) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 171 | Sleep(1) /* t2 */ |
| 172 | |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 173 | STA = 1 |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 174 | } |
| 175 | } |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 176 | Method (_OFF, 0, Serialized) /* Rear camera _OFF: Power Off */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 177 | { |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 178 | If (STA == 1) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 179 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 180 | /* Disable IMG_CLK */ |
| 181 | Sleep(1) /* t0+t1 */ |
| 182 | MCOF(0) /* Clock 0 */ |
| 183 | |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 184 | /* Pull RST low */ |
| 185 | CTXS(GPP_C15) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 186 | |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 187 | /* Pull PWREN low */ |
| 188 | CTXS(GPP_B23) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 189 | |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 190 | STA = 0 |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 191 | } |
| 192 | } |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 193 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 194 | { |
| 195 | Return (STA) |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | Device (CAM0) |
| 200 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 201 | Name (_HID, "OVTI8856") /* _HID: Hardware ID */ |
| 202 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 203 | Name (_DDN, "Ov 8856 Camera") /* _DDN: DOS Device Name */ |
| 204 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 205 | { |
| 206 | Return (0x0F) |
| 207 | } |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 208 | Name (_CRS, ResourceTemplate () /* _CRS: Current Resource Settings */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 209 | { |
| 210 | I2cSerialBus (0x0010, ControllerInitiated, 0x00061A80, |
| 211 | AddressingMode7Bit, "\\_SB.PCI0.I2C3", |
| 212 | 0x00, ResourceConsumer, , |
| 213 | ) |
| 214 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 215 | Name (_PR0, Package (0x01) /* _PR0: Power Resources for D0 */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 216 | { |
| 217 | RCPR |
| 218 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 219 | Name (_PR3, Package (0x01) /* _PR3: Power Resources for D3hot */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 220 | { |
| 221 | RCPR |
| 222 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 223 | Name (_DSD, Package (0x04) /* _DSD: Device-Specific Data */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 224 | { |
| 225 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 226 | Package (0x01) |
| 227 | { |
| 228 | Package (0x02) |
| 229 | { |
| 230 | "port0", |
| 231 | "PRT0" |
| 232 | } |
| 233 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 234 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 235 | Package (0x02) |
| 236 | { |
| 237 | Package (0x02) |
| 238 | { |
| 239 | "clock-frequency", |
| 240 | 0x0124F800 |
| 241 | }, |
| 242 | Package (0x02) |
| 243 | { |
| 244 | "lens-focus", |
| 245 | Package (0x01) |
| 246 | { |
| 247 | VCM0 |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | }) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 252 | Name (PRT0, Package (0x04) |
| 253 | { |
| 254 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 255 | Package (0x01) |
| 256 | { |
| 257 | Package (0x02) |
| 258 | { |
| 259 | "port", |
| 260 | Zero |
| 261 | } |
| 262 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 263 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 264 | Package (0x01) |
| 265 | { |
| 266 | Package (0x02) |
| 267 | { |
| 268 | "endpoint0", |
| 269 | "EP00" |
| 270 | } |
| 271 | } |
| 272 | }) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 273 | Name (EP00, Package (0x02) |
| 274 | { |
| 275 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 276 | Package (0x05) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 277 | { |
| 278 | Package (0x02) |
| 279 | { |
| 280 | "endpoint", |
| 281 | Zero |
| 282 | }, |
Elyes HAOUAS | fd8de18 | 2020-03-31 21:42:02 +0200 | [diff] [blame] | 283 | Package (0x02) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 284 | { |
| 285 | "clock-lanes", |
| 286 | Zero |
| 287 | }, |
| 288 | Package (0x02) |
| 289 | { |
| 290 | "data-lanes", |
| 291 | Package (0x04) |
| 292 | { |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame^] | 293 | 1, |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 294 | 0x02, |
| 295 | 0x03, |
| 296 | 0x04 |
| 297 | } |
| 298 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 299 | Package (0x02) |
| 300 | { |
| 301 | "link-frequencies", |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 302 | Package (0x02) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 303 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 304 | 0x15752A00, |
| 305 | 0xABA9500 |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 306 | } |
| 307 | }, |
| 308 | Package (0x02) |
| 309 | { |
| 310 | "remote-endpoint", |
| 311 | Package (0x03) |
| 312 | { |
| 313 | IPU0, |
| 314 | Zero, |
| 315 | Zero |
| 316 | } |
| 317 | } |
| 318 | } |
| 319 | }) |
| 320 | } |
| 321 | |
| 322 | Device (VCM0) |
| 323 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 324 | Name (_HID, "PRP0001") /* _HID: Hardware ID */ |
| 325 | Name (_UID, 0x03) /* _UID: Unique ID */ |
| 326 | Name (_DDN, "DW9714 VCM") /* _DDN: DOS Device Name */ |
| 327 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 328 | { |
| 329 | Return (0x0F) |
| 330 | } |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 331 | Name (_CRS, ResourceTemplate () /* _CRS: Current Resource Settings */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 332 | { |
| 333 | I2cSerialBus (0x000C, ControllerInitiated, 0x00061A80, |
| 334 | AddressingMode7Bit, "\\_SB.PCI0.I2C3", |
| 335 | 0x00, ResourceConsumer, , |
| 336 | ) |
| 337 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 338 | Name (_DEP, Package (0x01) /* _DEP: Dependencies */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 339 | { |
| 340 | CAM0 |
| 341 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 342 | Name (_PR0, Package (0x01) /* _PR0: Power Resources for D0 */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 343 | { |
| 344 | RCPR |
| 345 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 346 | Name (_PR3, Package (0x01) /* _PR3: Power Resources for D3hot */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 347 | { |
| 348 | RCPR |
| 349 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 350 | Name (_DSD, Package (0x02) /* _DSD: Device-Specific Data */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 351 | { |
| 352 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 353 | Package (0x01) |
| 354 | { |
| 355 | Package (0x02) |
| 356 | { |
| 357 | "compatible", |
| 358 | "dongwoon,dw9714" |
| 359 | } |
| 360 | } |
| 361 | }) |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | Scope (\_SB.PCI0.I2C5) |
| 366 | { |
| 367 | PowerResource (FCPR, 0x00, 0x0000) |
| 368 | { |
| 369 | Name (STA, Zero) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 370 | Method (_ON, 0, Serialized) /* Front camera_ON_: Power On */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 371 | { |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 372 | If (STA == 0) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 373 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 374 | /* Enable IMG_CLK */ |
| 375 | MCON(1,1) /* Clock 1, 19.2MHz */ |
| 376 | |
| 377 | /* Pull RST low */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 378 | CTXS(GPP_H12) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 379 | |
| 380 | /* Pull PWREN high */ |
Daniel Kang | 79a2198 | 2020-03-19 14:12:30 -0700 | [diff] [blame] | 381 | #if CONFIG(BOARD_INTEL_TGLRVP_UP4) |
| 382 | STXS(GPP_E22) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 383 | #else |
Daniel Kang | 79a2198 | 2020-03-19 14:12:30 -0700 | [diff] [blame] | 384 | STXS(GPP_R6) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 385 | #endif |
| 386 | Sleep(2) /* reset pulse width */ |
| 387 | |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 388 | /* Pull RST high */ |
| 389 | STXS(GPP_H12) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 390 | Sleep(1) /* t2 */ |
| 391 | |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 392 | STA = 1 |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 393 | } |
| 394 | } |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 395 | Method (_OFF, 0, Serialized) /* Front camera_OFF_: Power Off */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 396 | { |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 397 | If (STA == 1) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 398 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 399 | /* Disable IMG_CLK */ |
| 400 | Sleep(1) /* t0+t1 */ |
| 401 | MCOF(1) /* Clock 1 */ |
| 402 | |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 403 | /* Pull RST low */ |
| 404 | CTXS(GPP_H12) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 405 | |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 406 | /* Pull PWREN low */ |
Daniel Kang | 79a2198 | 2020-03-19 14:12:30 -0700 | [diff] [blame] | 407 | #if CONFIG(BOARD_INTEL_TGLRVP_UP4) |
| 408 | CTXS(GPP_E22) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 409 | #else |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 410 | CTXS(GPP_R6) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 411 | #endif |
| 412 | |
Elyes HAOUAS | f204209 | 2020-10-06 13:36:45 +0200 | [diff] [blame] | 413 | STA = 0 |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 414 | } |
| 415 | } |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 416 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 417 | { |
| 418 | Return (STA) |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | Device (CAM1) |
| 423 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 424 | Name (_HID, "OVTI8856") /* _HID: Hardware ID */ |
| 425 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 426 | Name (_DDN, "Ov 8856 Camera") /* _DDN: DOS Device Name */ |
| 427 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 428 | { |
| 429 | Return (0x0F) |
| 430 | } |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 431 | Name (_CRS, ResourceTemplate () /* _CRS: Current Resource Settings */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 432 | { |
| 433 | I2cSerialBus (0x0010, ControllerInitiated, 0x00061A80, |
| 434 | AddressingMode7Bit, "\\_SB.PCI0.I2C5", |
| 435 | 0x00, ResourceConsumer, , |
| 436 | ) |
| 437 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 438 | Name (_PR0, Package (0x01) /* _PR0: Power Resources for D0 */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 439 | { |
| 440 | FCPR |
| 441 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 442 | Name (_PR3, Package (0x01) /* _PR3: Power Resources for D3hot */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 443 | { |
| 444 | FCPR |
| 445 | }) |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 446 | Name (_DSD, Package (0x04) /* _DSD: Device-Specific Data */ |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 447 | { |
| 448 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 449 | Package (0x01) |
| 450 | { |
| 451 | Package (0x02) |
| 452 | { |
| 453 | "port0", |
| 454 | "PRT0" |
| 455 | } |
| 456 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 457 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 458 | Package (0x01) |
| 459 | { |
| 460 | Package (0x02) |
| 461 | { |
| 462 | "clock-frequency", |
| 463 | 0x0124F800 |
| 464 | } |
| 465 | } |
| 466 | }) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 467 | Name (PRT0, Package (0x04) |
| 468 | { |
| 469 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 470 | Package (0x01) |
| 471 | { |
| 472 | Package (0x02) |
| 473 | { |
| 474 | "port", |
| 475 | Zero |
| 476 | } |
| 477 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 478 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 479 | Package (0x01) |
| 480 | { |
| 481 | Package (0x02) |
| 482 | { |
| 483 | "endpoint0", |
| 484 | "EP00" |
| 485 | } |
| 486 | } |
| 487 | }) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 488 | Name (EP00, Package (0x02) |
| 489 | { |
| 490 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 491 | Package (0x05) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 492 | { |
| 493 | Package (0x02) |
| 494 | { |
| 495 | "endpoint", |
| 496 | Zero |
| 497 | }, |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 498 | Package (0x02) |
| 499 | { |
| 500 | "clock-lanes", |
| 501 | Zero |
| 502 | }, |
| 503 | Package (0x02) |
| 504 | { |
| 505 | "data-lanes", |
| 506 | Package (0x04) |
| 507 | { |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame^] | 508 | 1, |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 509 | 0x02, |
| 510 | 0x03, |
| 511 | 0x04 |
| 512 | } |
| 513 | }, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 514 | Package (0x02) |
| 515 | { |
| 516 | "link-frequencies", |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 517 | Package (0x02) |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 518 | { |
Daniel Kang | 0ae21ff | 2020-03-13 18:19:24 -0700 | [diff] [blame] | 519 | 0x15752A00, |
| 520 | 0xABA9500 |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 521 | } |
| 522 | }, |
| 523 | Package (0x02) |
| 524 | { |
| 525 | "remote-endpoint", |
| 526 | Package (0x03) |
| 527 | { |
| 528 | IPU0, |
Felix Singer | dfbb634 | 2022-12-26 08:39:35 +0100 | [diff] [blame^] | 529 | 1, |
Wonkyu Kim | f93c157 | 2019-12-19 19:27:34 -0800 | [diff] [blame] | 530 | Zero |
| 531 | } |
| 532 | } |
| 533 | } |
| 534 | }) |
| 535 | } |
| 536 | } |