Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 1 | fw_config |
| 2 | field AUDIO 0 3 |
| 3 | option AUDIO_UNKNOWN 0 |
Subrata Banik | d38baae | 2022-12-16 11:46:49 +0530 | [diff] [blame] | 4 | option MAX98360_ALC5682I_I2S 1 |
| 5 | option MAX98363_CS42L42_SNDW 2 |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 6 | end |
| 7 | field CELLULAR 4 5 |
| 8 | option CELLULAR_ABSENT 0 |
| 9 | option CELLULAR_USB 1 |
| 10 | option CELLULAR_PCIE 2 |
| 11 | end |
| 12 | field UFC 6 7 |
| 13 | option UFC_USB 0 |
| 14 | option UFC_MIPI 1 |
| 15 | end |
| 16 | field WFC 8 9 |
| 17 | option WFC_USB 0 |
| 18 | option WFC_MIPI 1 |
| 19 | end |
| 20 | field DB_SD 10 11 |
| 21 | option SD_ABSENT 0 |
| 22 | option SD_GL9755S 1 |
| 23 | end |
| 24 | field DB_USB 12 13 |
| 25 | option USB_UNKNOWN 0 |
| 26 | option USB3_PS8815 1 |
Subrata Banik | d38baae | 2022-12-16 11:46:49 +0530 | [diff] [blame] | 27 | option USB4_KB8010 2 |
| 28 | option USB4_ANX7452 3 |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 29 | end |
| 30 | end |
| 31 | |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 32 | chip soc/intel/meteorlake |
Subrata Banik | 691af09 | 2022-07-12 09:41:00 +0000 | [diff] [blame] | 33 | |
Subrata Banik | 01c190e | 2022-12-06 20:44:25 +0530 | [diff] [blame] | 34 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB2_C1 |
Subrata Banik | 35c6121 | 2022-07-12 09:55:32 +0000 | [diff] [blame] | 35 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC0)" # USB2_C0 |
Subrata Banik | 35c6121 | 2022-07-12 09:55:32 +0000 | [diff] [blame] | 36 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN |
| 37 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera |
| 38 | register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # Type-A Port A0 |
| 39 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth |
| 40 | |
| 41 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type A port A0 |
Subrata Banik | 0852991 | 2022-12-14 16:28:11 +0530 | [diff] [blame] | 42 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3 port for WWAN |
Subrata Banik | 35c6121 | 2022-07-12 09:55:32 +0000 | [diff] [blame] | 43 | |
| 44 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC0)" |
| 45 | register "tcss_ports[2]" = "TCSS_PORT_DEFAULT(OC_SKIP)" |
| 46 | |
Subrata Banik | 8072b42 | 2022-07-27 20:11:19 +0000 | [diff] [blame] | 47 | # Enable eDP in Port A |
| 48 | register "ddi_port_A_config" = "1" |
| 49 | # Enable HDMI in Port B |
| 50 | register "ddi_port_B_config" = "0" |
| 51 | |
| 52 | # Enable Display Port Configuration |
| 53 | register "ddi_ports_config" = "{ |
| 54 | [DDI_PORT_A] = DDI_ENABLE_HPD, |
| 55 | [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 56 | }" |
| 57 | |
Subrata Banik | 9ffaf7f | 2022-07-12 09:51:35 +0000 | [diff] [blame] | 58 | register "serial_io_gspi_mode" = "{ |
| 59 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
| 60 | [PchSerialIoIndexGSPI1] = PchSerialIoPci, |
| 61 | [PchSerialIoIndexGSPI2] = PchSerialIoDisabled, |
| 62 | }" |
| 63 | |
Subrata Banik | 691af09 | 2022-07-12 09:41:00 +0000 | [diff] [blame] | 64 | register "serial_io_i2c_mode" = "{ |
| 65 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 66 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 67 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 68 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 69 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 70 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 71 | }" |
| 72 | |
| 73 | # Intel Common SoC Config |
| 74 | #+-------------------+---------------------------+ |
| 75 | #| Field | Value | |
| 76 | #+-------------------+---------------------------+ |
| 77 | #| I2C0 | Audio and WFC | |
| 78 | #| I2C1 | Touchscreen | |
| 79 | #| I2C3 | Touchpad | |
| 80 | #| I2C4 | cr50 TPM. Early init is | |
| 81 | #| | required to set up a BAR | |
| 82 | #| | for TPM communication | |
| 83 | #| I2C5 | UFC, SAR1, SAR2, HPS | |
| 84 | #+-------------------+---------------------------+ |
| 85 | register "common_soc_config" = "{ |
| 86 | .i2c[0] = { |
| 87 | .speed = I2C_SPEED_FAST, |
| 88 | .rise_time_ns = 650, |
| 89 | .fall_time_ns = 400, |
| 90 | .data_hold_time_ns = 50, |
| 91 | }, |
| 92 | .i2c[1] = { |
| 93 | .speed = I2C_SPEED_FAST, |
| 94 | .rise_time_ns = 650, |
| 95 | .fall_time_ns = 400, |
| 96 | .data_hold_time_ns = 50, |
| 97 | }, |
| 98 | .i2c[3] = { |
| 99 | .speed = I2C_SPEED_FAST, |
| 100 | .rise_time_ns = 650, |
| 101 | .fall_time_ns = 400, |
| 102 | .data_hold_time_ns = 50, |
| 103 | }, |
| 104 | .i2c[4] = { |
| 105 | .early_init = 1, |
| 106 | .speed = I2C_SPEED_FAST, |
| 107 | .rise_time_ns = 600, |
| 108 | .fall_time_ns = 400, |
| 109 | .data_hold_time_ns = 50, |
| 110 | }, |
| 111 | .i2c[5] = { |
| 112 | .speed = I2C_SPEED_FAST, |
| 113 | .rise_time_ns = 900, |
| 114 | .fall_time_ns = 400, |
| 115 | .data_hold_time_ns = 50, |
| 116 | }, |
| 117 | }" |
| 118 | |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 119 | device domain 0 on |
zhaojohn | 92d49da | 2022-12-16 09:27:19 -0800 | [diff] [blame] | 120 | device ref dtt on |
| 121 | chip drivers/intel/dptf |
| 122 | device generic 0 alias dptf_policy on end |
| 123 | end |
| 124 | end |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 125 | device ref pcie_rp9 on |
| 126 | # Enable SSD Card PCIE 9 using clk 4 |
| 127 | register "pcie_rp[PCH_RP(9)]" = "{ |
| 128 | .clk_src = 4, |
| 129 | .clk_req = 4, |
| 130 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 131 | }" |
| 132 | end #PCIE9 SSD card |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 133 | device ref tbt_pcie_rp0 on end |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 134 | device ref tbt_pcie_rp2 on end |
Subrata Banik | 5be9959 | 2022-08-08 17:33:37 +0000 | [diff] [blame] | 135 | device ref tcss_xhci on |
| 136 | chip drivers/usb/acpi |
| 137 | device ref tcss_root_hub on |
| 138 | chip drivers/usb/acpi |
| 139 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 140 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 141 | register "use_custom_pld" = "true" |
| 142 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
| 143 | device ref tcss_usb3_port1 on end |
| 144 | end |
| 145 | chip drivers/usb/acpi |
| 146 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 147 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 148 | register "use_custom_pld" = "true" |
| 149 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 150 | device ref tcss_usb3_port3 on end |
| 151 | end |
| 152 | end |
| 153 | end |
| 154 | end |
Subrata Banik | 50c73b5 | 2022-08-08 17:55:13 +0000 | [diff] [blame] | 155 | device ref tcss_dma0 on |
| 156 | chip drivers/intel/usb4/retimer |
| 157 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
| 158 | use tcss_usb3_port1 as dfp[0].typec_port |
| 159 | device generic 0 on end |
| 160 | end |
| 161 | end |
| 162 | device ref tcss_dma1 on |
| 163 | chip drivers/intel/usb4/retimer |
| 164 | register "dfp[0].power_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B22)" |
| 165 | use tcss_usb3_port3 as dfp[0].typec_port |
| 166 | device generic 0 on end |
| 167 | end |
| 168 | end |
Subrata Banik | 52398d6 | 2022-08-08 18:13:35 +0000 | [diff] [blame] | 169 | device ref xhci on |
| 170 | chip drivers/usb/acpi |
| 171 | device ref xhci_root_hub on |
| 172 | chip drivers/usb/acpi |
Subrata Banik | 01c190e | 2022-12-06 20:44:25 +0530 | [diff] [blame] | 173 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 174 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 175 | register "use_custom_pld" = "true" |
| 176 | register "custom_pld" = "ACPI_PLD_TYPE_C(RIGHT, LEFT, ACPI_PLD_GROUP(2, 1))" |
| 177 | device ref usb2_port1 on end |
| 178 | end |
| 179 | chip drivers/usb/acpi |
Subrata Banik | 52398d6 | 2022-08-08 18:13:35 +0000 | [diff] [blame] | 180 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 181 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 182 | register "use_custom_pld" = "true" |
| 183 | register "custom_pld" = "ACPI_PLD_TYPE_C(LEFT, RIGHT, ACPI_PLD_GROUP(1, 1))" |
| 184 | device ref usb2_port2 on end |
| 185 | end |
| 186 | chip drivers/usb/acpi |
Subrata Banik | 52398d6 | 2022-08-08 18:13:35 +0000 | [diff] [blame] | 187 | register "desc" = ""USB2 WWAN"" |
| 188 | register "type" = "UPC_TYPE_INTERNAL" |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 189 | device ref usb2_port5 on |
| 190 | probe CELLULAR CELLULAR_USB |
| 191 | end |
Subrata Banik | 52398d6 | 2022-08-08 18:13:35 +0000 | [diff] [blame] | 192 | end |
| 193 | chip drivers/usb/acpi |
| 194 | register "desc" = ""USB2 Camera"" |
| 195 | register "type" = "UPC_TYPE_INTERNAL" |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 196 | device ref usb2_port6 on |
| 197 | probe UFC UFC_USB |
| 198 | end |
Subrata Banik | 52398d6 | 2022-08-08 18:13:35 +0000 | [diff] [blame] | 199 | end |
| 200 | chip drivers/usb/acpi |
| 201 | register "desc" = ""USB2 Type-A Port A0 (DB)"" |
| 202 | register "type" = "UPC_TYPE_A" |
| 203 | register "use_custom_pld" = "true" |
| 204 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 205 | device ref usb2_port9 on end |
| 206 | end |
| 207 | chip drivers/usb/acpi |
| 208 | register "desc" = ""USB2 Bluetooth"" |
| 209 | register "type" = "UPC_TYPE_INTERNAL" |
| 210 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B01)" |
| 211 | device ref usb2_port10 on end |
| 212 | end |
| 213 | chip drivers/usb/acpi |
| 214 | register "desc" = ""USB3 Type-A Port A0 (DB)"" |
| 215 | register "type" = "UPC_TYPE_USB3_A" |
| 216 | register "use_custom_pld" = "true" |
| 217 | register "custom_pld" = "ACPI_PLD_TYPE_A(RIGHT, RIGHT, ACPI_PLD_GROUP(1, 2))" |
| 218 | device ref usb3_port1 on end |
| 219 | end |
Subrata Banik | 0852991 | 2022-12-14 16:28:11 +0530 | [diff] [blame] | 220 | chip drivers/usb/acpi |
| 221 | register "desc" = ""USB3 WWAN"" |
| 222 | register "type" = "UPC_TYPE_INTERNAL" |
| 223 | device ref usb3_port2 on |
| 224 | probe CELLULAR CELLULAR_USB |
| 225 | end |
| 226 | end |
Subrata Banik | 52398d6 | 2022-08-08 18:13:35 +0000 | [diff] [blame] | 227 | end |
| 228 | end |
| 229 | end |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 230 | device ref cnvi_wifi on |
| 231 | chip drivers/wifi/generic |
| 232 | register "wake" = "GPE0_PME_B0" |
Kapil Porwal | da1a58a | 2022-11-23 19:17:35 +0530 | [diff] [blame] | 233 | register "add_acpi_dma_property" = "true" |
zhaojohn | 42cdd22 | 2022-09-22 21:20:11 -0700 | [diff] [blame] | 234 | register "enable_cnvi_ddr_rfim" = "true" |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 235 | device generic 0 on end |
| 236 | end |
| 237 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 238 | device ref ipu on |
| 239 | chip drivers/intel/mipi_camera |
| 240 | register "acpi_uid" = "0x50000" |
| 241 | register "acpi_name" = ""IPU0"" |
| 242 | register "device_type" = "INTEL_ACPI_CAMERA_CIO2" |
| 243 | |
| 244 | register "cio2_num_ports" = "2" |
Subrata Banik | 4456e8a | 2022-12-01 20:24:54 +0530 | [diff] [blame] | 245 | register "cio2_lanes_used" = "{4,2}" # 4 and 2 CSI Camera lanes are used |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 246 | register "cio2_lane_endpoint[0]" = ""^I2C0.CAM0"" |
| 247 | register "cio2_lane_endpoint[1]" = ""^I2C5.CAM1"" |
| 248 | register "cio2_prt[0]" = "4" |
| 249 | register "cio2_prt[1]" = "0" |
| 250 | |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 251 | device generic 0 on |
| 252 | probe UFC UFC_MIPI |
| 253 | probe WFC WFC_MIPI |
| 254 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 255 | end |
| 256 | end |
Eran Mitrani | 51249d6 | 2022-08-19 15:39:47 -0700 | [diff] [blame] | 257 | device ref i2c0 on |
| 258 | chip drivers/i2c/generic |
| 259 | register "hid" = ""RTL5682"" |
| 260 | register "name" = ""RT58"" |
| 261 | register "desc" = ""Headset Codec"" |
| 262 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_B06)" |
| 263 | # Set the jd_src to RT5668_JD1 for jack detection |
| 264 | register "property_count" = "1" |
| 265 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 266 | register "property_list[0].name" = ""realtek,jd-src"" |
| 267 | register "property_list[0].integer" = "1" |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 268 | device i2c 1a on |
Subrata Banik | d38baae | 2022-12-16 11:46:49 +0530 | [diff] [blame] | 269 | probe AUDIO MAX98360_ALC5682I_I2S |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 270 | end |
Eran Mitrani | 51249d6 | 2022-08-19 15:39:47 -0700 | [diff] [blame] | 271 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 272 | chip drivers/intel/mipi_camera |
Subrata Banik | 4456e8a | 2022-12-01 20:24:54 +0530 | [diff] [blame] | 273 | register "acpi_hid" = ""OVTIDB10"" |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 274 | register "acpi_uid" = "0" |
| 275 | register "acpi_name" = ""CAM0"" |
Subrata Banik | 4456e8a | 2022-12-01 20:24:54 +0530 | [diff] [blame] | 276 | register "chip_name" = ""Ov 13b10 Camera"" |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 277 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 278 | |
Subrata Banik | 4456e8a | 2022-12-01 20:24:54 +0530 | [diff] [blame] | 279 | register "ssdb.lanes_used" = "4" |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 280 | register "ssdb.link_used" = "0" |
| 281 | register "ssdb.vcm_type" = "0x0C" |
| 282 | register "vcm_name" = ""VCM0"" |
Subrata Banik | 4456e8a | 2022-12-01 20:24:54 +0530 | [diff] [blame] | 283 | register "num_freq_entries" = "1" |
| 284 | register "link_freq[0]" = "560 * MHz" # 560 MHz |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 285 | register "remote_name" = ""IPU0"" |
Jamie Ryu | 8b34c413 | 2023-02-21 16:57:00 -0800 | [diff] [blame^] | 286 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D3_COLD" |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 287 | |
| 288 | register "has_power_resource" = "1" |
| 289 | #Controls |
| 290 | register "clk_panel.clks[0].clknum" = "1" # IMGCLKOUT_1 |
| 291 | register "clk_panel.clks[0].freq" = "1" # FREQ_19_2_MHZ |
| 292 | |
| 293 | register "gpio_panel.gpio[0].gpio_num" = "GPP_C03" #EN_WCAM_SENR_PWR |
| 294 | register "gpio_panel.gpio[1].gpio_num" = "GPP_C04" #EN_WCAM_PWR |
| 295 | register "gpio_panel.gpio[2].gpio_num" = "GPP_V22" #WCAM_RST_L |
| 296 | |
| 297 | #_ON |
| 298 | register "on_seq.ops_cnt" = "5" |
| 299 | register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)" |
| 300 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 0)" |
| 301 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 0)" |
| 302 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 303 | register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 10)" |
| 304 | |
| 305 | #_OFF |
| 306 | register "off_seq.ops_cnt" = "4" |
| 307 | register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)" |
| 308 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 309 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 310 | register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 311 | |
Subrata Banik | 4456e8a | 2022-12-01 20:24:54 +0530 | [diff] [blame] | 312 | device i2c 36 on |
Kapil Porwal | 0feb5ce | 2022-11-03 04:46:49 +0000 | [diff] [blame] | 313 | probe WFC WFC_MIPI |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 314 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 315 | end |
| 316 | chip drivers/intel/mipi_camera |
| 317 | register "acpi_uid" = "2" |
| 318 | register "acpi_name" = ""VCM0"" |
| 319 | register "chip_name" = ""DW9714 VCM"" |
| 320 | register "device_type" = "INTEL_ACPI_CAMERA_VCM" |
| 321 | |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 322 | register "vcm_compat" = ""dongwoon,dw9714"" |
| 323 | |
Jamie Ryu | 8b34c413 | 2023-02-21 16:57:00 -0800 | [diff] [blame^] | 324 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D0" |
| 325 | |
| 326 | register "has_power_resource" = "1" |
| 327 | |
| 328 | #Controls |
| 329 | register "gpio_panel.gpio[0].gpio_num" = "GPP_C04" #EN_WCAM_PWR |
| 330 | |
| 331 | #_ON |
| 332 | register "on_seq.ops_cnt" = "1" |
| 333 | register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 0)" |
| 334 | |
| 335 | #_OFF |
| 336 | register "off_seq.ops_cnt" = "1" |
| 337 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 338 | |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 339 | device i2c 0C on |
Kapil Porwal | 0feb5ce | 2022-11-03 04:46:49 +0000 | [diff] [blame] | 340 | probe WFC WFC_MIPI |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 341 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 342 | end |
| 343 | chip drivers/intel/mipi_camera |
| 344 | register "acpi_uid" = "1" |
| 345 | register "acpi_name" = ""NVM0"" |
| 346 | register "chip_name" = ""ST M24C64X"" |
| 347 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
| 348 | |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 349 | register "nvm_compat" = ""atmel,24c64"" |
| 350 | |
| 351 | register "nvm_size" = "0x10000" |
| 352 | register "nvm_pagesize" = "0x01" |
| 353 | register "nvm_readonly" = "0x01" |
| 354 | register "nvm_width" = "0x0E" |
| 355 | |
Jamie Ryu | 8b34c413 | 2023-02-21 16:57:00 -0800 | [diff] [blame^] | 356 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D0" |
| 357 | |
| 358 | register "has_power_resource" = "1" |
| 359 | |
| 360 | #Controls |
| 361 | register "gpio_panel.gpio[0].gpio_num" = "GPP_C04" #EN_WCAM_PWR |
| 362 | |
| 363 | #_ON |
| 364 | register "on_seq.ops_cnt" = "1" |
| 365 | register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 0)" |
| 366 | |
| 367 | #_OFF |
| 368 | register "off_seq.ops_cnt" = "1" |
| 369 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 370 | |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 371 | device i2c 50 on |
Kapil Porwal | 0feb5ce | 2022-11-03 04:46:49 +0000 | [diff] [blame] | 372 | probe WFC WFC_MIPI |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 373 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 374 | end |
| 375 | end #I2C0 |
Subrata Banik | e8097f7 | 2022-09-15 00:17:20 -0700 | [diff] [blame] | 376 | device ref i2c1 on |
| 377 | chip drivers/i2c/hid |
| 378 | register "generic.hid" = ""ELAN6918"" |
| 379 | register "generic.desc" = ""ELAN Touchscreen"" |
| 380 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C07_IRQ)" |
| 381 | register "generic.probed" = "1" |
| 382 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C01)" |
| 383 | register "generic.reset_delay_ms" = "20" |
| 384 | register "generic.reset_off_delay_ms" = "2" |
| 385 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C00)" |
| 386 | register "generic.enable_delay_ms" = "1" |
| 387 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C06)" |
| 388 | register "generic.stop_off_delay_ms" = "2" |
| 389 | register "generic.has_power_resource" = "1" |
| 390 | register "hid_desc_reg_offset" = "0x01" |
| 391 | device i2c 10 on end |
| 392 | end |
| 393 | end |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 394 | device ref i2c2 on end |
Kapil Porwal | 53105a5 | 2022-09-08 22:52:49 -0700 | [diff] [blame] | 395 | device ref i2c3 on |
| 396 | chip drivers/i2c/generic |
| 397 | register "hid" = ""ELAN0000"" |
| 398 | register "desc" = ""ELAN Touchpad"" |
| 399 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B00_IRQ)" |
| 400 | register "wake" = "GPE0_DW0_00" |
| 401 | register "detect" = "1" |
| 402 | device i2c 15 on end |
| 403 | end |
| 404 | end |
Kapil Porwal | 381c219 | 2022-07-20 14:22:41 +0000 | [diff] [blame] | 405 | device ref i2c4 on |
| 406 | chip drivers/i2c/tpm |
| 407 | register "hid" = ""GOOG0005"" |
| 408 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E03_IRQ)" |
| 409 | device i2c 50 on end |
| 410 | end |
| 411 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 412 | device ref i2c5 on |
| 413 | chip drivers/intel/mipi_camera |
| 414 | register "acpi_hid" = ""INT3474"" |
| 415 | register "acpi_uid" = "0" |
| 416 | register "acpi_name" = ""CAM1"" |
| 417 | register "chip_name" = ""Ov 2740 Camera"" |
| 418 | register "device_type" = "INTEL_ACPI_CAMERA_SENSOR" |
| 419 | register "has_power_resource" = "1" |
| 420 | |
| 421 | register "ssdb.lanes_used" = "2" |
| 422 | register "ssdb.link_used" = "1" |
| 423 | register "num_freq_entries" = "1" |
| 424 | register "link_freq[0]" = "360 * MHz" |
| 425 | register "remote_name" = ""IPU0"" |
| 426 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D3_COLD" |
| 427 | |
| 428 | #Controls |
| 429 | register "gpio_panel.gpio[0].gpio_num" = "GPP_A11" #EN_UCAM_SENR_PWR |
| 430 | register "gpio_panel.gpio[1].gpio_num" = "GPP_B09" #EN_FCAM_PWR |
| 431 | register "gpio_panel.gpio[2].gpio_num" = "GPP_V23" #UCAM_RST_L |
| 432 | |
| 433 | #_ON |
| 434 | register "on_seq.ops_cnt" = "4" |
| 435 | register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 0)" |
| 436 | register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(1, 0)" |
| 437 | register "on_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 438 | register "on_seq.ops[3]" = "SEQ_OPS_GPIO_ENABLE(2, 10)" |
| 439 | |
| 440 | #_OFF |
| 441 | register "off_seq.ops_cnt" = "3" |
| 442 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(2, 0)" |
| 443 | register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(1, 0)" |
| 444 | register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 445 | |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 446 | device i2c 36 on |
Kapil Porwal | 0feb5ce | 2022-11-03 04:46:49 +0000 | [diff] [blame] | 447 | probe UFC UFC_MIPI |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 448 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 449 | end |
| 450 | chip drivers/intel/mipi_camera |
| 451 | register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" |
| 452 | register "acpi_uid" = "1" |
| 453 | register "acpi_name" = ""NVM1"" |
| 454 | register "chip_name" = ""ST M24C64X"" |
| 455 | register "device_type" = "INTEL_ACPI_CAMERA_NVM" |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 456 | |
| 457 | register "nvm_size" = "0x10000" |
| 458 | register "nvm_pagesize" = "1" |
| 459 | register "nvm_readonly" = "1" |
| 460 | register "nvm_width" = "0x10" |
| 461 | register "nvm_compat" = ""atmel,24c64"" |
| 462 | |
Jamie Ryu | 8b34c413 | 2023-02-21 16:57:00 -0800 | [diff] [blame^] | 463 | register "max_dstate_for_probe" = "ACPI_DEVICE_SLEEP_D0" |
| 464 | |
| 465 | register "has_power_resource" = "1" |
| 466 | |
| 467 | #Controls |
| 468 | register "gpio_panel.gpio[0].gpio_num" = "GPP_B09" #EN_FCAM_PWR |
| 469 | |
| 470 | #_ON |
| 471 | register "on_seq.ops_cnt" = "1" |
| 472 | register "on_seq.ops[0]" = "SEQ_OPS_GPIO_ENABLE(0, 0)" |
| 473 | |
| 474 | #_OFF |
| 475 | register "off_seq.ops_cnt" = "1" |
| 476 | register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)" |
| 477 | |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 478 | device i2c 50 on |
Kapil Porwal | 0feb5ce | 2022-11-03 04:46:49 +0000 | [diff] [blame] | 479 | probe UFC UFC_MIPI |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 480 | end |
Daniel Kang | 84656e1 | 2022-08-22 22:20:25 -0700 | [diff] [blame] | 481 | end |
| 482 | end #I2C5 |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 483 | device ref pcie_rp5 on |
| 484 | # Enable WLAN Card PCIE 5 using clk 5 |
| 485 | register "pcie_rp[PCH_RP(5)]" = "{ |
| 486 | .clk_src = 5, |
| 487 | .clk_req = 5, |
| 488 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 489 | }" |
Kapil Porwal | 0f15030 | 2022-12-07 13:53:43 +0530 | [diff] [blame] | 490 | chip drivers/wifi/generic |
| 491 | register "wake" = "GPE0_DW2_09" |
| 492 | register "add_acpi_dma_property" = "true" |
| 493 | device pci 00.0 on end |
| 494 | end |
| 495 | chip soc/intel/common/block/pcie/rtd3 |
| 496 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E22)" |
| 497 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F08)" |
| 498 | register "srcclk_pin" = "5" |
| 499 | device generic 0 on end |
| 500 | end |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 501 | end #PCIE5 WLAN card |
| 502 | device ref pcie_rp6 on |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 503 | probe CELLULAR CELLULAR_PCIE |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 504 | # Enable WWAN Card PCIE 6 using clk 3 |
| 505 | register "pcie_rp[PCH_RP(6)]" = "{ |
| 506 | .clk_src = 3, |
| 507 | .clk_req = 3, |
| 508 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 509 | }" |
Ivy Jian | 61e5816 | 2022-09-05 14:30:11 +0800 | [diff] [blame] | 510 | chip soc/intel/common/block/pcie/rtd3 |
| 511 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C05)" |
| 512 | register "reset_off_delay_ms" = "20" |
| 513 | register "srcclk_pin" = "3" |
| 514 | register "ext_pm_support" = "ACPI_PCIE_RP_EMIT_ALL" |
| 515 | register "skip_on_off_support" = "true" |
Subrata Banik | 6e7e8bf | 2022-12-02 02:21:11 +0530 | [diff] [blame] | 516 | device generic 0 alias rp6_rtd3 on |
| 517 | probe CELLULAR CELLULAR_PCIE |
| 518 | end |
Ivy Jian | 61e5816 | 2022-09-05 14:30:11 +0800 | [diff] [blame] | 519 | end |
| 520 | chip drivers/wwan/fm |
| 521 | register "fcpo_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E07)" |
| 522 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A15)" |
| 523 | register "perst_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C05)" |
| 524 | register "wake_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F10)" |
| 525 | register "add_acpi_dma_property" = "true" |
| 526 | use rp6_rtd3 as rtd3dev |
Subrata Banik | 6e7e8bf | 2022-12-02 02:21:11 +0530 | [diff] [blame] | 527 | device generic 0 alias rp6_wwan on |
| 528 | probe CELLULAR CELLULAR_PCIE |
| 529 | end |
Ivy Jian | 61e5816 | 2022-09-05 14:30:11 +0800 | [diff] [blame] | 530 | end |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 531 | end #PCIE6 WWAN card |
Subrata Banik | cd6a450 | 2022-11-28 17:51:49 +0530 | [diff] [blame] | 532 | device ref pcie_rp7 on |
| 533 | # Enable SD Card PCIE 7 using clk 2 |
| 534 | register "pcie_rp[PCH_RP(7)]" = "{ |
| 535 | .clk_src = 2, |
| 536 | .clk_req = 2, |
| 537 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 538 | }" |
| 539 | chip soc/intel/common/block/pcie/rtd3 |
| 540 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D03)" |
| 541 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D02)" |
| 542 | register "srcclk_pin" = "2" |
| 543 | device generic 0 on end |
| 544 | end |
| 545 | probe DB_SD SD_GL9755S |
| 546 | end |
Eran Mitrani | b4d71e1 | 2022-08-23 14:42:24 -0700 | [diff] [blame] | 547 | device ref gspi1 on |
| 548 | chip drivers/spi/acpi |
| 549 | register "name" = ""CRFP"" |
| 550 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 551 | register "uid" = "1" |
| 552 | register "compat_string" = ""google,cros-ec-spi"" |
| 553 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E10_IRQ)" |
| 554 | register "wake" = "GPE0_DW1_10" |
| 555 | register "has_power_resource" = "1" |
| 556 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C23)" |
| 557 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B11)" |
| 558 | register "enable_delay_ms" = "3" |
| 559 | device spi 0 on end |
| 560 | end # FPMCU |
| 561 | end |
Subrata Banik | a920772 | 2022-08-08 15:06:04 +0000 | [diff] [blame] | 562 | device ref soc_espi on |
| 563 | chip ec/google/chromeec |
| 564 | use conn0 as mux_conn[0] |
| 565 | use conn1 as mux_conn[1] |
| 566 | device pnp 0c09.0 on end |
| 567 | end |
| 568 | end |
| 569 | device ref pmc hidden |
| 570 | chip drivers/intel/pmc_mux |
| 571 | device generic 0 on |
| 572 | chip drivers/intel/pmc_mux/conn |
| 573 | use usb2_port2 as usb2_port |
| 574 | use tcss_usb3_port1 as usb3_port |
| 575 | device generic 0 alias conn0 on end |
| 576 | end |
| 577 | chip drivers/intel/pmc_mux/conn |
Subrata Banik | 01c190e | 2022-12-06 20:44:25 +0530 | [diff] [blame] | 578 | use usb2_port1 as usb2_port |
Subrata Banik | a920772 | 2022-08-08 15:06:04 +0000 | [diff] [blame] | 579 | use tcss_usb3_port3 as usb3_port |
| 580 | device generic 1 alias conn1 on end |
| 581 | end |
| 582 | end |
| 583 | end |
| 584 | end |
Eran Mitrani | 51249d6 | 2022-08-19 15:39:47 -0700 | [diff] [blame] | 585 | device ref hda on |
| 586 | chip drivers/generic/max98357a |
Subrata Banik | d38baae | 2022-12-16 11:46:49 +0530 | [diff] [blame] | 587 | register "hid" = ""MX98360A"" |
Eran Mitrani | 51249d6 | 2022-08-19 15:39:47 -0700 | [diff] [blame] | 588 | register "sdmode_gpio" = |
| 589 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D04)" |
| 590 | register "sdmode_delay" = "5" |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 591 | device generic 0 on |
Subrata Banik | d38baae | 2022-12-16 11:46:49 +0530 | [diff] [blame] | 592 | probe AUDIO MAX98360_ALC5682I_I2S |
Kapil Porwal | bd3d197 | 2022-10-07 12:38:29 +0000 | [diff] [blame] | 593 | end |
Eran Mitrani | 51249d6 | 2022-08-19 15:39:47 -0700 | [diff] [blame] | 594 | end |
| 595 | end |
Subrata Banik | f095862 | 2022-07-12 07:58:10 +0000 | [diff] [blame] | 596 | end |
| 597 | end |