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" |
| 15 | register "IomTypeCPortPadCfg[0]" = "0x090E000A" |
| 16 | register "IomTypeCPortPadCfg[1]" = "0x090E000D" |
| 17 | |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 18 | # I2C Port Config |
| 19 | register "SerialIoI2cMode" = "{ |
| 20 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 21 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 22 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 23 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 24 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 25 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 26 | }" |
| 27 | |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 28 | device domain 0 on |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 29 | # Baseboard has these on, so they must be disabled here. |
| 30 | device ref tbt_pcie_rp0 off end |
| 31 | device ref tbt_pcie_rp1 off end |
| 32 | device ref tbt_dma0 off end |
| 33 | |
| 34 | device ref i2c0 on |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 35 | chip drivers/i2c/generic |
| 36 | register "hid" = ""10EC5682"" |
| 37 | register "name" = ""RT58"" |
| 38 | register "desc" = ""Headset Codec"" |
| 39 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 40 | # Set the jd_src to RT5668_JD1 for jack detection |
| 41 | register "property_count" = "1" |
| 42 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 43 | register "property_list[0].name" = ""realtek,jd-src"" |
| 44 | register "property_list[0].integer" = "1" |
| 45 | device i2c 1a on end |
| 46 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 47 | end |
| 48 | device ref i2c1 on |
William Wei | e11072e | 2020-04-22 16:23:16 +0800 | [diff] [blame] | 49 | chip drivers/i2c/hid |
| 50 | register "generic.hid" = ""GDIX0000"" |
| 51 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 029e736 | 2020-11-10 13:41:31 -0700 | [diff] [blame^] | 52 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
William Wei | e11072e | 2020-04-22 16:23:16 +0800 | [diff] [blame] | 53 | register "generic.probed" = "1" |
| 54 | register "generic.reset_gpio" = |
| 55 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 56 | register "generic.reset_delay_ms" = "120" |
| 57 | register "generic.reset_off_delay_ms" = "3" |
| 58 | register "generic.enable_gpio" = |
| 59 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 60 | register "generic.enable_delay_ms" = "12" |
| 61 | register "generic.has_power_resource" = "1" |
| 62 | register "hid_desc_reg_offset" = "0x01" |
| 63 | device i2c 5d on end |
| 64 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 65 | end |
| 66 | device ref i2c3 on |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 67 | chip drivers/i2c/sx9310 |
| 68 | register "desc" = ""SAR0 Proximity Sensor"" |
| 69 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 70 | register "speed" = "I2C_SPEED_FAST" |
| 71 | register "uid" = "0" |
| 72 | register "reg_prox_ctrl0" = "0x10" |
| 73 | register "reg_prox_ctrl1" = "0x00" |
| 74 | register "reg_prox_ctrl2" = "0x84" |
| 75 | register "reg_prox_ctrl3" = "0x0e" |
| 76 | register "reg_prox_ctrl4" = "0x07" |
| 77 | register "reg_prox_ctrl5" = "0xc6" |
| 78 | register "reg_prox_ctrl6" = "0x20" |
| 79 | register "reg_prox_ctrl7" = "0x0d" |
| 80 | register "reg_prox_ctrl8" = "0x8d" |
| 81 | register "reg_prox_ctrl9" = "0x43" |
| 82 | register "reg_prox_ctrl10" = "0x1f" |
| 83 | register "reg_prox_ctrl11" = "0x00" |
| 84 | register "reg_prox_ctrl12" = "0x00" |
| 85 | register "reg_prox_ctrl13" = "0x00" |
| 86 | register "reg_prox_ctrl14" = "0x00" |
| 87 | register "reg_prox_ctrl15" = "0x00" |
| 88 | register "reg_prox_ctrl16" = "0x00" |
| 89 | register "reg_prox_ctrl17" = "0x00" |
| 90 | register "reg_prox_ctrl18" = "0x00" |
| 91 | register "reg_prox_ctrl19" = "0x00" |
| 92 | register "reg_sar_ctrl0" = "0x50" |
| 93 | register "reg_sar_ctrl1" = "0x8a" |
| 94 | register "reg_sar_ctrl2" = "0x3c" |
| 95 | device i2c 28 on end |
| 96 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 97 | end |
| 98 | device ref i2c5 on |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 99 | chip drivers/i2c/generic |
| 100 | register "hid" = ""ELAN0000"" |
| 101 | register "desc" = ""ELAN Touchpad"" |
| 102 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 103 | register "wake" = "GPE0_DW2_15" |
| 104 | register "probed" = "1" |
| 105 | device i2c 15 on end |
| 106 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 107 | end |
| 108 | device ref hda on |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame] | 109 | chip drivers/generic/max98357a |
| 110 | register "hid" = ""MX98357A"" |
| 111 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 112 | register "sdmode_delay" = "5" |
| 113 | device generic 0 on end |
| 114 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 115 | end |
Duncan Laurie | f78ade3 | 2020-10-27 11:06:02 -0700 | [diff] [blame] | 116 | device ref north_xhci on |
| 117 | chip drivers/usb/acpi |
| 118 | device ref tcss_root_hub on |
| 119 | chip drivers/usb/acpi |
| 120 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 121 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 122 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 123 | device ref tcss_usb3_port1 on end |
| 124 | end |
| 125 | chip drivers/usb/acpi |
| 126 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 127 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 128 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 129 | device ref tcss_usb3_port2 on |
| 130 | probe DB_USB USB3_NO_A |
| 131 | end |
| 132 | end |
| 133 | end |
| 134 | end |
| 135 | end |
| 136 | device ref south_xhci on |
| 137 | chip drivers/usb/acpi |
| 138 | device ref xhci_root_hub on |
| 139 | chip drivers/usb/acpi |
| 140 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 141 | register "type" = "UPC_TYPE_A" |
| 142 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 143 | device ref usb2_port1 on end |
| 144 | end |
| 145 | chip drivers/usb/acpi |
| 146 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 147 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 148 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 149 | device ref usb2_port4 on |
| 150 | probe DB_USB USB3_NO_A |
| 151 | end |
| 152 | end |
| 153 | chip drivers/usb/acpi |
| 154 | register "desc" = ""USB2 Camera"" |
| 155 | register "type" = "UPC_TYPE_INTERNAL" |
| 156 | device ref usb2_port5 on end |
| 157 | end |
| 158 | chip drivers/usb/acpi |
| 159 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 160 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 161 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 162 | device ref usb2_port9 on end |
| 163 | end |
| 164 | chip drivers/usb/acpi |
| 165 | register "desc" = ""USB2 Bluetooth"" |
| 166 | register "type" = "UPC_TYPE_INTERNAL" |
| 167 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)" |
| 168 | device ref usb2_port10 on end |
| 169 | end |
| 170 | chip drivers/usb/acpi |
| 171 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 172 | register "type" = "UPC_TYPE_USB3_A" |
| 173 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 174 | device ref usb3_port1 on end |
| 175 | end |
| 176 | end |
| 177 | end |
| 178 | end |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 179 | end |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 180 | end |