Bhanu Prakash Maiya | 7d41491 | 2021-08-23 14:43:37 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | chip soc/amd/cezanne |
| 4 | device domain 0 on |
Kenneth Chan | bf45927 | 2022-01-05 11:14:59 +0800 | [diff] [blame] | 5 | device ref gpp_bridge_1 off end # no SD |
| 6 | device ref gpp_bridge_2 off end # no WWAN |
Chris Wang | cf7305f | 2022-02-03 11:30:31 +0800 | [diff] [blame] | 7 | device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A |
| 8 | device ref acp on |
| 9 | chip drivers/amd/i2s_machine_dev |
| 10 | register "hid" = ""AMDI5619"" |
| 11 | device generic 0.0 on end |
| 12 | end |
| 13 | end # Audio |
| 14 | end |
Bhanu Prakash Maiya | 7d41491 | 2021-08-23 14:43:37 -0700 | [diff] [blame] | 15 | end # domain |
Chris.Wang | ca69152 | 2021-11-10 15:38:01 +0800 | [diff] [blame] | 16 | |
| 17 | register "slow_ppt_limit_mW" = "25000" |
| 18 | register "fast_ppt_limit_mW" = "30000" |
| 19 | register "slow_ppt_time_constant_s" = "5" |
| 20 | register "stapm_time_constant_s" = "275" |
| 21 | register "sustained_power_limit_mW" = "15000" |
| 22 | register "thermctl_limit_degreeC" = "100" |
| 23 | |
| 24 | #Update values based on final stardust SDLE test report. |
Kenneth Chan | f304dc2 | 2022-06-22 09:46:14 +0800 | [diff] [blame] | 25 | register "telemetry_vddcrvddfull_scale_current_mA" = "91573" #mA |
| 26 | register "telemetry_vddcrvddoffset" = "620" |
| 27 | register "telemetry_vddcrsocfull_scale_current_mA" = "30829" #mA |
| 28 | register "telemetry_vddcrsocoffset" = "235" |
Chris.Wang | ca69152 | 2021-11-10 15:38:01 +0800 | [diff] [blame] | 29 | |
Chris.Wang | 38f7ba3 | 2022-04-18 22:51:42 +0800 | [diff] [blame] | 30 | # Enable STT support |
| 31 | register "stt_control" = "1" |
| 32 | register "stt_pcb_sensor_count" = "2" |
| 33 | register "stt_min_limit" = "15000" |
| 34 | register "stt_m1" = "0x022B" |
| 35 | register "stt_m2" = "0x117" |
| 36 | register "stt_m3" = "0" |
| 37 | register "stt_m4" = "0" |
| 38 | register "stt_m5" = "0" |
| 39 | register "stt_m6" = "0" |
| 40 | register "stt_c_apu" = "0xBA4" |
| 41 | register "stt_c_gpu" = "0" |
| 42 | register "stt_c_hs2" = "0" |
| 43 | register "stt_alpha_apu" = "0x199A" |
| 44 | register "stt_alpha_gpu" = "0" |
| 45 | register "stt_alpha_hs2" = "0" |
| 46 | register "stt_skin_temp_apu" = "0x2D00" |
| 47 | register "stt_skin_temp_gpu" = "0" |
| 48 | register "stt_skin_temp_hs2" = "0" |
| 49 | register "stt_error_coeff" = "0x21" |
| 50 | register "stt_error_rate_coefficient" = "0x2666" |
| 51 | |
Kenneth Chan | fc7a40f | 2022-01-06 10:22:34 +0800 | [diff] [blame] | 52 | #USB 2/3 phy config |
Kenneth Chan | 9fe2ce8 | 2021-12-20 12:16:03 +0800 | [diff] [blame] | 53 | register "usb_phy" = "{ |
| 54 | /* Left USB C0 Port */ |
| 55 | .Usb2PhyPort[0] = { |
| 56 | .compdstune = 3, |
| 57 | .sqrxtune = 3, |
| 58 | .txfslstune = 3, |
| 59 | .txpreempamptune = 3, |
| 60 | .txpreemppulsetune = 0, |
| 61 | .txrisetune = 1, |
| 62 | .txvreftune = 6, |
| 63 | .txhsxvtune = 3, |
| 64 | .txrestune = 1, |
| 65 | }, |
| 66 | /* Left USB A0 Port */ |
| 67 | .Usb2PhyPort[1] = { |
| 68 | .compdstune = 3, |
| 69 | .sqrxtune = 3, |
| 70 | .txfslstune = 3, |
| 71 | .txpreempamptune = 3, |
| 72 | .txpreemppulsetune = 0, |
| 73 | .txrisetune = 1, |
| 74 | .txvreftune = 6, |
| 75 | .txhsxvtune = 3, |
| 76 | .txrestune = 1, |
| 77 | }, |
| 78 | /* Right USB C1 Port */ |
| 79 | .Usb2PhyPort[4] = { |
| 80 | .compdstune = 3, |
| 81 | .sqrxtune = 3, |
| 82 | .txfslstune = 3, |
| 83 | .txpreempamptune = 3, |
| 84 | .txpreemppulsetune = 0, |
| 85 | .txrisetune = 1, |
| 86 | .txvreftune = 6, |
| 87 | .txhsxvtune = 3, |
| 88 | .txrestune = 1, |
| 89 | }, |
Kenneth Chan | fc7a40f | 2022-01-06 10:22:34 +0800 | [diff] [blame] | 90 | /* Left USB C0 Port */ |
| 91 | .Usb3PhyPort[0] = { |
| 92 | .tx_term_ctrl=3, |
| 93 | .rx_term_ctrl=3, |
| 94 | .tx_vboost_lvl_en=1, |
| 95 | .tx_vboost_lvl=5, |
| 96 | }, |
| 97 | /* Left USB A0 Port */ |
| 98 | .Usb3PhyPort[1] = { |
| 99 | .tx_term_ctrl=3, |
| 100 | .rx_term_ctrl=3, |
| 101 | .tx_vboost_lvl_en=1, |
| 102 | .tx_vboost_lvl=5, |
| 103 | }, |
Kenneth Chan | 9fe2ce8 | 2021-12-20 12:16:03 +0800 | [diff] [blame] | 104 | }" |
| 105 | |
Kenneth Chan | 71c5dfc | 2021-12-23 18:15:01 +0800 | [diff] [blame] | 106 | # general purpose PCIe clock output configuration |
| 107 | register "gpp_clk_config[1]" = "GPP_CLK_OFF" |
| 108 | register "gpp_clk_config[2]" = "GPP_CLK_OFF" |
| 109 | |
Chris.Wang | ca69152 | 2021-11-10 15:38:01 +0800 | [diff] [blame] | 110 | # I2C Config |
| 111 | #+-------------------+---------------------------+ |
| 112 | #| Field | Value | |
| 113 | #+-------------------+---------------------------+ |
| 114 | #| I2C0 | Trackpad | |
| 115 | #| I2C1 | Touchscreen | |
| 116 | #| I2C2 | Speaker, Codec, P-SAR | |
| 117 | #| I2C3 | H1/D2 TPM | |
| 118 | #+-------------------+---------------------------+ |
| 119 | register "i2c[0]" = "{ |
| 120 | .speed = I2C_SPEED_FAST, |
| 121 | }" |
| 122 | |
| 123 | register "i2c[1]" = "{ |
| 124 | .speed = I2C_SPEED_FAST, |
| 125 | }" |
| 126 | |
| 127 | register "i2c[2]" = "{ |
| 128 | .speed = I2C_SPEED_FAST, |
| 129 | }" |
| 130 | |
| 131 | register "i2c[3]" = "{ |
| 132 | .speed = I2C_SPEED_FAST, |
| 133 | .early_init = true, |
| 134 | }" |
| 135 | |
| 136 | device ref i2c_0 on |
| 137 | chip drivers/i2c/generic |
| 138 | register "hid" = ""ELAN0000"" |
| 139 | register "desc" = ""ELAN Touchpad"" |
Kenneth Chan | 18167d4 | 2022-01-25 16:34:11 +0800 | [diff] [blame] | 140 | register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)" |
Chris.Wang | ca69152 | 2021-11-10 15:38:01 +0800 | [diff] [blame] | 141 | register "wake" = "GEVENT_22" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 142 | register "detect" = "1" |
Chris.Wang | ca69152 | 2021-11-10 15:38:01 +0800 | [diff] [blame] | 143 | device i2c 15 on end |
| 144 | end |
Kenneth Chan | d76d2e2 | 2021-12-08 18:45:15 +0800 | [diff] [blame] | 145 | chip drivers/i2c/hid |
Matt DeVillier | 61c2446 | 2022-12-19 15:13:47 -0600 | [diff] [blame^] | 146 | register "generic.hid" = ""SYNA0000"" |
| 147 | register "generic.cid" = ""ACPI0C50"" |
Kenneth Chan | d76d2e2 | 2021-12-08 18:45:15 +0800 | [diff] [blame] | 148 | register "generic.desc" = ""Synaptics Touchpad"" |
| 149 | register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_9)" |
| 150 | register "generic.wake" = "GEVENT_22" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 151 | register "generic.detect" = "1" |
Kenneth Chan | d76d2e2 | 2021-12-08 18:45:15 +0800 | [diff] [blame] | 152 | register "hid_desc_reg_offset" = "0x20" |
| 153 | device i2c 2c on end |
| 154 | end |
Chris.Wang | ca69152 | 2021-11-10 15:38:01 +0800 | [diff] [blame] | 155 | end # I2C0 |
Kenneth Chan | 38afe9e | 2021-12-08 18:56:50 +0800 | [diff] [blame] | 156 | device ref i2c_1 on |
| 157 | chip drivers/i2c/hid |
| 158 | register "generic.hid" = ""ELAN6918"" |
| 159 | register "generic.desc" = ""ELAN Touchscreen"" |
| 160 | register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPIO_89)" |
Matt DeVillier | 75d67a4 | 2022-11-03 16:33:35 -0500 | [diff] [blame] | 161 | register "generic.detect" = "1" |
Kenneth Chan | 38afe9e | 2021-12-08 18:56:50 +0800 | [diff] [blame] | 162 | register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_121)" |
| 163 | register "generic.reset_delay_ms" = "20" |
| 164 | register "generic.reset_off_delay_ms" = "2" |
| 165 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_120)" |
| 166 | register "generic.stop_off_delay_ms" = "2" |
| 167 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_68)" |
| 168 | register "generic.enable_delay_ms" = "1" |
| 169 | register "generic.has_power_resource" = "1" |
| 170 | register "generic.disable_gpio_export_in_crs" = "1" |
| 171 | register "hid_desc_reg_offset" = "0x01" |
| 172 | device i2c 10 on end |
| 173 | end |
| 174 | end # I2C1 |
Kenneth Chan | 8ad9477 | 2021-12-08 18:59:38 +0800 | [diff] [blame] | 175 | device ref i2c_2 on |
| 176 | chip drivers/i2c/generic |
Kenneth Chan | 8d092aa | 2022-01-10 15:38:53 +0800 | [diff] [blame] | 177 | register "hid" = ""RTL5682"" |
Kenneth Chan | 8ad9477 | 2021-12-08 18:59:38 +0800 | [diff] [blame] | 178 | register "name" = ""RT58"" |
| 179 | register "desc" = ""Realtek RT5682"" |
| 180 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPIO_90)" |
| 181 | register "property_count" = "1" |
| 182 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 183 | register "property_list[0].name" = ""realtek,jd-src"" |
| 184 | register "property_list[0].integer" = "1" |
| 185 | device i2c 1a on end |
| 186 | end |
| 187 | chip drivers/i2c/generic |
| 188 | register "hid" = ""10EC1019"" |
Kenneth Chan | 8ad9477 | 2021-12-08 18:59:38 +0800 | [diff] [blame] | 189 | register "desc" = ""Realtek SPK AMP R"" |
Kenneth Chan | 78e6b3d | 2021-12-29 15:28:29 +0800 | [diff] [blame] | 190 | register "uid" = "0" |
Kenneth Chan | 8ad9477 | 2021-12-08 18:59:38 +0800 | [diff] [blame] | 191 | device i2c 29 on end |
| 192 | end |
| 193 | chip drivers/i2c/generic |
| 194 | register "hid" = ""10EC1019"" |
Kenneth Chan | 78e6b3d | 2021-12-29 15:28:29 +0800 | [diff] [blame] | 195 | register "desc" = ""Realtek SPK AMP L"" |
| 196 | register "uid" = "1" |
Kenneth Chan | 8ad9477 | 2021-12-08 18:59:38 +0800 | [diff] [blame] | 197 | device i2c 2a on end |
| 198 | end |
| 199 | end # I2C2 |
Bhanu Prakash Maiya | 7d41491 | 2021-08-23 14:43:37 -0700 | [diff] [blame] | 200 | end # chip soc/amd/cezanne |