William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
| 2 | |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 3 | # USB Port Config |
| 4 | register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A0 |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 5 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C C1 |
| 6 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 7 | register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C C0 |
| 8 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth |
| 9 | |
| 10 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC1)" # USB3/2 Type A port A0 |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 11 | |
Shreesh Chhabbi | 3708687 | 2020-06-17 12:40:42 -0700 | [diff] [blame] | 12 | register "SaGv" = "SaGv_Disabled" |
| 13 | |
Brandon Breitenstein | 1df3b70 | 2020-08-10 15:02:41 -0700 | [diff] [blame] | 14 | register "TcssAuxOri" = "1" |
Tim Wawrzynczak | 59a621a | 2021-03-22 10:43:42 -0600 | [diff] [blame] | 15 | register "typec_aux_bias_pads[0]" = "{.pad_auxp_dc = GPP_E10, .pad_auxn_dc = GPP_E13}" |
Brandon Breitenstein | 1df3b70 | 2020-08-10 15:02:41 -0700 | [diff] [blame] | 16 | |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 17 | # I2C Port Config |
| 18 | register "SerialIoI2cMode" = "{ |
| 19 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 20 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 21 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 22 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 23 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 24 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 25 | }" |
| 26 | |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 27 | device domain 0 on |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 28 | device ref i2c0 on |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 29 | chip drivers/i2c/generic |
| 30 | register "hid" = ""10EC5682"" |
| 31 | register "name" = ""RT58"" |
| 32 | register "desc" = ""Headset Codec"" |
| 33 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 34 | # Set the jd_src to RT5668_JD1 for jack detection |
| 35 | register "property_count" = "1" |
| 36 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 37 | register "property_list[0].name" = ""realtek,jd-src"" |
| 38 | register "property_list[0].integer" = "1" |
| 39 | device i2c 1a on end |
| 40 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 41 | end |
| 42 | device ref i2c1 on |
William Wei | e11072e | 2020-04-22 16:23:16 +0800 | [diff] [blame] | 43 | chip drivers/i2c/hid |
| 44 | register "generic.hid" = ""GDIX0000"" |
| 45 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 029e736 | 2020-11-10 13:41:31 -0700 | [diff] [blame] | 46 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
William Wei | e11072e | 2020-04-22 16:23:16 +0800 | [diff] [blame] | 47 | register "generic.probed" = "1" |
| 48 | register "generic.reset_gpio" = |
| 49 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 50 | register "generic.reset_delay_ms" = "120" |
| 51 | register "generic.reset_off_delay_ms" = "3" |
| 52 | register "generic.enable_gpio" = |
| 53 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 54 | register "generic.enable_delay_ms" = "12" |
| 55 | register "generic.has_power_resource" = "1" |
| 56 | register "hid_desc_reg_offset" = "0x01" |
| 57 | device i2c 5d on end |
| 58 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 59 | end |
Tim Wawrzynczak | c8340d4 | 2020-12-09 09:40:23 -0700 | [diff] [blame] | 60 | device ref i2c2 on |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 61 | chip drivers/i2c/sx9310 |
| 62 | register "desc" = ""SAR0 Proximity Sensor"" |
| 63 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 64 | register "speed" = "I2C_SPEED_FAST" |
| 65 | register "uid" = "0" |
Gwendal Grignou | 689c25b | 2021-01-27 23:29:38 -0800 | [diff] [blame] | 66 | register "cs0_ground" = "0x0" |
Gwendal Grignou | 2f135a9 | 2021-03-22 12:59:02 -0700 | [diff] [blame] | 67 | register "combined_sensors_count" = "2" |
| 68 | register "combined_sensors[0]" = "1" |
| 69 | register "combined_sensors[1]" = "2" |
Gwendal Grignou | 689c25b | 2021-01-27 23:29:38 -0800 | [diff] [blame] | 70 | register "resolution" = "SX9310_FINEST" |
| 71 | register "avg_pos_strength" = "512" |
Gwendal Grignou | 2f135a9 | 2021-03-22 12:59:02 -0700 | [diff] [blame] | 72 | register "startup_sensor" = "1" |
Gwendal Grignou | 689c25b | 2021-01-27 23:29:38 -0800 | [diff] [blame] | 73 | register "proxraw_strength" = "0" |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 74 | device i2c 28 on end |
| 75 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 76 | end |
| 77 | device ref i2c5 on |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 78 | chip drivers/i2c/generic |
| 79 | register "hid" = ""ELAN0000"" |
| 80 | register "desc" = ""ELAN Touchpad"" |
| 81 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 82 | register "wake" = "GPE0_DW2_15" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame^] | 83 | register "detect" = "1" |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 84 | device i2c 15 on end |
| 85 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 86 | end |
| 87 | device ref hda on |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 88 | chip drivers/generic/max98357a |
| 89 | register "hid" = ""MX98357A"" |
| 90 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 91 | register "sdmode_delay" = "5" |
| 92 | device generic 0 on end |
| 93 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 94 | end |
Duncan Laurie | f78ade3 | 2020-10-27 11:06:02 -0700 | [diff] [blame] | 95 | device ref north_xhci on |
| 96 | chip drivers/usb/acpi |
| 97 | device ref tcss_root_hub on |
| 98 | chip drivers/usb/acpi |
| 99 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 100 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 101 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 102 | device ref tcss_usb3_port1 on end |
| 103 | end |
| 104 | chip drivers/usb/acpi |
| 105 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 106 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 107 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 108 | device ref tcss_usb3_port2 on |
| 109 | probe DB_USB USB3_NO_A |
| 110 | end |
| 111 | end |
| 112 | end |
| 113 | end |
| 114 | end |
| 115 | device ref south_xhci on |
| 116 | chip drivers/usb/acpi |
| 117 | device ref xhci_root_hub on |
| 118 | chip drivers/usb/acpi |
| 119 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 120 | register "type" = "UPC_TYPE_A" |
| 121 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 122 | device ref usb2_port1 on end |
| 123 | end |
| 124 | chip drivers/usb/acpi |
| 125 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 126 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 127 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 128 | device ref usb2_port4 on |
| 129 | probe DB_USB USB3_NO_A |
| 130 | end |
| 131 | end |
| 132 | chip drivers/usb/acpi |
| 133 | register "desc" = ""USB2 Camera"" |
| 134 | register "type" = "UPC_TYPE_INTERNAL" |
| 135 | device ref usb2_port5 on end |
| 136 | end |
| 137 | chip drivers/usb/acpi |
| 138 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 139 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 140 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 141 | device ref usb2_port9 on end |
| 142 | end |
| 143 | chip drivers/usb/acpi |
| 144 | register "desc" = ""USB2 Bluetooth"" |
| 145 | register "type" = "UPC_TYPE_INTERNAL" |
| 146 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)" |
| 147 | device ref usb2_port10 on end |
| 148 | end |
| 149 | chip drivers/usb/acpi |
| 150 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 151 | register "type" = "UPC_TYPE_USB3_A" |
| 152 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 153 | device ref usb3_port1 on end |
| 154 | end |
| 155 | end |
| 156 | end |
| 157 | end |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 158 | end |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 159 | end |