Shelley Chen | c76409c | 2019-04-02 14:46:55 -0700 | [diff] [blame] | 1 | chip soc/intel/cannonlake |
Sumeet R Pawnikar | 309ccf7 | 2020-05-09 16:37:30 +0530 | [diff] [blame] | 2 | register "power_limits_config" = "{ |
| 3 | .tdp_pl1_override = 8, |
| 4 | .tdp_pl2_override = 51, |
| 5 | }" |
Seunghwan Kim | d93ee95 | 2019-07-18 15:51:31 +0900 | [diff] [blame] | 6 | |
Shelley Chen | c76409c | 2019-04-02 14:46:55 -0700 | [diff] [blame] | 7 | register "SerialIoDevMode" = "{ |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 8 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 9 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 10 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 11 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 13 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
Shelley Chen | c76409c | 2019-04-02 14:46:55 -0700 | [diff] [blame] | 14 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
| 15 | [PchSerialIoIndexSPI1] = PchSerialIoPci, |
| 16 | [PchSerialIoIndexSPI2] = PchSerialIoDisabled, |
Furquan Shaikh | 1311342 | 2019-04-22 23:45:06 -0700 | [diff] [blame] | 17 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
Shelley Chen | c76409c | 2019-04-02 14:46:55 -0700 | [diff] [blame] | 18 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 19 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 20 | }" |
| 21 | |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 22 | # No PCIe WiFi |
| 23 | register "PcieRpEnable[13]" = "0" |
Furquan Shaikh | 1311342 | 2019-04-22 23:45:06 -0700 | [diff] [blame] | 24 | |
Mac Chiang | 7439a7a | 2019-08-02 11:09:24 +0800 | [diff] [blame] | 25 | # Enable DMIC1 |
| 26 | register "PchHdaAudioLinkDmic1" = "1" |
| 27 | |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 28 | register "usb2_ports[0]" = "USB2_PORT_LONG(OC2)" # Type-C Port 0 |
| 29 | register "usb2_ports[1]" = "USB2_PORT_LONG(OC2)" # Type-C Port 1 |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 30 | register "usb2_ports[3]" = "USB2_PORT_LONG(OC_SKIP)" # SD CARD |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 31 | register "usb2_ports[6]" = "USB2_PORT_LONG(OC_SKIP)" # Camera |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 32 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # CnVi BT |
| 33 | |
| 34 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 0 |
| 35 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 1 |
| 36 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # World facing camera |
| 37 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # SD CARD |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 38 | |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 39 | # Intel Common SoC Config |
| 40 | #+-------------------+---------------------------+ |
| 41 | #| Field | Value | |
| 42 | #+-------------------+---------------------------+ |
| 43 | #| I2C0 | Trackpad | |
| 44 | #| I2C1 | Touchscreen | |
| 45 | #| I2C2 | Digitizer | |
| 46 | #| I2C4 | Audio | |
| 47 | #+-------------------+---------------------------+ |
| 48 | register "common_soc_config" = "{ |
| 49 | .i2c[0] = { |
| 50 | .speed = I2C_SPEED_FAST, |
Philip Chen | b7ec252 | 2019-07-24 14:35:44 -0700 | [diff] [blame] | 51 | .rise_time_ns = 135, |
| 52 | .fall_time_ns = 45, |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 53 | }, |
| 54 | .i2c[1] = { |
| 55 | .speed = I2C_SPEED_FAST, |
Seunghwan Kim | d9105d9 | 2019-11-28 16:35:02 +0900 | [diff] [blame] | 56 | .rise_time_ns = 60, |
| 57 | .fall_time_ns = 25, |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 58 | }, |
| 59 | .i2c[2] = { |
| 60 | .speed = I2C_SPEED_FAST, |
Philip Chen | b7ec252 | 2019-07-24 14:35:44 -0700 | [diff] [blame] | 61 | .rise_time_ns = 95, |
| 62 | .fall_time_ns = 55, |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 63 | }, |
| 64 | .i2c[4] = { |
| 65 | .speed = I2C_SPEED_FAST, |
Seunghwan Kim | d9105d9 | 2019-11-28 16:35:02 +0900 | [diff] [blame] | 66 | .rise_time_ns = 104, |
| 67 | .fall_time_ns = 52, |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 68 | }, |
| 69 | .gspi[0] = { |
| 70 | .speed_mhz = 1, |
| 71 | .early_init = 1, |
| 72 | }, |
| 73 | }" |
| 74 | |
| 75 | device domain 0 on |
Matt DeVillier | c5a3a4a | 2020-06-07 04:05:55 -0500 | [diff] [blame] | 76 | device pci 02.0 on # Integrated Graphics Device |
| 77 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 78 | end |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 79 | device pci 14.0 on |
| 80 | chip drivers/usb/acpi |
| 81 | device usb 0.0 on |
| 82 | chip drivers/usb/acpi |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 83 | register "desc" = ""Left Type-C Port"" |
| 84 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 85 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 86 | device usb 2.0 on end |
| 87 | end |
| 88 | chip drivers/usb/acpi |
| 89 | register "desc" = ""Right Type-C Port"" |
| 90 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 91 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 92 | device usb 2.1 on end |
| 93 | end |
| 94 | chip drivers/usb/acpi |
| 95 | device usb 2.2 off end |
| 96 | end |
| 97 | chip drivers/usb/acpi |
| 98 | register "desc" = ""Micro SD Card"" |
| 99 | register "type" = "UPC_TYPE_INTERNAL" |
| 100 | device usb 2.3 on end |
| 101 | end |
| 102 | chip drivers/usb/acpi |
| 103 | device usb 2.4 off end |
| 104 | end |
| 105 | chip drivers/usb/acpi |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 106 | device usb 2.5 off end |
| 107 | end |
| 108 | chip drivers/usb/acpi |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 109 | register "desc" = ""Camera"" |
| 110 | register "type" = "UPC_TYPE_INTERNAL" |
| 111 | device usb 2.6 on end |
| 112 | end |
| 113 | chip drivers/usb/acpi |
| 114 | device usb 2.7 off end |
| 115 | end |
| 116 | chip drivers/usb/acpi |
| 117 | device usb 2.8 off end |
| 118 | end |
| 119 | chip drivers/usb/acpi |
| 120 | register "desc" = ""Bluetooth"" |
| 121 | register "type" = "UPC_TYPE_INTERNAL" |
| 122 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C14)" |
| 123 | device usb 2.9 on end |
| 124 | end |
| 125 | chip drivers/usb/acpi |
| 126 | register "desc" = ""Left Type-C Port"" |
| 127 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 128 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 129 | device usb 3.0 on end |
| 130 | end |
| 131 | chip drivers/usb/acpi |
| 132 | register "desc" = ""Right Type-C Port"" |
| 133 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 134 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 135 | device usb 3.1 on end |
| 136 | end |
| 137 | chip drivers/usb/acpi |
| 138 | register "desc" = ""WF Camera"" |
| 139 | register "type" = "UPC_TYPE_INTERNAL" |
| 140 | device usb 3.2 on end |
| 141 | end |
| 142 | chip drivers/usb/acpi |
| 143 | register "desc" = ""Micro SD card"" |
| 144 | register "type" = "UPC_TYPE_INTERNAL" |
| 145 | device usb 3.3 on end |
| 146 | end |
| 147 | chip drivers/usb/acpi |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 148 | device usb 3.4 off end |
| 149 | end |
| 150 | end |
| 151 | end |
| 152 | end |
Seunghwan Kim | c773b6c | 2019-09-03 17:45:18 +0900 | [diff] [blame] | 153 | |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 154 | device pci 14.5 off end # SDCard |
| 155 | |
| 156 | device pci 15.0 on |
| 157 | chip drivers/i2c/hid |
Matt DeVillier | 148207a | 2022-12-19 15:14:34 -0600 | [diff] [blame] | 158 | register "generic.hid" = ""SYNA0000"" |
| 159 | register "generic.cid" = ""ACPI0C50"" |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 160 | register "generic.desc" = ""Synaptics Touchpad"" |
Karthikeyan Ramasubramanian | 86dc4b7 | 2020-11-10 13:46:26 -0700 | [diff] [blame] | 161 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 162 | register "generic.detect" = "1" |
Furquan Shaikh | 328c8bb | 2019-07-11 17:46:40 -0700 | [diff] [blame] | 163 | register "generic.wake" = "GPE0_DW0_21" |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 164 | register "hid_desc_reg_offset" = "0x20" |
Seunghwan Kim | 479637d | 2019-06-25 17:37:11 +0900 | [diff] [blame] | 165 | device i2c 0x20 on end |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 166 | end |
| 167 | end # I2C 0 |
| 168 | |
Tim Wawrzynczak | 6925449 | 2019-08-07 11:08:07 -0600 | [diff] [blame] | 169 | device pci 15.1 on |
| 170 | chip drivers/i2c/generic |
Furquan Shaikh | 8c206c9 | 2019-08-09 08:02:26 -0700 | [diff] [blame] | 171 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 172 | register "compat_string" = ""atmel,maxtouch"" |
Tim Wawrzynczak | 6925449 | 2019-08-07 11:08:07 -0600 | [diff] [blame] | 173 | register "desc" = ""Atmel Touchscreen"" |
Seunghwan Kim | b843ee6e | 2019-08-16 18:36:56 +0900 | [diff] [blame] | 174 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Tim Wawrzynczak | 6925449 | 2019-08-07 11:08:07 -0600 | [diff] [blame] | 175 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 176 | register "reset_delay_ms" = "91" # 90.5 ms |
| 177 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C12)" |
| 178 | register "enable_delay_ms" = "1" # 90 ns |
| 179 | register "has_power_resource" = "1" |
| 180 | register "disable_gpio_export_in_crs" = "1" |
Tim Wawrzynczak | bac8e8d | 2019-10-09 14:51:28 -0600 | [diff] [blame] | 181 | register "probed" = "1" |
Tim Wawrzynczak | 6925449 | 2019-08-07 11:08:07 -0600 | [diff] [blame] | 182 | device i2c 4b on end |
| 183 | end |
Tim Wawrzynczak | bac8e8d | 2019-10-09 14:51:28 -0600 | [diff] [blame] | 184 | |
| 185 | chip drivers/i2c/generic |
| 186 | register "hid" = ""ELAN0001"" |
| 187 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame^] | 188 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D16_IRQ)" |
Tim Wawrzynczak | bac8e8d | 2019-10-09 14:51:28 -0600 | [diff] [blame] | 189 | register "probed" = "1" |
| 190 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C12)" |
| 191 | register "enable_delay_ms" = "10" |
| 192 | register "enable_off_delay_ms" = "100" |
| 193 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D15)" |
| 194 | register "reset_delay_ms" = "20" |
| 195 | register "reset_off_delay_ms" = "2" |
| 196 | register "has_power_resource" = "1" |
| 197 | device i2c 10 on end |
| 198 | end |
Tim Wawrzynczak | 6925449 | 2019-08-07 11:08:07 -0600 | [diff] [blame] | 199 | end # I2C #1 |
| 200 | |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 201 | device pci 15.2 on |
| 202 | chip drivers/i2c/hid |
| 203 | register "generic.hid" = ""WCOM50C1"" |
| 204 | register "generic.desc" = ""WCOM Digitizer"" |
| 205 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" |
Seunghwan Kim | 042e46f | 2019-07-26 14:45:49 +0900 | [diff] [blame] | 206 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C15)" |
Seunghwan Kim | 34d306a | 2019-10-02 11:38:12 +0900 | [diff] [blame] | 207 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A19)" |
Seunghwan Kim | f71991e | 2019-12-23 18:51:39 +0900 | [diff] [blame] | 208 | register "generic.reset_delay_ms" = "100" |
Evan Green | 6b7bbc2 | 2020-03-20 10:37:59 -0700 | [diff] [blame] | 209 | register "generic.enable_delay_ms" = "20" |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 210 | register "generic.has_power_resource" = "1" |
| 211 | register "hid_desc_reg_offset" = "0x1" |
| 212 | device i2c 0x09 on end |
| 213 | end |
Seunghwan Kim | 042e46f | 2019-07-26 14:45:49 +0900 | [diff] [blame] | 214 | chip drivers/generic/gpio_keys |
| 215 | register "name" = ""PENH"" |
Tim Wawrzynczak | 73ee930 | 2019-08-07 11:38:31 -0600 | [diff] [blame] | 216 | # GPP_A16 is the IRQ source, and GPP_A8 is the wake source |
| 217 | register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_A16)" |
Furquan Shaikh | fa8b75f | 2020-06-26 01:19:46 -0700 | [diff] [blame] | 218 | register "key.wake_gpe" = "GPE0_DW0_08" |
| 219 | register "key.wakeup_route" = "WAKEUP_ROUTE_SCI" |
Seunghwan Kim | 042e46f | 2019-07-26 14:45:49 +0900 | [diff] [blame] | 220 | register "key.wakeup_event_action" = "EV_ACT_DEASSERTED" |
| 221 | register "key.dev_name" = ""EJCT"" |
| 222 | register "key.linux_code" = "SW_PEN_INSERTED" |
| 223 | register "key.linux_input_type" = "EV_SW" |
| 224 | register "key.label" = ""pen_eject"" |
| 225 | device generic 0 on end |
| 226 | end |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 227 | end # I2C #2 |
| 228 | device pci 19.0 on |
| 229 | chip drivers/i2c/da7219 |
| 230 | # TODO: these settings were copied from another board |
| 231 | # with the same chip. verify the settings |
Kane Chen | b7f27ab | 2019-05-16 18:52:36 +0800 | [diff] [blame] | 232 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 233 | register "btn_cfg" = "50" |
| 234 | register "mic_det_thr" = "500" |
| 235 | register "jack_ins_deb" = "20" |
| 236 | register "jack_det_rate" = ""32ms_64ms"" |
| 237 | register "jack_rem_deb" = "1" |
| 238 | register "a_d_btn_thr" = "0xa" |
| 239 | register "d_b_btn_thr" = "0x16" |
| 240 | register "b_c_btn_thr" = "0x21" |
| 241 | register "c_mic_btn_thr" = "0x3e" |
| 242 | register "btn_avg" = "4" |
| 243 | register "adc_1bit_rpt" = "1" |
| 244 | register "micbias_lvl" = "2600" |
| 245 | register "mic_amp_in_sel" = ""diff"" |
| 246 | device i2c 0x1a on end |
| 247 | end |
| 248 | end |
| 249 | |
| 250 | # No PCIe WiFi |
| 251 | device pci 1d.5 off end |
Shelley Chen | 9153271 | 2019-07-16 12:12:11 -0700 | [diff] [blame] | 252 | device pci 1e.3 on |
| 253 | chip drivers/spi/acpi |
| 254 | register "name" = ""CRFP"" |
| 255 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 256 | register "uid" = "1" |
| 257 | register "compat_string" = ""google,cros-ec-spi"" |
Shelley Chen | 9b93383 | 2019-10-08 14:17:26 -0700 | [diff] [blame] | 258 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A23_IRQ)" |
| 259 | register "wake" = "GPE0_DW0_23" |
Shelley Chen | 9153271 | 2019-07-16 12:12:11 -0700 | [diff] [blame] | 260 | device spi 1 on end |
| 261 | end # FPMCU |
| 262 | end # GSPI #1 |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 263 | device pci 1f.3 on |
| 264 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 265 | register "hid" = ""MX98357A"" |
Edward O'Callaghan | b417786 | 2019-12-23 18:14:23 +1100 | [diff] [blame] | 266 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" |
| 267 | register "sdmode_delay" = "5" |
| 268 | device generic 0 on end |
| 269 | end |
| 270 | end # Intel HDA |
Tim Wawrzynczak | c60a830 | 2019-04-23 10:51:20 -0600 | [diff] [blame] | 271 | end # domain |
Shelley Chen | c76409c | 2019-04-02 14:46:55 -0700 | [diff] [blame] | 272 | end |