Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [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 = 15, |
| 4 | .tdp_pl2_override = 64, |
| 5 | }" |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 6 | |
| 7 | register "SerialIoDevMode" = "{ |
| 8 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 9 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 10 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 11 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame] | 13 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 14 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
Matt DeVillier | 830b0ac | 2023-10-22 17:09:07 -0500 | [diff] [blame] | 15 | [PchSerialIoIndexSPI1] = PchSerialIoDisabled, |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 16 | [PchSerialIoIndexSPI2] = PchSerialIoDisabled, |
| 17 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 18 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 19 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 20 | }" |
| 21 | |
| 22 | register "usb2_ports[2]" = "USB2_PORT_LONG(OC_SKIP)" # SD CARD |
| 23 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # SD CARD |
| 24 | |
| 25 | # No PCIe WiFi |
| 26 | register "PcieRpEnable[13]" = "0" |
| 27 | |
| 28 | # Intel Common SoC Config |
| 29 | #+-------------------+---------------------------+ |
| 30 | #| Field | Value | |
| 31 | #+-------------------+---------------------------+ |
| 32 | #| I2C0 | Trackpad | |
| 33 | #| I2C1 | Touchscreen | |
Angel Pons | e16692e | 2020-08-03 12:54:48 +0200 | [diff] [blame] | 34 | #| I2C2 | 2nd Touchscreen | |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 35 | #| I2C4 | Audio | |
| 36 | #+-------------------+---------------------------+ |
| 37 | register "common_soc_config" = "{ |
| 38 | .i2c[0] = { |
| 39 | .speed = I2C_SPEED_FAST, |
| 40 | .rise_time_ns = 50, |
| 41 | .fall_time_ns = 15, |
Angel Pons | e16692e | 2020-08-03 12:54:48 +0200 | [diff] [blame] | 42 | .data_hold_time_ns = 330, |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 43 | }, |
| 44 | .i2c[1] = { |
| 45 | .speed = I2C_SPEED_FAST, |
| 46 | .rise_time_ns = 60, |
| 47 | .fall_time_ns = 25, |
| 48 | }, |
| 49 | .i2c[2] = { |
| 50 | .speed = I2C_SPEED_FAST, |
| 51 | .rise_time_ns = 60, |
| 52 | .fall_time_ns = 25, |
| 53 | }, |
| 54 | .i2c[4] = { |
| 55 | .speed = I2C_SPEED_FAST, |
| 56 | .rise_time_ns = 120, |
| 57 | .fall_time_ns = 120, |
| 58 | }, |
| 59 | }" |
| 60 | |
| 61 | device domain 0 on |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 62 | device ref igpu on |
Matt DeVillier | c5a3a4a | 2020-06-07 04:05:55 -0500 | [diff] [blame] | 63 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 64 | end |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 65 | device ref xhci on |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 66 | chip drivers/usb/acpi |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 67 | device ref xhci_root_hub on |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 68 | chip drivers/usb/acpi |
| 69 | register "desc" = ""Micro SD Card"" |
| 70 | register "type" = "UPC_TYPE_INTERNAL" |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 71 | device ref usb2_port3 on end |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 72 | end |
| 73 | chip drivers/usb/acpi |
| 74 | register "desc" = ""Left Type-A Port"" |
| 75 | register "type" = "UPC_TYPE_A" |
| 76 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 77 | device ref usb2_port4 on end |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 78 | end |
| 79 | chip drivers/usb/acpi |
| 80 | # No WWAN |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 81 | device ref usb2_port6 off end |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 82 | end |
| 83 | chip drivers/usb/acpi |
| 84 | # No Right Tpype-C port |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 85 | device ref usb3_port2 off end |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 86 | end |
| 87 | chip drivers/usb/acpi |
| 88 | register "desc" = ""Micro SD card"" |
| 89 | register "type" = "UPC_TYPE_INTERNAL" |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 90 | device ref usb3_port3 on end |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 91 | end |
| 92 | chip drivers/usb/acpi |
| 93 | register "desc" = ""Left Type-A Port 1"" |
| 94 | register "type" = "UPC_TYPE_A" |
| 95 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 96 | device ref usb3_port4 on end |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 97 | end |
| 98 | end |
| 99 | end |
| 100 | end |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 101 | device ref i2c0 on |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 102 | chip drivers/i2c/generic |
| 103 | register "hid" = ""ELAN0000"" |
| 104 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 251d443 | 2022-12-18 18:47:20 -0600 | [diff] [blame] | 105 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_A21_IRQ)" |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 106 | register "wake" = "GPE0_DW0_21" |
| 107 | device i2c 15 on end |
| 108 | end |
| 109 | end |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 110 | device ref i2c1 on |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 111 | chip drivers/i2c/hid |
| 112 | register "generic.hid" = ""ELAN9008"" |
| 113 | register "generic.desc" = ""ELAN Touchscreen USI"" |
| 114 | register "generic.irq" = |
| 115 | "ACPI_IRQ_EDGE_LOW(GPP_D16_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 116 | register "generic.detect" = "1" |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 117 | register "generic.enable_gpio" = |
| 118 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D9)" |
| 119 | register "generic.enable_delay_ms" = "12" |
| 120 | register "generic.enable_off_delay_ms" = "10" |
| 121 | register "generic.has_power_resource" = "1" |
| 122 | register "generic.stop_gpio" = |
| 123 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C4)" |
| 124 | register "generic.stop_delay_ms" = "15" |
| 125 | register "generic.stop_off_delay_ms" = "5" |
| 126 | register "hid_desc_reg_offset" = "0x01" |
| 127 | device i2c 10 on end |
| 128 | end |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 129 | end |
| 130 | device ref i2c2 on |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 131 | chip drivers/i2c/hid |
| 132 | register "generic.hid" = ""ELAN9009"" |
| 133 | register "generic.desc" = ""ELAN Touchscreen USI"" |
| 134 | register "generic.irq" = |
| 135 | "ACPI_IRQ_EDGE_LOW(GPP_C7_IRQ)" |
Matt DeVillier | c5ec497 | 2022-12-18 20:13:28 -0600 | [diff] [blame] | 136 | register "generic.detect" = "1" |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 137 | register "generic.enable_gpio" = |
Zhuohao Lee | 7587526 | 2020-06-08 15:37:23 +0800 | [diff] [blame] | 138 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D10)" |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 139 | register "generic.enable_delay_ms" = "12" |
| 140 | register "generic.enable_off_delay_ms" = "10" |
| 141 | register "generic.has_power_resource" = "1" |
| 142 | register "generic.stop_gpio" = |
Zhuohao Lee | 7587526 | 2020-06-08 15:37:23 +0800 | [diff] [blame] | 143 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 144 | register "generic.stop_delay_ms" = "15" |
| 145 | register "generic.stop_off_delay_ms" = "5" |
| 146 | register "hid_desc_reg_offset" = "0x01" |
| 147 | device i2c 10 on end |
| 148 | end |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 149 | end |
| 150 | device ref i2c4 on |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 151 | chip drivers/i2c/generic |
| 152 | register "hid" = ""10EC5682"" |
| 153 | register "name" = ""RT58"" |
| 154 | register "desc" = ""Realtek RT5682"" |
| 155 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)" |
| 156 | register "property_count" = "1" |
| 157 | # Set the jd_src to RT5668_JD1 for jack detection |
| 158 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 159 | register "property_list[0].name" = ""realtek,jd-src"" |
| 160 | register "property_list[0].integer" = "1" |
| 161 | device i2c 1a on end |
| 162 | end |
| 163 | chip drivers/i2c/generic |
| 164 | register "hid" = ""10EC1011"" |
| 165 | register "desc" = ""RT1011 Tweeter Left Speaker Amp"" |
| 166 | register "uid" = "0" |
| 167 | register "name" = ""TL"" |
| 168 | device i2c 38 on end |
| 169 | end |
| 170 | chip drivers/i2c/generic |
| 171 | register "hid" = ""10EC1011"" |
| 172 | register "desc" = ""RT1011 Tweeter Right Speaker Amp"" |
| 173 | register "uid" = "1" |
| 174 | register "name" = ""TR"" |
| 175 | device i2c 39 on end |
| 176 | end |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 177 | end |
| 178 | device ref hda on |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 179 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 180 | register "hid" = ""MX98357A"" |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 181 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" |
| 182 | register "sdmode_delay" = "5" |
| 183 | device generic 0 on end |
| 184 | end |
Matt DeVillier | 1fd4d76 | 2023-10-22 18:59:40 -0500 | [diff] [blame^] | 185 | end |
Kane Chen | 1f4f0b4 | 2020-02-13 15:45:19 +0800 | [diff] [blame] | 186 | end |
| 187 | end |