Tony Huang | c187039 | 2020-11-12 20:29:19 +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 | |
| 6 | register "SerialIoI2cMode" = "{ |
| 7 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 8 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, |
| 9 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 10 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 11 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 12 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 13 | }" |
| 14 | |
| 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 | |
| 24 | #| I2C1 | | |
| 25 | #| I2C2 | Touchscreen | |
| 26 | #| I2C3 | | |
| 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, |
| 36 | }, |
| 37 | .i2c[2] = { |
| 38 | .speed = I2C_SPEED_FAST, |
| 39 | }, |
| 40 | .i2c[4] = { |
| 41 | .speed = I2C_SPEED_FAST, |
| 42 | }, |
| 43 | }" |
| 44 | |
| 45 | device domain 0 on |
| 46 | device pci 14.0 on |
| 47 | chip drivers/usb/acpi |
| 48 | device usb 0.0 on |
| 49 | chip drivers/usb/acpi |
| 50 | register "desc" = ""Discrete Bluetooth"" |
| 51 | register "type" = "UPC_TYPE_INTERNAL" |
| 52 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H19)" |
| 53 | device usb 2.4 on end |
| 54 | end |
| 55 | chip drivers/usb/acpi |
| 56 | register "desc" = ""Camera"" |
| 57 | register "type" = "UPC_TYPE_INTERNAL" |
| 58 | device usb 2.5 on end |
| 59 | end |
| 60 | chip drivers/usb/acpi |
| 61 | register "desc" = ""Integrated Bluetooth"" |
| 62 | register "type" = "UPC_TYPE_INTERNAL" |
| 63 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H19)" |
| 64 | device usb 2.7 on end |
| 65 | end |
| 66 | end |
| 67 | end |
| 68 | end # USB xHCI |
| 69 | device pci 15.0 on |
| 70 | chip drivers/i2c/generic |
| 71 | register "hid" = ""ELAN0000"" |
| 72 | register "desc" = ""ELAN Touchpad"" |
| 73 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)" |
| 74 | register "wake" = "GPE0_DW0_03" |
| 75 | register "probed" = "1" |
| 76 | device i2c 15 on end |
| 77 | end |
| 78 | end #I2C 0 |
| 79 | device pci 15.1 off end #I2C 1 |
| 80 | device pci 15.2 on |
| 81 | chip drivers/i2c/generic |
| 82 | register "hid" = ""ELAN0001"" |
| 83 | register "desc" = ""ELAN Touchscreen"" |
| 84 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D4_IRQ)" |
| 85 | register "probed" = "1" |
| 86 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)" |
| 87 | register "reset_delay_ms" = "20" |
| 88 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 89 | register "enable_delay_ms" = "1" |
| 90 | register "has_power_resource" = "1" |
| 91 | device i2c 10 on end |
| 92 | end |
| 93 | chip drivers/i2c/hid |
| 94 | register "generic.hid" = ""GTCH7503"" |
| 95 | register "generic.desc" = ""G2TOUCH Touchscreen"" |
Tony Huang | bb70099 | 2020-12-01 09:19:31 +0800 | [diff] [blame^] | 96 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Tony Huang | c187039 | 2020-11-12 20:29:19 +0800 | [diff] [blame] | 97 | register "generic.probed" = "1" |
| 98 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)" |
| 99 | register "generic.reset_delay_ms" = "50" |
| 100 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 101 | register "generic.enable_delay_ms" = "1" |
| 102 | register "generic.has_power_resource" = "1" |
| 103 | register "generic.disable_gpio_export_in_crs" = "1" |
| 104 | register "hid_desc_reg_offset" = "0x01" |
| 105 | device i2c 40 on end |
| 106 | end |
| 107 | chip drivers/i2c/hid |
| 108 | register "generic.hid" = ""GDIX0000"" |
| 109 | register "generic.desc" = ""Goodix Touchscreen"" |
Tony Huang | bb70099 | 2020-12-01 09:19:31 +0800 | [diff] [blame^] | 110 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" |
Tony Huang | c187039 | 2020-11-12 20:29:19 +0800 | [diff] [blame] | 111 | register "generic.probed" = "1" |
| 112 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)" |
| 113 | register "generic.reset_delay_ms" = "120" |
| 114 | register "generic.reset_off_delay_ms" = "2" |
| 115 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" |
| 116 | register "generic.enable_delay_ms" = "12" |
| 117 | register "generic.has_power_resource" = "1" |
| 118 | register "hid_desc_reg_offset" = "0x01" |
| 119 | device i2c 0x5d on end |
| 120 | end |
| 121 | end # I2C 2 |
| 122 | device pci 15.3 off end #I2C 3 |
| 123 | device pci 1c.7 on |
| 124 | chip drivers/wifi/generic |
| 125 | register "wake" = "GPE0_DW2_03" |
| 126 | device pci 00.0 on end |
| 127 | end |
| 128 | end # PCI Express Root Port 8 - WLAN |
| 129 | device pci 19.0 on |
| 130 | chip drivers/i2c/generic |
| 131 | register "hid" = ""10EC5682"" |
| 132 | register "name" = ""RT58"" |
| 133 | register "desc" = ""Realtek RT5682"" |
| 134 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 135 | register "property_count" = "1" |
| 136 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 137 | register "property_list[0].name" = ""realtek,jd-src"" |
| 138 | register "property_list[0].integer" = "1" |
| 139 | device i2c 1a on end |
| 140 | end |
| 141 | end #I2C 4 |
| 142 | device pci 1f.3 on |
| 143 | chip drivers/generic/max98357a |
| 144 | register "hid" = ""MX98360A"" |
| 145 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
| 146 | device generic 0 on end |
| 147 | end |
| 148 | end # Intel HDA |
| 149 | end |
| 150 | end |