Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 1 | chip soc/intel/jasperlake |
Seunghwan Kim | 923b16fb | 2021-08-24 14:09:45 +0900 | [diff] [blame] | 2 | # MIPI display panel |
| 3 | register "DdiPortAConfig" = "2" # DdiPortMipiDsi |
Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 4 | |
Seunghwan Kim | c543a81 | 2021-09-16 16:40:06 +0900 | [diff] [blame] | 5 | # Disable PCIe Root Port 8 (index 7) |
| 6 | register "PcieRpEnable[7]" = "0" |
| 7 | # Disable PCIe Clock Source 4 (index 3) |
| 8 | register "PcieClkSrcUsage[3]" = "0xff" |
| 9 | |
Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 10 | # USB Port Configuration |
Seunghwan Kim | 11f966d | 2021-08-24 14:07:03 +0900 | [diff] [blame] | 11 | register "usb2_ports[0]" = "{ |
| 12 | .enable = 1, |
| 13 | .ocpin = OC_SKIP, |
| 14 | .tx_bias = USB2_BIAS_0MV, |
| 15 | .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON, |
| 16 | .pre_emp_bias = USB2_BIAS_28P15MV, |
| 17 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
| 18 | }" # Type-C Port C0 |
| 19 | register "usb2_ports[1]" = "{ |
| 20 | .enable = 1, |
| 21 | .ocpin = OC_SKIP, |
| 22 | .tx_bias = USB2_BIAS_16P9MV, |
| 23 | .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON, |
| 24 | .pre_emp_bias = USB2_BIAS_39P35MV, |
| 25 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
| 26 | }" # Type-C Port C1 |
| 27 | register "usb2_ports[2]" = "{ |
| 28 | .enable = 1, |
| 29 | .ocpin = OC_SKIP, |
| 30 | .tx_bias = USB2_BIAS_11P25MV, |
| 31 | .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON, |
| 32 | .pre_emp_bias = USB2_BIAS_11P25MV, |
| 33 | .pre_emp_bit = USB2_HALF_BIT_PRE_EMP, |
| 34 | }" # Type-A Port A0 |
| 35 | register "usb2_ports[3]" = "USB2_PORT_EMPTY" |
| 36 | register "usb2_ports[4]" = "USB2_PORT_EMPTY" |
Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 37 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera |
| 38 | |
| 39 | # Intel Common SoC Config |
| 40 | #+-------------------+---------------------------+ |
| 41 | #| Field | Value | |
| 42 | #+-------------------+---------------------------+ |
| 43 | #| GSPI0 | cr50 TPM. Early init is | |
| 44 | #| | required to set up a BAR | |
| 45 | #| | for TPM communication | |
| 46 | #| | before memory is up | |
| 47 | #| I2C0 | Trackpad | |
| 48 | #| I2C1 | Digitizer | |
| 49 | #| I2C2 | Touchscreen | |
| 50 | #| I2C3 | Camera | |
| 51 | #| I2C4 | Audio | |
| 52 | #+-------------------+---------------------------+ |
| 53 | register "common_soc_config" = "{ |
Tim Wawrzynczak | bf14198 | 2021-09-14 14:02:35 -0600 | [diff] [blame] | 54 | .panel_orientation = LB_FB_ORIENTATION_RIGHT_UP, |
Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 55 | .gspi[0] = { |
| 56 | .speed_mhz = 1, |
| 57 | .early_init = 1, |
| 58 | }, |
| 59 | .i2c[0] = { |
| 60 | .speed = I2C_SPEED_FAST, |
Seunghwan Kim | c543a81 | 2021-09-16 16:40:06 +0900 | [diff] [blame] | 61 | .rise_time_ns = 209, |
| 62 | .fall_time_ns = 12, |
Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 63 | }, |
| 64 | .i2c[1] = { |
| 65 | .speed = I2C_SPEED_FAST, |
| 66 | }, |
| 67 | .i2c[2] = { |
| 68 | .speed = I2C_SPEED_FAST, |
| 69 | }, |
| 70 | .i2c[3] = { |
| 71 | .speed = I2C_SPEED_FAST, |
| 72 | }, |
| 73 | .i2c[4] = { |
| 74 | .speed = I2C_SPEED_FAST, |
Seunghwan Kim | c543a81 | 2021-09-16 16:40:06 +0900 | [diff] [blame] | 75 | .rise_time_ns = 175, |
| 76 | .fall_time_ns = 8, |
Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 77 | }, |
| 78 | }" |
| 79 | device domain 0 on |
Seunghwan Kim | c543a81 | 2021-09-16 16:40:06 +0900 | [diff] [blame] | 80 | device pci 04.0 on |
| 81 | chip drivers/intel/dptf |
| 82 | register "options.tsr[0].desc" = ""Memory"" |
| 83 | register "options.tsr[1].desc" = ""CPU"" |
| 84 | register "options.tsr[2].desc" = ""Charger"" |
| 85 | register "options.tsr[3].desc" = ""LTE"" |
| 86 | register "policies.passive" = "{ |
| 87 | [0] = DPTF_PASSIVE(CPU, CPU, 90, 10000), |
| 88 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 100, 60000), |
| 89 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 100, 15000), |
| 90 | [3] = DPTF_PASSIVE(CHARGER, TEMP_SENSOR_2, 60, 15000), |
| 91 | [4] = DPTF_PASSIVE(CPU, TEMP_SENSOR_3, 100, 15000), |
| 92 | }" |
| 93 | register "policies.critical" = "{ |
| 94 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
| 95 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 100, SHUTDOWN), |
| 96 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 97 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 100, SHUTDOWN), |
| 98 | [4] = DPTF_CRITICAL(TEMP_SENSOR_3, 100, SHUTDOWN), |
| 99 | }" |
| 100 | register "controls.power_limits" = "{ |
| 101 | .pl1 = { |
| 102 | .min_power = 6000, |
| 103 | .max_power = 6000, |
| 104 | .time_window_min = 1 * MSECS_PER_SEC, |
| 105 | .time_window_max = 1 * MSECS_PER_SEC, |
| 106 | .granularity = 200, |
| 107 | }, |
| 108 | .pl2 = { |
| 109 | .min_power = 20000, |
| 110 | .max_power = 20000, |
| 111 | .time_window_min = 1 * MSECS_PER_SEC, |
| 112 | .time_window_max = 1 * MSECS_PER_SEC, |
| 113 | .granularity = 1000, |
| 114 | } |
| 115 | }" |
| 116 | register "controls.charger_perf" = "{ |
Seunghwan Kim | 8295cdd | 2021-11-02 14:22:08 +0900 | [diff] [blame^] | 117 | [0] = { 255, 2800 }, |
| 118 | [1] = { 39, 2500 }, |
| 119 | [2] = { 31, 2000 }, |
| 120 | [3] = { 23, 1500 }, |
Seunghwan Kim | c543a81 | 2021-09-16 16:40:06 +0900 | [diff] [blame] | 121 | }" |
| 122 | device generic 0 on end |
| 123 | end |
| 124 | end # SA Thermal device |
| 125 | device pci 05.0 on # IPU - MIPI Camera |
| 126 | chip drivers/intel/mipi_camera |
| 127 | register "acpi_uid" = "0x50000" |
| 128 | register "acpi_name" = ""IPU0"" |
| 129 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 130 | |
| 131 | register "cio2_num_ports" = "2" |
| 132 | register "cio2_lanes_used" = "{1,4}" |
| 133 | register "cio2_lane_endpoint[1]" = ""^I2C3.CAM1"" |
| 134 | register "cio2_prt[0]" = "0" |
| 135 | register "cio2_prt[1]" = "2" |
| 136 | device generic 0 on end |
| 137 | end |
| 138 | end |
Seunghwan Kim | 11f966d | 2021-08-24 14:07:03 +0900 | [diff] [blame] | 139 | device pci 14.0 on |
| 140 | chip drivers/usb/acpi |
| 141 | device usb 0.0 on |
| 142 | chip drivers/usb/acpi |
| 143 | register "desc" = ""UFCamera"" |
| 144 | register "type" = "UPC_TYPE_INTERNAL" |
| 145 | register "has_power_resource" = "1" |
| 146 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D13)" |
| 147 | register "enable_delay_ms" = "20" |
| 148 | device usb 2.5 on end |
| 149 | end |
| 150 | chip drivers/usb/acpi |
| 151 | register "desc" = ""LTE"" |
| 152 | register "type" = "UPC_TYPE_INTERNAL" |
| 153 | register "has_power_resource" = "1" |
| 154 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)" |
| 155 | register "reset_off_delay_ms" = "20" |
| 156 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 157 | register "enable_delay_ms" = "20" |
Seunghwan Kim | 0c39cd7 | 2021-10-19 15:26:54 +0900 | [diff] [blame] | 158 | device usb 3.3 on |
| 159 | probe DB_PORTS DB_PORTS_1C_1A_LTE |
| 160 | end |
Seunghwan Kim | 11f966d | 2021-08-24 14:07:03 +0900 | [diff] [blame] | 161 | end |
| 162 | end |
| 163 | end |
| 164 | end # USB xHCI |
Seunghwan Kim | c543a81 | 2021-09-16 16:40:06 +0900 | [diff] [blame] | 165 | device pci 15.0 on |
| 166 | chip drivers/i2c/generic |
| 167 | register "hid" = ""ELAN0000"" |
| 168 | register "desc" = ""ELAN Touchpad"" |
| 169 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)" |
| 170 | register "wake" = "GPE0_DW0_03" |
| 171 | register "probed" = "1" |
| 172 | device i2c 15 on end |
| 173 | end |
| 174 | chip drivers/i2c/hid |
| 175 | register "generic.hid" = ""ZNT0000"" |
| 176 | register "generic.desc" = ""Zinitix Touchpad"" |
| 177 | register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B3_IRQ)" |
| 178 | register "generic.wake" = "GPE0_DW0_03" |
| 179 | register "generic.probed" = "1" |
| 180 | register "hid_desc_reg_offset" = "0xE" |
| 181 | device i2c 40 on end |
| 182 | end |
| 183 | end # I2C 0 |
| 184 | device pci 15.1 on |
| 185 | chip drivers/i2c/hid |
| 186 | register "generic.hid" = ""WCOM014B"" |
| 187 | register "generic.desc" = ""WCOM Digitizer"" |
| 188 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D7_IRQ)" |
| 189 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 190 | register "generic.enable_delay_ms" = "20" |
| 191 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E1)" |
| 192 | register "generic.reset_delay_ms" = "100" |
| 193 | register "generic.has_power_resource" = "1" |
| 194 | register "hid_desc_reg_offset" = "0x1" |
| 195 | device i2c 0x09 on end |
| 196 | end |
| 197 | end # I2C #1 |
| 198 | device pci 15.2 on |
| 199 | chip drivers/i2c/hid |
| 200 | register "generic.hid" = ""HX121A"" |
| 201 | register "generic.desc" = ""HX Touchscreen"" |
| 202 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
| 203 | register "generic.probed" = "1" |
| 204 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" |
| 205 | register "generic.reset_delay_ms" = "120" |
| 206 | register "generic.reset_off_delay_ms" = "2" |
| 207 | register "generic.has_power_resource" = "1" |
| 208 | register "hid_desc_reg_offset" = "0x1" |
| 209 | device i2c 0x4F on end |
| 210 | end |
| 211 | end # I2C #2 |
| 212 | device pci 15.3 on |
| 213 | chip drivers/intel/mipi_camera |
| 214 | register "acpi_hid" = ""OVTI8856"" |
| 215 | register "acpi_uid" = "0" |
| 216 | register "acpi_name" = ""CAM1"" |
| 217 | register "chip_name" = ""Ov 8856 Camera"" |
| 218 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 219 | |
| 220 | register "ssdb.lanes_used" = "4" |
| 221 | register "ssdb.link_used" = "1" |
| 222 | register "ssdb.vcm_type" = "0x0C" |
| 223 | register "vcm_name" = ""VCM0"" |
| 224 | register "num_freq_entries" = "2" |
| 225 | register "link_freq[0]" = "360000000" |
| 226 | register "link_freq[1]" = "180000000" |
| 227 | register "remote_name" = ""IPU0"" |
| 228 | |
| 229 | register "has_power_resource" = "1" |
| 230 | #Controls |
| 231 | register "clk_panel.clks[0].clknum" = "1" #IMGCLKOUT_1 |
| 232 | register "clk_panel.clks[0].freq" = "1" #19.2 Mhz |
| 233 | |
| 234 | register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" #power_enable_2p8 |
| 235 | register "gpio_panel.gpio[1].gpio_num" = "GPP_D14" #power_enable_1p2 |
| 236 | register "gpio_panel.gpio[2].gpio_num" = "GPP_D12" #reset |
| 237 | |
| 238 | #_ON |
| 239 | register "on_seq.ops_cnt" = "5" |
| 240 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 241 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)" |
| 242 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)" |
| 243 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)" |
| 244 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)" |
| 245 | |
| 246 | #_OFF |
| 247 | register "off_seq.ops_cnt" = "4" |
| 248 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 249 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 250 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 251 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 252 | |
| 253 | device i2c 36 on end |
| 254 | end |
| 255 | chip drivers/intel/mipi_camera |
| 256 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 257 | register "acpi_uid" = "3" |
| 258 | register "acpi_name" = ""VCM0"" |
| 259 | register "chip_name" = ""DW AF DAC"" |
| 260 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 261 | |
| 262 | register "pr0" = ""\\_SB.PCI0.I2C3.CAM1.PRIC"" |
| 263 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 264 | |
| 265 | device i2c 0C on end |
| 266 | end |
| 267 | chip drivers/intel/mipi_camera |
| 268 | register "acpi_uid" = "1" |
| 269 | register "acpi_name" = ""NVM0"" |
| 270 | register "chip_name" = ""GT24C08"" |
| 271 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 272 | |
| 273 | register "nvm_size" = "0x2000" |
| 274 | register "nvm_pagesize" = "1" |
| 275 | register "nvm_readonly" = "1" |
| 276 | register "nvm_width" = "0x10" |
| 277 | register "nvm_compat" = ""atmel,24c08"" |
| 278 | |
| 279 | device i2c 50 on end |
| 280 | end |
| 281 | end # I2C 3 |
| 282 | device pci 1c.7 off end # PCI Express Root Port 8 |
| 283 | device pci 19.0 on |
| 284 | chip drivers/i2c/da7219 |
| 285 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 286 | register "btn_cfg" = "50" |
| 287 | register "mic_det_thr" = "500" |
| 288 | register "jack_ins_deb" = "20" |
| 289 | register "jack_det_rate" = ""32ms_64ms"" |
| 290 | register "jack_rem_deb" = "1" |
| 291 | register "a_d_btn_thr" = "0xa" |
| 292 | register "d_b_btn_thr" = "0x16" |
| 293 | register "b_c_btn_thr" = "0x21" |
| 294 | register "c_mic_btn_thr" = "0x3e" |
| 295 | register "btn_avg" = "4" |
| 296 | register "adc_1bit_rpt" = "1" |
| 297 | register "micbias_lvl" = "2600" |
| 298 | register "mic_amp_in_sel" = ""diff"" |
| 299 | device i2c 1a on end |
| 300 | end |
| 301 | end #I2C 4 |
| 302 | device pci 1f.3 on |
| 303 | chip drivers/generic/max98357a |
| 304 | register "hid" = ""MX98360A"" |
| 305 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
| 306 | device generic 0 on end |
| 307 | end |
| 308 | end # Intel HDA |
Raymond Chung | 3fc0190 | 2021-08-03 01:59:19 +0800 | [diff] [blame] | 309 | end |
| 310 | end |