blob: cd92dcbb362d8c974d9f26f432202c301da89330 [file] [log] [blame]
Furquan Shaikh0be087d2018-06-24 23:00:13 -07001chip soc/intel/apollolake
2
peichao.wang3debb1f2018-09-26 17:38:16 +08003 # Intel Common SoC Config
4 #+-------------------+---------------------------+
5 #| Field | Value |
6 #+-------------------+---------------------------+
7 #| GSPI0 | cr50 TPM. Early init is |
8 #| | required to set up a BAR |
9 #| | for TPM communication |
10 #| | before memory is up |
11 #| I2C0 | Digitizer |
12 #| I2C5 | Audio |
13 #| I2C6 | Trackpad |
14 #| I2C7 | Touchscreen |
15 #+-------------------+---------------------------+
16 register "common_soc_config" = "{
17 .gspi[0] = {
18 .speed_mhz = 1,
19 .early_init = 1,
20 },
21 .i2c[0] = {
22 .speed = I2C_SPEED_FAST,
peichao.wangd5325dd2018-10-09 12:18:31 +080023 .rise_time_ns = 66,
24 .fall_time_ns = 90,
peichao.wang3debb1f2018-09-26 17:38:16 +080025 },
26 .i2c[5] = {
27 .speed = I2C_SPEED_FAST,
28 .rise_time_ns = 104,
29 .fall_time_ns = 52,
30 },
31 .i2c[6] = {
32 .speed = I2C_SPEED_FAST,
33 .rise_time_ns = 66,
34 .fall_time_ns = 90,
35 .data_hold_time_ns = 350,
36 },
37 .i2c[7] = {
38 .speed = I2C_SPEED_FAST,
39 .rise_time_ns = 76,
40 .fall_time_ns = 164,
41 },
42 }"
43
Furquan Shaikh0be087d2018-06-24 23:00:13 -070044 device domain 0 on
45 device pci 16.0 on
46 chip drivers/i2c/hid
47 register "generic.hid" = ""WCOM50C1""
48 register "generic.desc" = ""WCOM Digitizer""
49 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_139_IRQ)"
50 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_140)"
51 register "generic.has_power_resource" = "1"
52 register "hid_desc_reg_offset" = "0x1"
53 device i2c 0x9 on end
54 end
55 end # - I2C 0
56 device pci 17.1 on
57 chip drivers/i2c/da7219
58 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_137_IRQ)"
59 register "btn_cfg" = "50"
60 register "mic_det_thr" = "500"
61 register "jack_ins_deb" = "20"
62 register "jack_det_rate" = ""32ms_64ms""
63 register "jack_rem_deb" = "1"
64 register "a_d_btn_thr" = "0xa"
65 register "d_b_btn_thr" = "0x16"
66 register "b_c_btn_thr" = "0x21"
67 register "c_mic_btn_thr" = "0x3e"
68 register "btn_avg" = "4"
69 register "adc_1bit_rpt" = "1"
70 register "micbias_lvl" = "2600"
71 register "mic_amp_in_sel" = ""diff""
72 device i2c 1a on end
73 end
74 end # - I2C 5
75 device pci 17.2 on
76 chip drivers/i2c/generic
77 register "hid" = ""ELAN0000""
78 register "desc" = ""ELAN Touchpad""
Furquan Shaikh2c2650a2018-10-18 16:25:58 -070079 register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPIO_135_IRQ)"
80 register "wake" = "GPE0_DW3_27"
Furquan Shaikh0be087d2018-06-24 23:00:13 -070081 register "probed" = "1"
82 device i2c 15 on end
83 end
84 chip drivers/i2c/hid
85 register "generic.hid" = ""PNP0C50""
86 register "generic.desc" = ""Synaptics Touchpad""
87 register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPIO_135_IRQ)"
88 register "generic.wake" = "GPE0_DW2_02"
89 register "generic.probed" = "1"
90 register "hid_desc_reg_offset" = "0x20"
91 device i2c 0x2c on end
92 end
93 end # - I2C 6
94 device pci 17.3 on
95 chip drivers/i2c/generic
96 register "hid" = ""ELAN0001""
97 register "desc" = ""ELAN Touchscreen""
98 register "irq" = "ACPI_IRQ_EDGE_LOW(GPIO_212_IRQ)"
99 register "probed" = "1"
100 register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)"
101 register "reset_delay_ms" = "20"
102 register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_213)"
103 register "enable_delay_ms" = "1"
104 register "has_power_resource" = "1"
105 device i2c 10 on end
106 end
107 chip drivers/i2c/hid
108 register "generic.hid" = ""SYTS7817""
109 register "generic.desc" = ""Synaptics Touchscreen""
110 register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPIO_212_IRQ)"
111 register "generic.probed" = "1"
112 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_105)"
113 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_213)"
114 register "generic.reset_delay_ms" = "45"
115 register "generic.has_power_resource" = "1"
116 register "generic.disable_gpio_export_in_crs" = "1"
117 register "hid_desc_reg_offset" = "0x20"
118 device i2c 20 on end
119 end
120 end # - I2C 7
121 end
122end