Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 3 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # Type-C Port 1 |
| 4 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC1)" # Type-C Port 2 |
| 5 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth |
| 6 | register "usb2_ports[4]" = "USB2_PORT_MID(OC2)" # Type-A Port (card) |
| 7 | register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera |
| 8 | register "usb2_ports[8]" = "USB2_PORT_LONG(OC3)" # Type-A Port (board) |
| 9 | |
| 10 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1 |
| 11 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2 |
| 12 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Port (card) |
| 13 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port (board) |
| 14 | |
| 15 | # I2C0 is 3.3V |
| 16 | register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" |
| 17 | |
| 18 | # Use default SD card detect GPIO configuration |
Angel Pons | 6bd99f9 | 2021-02-20 00:16:47 +0100 | [diff] [blame] | 19 | register "sdcard_cd_gpio" = "GPP_A7" |
Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 20 | |
| 21 | device domain 0 on |
Felix Singer | 3b3ac15 | 2023-11-12 19:05:03 +0000 | [diff] [blame] | 22 | device ref i2c0 on |
Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 23 | chip drivers/i2c/generic |
| 24 | register "hid" = ""RAYD0001"" |
| 25 | register "desc" = ""Raydium Touchscreen"" |
| 26 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)" |
| 27 | device i2c 39 on end |
| 28 | end |
Felix Singer | 3b3ac15 | 2023-11-12 19:05:03 +0000 | [diff] [blame] | 29 | end |
| 30 | device ref i2c1 on |
Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 31 | chip drivers/i2c/generic |
| 32 | register "hid" = ""ELAN0000"" |
| 33 | register "desc" = ""ELAN Touchpad"" |
| 34 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" |
| 35 | register "wake" = "GPE0_DW0_05" |
| 36 | device i2c 15 on end |
| 37 | end |
Felix Singer | 3b3ac15 | 2023-11-12 19:05:03 +0000 | [diff] [blame] | 38 | end |
| 39 | device ref i2c4 on |
Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 40 | chip drivers/i2c/nau8825 |
| 41 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F10_IRQ)" |
| 42 | register "jkdet_enable" = "1" |
| 43 | register "jkdet_pull_enable" = "1" |
| 44 | register "jkdet_pull_up" = "1" |
| 45 | register "jkdet_polarity" = "1" # ActiveLow |
| 46 | register "vref_impedance" = "2" # 125kOhm |
| 47 | register "micbias_voltage" = "6" # 2.754 |
| 48 | register "sar_threshold_num" = "4" |
| 49 | register "sar_threshold[0]" = "0x08" |
| 50 | register "sar_threshold[1]" = "0x12" |
| 51 | register "sar_threshold[2]" = "0x26" |
| 52 | register "sar_threshold[3]" = "0x73" |
| 53 | register "sar_hysteresis" = "0" |
| 54 | register "sar_voltage" = "6" |
| 55 | register "sar_compare_time" = "1" # 1us |
| 56 | register "sar_sampling_time" = "1" # 4us |
| 57 | register "short_key_debounce" = "3" # 30ms |
| 58 | register "jack_insert_debounce" = "7" # 512ms |
| 59 | register "jack_eject_debounce" = "0" |
| 60 | device i2c 1a on end |
| 61 | end |
| 62 | chip drivers/i2c/generic |
| 63 | register "hid" = ""INT343B"" |
| 64 | register "desc" = ""SSM4567 Left Speaker Amp"" |
| 65 | register "uid" = "0" |
| 66 | register "device_present_gpio" = "GPP_E3" |
| 67 | device i2c 34 on end |
| 68 | end |
| 69 | chip drivers/i2c/generic |
| 70 | register "hid" = ""INT343B"" |
| 71 | register "desc" = ""SSM4567 Right Speaker Amp"" |
| 72 | register "uid" = "1" |
| 73 | register "device_present_gpio" = "GPP_E3" |
| 74 | device i2c 35 on end |
| 75 | end |
Felix Singer | 3b3ac15 | 2023-11-12 19:05:03 +0000 | [diff] [blame] | 76 | end |
| 77 | device ref sdxc on end |
| 78 | device ref hda on |
Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 79 | chip drivers/generic/max98357a |
| 80 | register "hid" = ""MX98357A"" |
| 81 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)" |
| 82 | register "device_present_gpio" = "GPP_E3" |
| 83 | register "device_present_gpio_invert" = "1" |
| 84 | register "sdmode_delay" = "5" |
| 85 | device generic 0 on end |
| 86 | end |
Felix Singer | 3b3ac15 | 2023-11-12 19:05:03 +0000 | [diff] [blame] | 87 | end |
Matt DeVillier | 0d58e64 | 2020-03-31 13:12:22 -0500 | [diff] [blame] | 88 | end |
| 89 | end |