Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 1 | chip soc/intel/apollolake |
| 2 | |
Bora Guvendik | 94bb9a9 | 2018-12-14 14:13:03 -0800 | [diff] [blame] | 3 | # EMMC Tx CMD Delay |
| 4 | # Refer to EDS-Vol2-16.32. |
| 5 | # [14:8] steps of delay for DDR mode, each 125ps. |
| 6 | # [6:0] steps of delay for SDR mode, each 125ps. |
| 7 | register "emmc_tx_cmd_cntl" = "0x505" |
| 8 | |
| 9 | # EMMC TX DATA Delay 1 |
| 10 | # Refer to EDS-Vol2-16.33. |
| 11 | # [14:8] steps of delay for HS400, each 125ps. |
| 12 | # [6:0] steps of delay for SDR104/HS200, each 125ps. |
| 13 | register "emmc_tx_data_cntl1" = "0x0a0c" |
| 14 | |
| 15 | # EMMC TX DATA Delay 2 |
| 16 | # Refer to EDS-Vol2-16.34. |
| 17 | # [30:24] steps of delay for SDR50, each 125ps. |
| 18 | # [22:16] steps of delay for DDR50, each 125ps. |
| 19 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 20 | # [6:0] steps of delay for SDR12, each 125ps. |
| 21 | register "emmc_tx_data_cntl2" = "0x1c282828" |
| 22 | |
| 23 | # EMMC RX CMD/DATA Delay 1 |
| 24 | # Refer to EDS-Vol2-16.35. |
| 25 | # [30:24] steps of delay for SDR50, each 125ps. |
| 26 | # [22:16] steps of delay for DDR50, each 125ps. |
| 27 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 28 | # [6:0] steps of delay for SDR12, each 125ps. |
| 29 | register "emmc_rx_cmd_data_cntl1" = "0x00181818" |
| 30 | |
| 31 | # EMMC RX CMD/DATA Delay 2 |
| 32 | # Refer to EDS-Vol2-16.37. |
| 33 | # [17:16] stands for Rx Clock before Output Buffer |
| 34 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps. |
| 35 | # [6:0] steps of delay for HS200, each 125ps. |
| 36 | register "emmc_rx_cmd_data_cntl2" = "0x1001f" |
| 37 | |
| 38 | # EMMC Rx Strobe Delay |
| 39 | # Refer to EDS-Vol2-16.36. |
| 40 | # [14:8] Rx Strobe Delay DLL 1(HS400 Mode), each 125ps. |
| 41 | # [6:0] Rx Strobe Delay DLL 2(HS400 Mode), each 125ps. |
| 42 | register "emmc_rx_strobe_cntl" = "0x0b0b" |
| 43 | |
Chris Zhou | c733540 | 2018-09-27 15:28:33 +0800 | [diff] [blame] | 44 | # Intel Common SoC Config |
| 45 | #+-------------------+---------------------------+ |
| 46 | #| Field | Value | |
| 47 | #+-------------------+---------------------------+ |
| 48 | #| GSPI0 | cr50 TPM. Early init is | |
| 49 | #| | required to set up a BAR | |
| 50 | #| | for TPM communication | |
| 51 | #| | before memory is up | |
| 52 | #| I2C5 | Audio | |
| 53 | #| I2C6 | Trackpad | |
| 54 | #| I2C7 | Touchscreen | |
| 55 | #+-------------------+---------------------------+ |
| 56 | |
John Su | cd40ddf | 2018-11-01 14:41:30 +0800 | [diff] [blame] | 57 | register "tcc_offset" = "10" |
| 58 | |
Chris Zhou | c733540 | 2018-09-27 15:28:33 +0800 | [diff] [blame] | 59 | register "common_soc_config" = "{ |
| 60 | .gspi[0] = { |
| 61 | .speed_mhz = 1, |
| 62 | .early_init = 1, |
| 63 | }, |
Chris Zhou | 84133b1 | 2019-06-26 16:54:19 +0800 | [diff] [blame] | 64 | .i2c[0] = { |
| 65 | .speed = I2C_SPEED_FAST, |
John Su | 4e07adb | 2019-10-04 16:34:50 +0800 | [diff] [blame] | 66 | .rise_time_ns = 25, |
| 67 | .fall_time_ns = 52, |
Chris Zhou | 84133b1 | 2019-06-26 16:54:19 +0800 | [diff] [blame] | 68 | }, |
Chris Zhou | c733540 | 2018-09-27 15:28:33 +0800 | [diff] [blame] | 69 | .i2c[5] = { |
| 70 | .speed = I2C_SPEED_FAST, |
| 71 | .rise_time_ns = 104, |
| 72 | .fall_time_ns = 52, |
| 73 | }, |
| 74 | .i2c[6] = { |
| 75 | .speed = I2C_SPEED_FAST, |
| 76 | .rise_time_ns = 66, |
| 77 | .fall_time_ns = 90, |
| 78 | .data_hold_time_ns = 350, |
| 79 | }, |
| 80 | .i2c[7] = { |
| 81 | .speed = I2C_SPEED_FAST, |
| 82 | .rise_time_ns = 76, |
| 83 | .fall_time_ns = 164, |
| 84 | }, |
| 85 | }" |
| 86 | |
Eric Lai | b3e9aaf | 2020-10-28 11:46:02 +0800 | [diff] [blame] | 87 | # Disable compliance mode |
Mario Scheithauer | feafddb | 2023-06-15 14:22:22 +0200 | [diff] [blame^] | 88 | register "disable_compliance_mode" = "1" |
Eric Lai | b3e9aaf | 2020-10-28 11:46:02 +0800 | [diff] [blame] | 89 | register "disable_xhci_lfps_pm" = "0" |
| 90 | |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 91 | device domain 0 on |
Chris Zhou | 84133b1 | 2019-06-26 16:54:19 +0800 | [diff] [blame] | 92 | device pci 16.0 on |
| 93 | chip drivers/i2c/hid |
| 94 | register "generic.hid" = ""WCOM50C1"" |
| 95 | register "generic.desc" = ""WCOM Digitizer"" |
| 96 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_139_IRQ)" |
| 97 | register "generic.reset_gpio" = |
| 98 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_140)" |
| 99 | register "generic.reset_delay_ms" = "20" |
| 100 | register "generic.has_power_resource" = "1" |
Matt DeVillier | 0c3806d | 2022-03-28 22:44:32 -0500 | [diff] [blame] | 101 | register "generic.detect" = "1" |
Chris Zhou | 84133b1 | 2019-06-26 16:54:19 +0800 | [diff] [blame] | 102 | register "hid_desc_reg_offset" = "0x1" |
| 103 | device i2c 0x9 on end |
| 104 | end |
| 105 | end # - I2C 0 |
Furquan Shaikh | ff23d21 | 2018-08-10 11:30:18 -0700 | [diff] [blame] | 106 | device pci 16.1 off end # - I2C 1 |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 107 | device pci 17.1 on |
| 108 | chip drivers/i2c/da7219 |
| 109 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)" |
| 110 | register "btn_cfg" = "50" |
| 111 | register "mic_det_thr" = "500" |
| 112 | register "jack_ins_deb" = "20" |
| 113 | register "jack_det_rate" = ""32ms_64ms"" |
| 114 | register "jack_rem_deb" = "1" |
| 115 | register "a_d_btn_thr" = "0xa" |
| 116 | register "d_b_btn_thr" = "0x16" |
| 117 | register "b_c_btn_thr" = "0x21" |
| 118 | register "c_mic_btn_thr" = "0x3e" |
| 119 | register "btn_avg" = "4" |
| 120 | register "adc_1bit_rpt" = "1" |
| 121 | register "micbias_lvl" = "2600" |
| 122 | register "mic_amp_in_sel" = ""diff"" |
| 123 | device i2c 1a on end |
| 124 | end |
Eric Lai | 1d6a13c | 2021-03-12 10:51:53 +0800 | [diff] [blame] | 125 | chip drivers/i2c/generic |
| 126 | register "hid" = ""10EC5682"" |
| 127 | register "name" = ""RT58"" |
| 128 | register "desc" = ""Realtek RT5682"" |
| 129 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)" |
| 130 | register "probed" = "1" |
| 131 | register "property_count" = "1" |
| 132 | # Set the jd_src to RT5668_JD1 for jack detection |
| 133 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 134 | register "property_list[0].name" = ""realtek,jd-src"" |
| 135 | register "property_list[0].integer" = "1" |
| 136 | device i2c 1a on end |
| 137 | end |
Eric Lai | 598f2ba | 2021-04-15 11:43:02 +0800 | [diff] [blame] | 138 | chip drivers/i2c/cs42l42 |
| 139 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)" |
| 140 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_144)" |
| 141 | register "ts_inv" = "true" |
| 142 | register "ts_dbnc_rise" = "RISE_DEB_1000_MS" |
| 143 | register "ts_dbnc_fall" = "FALL_DEB_0_MS" |
| 144 | register "btn_det_init_dbnce" = "100" |
| 145 | register "btn_det_event_dbnce" = "10" |
| 146 | register "bias_lvls[0]" = "15" |
| 147 | register "bias_lvls[1]" = "8" |
| 148 | register "bias_lvls[2]" = "4" |
| 149 | register "bias_lvls[3]" = "1" |
| 150 | register "hs_bias_ramp_rate" = "HSBIAS_RAMP_SLOW" |
Ian Feng | 23e15b1 | 2021-05-07 14:24:54 +0800 | [diff] [blame] | 151 | register "hs_bias_sense_disable" = "true" |
Eric Lai | 598f2ba | 2021-04-15 11:43:02 +0800 | [diff] [blame] | 152 | device i2c 48 on end |
| 153 | end |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 154 | end # - I2C 5 |
| 155 | device pci 17.2 on |
| 156 | chip drivers/i2c/generic |
| 157 | register "hid" = ""ELAN0000"" |
| 158 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | dc80745 | 2022-03-30 12:30:21 -0500 | [diff] [blame] | 159 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPIO_135_IRQ)" |
Furquan Shaikh | 2c2650a | 2018-10-18 16:25:58 -0700 | [diff] [blame] | 160 | register "wake" = "GPE0_DW3_27" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 161 | register "detect" = "1" |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 162 | device i2c 15 on end |
| 163 | end |
Eric Lai | 6c02ca6 | 2020-10-21 11:53:22 +0800 | [diff] [blame] | 164 | chip drivers/i2c/hid |
| 165 | register "generic.hid" = ""GXTP7288"" |
| 166 | register "generic.desc" = ""Goodix Touchpad"" |
Karthikeyan Ramasubramanian | 61a5391 | 2020-11-10 14:37:38 -0700 | [diff] [blame] | 167 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_135_IRQ)" |
Eric Lai | 6c02ca6 | 2020-10-21 11:53:22 +0800 | [diff] [blame] | 168 | register "generic.wake" = "GPE0_DW3_27" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 169 | register "generic.detect" = "1" |
Eric Lai | 6c02ca6 | 2020-10-21 11:53:22 +0800 | [diff] [blame] | 170 | register "hid_desc_reg_offset" = "0x20" |
| 171 | device i2c 2c on end |
| 172 | end |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 173 | end # - I2C 6 |
| 174 | device pci 17.3 on |
| 175 | chip drivers/i2c/generic |
| 176 | register "hid" = ""ELAN0001"" |
| 177 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | dc80745 | 2022-03-30 12:30:21 -0500 | [diff] [blame] | 178 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_212_IRQ)" |
Matt DeVillier | 0c3806d | 2022-03-28 22:44:32 -0500 | [diff] [blame] | 179 | register "detect" = "1" |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 180 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)" |
| 181 | register "reset_delay_ms" = "20" |
Furquan Shaikh | 5949c23 | 2018-11-21 14:31:14 -0800 | [diff] [blame] | 182 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_146)" |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 183 | register "enable_delay_ms" = "1" |
| 184 | register "has_power_resource" = "1" |
| 185 | device i2c 10 on end |
| 186 | end |
Crystal Lin | 54bb0ce | 2018-08-02 17:40:01 +0800 | [diff] [blame] | 187 | chip drivers/i2c/hid |
| 188 | register "generic.hid" = ""WDHT0002"" |
| 189 | register "generic.desc" = ""WDT Touchscreen"" |
Karthikeyan Ramasubramanian | 61a5391 | 2020-11-10 14:37:38 -0700 | [diff] [blame] | 190 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_212_IRQ)" |
Matt DeVillier | 0c3806d | 2022-03-28 22:44:32 -0500 | [diff] [blame] | 191 | register "generic.detect" = "1" |
Crystal Lin | 54bb0ce | 2018-08-02 17:40:01 +0800 | [diff] [blame] | 192 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)" |
Crystal Lin | 5251ff7 | 2018-08-16 14:55:02 +0800 | [diff] [blame] | 193 | register "generic.reset_delay_ms" = "130" |
Furquan Shaikh | 5949c23 | 2018-11-21 14:31:14 -0800 | [diff] [blame] | 194 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_146)" |
Crystal Lin | 54bb0ce | 2018-08-02 17:40:01 +0800 | [diff] [blame] | 195 | register "generic.enable_delay_ms" = "2" |
| 196 | register "generic.has_power_resource" = "1" |
Crystal Lin | 54bb0ce | 2018-08-02 17:40:01 +0800 | [diff] [blame] | 197 | register "hid_desc_reg_offset" = "0x20" |
| 198 | device i2c 2c on end |
| 199 | end |
John Su | 47c4bf5 | 2020-09-01 17:59:45 +0800 | [diff] [blame] | 200 | chip drivers/i2c/hid |
| 201 | register "generic.hid" = ""GTCH7503"" |
| 202 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
Karthikeyan Ramasubramanian | 61a5391 | 2020-11-10 14:37:38 -0700 | [diff] [blame] | 203 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_212_IRQ)" |
Matt DeVillier | 0c3806d | 2022-03-28 22:44:32 -0500 | [diff] [blame] | 204 | register "generic.detect" = "1" |
John Su | 47c4bf5 | 2020-09-01 17:59:45 +0800 | [diff] [blame] | 205 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)" |
| 206 | register "generic.reset_delay_ms" = "50" |
| 207 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_146)" |
| 208 | register "generic.enable_delay_ms" = "1" |
| 209 | register "generic.has_power_resource" = "1" |
John Su | 47c4bf5 | 2020-09-01 17:59:45 +0800 | [diff] [blame] | 210 | register "hid_desc_reg_offset" = "0x01" |
| 211 | device i2c 40 on end |
| 212 | end |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 213 | end # - I2C 7 |
| 214 | end |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 215 | end |