David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
| 3 | # Mapping of USB port # to device |
| 4 | #+----------------+-------+-----------------------------------+ |
| 5 | #| Device | Port# | Rev | |
| 6 | #+----------------+-------+-----------------------------------+ |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 7 | #| USB A Side | 3 | 2/3 | |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 8 | #| SD Card | 4 | | |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 9 | #| Camera | 8 | | |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 10 | #| Touchsreen | 10 | | |
| 11 | #+----------------+-------+-----------------------------------+ |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 12 | register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Side |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 13 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Card reader |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 14 | register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Camera |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 15 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Touchscreen |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 16 | |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 17 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Side |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 18 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Card reader |
| 19 | |
Sumeet R Pawnikar | 97c5464 | 2020-05-10 01:24:11 +0530 | [diff] [blame] | 20 | register "power_limits_config" = "{ |
| 21 | .psys_pmax = 151, |
| 22 | }" |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 23 | |
| 24 | device domain 0 on |
| 25 | device pci 14.0 on |
| 26 | chip drivers/usb/acpi |
| 27 | device usb 0.0 on |
| 28 | chip drivers/usb/acpi |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 29 | register "desc" = ""USB2 Type-A Side"" |
| 30 | register "type" = "UPC_TYPE_A" |
| 31 | device usb 2.2 on end |
| 32 | end |
| 33 | chip drivers/usb/acpi |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 34 | register "desc" = ""USB2 SD Card"" |
| 35 | register "type" = "UPC_TYPE_INTERNAL" |
| 36 | device usb 2.3 on end |
| 37 | end |
| 38 | chip drivers/usb/acpi |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 39 | register "desc" = ""USB2 Camera"" |
| 40 | register "type" = "UPC_TYPE_INTERNAL" |
| 41 | device usb 2.7 on end |
| 42 | end |
| 43 | chip drivers/usb/acpi |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 44 | register "desc" = ""USB2 Touchscreen"" |
| 45 | register "type" = "UPC_TYPE_INTERNAL" |
| 46 | device usb 2.9 on end |
| 47 | end |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 48 | chip drivers/usb/acpi |
David Wu | b3ffc32 | 2018-11-29 10:49:34 +0800 | [diff] [blame] | 49 | register "desc" = ""USB3 Type-A Side"" |
| 50 | register "type" = "UPC_TYPE_USB3_A" |
| 51 | device usb 3.2 on end |
| 52 | end |
| 53 | chip drivers/usb/acpi |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 54 | register "desc" = ""USB3 SD Card"" |
| 55 | register "type" = "UPC_TYPE_INTERNAL" |
| 56 | device usb 3.3 on end |
| 57 | end |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 58 | end |
| 59 | end |
| 60 | end # USB xHCI |
| 61 | device pci 19.1 on |
| 62 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 63 | register "hid" = ""MX98357A"" |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 64 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A23)" |
| 65 | register "sdmode_delay" = "5" |
| 66 | device generic 0 on end |
| 67 | end |
| 68 | chip drivers/i2c/da7219 |
| 69 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)" |
| 70 | register "btn_cfg" = "50" |
Terry Cheong | 053c901 | 2023-12-12 11:04:33 +0800 | [diff] [blame] | 71 | register "mic_det_thr" = "200" |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 72 | register "jack_ins_deb" = "20" |
| 73 | register "jack_det_rate" = ""32ms_64ms"" |
| 74 | register "jack_rem_deb" = "1" |
| 75 | register "a_d_btn_thr" = "0xa" |
| 76 | register "d_b_btn_thr" = "0x16" |
| 77 | register "b_c_btn_thr" = "0x21" |
| 78 | register "c_mic_btn_thr" = "0x3e" |
| 79 | register "btn_avg" = "4" |
| 80 | register "adc_1bit_rpt" = "1" |
| 81 | register "micbias_lvl" = "2600" |
| 82 | register "mic_amp_in_sel" = ""diff"" |
| 83 | device i2c 1a on end |
| 84 | end |
| 85 | end # I2C #5 |
David Wu | a5d6717 | 2018-11-20 20:42:57 +0800 | [diff] [blame] | 86 | device pci 1e.6 off end # SDCard |
David Wu | ac6a508 | 2018-10-22 10:20:21 +0800 | [diff] [blame] | 87 | end |
| 88 | end |