Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 1 | chip soc/intel/jasperlake |
| 2 | |
| 3 | # USB Port Configuration |
| 4 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera |
| 5 | |
Dtrain Hsu | 092ef11 | 2020-07-30 10:43:07 +0800 | [diff] [blame] | 6 | register "SerialIoI2cMode" = "{ |
| 7 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 8 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, |
| 9 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 10 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 11 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 12 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 13 | }" |
| 14 | |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 15 | # Intel Common SoC Config |
| 16 | #+-------------------+---------------------------+ |
| 17 | #| Field | Value | |
| 18 | #+-------------------+---------------------------+ |
| 19 | #| GSPI0 | cr50 TPM. Early init is | |
| 20 | #| | required to set up a BAR | |
| 21 | #| | for TPM communication | |
| 22 | #| | before memory is up | |
| 23 | #| I2C0 | Trackpad | |
Dtrain Hsu | 092ef11 | 2020-07-30 10:43:07 +0800 | [diff] [blame] | 24 | #| I2C1 | | |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 25 | #| I2C2 | Touchscreen | |
Dtrain Hsu | b66e250 | 2020-07-23 14:49:35 +0800 | [diff] [blame] | 26 | #| I2C3 | | |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 27 | #| I2C4 | Audio | |
| 28 | #+-------------------+---------------------------+ |
| 29 | register "common_soc_config" = "{ |
| 30 | .gspi[0] = { |
| 31 | .speed_mhz = 1, |
| 32 | .early_init = 1, |
| 33 | }, |
| 34 | .i2c[0] = { |
| 35 | .speed = I2C_SPEED_FAST, |
John Su | 5bd4adf | 2020-09-15 14:41:59 +0800 | [diff] [blame] | 36 | .rise_time_ns = 270, |
| 37 | .fall_time_ns = 270, |
| 38 | .data_hold_time_ns = 350, |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 39 | }, |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 40 | .i2c[2] = { |
| 41 | .speed = I2C_SPEED_FAST, |
John Su | 5bd4adf | 2020-09-15 14:41:59 +0800 | [diff] [blame] | 42 | .speed = I2C_SPEED_FAST, |
| 43 | .rise_time_ns = 200, |
| 44 | .fall_time_ns = 200, |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 45 | }, |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 46 | .i2c[4] = { |
| 47 | .speed = I2C_SPEED_FAST, |
John Su | 5bd4adf | 2020-09-15 14:41:59 +0800 | [diff] [blame] | 48 | .speed_config[0] = { |
| 49 | .speed = I2C_SPEED_FAST, |
| 50 | .scl_lcnt = 190, |
| 51 | .scl_hcnt = 100, |
| 52 | .sda_hold = 40, |
| 53 | }, |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 54 | }, |
| 55 | }" |
John Su | ae763de | 2020-09-28 16:12:26 +0800 | [diff] [blame] | 56 | |
John Su | e59f70a | 2020-11-18 13:47:43 +0800 | [diff] [blame] | 57 | register "tcc_offset" = "10" # TCC of 95C |
John Su | ae763de | 2020-09-28 16:12:26 +0800 | [diff] [blame] | 58 | |
Dtrain Hsu | 85adcdb | 2020-12-18 10:19:14 +0800 | [diff] [blame] | 59 | # Enable Acoustic noise mitigation and set slew rate to 1/8 |
| 60 | # Rest of the parameters are 0 by default. |
| 61 | register "AcousticNoiseMitigation" = "1" |
| 62 | register "SlowSlewRate" = "2" |
| 63 | |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 64 | device domain 0 on |
John Su | ae763de | 2020-09-28 16:12:26 +0800 | [diff] [blame] | 65 | device pci 04.0 on |
| 66 | chip drivers/intel/dptf |
Karthikeyan Ramasubramanian | ab8961e | 2021-03-12 11:51:55 -0700 | [diff] [blame] | 67 | register "policies.passive" = "{ |
| 68 | [0] = DPTF_PASSIVE(CPU, CPU, 65, 1000), |
| 69 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 80, 60000), |
| 70 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 55, 15000)}" |
| 71 | register "policies.critical" = "{ |
| 72 | [0] = DPTF_CRITICAL(CPU, 100, SHUTDOWN), |
| 73 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 90, SHUTDOWN), |
| 74 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 80, SHUTDOWN)}" |
John Su | ae763de | 2020-09-28 16:12:26 +0800 | [diff] [blame] | 75 | register "controls.power_limits.pl1" = "{ |
| 76 | .min_power = 4800, |
| 77 | .max_power = 6000, |
| 78 | .time_window_min = 1 * MSECS_PER_SEC, |
| 79 | .time_window_max = 1 * MSECS_PER_SEC, |
| 80 | .granularity = 200,}" |
| 81 | register "controls.power_limits.pl2" = "{ |
| 82 | .min_power = 20000, |
| 83 | .max_power = 20000, |
| 84 | .time_window_min = 1 * MSECS_PER_SEC, |
| 85 | .time_window_max = 1 * MSECS_PER_SEC, |
| 86 | .granularity = 1000,}" |
| 87 | device generic 0 on end |
| 88 | end |
| 89 | end # SA Thermal device |
Dtrain Hsu | b66e250 | 2020-07-23 14:49:35 +0800 | [diff] [blame] | 90 | device pci 14.0 on |
| 91 | chip drivers/usb/acpi |
| 92 | device usb 0.0 on |
| 93 | chip drivers/usb/acpi |
| 94 | device usb 2.2 off end |
| 95 | end |
| 96 | chip drivers/usb/acpi |
| 97 | register "desc" = ""Camera"" |
| 98 | register "type" = "UPC_TYPE_INTERNAL" |
| 99 | device usb 2.5 on end |
| 100 | end |
| 101 | chip drivers/usb/acpi |
| 102 | device usb 3.2 off end |
| 103 | end |
| 104 | end |
| 105 | end |
| 106 | end # USB xHCI |
Dtrain Hsu | 092ef11 | 2020-07-30 10:43:07 +0800 | [diff] [blame] | 107 | device pci 15.0 on |
| 108 | chip drivers/i2c/generic |
| 109 | register "hid" = ""ELAN0000"" |
| 110 | register "desc" = ""ELAN Touchpad"" |
| 111 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)" |
| 112 | register "wake" = "GPE0_DW0_03" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 113 | register "detect" = "1" |
Dtrain Hsu | 092ef11 | 2020-07-30 10:43:07 +0800 | [diff] [blame] | 114 | device i2c 15 on end |
| 115 | end |
| 116 | end #I2C 0 |
| 117 | device pci 15.1 off end # I2C 1 |
Ian Feng | c6ee65f | 2020-07-29 12:56:37 +0800 | [diff] [blame] | 118 | device pci 15.2 on |
| 119 | chip drivers/i2c/hid |
| 120 | register "generic.hid" = ""GDIX0000"" |
| 121 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | a879200 | 2020-11-10 12:29:37 -0700 | [diff] [blame] | 122 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Matt DeVillier | c3cef7e | 2022-12-21 12:22:21 -0600 | [diff] [blame] | 123 | register "generic.detect" = "1" |
Ian Feng | c6ee65f | 2020-07-29 12:56:37 +0800 | [diff] [blame] | 124 | register "generic.reset_gpio" = |
| 125 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
Dtrain Hsu | cd6998b | 2020-12-30 15:58:08 +0800 | [diff] [blame] | 126 | register "generic.reset_delay_ms" = "180" |
Ian Feng | c6ee65f | 2020-07-29 12:56:37 +0800 | [diff] [blame] | 127 | register "generic.reset_off_delay_ms" = "2" |
| 128 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 129 | register "generic.enable_delay_ms" = "12" |
| 130 | register "generic.has_power_resource" = "1" |
| 131 | register "hid_desc_reg_offset" = "0x01" |
| 132 | device i2c 0x5d on end |
| 133 | end |
| 134 | end # I2C 2 |
Dtrain Hsu | 092ef11 | 2020-07-30 10:43:07 +0800 | [diff] [blame] | 135 | device pci 15.3 off end # I2C 3 |
Dtrain Hsu | a64748c | 2020-07-30 13:40:02 +0800 | [diff] [blame] | 136 | device pci 1c.7 on |
| 137 | chip drivers/wifi/generic |
| 138 | register "wake" = "GPE0_DW2_03" |
Dtrain Hsu | a64748c | 2020-07-30 13:40:02 +0800 | [diff] [blame] | 139 | device pci 00.0 on end |
| 140 | end |
| 141 | end # PCI Express Root Port 8 - WLAN |
Dtrain Hsu | 5a917eb | 2020-07-24 16:32:46 +0800 | [diff] [blame] | 142 | device pci 19.0 on |
| 143 | chip drivers/i2c/generic |
| 144 | register "hid" = ""10EC5682"" |
| 145 | register "name" = ""RT58"" |
| 146 | register "desc" = ""Headset Codec"" |
| 147 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 148 | # Set the jd_src to RT5668_JD1 for jack detection |
| 149 | register "property_count" = "1" |
| 150 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 151 | register "property_list[0].name" = ""realtek,jd-src"" |
| 152 | register "property_list[0].integer" = "1" |
| 153 | device i2c 1a on end |
| 154 | end |
| 155 | end #I2C 4 |
| 156 | device pci 1f.3 on |
| 157 | chip drivers/generic/max98357a |
| 158 | register "hid" = ""MX98360A"" |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 159 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
Dtrain Hsu | 5a917eb | 2020-07-24 16:32:46 +0800 | [diff] [blame] | 160 | device generic 0 on end |
| 161 | end |
| 162 | end # Intel HDA |
Ian Feng | b0b7c35 | 2020-07-14 14:07:27 +0800 | [diff] [blame] | 163 | end |
| 164 | end |