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 | # Baseboard has these on, so they must be disabled here. |
| 29 | device ref tbt_pcie_rp0 off end |
| 30 | device ref tbt_pcie_rp1 off end |
| 31 | device ref tbt_dma0 off end |
| 32 | |
| 33 | device ref i2c0 on |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 34 | chip drivers/i2c/generic |
| 35 | register "hid" = ""10EC5682"" |
| 36 | register "name" = ""RT58"" |
| 37 | register "desc" = ""Headset Codec"" |
| 38 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 39 | # Set the jd_src to RT5668_JD1 for jack detection |
| 40 | register "property_count" = "1" |
| 41 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 42 | register "property_list[0].name" = ""realtek,jd-src"" |
| 43 | register "property_list[0].integer" = "1" |
| 44 | device i2c 1a on end |
| 45 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 46 | end |
| 47 | device ref i2c1 on |
William Wei | e11072e | 2020-04-22 16:23:16 +0800 | [diff] [blame] | 48 | chip drivers/i2c/hid |
| 49 | register "generic.hid" = ""GDIX0000"" |
| 50 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 029e736 | 2020-11-10 13:41:31 -0700 | [diff] [blame] | 51 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
William Wei | e11072e | 2020-04-22 16:23:16 +0800 | [diff] [blame] | 52 | register "generic.probed" = "1" |
| 53 | register "generic.reset_gpio" = |
| 54 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 55 | register "generic.reset_delay_ms" = "120" |
| 56 | register "generic.reset_off_delay_ms" = "3" |
| 57 | register "generic.enable_gpio" = |
| 58 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 59 | register "generic.enable_delay_ms" = "12" |
| 60 | register "generic.has_power_resource" = "1" |
| 61 | register "hid_desc_reg_offset" = "0x01" |
| 62 | device i2c 5d on end |
| 63 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 64 | end |
Tim Wawrzynczak | c8340d4 | 2020-12-09 09:40:23 -0700 | [diff] [blame] | 65 | device ref i2c2 on |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 66 | chip drivers/i2c/sx9310 |
| 67 | register "desc" = ""SAR0 Proximity Sensor"" |
| 68 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 69 | register "speed" = "I2C_SPEED_FAST" |
| 70 | register "uid" = "0" |
Gwendal Grignou | 689c25b | 2021-01-27 23:29:38 -0800 | [diff] [blame] | 71 | register "cs0_ground" = "0x0" |
| 72 | register "combined_sensors_count" = "3" |
| 73 | register "combined_sensors[0]" = "0" |
| 74 | register "combined_sensors[1]" = "1" |
| 75 | register "combined_sensors[2]" = "2" |
| 76 | register "resolution" = "SX9310_FINEST" |
| 77 | register "avg_pos_strength" = "512" |
| 78 | register "startup_sensor" = "0" |
| 79 | register "proxraw_strength" = "0" |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 80 | device i2c 28 on end |
| 81 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 82 | end |
| 83 | device ref i2c5 on |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 84 | chip drivers/i2c/generic |
| 85 | register "hid" = ""ELAN0000"" |
| 86 | register "desc" = ""ELAN Touchpad"" |
| 87 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 88 | register "wake" = "GPE0_DW2_15" |
| 89 | register "probed" = "1" |
| 90 | device i2c 15 on end |
| 91 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 92 | end |
| 93 | device ref hda on |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 94 | chip drivers/generic/max98357a |
| 95 | register "hid" = ""MX98357A"" |
| 96 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 97 | register "sdmode_delay" = "5" |
| 98 | device generic 0 on end |
| 99 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 100 | end |
Duncan Laurie | f78ade3 | 2020-10-27 11:06:02 -0700 | [diff] [blame] | 101 | device ref north_xhci on |
| 102 | chip drivers/usb/acpi |
| 103 | device ref tcss_root_hub on |
| 104 | chip drivers/usb/acpi |
| 105 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 106 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 107 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 108 | device ref tcss_usb3_port1 on end |
| 109 | end |
| 110 | chip drivers/usb/acpi |
| 111 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 112 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 113 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 114 | device ref tcss_usb3_port2 on |
| 115 | probe DB_USB USB3_NO_A |
| 116 | end |
| 117 | end |
| 118 | end |
| 119 | end |
| 120 | end |
| 121 | device ref south_xhci on |
| 122 | chip drivers/usb/acpi |
| 123 | device ref xhci_root_hub on |
| 124 | chip drivers/usb/acpi |
| 125 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 126 | register "type" = "UPC_TYPE_A" |
| 127 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 128 | device ref usb2_port1 on end |
| 129 | end |
| 130 | chip drivers/usb/acpi |
| 131 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 132 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 133 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 134 | device ref usb2_port4 on |
| 135 | probe DB_USB USB3_NO_A |
| 136 | end |
| 137 | end |
| 138 | chip drivers/usb/acpi |
| 139 | register "desc" = ""USB2 Camera"" |
| 140 | register "type" = "UPC_TYPE_INTERNAL" |
| 141 | device ref usb2_port5 on end |
| 142 | end |
| 143 | chip drivers/usb/acpi |
| 144 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 145 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 146 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 147 | device ref usb2_port9 on end |
| 148 | end |
| 149 | chip drivers/usb/acpi |
| 150 | register "desc" = ""USB2 Bluetooth"" |
| 151 | register "type" = "UPC_TYPE_INTERNAL" |
| 152 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)" |
| 153 | device ref usb2_port10 on end |
| 154 | end |
| 155 | chip drivers/usb/acpi |
| 156 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 157 | register "type" = "UPC_TYPE_USB3_A" |
| 158 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 159 | device ref usb3_port1 on end |
| 160 | end |
| 161 | end |
| 162 | end |
| 163 | end |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 164 | end |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 165 | end |