1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-only 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * DRA752 thermal data. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2013 Texas Instruments Inc. 6*4882a593Smuzhiyun * Contact: 7*4882a593Smuzhiyun * Eduardo Valentin <eduardo.valentin@ti.com> 8*4882a593Smuzhiyun * Tero Kristo <t-kristo@ti.com> 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * This file is partially autogenerated. 11*4882a593Smuzhiyun */ 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun #include "ti-thermal.h" 14*4882a593Smuzhiyun #include "ti-bandgap.h" 15*4882a593Smuzhiyun #include "dra752-bandgap.h" 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun /* 18*4882a593Smuzhiyun * DRA752 has five instances of thermal sensor: MPU, GPU, CORE, 19*4882a593Smuzhiyun * IVA and DSPEVE need to describe the individual registers and 20*4882a593Smuzhiyun * bit fields. 21*4882a593Smuzhiyun */ 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /* 24*4882a593Smuzhiyun * DRA752 CORE thermal sensor register offsets and bit-fields 25*4882a593Smuzhiyun */ 26*4882a593Smuzhiyun static struct temp_sensor_registers 27*4882a593Smuzhiyun dra752_core_temp_sensor_registers = { 28*4882a593Smuzhiyun .temp_sensor_ctrl = DRA752_TEMP_SENSOR_CORE_OFFSET, 29*4882a593Smuzhiyun .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 30*4882a593Smuzhiyun .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 31*4882a593Smuzhiyun .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 32*4882a593Smuzhiyun .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 33*4882a593Smuzhiyun .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_CORE_MASK, 34*4882a593Smuzhiyun .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_CORE_MASK, 35*4882a593Smuzhiyun .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 36*4882a593Smuzhiyun .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_CORE_MASK, 37*4882a593Smuzhiyun .bgap_threshold = DRA752_BANDGAP_THRESHOLD_CORE_OFFSET, 38*4882a593Smuzhiyun .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 39*4882a593Smuzhiyun .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 40*4882a593Smuzhiyun .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 41*4882a593Smuzhiyun .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_CORE_MASK, 42*4882a593Smuzhiyun .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_CORE_MASK, 43*4882a593Smuzhiyun .ctrl_dtemp_1 = DRA752_DTEMP_CORE_1_OFFSET, 44*4882a593Smuzhiyun .ctrl_dtemp_2 = DRA752_DTEMP_CORE_2_OFFSET, 45*4882a593Smuzhiyun .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_CORE_OFFSET, 46*4882a593Smuzhiyun }; 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun /* 49*4882a593Smuzhiyun * DRA752 IVA thermal sensor register offsets and bit-fields 50*4882a593Smuzhiyun */ 51*4882a593Smuzhiyun static struct temp_sensor_registers 52*4882a593Smuzhiyun dra752_iva_temp_sensor_registers = { 53*4882a593Smuzhiyun .temp_sensor_ctrl = DRA752_TEMP_SENSOR_IVA_OFFSET, 54*4882a593Smuzhiyun .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 55*4882a593Smuzhiyun .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 56*4882a593Smuzhiyun .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 57*4882a593Smuzhiyun .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_2_OFFSET, 58*4882a593Smuzhiyun .mask_hot_mask = DRA752_BANDGAP_CTRL_2_MASK_HOT_IVA_MASK, 59*4882a593Smuzhiyun .mask_cold_mask = DRA752_BANDGAP_CTRL_2_MASK_COLD_IVA_MASK, 60*4882a593Smuzhiyun .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 61*4882a593Smuzhiyun .mask_freeze_mask = DRA752_BANDGAP_CTRL_2_FREEZE_IVA_MASK, 62*4882a593Smuzhiyun .bgap_threshold = DRA752_BANDGAP_THRESHOLD_IVA_OFFSET, 63*4882a593Smuzhiyun .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 64*4882a593Smuzhiyun .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 65*4882a593Smuzhiyun .bgap_status = DRA752_BANDGAP_STATUS_2_OFFSET, 66*4882a593Smuzhiyun .status_hot_mask = DRA752_BANDGAP_STATUS_2_HOT_IVA_MASK, 67*4882a593Smuzhiyun .status_cold_mask = DRA752_BANDGAP_STATUS_2_COLD_IVA_MASK, 68*4882a593Smuzhiyun .ctrl_dtemp_1 = DRA752_DTEMP_IVA_1_OFFSET, 69*4882a593Smuzhiyun .ctrl_dtemp_2 = DRA752_DTEMP_IVA_2_OFFSET, 70*4882a593Smuzhiyun .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_IVA_OFFSET, 71*4882a593Smuzhiyun }; 72*4882a593Smuzhiyun 73*4882a593Smuzhiyun /* 74*4882a593Smuzhiyun * DRA752 MPU thermal sensor register offsets and bit-fields 75*4882a593Smuzhiyun */ 76*4882a593Smuzhiyun static struct temp_sensor_registers 77*4882a593Smuzhiyun dra752_mpu_temp_sensor_registers = { 78*4882a593Smuzhiyun .temp_sensor_ctrl = DRA752_TEMP_SENSOR_MPU_OFFSET, 79*4882a593Smuzhiyun .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 80*4882a593Smuzhiyun .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 81*4882a593Smuzhiyun .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 82*4882a593Smuzhiyun .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 83*4882a593Smuzhiyun .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_MPU_MASK, 84*4882a593Smuzhiyun .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_MPU_MASK, 85*4882a593Smuzhiyun .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 86*4882a593Smuzhiyun .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_MPU_MASK, 87*4882a593Smuzhiyun .bgap_threshold = DRA752_BANDGAP_THRESHOLD_MPU_OFFSET, 88*4882a593Smuzhiyun .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 89*4882a593Smuzhiyun .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 90*4882a593Smuzhiyun .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 91*4882a593Smuzhiyun .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_MPU_MASK, 92*4882a593Smuzhiyun .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_MPU_MASK, 93*4882a593Smuzhiyun .ctrl_dtemp_1 = DRA752_DTEMP_MPU_1_OFFSET, 94*4882a593Smuzhiyun .ctrl_dtemp_2 = DRA752_DTEMP_MPU_2_OFFSET, 95*4882a593Smuzhiyun .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_MPU_OFFSET, 96*4882a593Smuzhiyun }; 97*4882a593Smuzhiyun 98*4882a593Smuzhiyun /* 99*4882a593Smuzhiyun * DRA752 DSPEVE thermal sensor register offsets and bit-fields 100*4882a593Smuzhiyun */ 101*4882a593Smuzhiyun static struct temp_sensor_registers 102*4882a593Smuzhiyun dra752_dspeve_temp_sensor_registers = { 103*4882a593Smuzhiyun .temp_sensor_ctrl = DRA752_TEMP_SENSOR_DSPEVE_OFFSET, 104*4882a593Smuzhiyun .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 105*4882a593Smuzhiyun .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 106*4882a593Smuzhiyun .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 107*4882a593Smuzhiyun .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_2_OFFSET, 108*4882a593Smuzhiyun .mask_hot_mask = DRA752_BANDGAP_CTRL_2_MASK_HOT_DSPEVE_MASK, 109*4882a593Smuzhiyun .mask_cold_mask = DRA752_BANDGAP_CTRL_2_MASK_COLD_DSPEVE_MASK, 110*4882a593Smuzhiyun .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 111*4882a593Smuzhiyun .mask_freeze_mask = DRA752_BANDGAP_CTRL_2_FREEZE_DSPEVE_MASK, 112*4882a593Smuzhiyun .bgap_threshold = DRA752_BANDGAP_THRESHOLD_DSPEVE_OFFSET, 113*4882a593Smuzhiyun .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 114*4882a593Smuzhiyun .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 115*4882a593Smuzhiyun .bgap_status = DRA752_BANDGAP_STATUS_2_OFFSET, 116*4882a593Smuzhiyun .status_hot_mask = DRA752_BANDGAP_STATUS_2_HOT_DSPEVE_MASK, 117*4882a593Smuzhiyun .status_cold_mask = DRA752_BANDGAP_STATUS_2_COLD_DSPEVE_MASK, 118*4882a593Smuzhiyun .ctrl_dtemp_1 = DRA752_DTEMP_DSPEVE_1_OFFSET, 119*4882a593Smuzhiyun .ctrl_dtemp_2 = DRA752_DTEMP_DSPEVE_2_OFFSET, 120*4882a593Smuzhiyun .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_DSPEVE_OFFSET, 121*4882a593Smuzhiyun }; 122*4882a593Smuzhiyun 123*4882a593Smuzhiyun /* 124*4882a593Smuzhiyun * DRA752 GPU thermal sensor register offsets and bit-fields 125*4882a593Smuzhiyun */ 126*4882a593Smuzhiyun static struct temp_sensor_registers 127*4882a593Smuzhiyun dra752_gpu_temp_sensor_registers = { 128*4882a593Smuzhiyun .temp_sensor_ctrl = DRA752_TEMP_SENSOR_GPU_OFFSET, 129*4882a593Smuzhiyun .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 130*4882a593Smuzhiyun .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 131*4882a593Smuzhiyun .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 132*4882a593Smuzhiyun .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 133*4882a593Smuzhiyun .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_GPU_MASK, 134*4882a593Smuzhiyun .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_GPU_MASK, 135*4882a593Smuzhiyun .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 136*4882a593Smuzhiyun .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_GPU_MASK, 137*4882a593Smuzhiyun .bgap_threshold = DRA752_BANDGAP_THRESHOLD_GPU_OFFSET, 138*4882a593Smuzhiyun .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 139*4882a593Smuzhiyun .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 140*4882a593Smuzhiyun .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 141*4882a593Smuzhiyun .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_GPU_MASK, 142*4882a593Smuzhiyun .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_GPU_MASK, 143*4882a593Smuzhiyun .ctrl_dtemp_1 = DRA752_DTEMP_GPU_1_OFFSET, 144*4882a593Smuzhiyun .ctrl_dtemp_2 = DRA752_DTEMP_GPU_2_OFFSET, 145*4882a593Smuzhiyun .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_GPU_OFFSET, 146*4882a593Smuzhiyun }; 147*4882a593Smuzhiyun 148*4882a593Smuzhiyun /* Thresholds and limits for DRA752 MPU temperature sensor */ 149*4882a593Smuzhiyun static struct temp_sensor_data dra752_mpu_temp_sensor_data = { 150*4882a593Smuzhiyun .t_hot = DRA752_MPU_T_HOT, 151*4882a593Smuzhiyun .t_cold = DRA752_MPU_T_COLD, 152*4882a593Smuzhiyun .min_freq = DRA752_MPU_MIN_FREQ, 153*4882a593Smuzhiyun .max_freq = DRA752_MPU_MAX_FREQ, 154*4882a593Smuzhiyun }; 155*4882a593Smuzhiyun 156*4882a593Smuzhiyun /* Thresholds and limits for DRA752 GPU temperature sensor */ 157*4882a593Smuzhiyun static struct temp_sensor_data dra752_gpu_temp_sensor_data = { 158*4882a593Smuzhiyun .t_hot = DRA752_GPU_T_HOT, 159*4882a593Smuzhiyun .t_cold = DRA752_GPU_T_COLD, 160*4882a593Smuzhiyun .min_freq = DRA752_GPU_MIN_FREQ, 161*4882a593Smuzhiyun .max_freq = DRA752_GPU_MAX_FREQ, 162*4882a593Smuzhiyun }; 163*4882a593Smuzhiyun 164*4882a593Smuzhiyun /* Thresholds and limits for DRA752 CORE temperature sensor */ 165*4882a593Smuzhiyun static struct temp_sensor_data dra752_core_temp_sensor_data = { 166*4882a593Smuzhiyun .t_hot = DRA752_CORE_T_HOT, 167*4882a593Smuzhiyun .t_cold = DRA752_CORE_T_COLD, 168*4882a593Smuzhiyun .min_freq = DRA752_CORE_MIN_FREQ, 169*4882a593Smuzhiyun .max_freq = DRA752_CORE_MAX_FREQ, 170*4882a593Smuzhiyun }; 171*4882a593Smuzhiyun 172*4882a593Smuzhiyun /* Thresholds and limits for DRA752 DSPEVE temperature sensor */ 173*4882a593Smuzhiyun static struct temp_sensor_data dra752_dspeve_temp_sensor_data = { 174*4882a593Smuzhiyun .t_hot = DRA752_DSPEVE_T_HOT, 175*4882a593Smuzhiyun .t_cold = DRA752_DSPEVE_T_COLD, 176*4882a593Smuzhiyun .min_freq = DRA752_DSPEVE_MIN_FREQ, 177*4882a593Smuzhiyun .max_freq = DRA752_DSPEVE_MAX_FREQ, 178*4882a593Smuzhiyun }; 179*4882a593Smuzhiyun 180*4882a593Smuzhiyun /* Thresholds and limits for DRA752 IVA temperature sensor */ 181*4882a593Smuzhiyun static struct temp_sensor_data dra752_iva_temp_sensor_data = { 182*4882a593Smuzhiyun .t_hot = DRA752_IVA_T_HOT, 183*4882a593Smuzhiyun .t_cold = DRA752_IVA_T_COLD, 184*4882a593Smuzhiyun .min_freq = DRA752_IVA_MIN_FREQ, 185*4882a593Smuzhiyun .max_freq = DRA752_IVA_MAX_FREQ, 186*4882a593Smuzhiyun }; 187*4882a593Smuzhiyun 188*4882a593Smuzhiyun /* 189*4882a593Smuzhiyun * DRA752 : Temperature values in milli degree celsius 190*4882a593Smuzhiyun * ADC code values from 540 to 945 191*4882a593Smuzhiyun */ 192*4882a593Smuzhiyun static 193*4882a593Smuzhiyun int dra752_adc_to_temp[DRA752_ADC_END_VALUE - DRA752_ADC_START_VALUE + 1] = { 194*4882a593Smuzhiyun /* Index 540 - 549 */ 195*4882a593Smuzhiyun -40000, -40000, -40000, -40000, -39800, -39400, -39000, -38600, -38200, 196*4882a593Smuzhiyun -37800, 197*4882a593Smuzhiyun /* Index 550 - 559 */ 198*4882a593Smuzhiyun -37400, -37000, -36600, -36200, -35800, -35300, -34700, -34200, -33800, 199*4882a593Smuzhiyun -33400, 200*4882a593Smuzhiyun /* Index 560 - 569 */ 201*4882a593Smuzhiyun -33000, -32600, -32200, -31800, -31400, -31000, -30600, -30200, -29800, 202*4882a593Smuzhiyun -29400, 203*4882a593Smuzhiyun /* Index 570 - 579 */ 204*4882a593Smuzhiyun -29000, -28600, -28200, -27700, -27100, -26600, -26200, -25800, -25400, 205*4882a593Smuzhiyun -25000, 206*4882a593Smuzhiyun /* Index 580 - 589 */ 207*4882a593Smuzhiyun -24600, -24200, -23800, -23400, -23000, -22600, -22200, -21800, -21400, 208*4882a593Smuzhiyun -21000, 209*4882a593Smuzhiyun /* Index 590 - 599 */ 210*4882a593Smuzhiyun -20500, -19900, -19400, -19000, -18600, -18200, -17800, -17400, -17000, 211*4882a593Smuzhiyun -16600, 212*4882a593Smuzhiyun /* Index 600 - 609 */ 213*4882a593Smuzhiyun -16200, -15800, -15400, -15000, -14600, -14200, -13800, -13400, -13000, 214*4882a593Smuzhiyun -12500, 215*4882a593Smuzhiyun /* Index 610 - 619 */ 216*4882a593Smuzhiyun -11900, -11400, -11000, -10600, -10200, -9800, -9400, -9000, -8600, 217*4882a593Smuzhiyun -8200, 218*4882a593Smuzhiyun /* Index 620 - 629 */ 219*4882a593Smuzhiyun -7800, -7400, -7000, -6600, -6200, -5800, -5400, -5000, -4500, 220*4882a593Smuzhiyun -3900, 221*4882a593Smuzhiyun /* Index 630 - 639 */ 222*4882a593Smuzhiyun -3400, -3000, -2600, -2200, -1800, -1400, -1000, -600, -200, 223*4882a593Smuzhiyun 200, 224*4882a593Smuzhiyun /* Index 640 - 649 */ 225*4882a593Smuzhiyun 600, 1000, 1400, 1800, 2200, 2600, 3000, 3400, 3900, 226*4882a593Smuzhiyun 4500, 227*4882a593Smuzhiyun /* Index 650 - 659 */ 228*4882a593Smuzhiyun 5000, 5400, 5800, 6200, 6600, 7000, 7400, 7800, 8200, 229*4882a593Smuzhiyun 8600, 230*4882a593Smuzhiyun /* Index 660 - 669 */ 231*4882a593Smuzhiyun 9000, 9400, 9800, 10200, 10600, 11000, 11400, 11800, 12200, 232*4882a593Smuzhiyun 12700, 233*4882a593Smuzhiyun /* Index 670 - 679 */ 234*4882a593Smuzhiyun 13300, 13800, 14200, 14600, 15000, 15400, 15800, 16200, 16600, 235*4882a593Smuzhiyun 17000, 236*4882a593Smuzhiyun /* Index 680 - 689 */ 237*4882a593Smuzhiyun 17400, 17800, 18200, 18600, 19000, 19400, 19800, 20200, 20600, 238*4882a593Smuzhiyun 21000, 239*4882a593Smuzhiyun /* Index 690 - 699 */ 240*4882a593Smuzhiyun 21400, 21900, 22500, 23000, 23400, 23800, 24200, 24600, 25000, 241*4882a593Smuzhiyun 25400, 242*4882a593Smuzhiyun /* Index 700 - 709 */ 243*4882a593Smuzhiyun 25800, 26200, 26600, 27000, 27400, 27800, 28200, 28600, 29000, 244*4882a593Smuzhiyun 29400, 245*4882a593Smuzhiyun /* Index 710 - 719 */ 246*4882a593Smuzhiyun 29800, 30200, 30600, 31000, 31400, 31900, 32500, 33000, 33400, 247*4882a593Smuzhiyun 33800, 248*4882a593Smuzhiyun /* Index 720 - 729 */ 249*4882a593Smuzhiyun 34200, 34600, 35000, 35400, 35800, 36200, 36600, 37000, 37400, 250*4882a593Smuzhiyun 37800, 251*4882a593Smuzhiyun /* Index 730 - 739 */ 252*4882a593Smuzhiyun 38200, 38600, 39000, 39400, 39800, 40200, 40600, 41000, 41400, 253*4882a593Smuzhiyun 41800, 254*4882a593Smuzhiyun /* Index 740 - 749 */ 255*4882a593Smuzhiyun 42200, 42600, 43100, 43700, 44200, 44600, 45000, 45400, 45800, 256*4882a593Smuzhiyun 46200, 257*4882a593Smuzhiyun /* Index 750 - 759 */ 258*4882a593Smuzhiyun 46600, 47000, 47400, 47800, 48200, 48600, 49000, 49400, 49800, 259*4882a593Smuzhiyun 50200, 260*4882a593Smuzhiyun /* Index 760 - 769 */ 261*4882a593Smuzhiyun 50600, 51000, 51400, 51800, 52200, 52600, 53000, 53400, 53800, 262*4882a593Smuzhiyun 54200, 263*4882a593Smuzhiyun /* Index 770 - 779 */ 264*4882a593Smuzhiyun 54600, 55000, 55400, 55900, 56500, 57000, 57400, 57800, 58200, 265*4882a593Smuzhiyun 58600, 266*4882a593Smuzhiyun /* Index 780 - 789 */ 267*4882a593Smuzhiyun 59000, 59400, 59800, 60200, 60600, 61000, 61400, 61800, 62200, 268*4882a593Smuzhiyun 62600, 269*4882a593Smuzhiyun /* Index 790 - 799 */ 270*4882a593Smuzhiyun 63000, 63400, 63800, 64200, 64600, 65000, 65400, 65800, 66200, 271*4882a593Smuzhiyun 66600, 272*4882a593Smuzhiyun /* Index 800 - 809 */ 273*4882a593Smuzhiyun 67000, 67400, 67800, 68200, 68600, 69000, 69400, 69800, 70200, 274*4882a593Smuzhiyun 70600, 275*4882a593Smuzhiyun /* Index 810 - 819 */ 276*4882a593Smuzhiyun 71000, 71500, 72100, 72600, 73000, 73400, 73800, 74200, 74600, 277*4882a593Smuzhiyun 75000, 278*4882a593Smuzhiyun /* Index 820 - 829 */ 279*4882a593Smuzhiyun 75400, 75800, 76200, 76600, 77000, 77400, 77800, 78200, 78600, 280*4882a593Smuzhiyun 79000, 281*4882a593Smuzhiyun /* Index 830 - 839 */ 282*4882a593Smuzhiyun 79400, 79800, 80200, 80600, 81000, 81400, 81800, 82200, 82600, 283*4882a593Smuzhiyun 83000, 284*4882a593Smuzhiyun /* Index 840 - 849 */ 285*4882a593Smuzhiyun 83400, 83800, 84200, 84600, 85000, 85400, 85800, 86200, 86600, 286*4882a593Smuzhiyun 87000, 287*4882a593Smuzhiyun /* Index 850 - 859 */ 288*4882a593Smuzhiyun 87400, 87800, 88200, 88600, 89000, 89400, 89800, 90200, 90600, 289*4882a593Smuzhiyun 91000, 290*4882a593Smuzhiyun /* Index 860 - 869 */ 291*4882a593Smuzhiyun 91400, 91800, 92200, 92600, 93000, 93400, 93800, 94200, 94600, 292*4882a593Smuzhiyun 95000, 293*4882a593Smuzhiyun /* Index 870 - 879 */ 294*4882a593Smuzhiyun 95400, 95800, 96200, 96600, 97000, 97500, 98100, 98600, 99000, 295*4882a593Smuzhiyun 99400, 296*4882a593Smuzhiyun /* Index 880 - 889 */ 297*4882a593Smuzhiyun 99800, 100200, 100600, 101000, 101400, 101800, 102200, 102600, 103000, 298*4882a593Smuzhiyun 103400, 299*4882a593Smuzhiyun /* Index 890 - 899 */ 300*4882a593Smuzhiyun 103800, 104200, 104600, 105000, 105400, 105800, 106200, 106600, 107000, 301*4882a593Smuzhiyun 107400, 302*4882a593Smuzhiyun /* Index 900 - 909 */ 303*4882a593Smuzhiyun 107800, 108200, 108600, 109000, 109400, 109800, 110200, 110600, 111000, 304*4882a593Smuzhiyun 111400, 305*4882a593Smuzhiyun /* Index 910 - 919 */ 306*4882a593Smuzhiyun 111800, 112200, 112600, 113000, 113400, 113800, 114200, 114600, 115000, 307*4882a593Smuzhiyun 115400, 308*4882a593Smuzhiyun /* Index 920 - 929 */ 309*4882a593Smuzhiyun 115800, 116200, 116600, 117000, 117400, 117800, 118200, 118600, 119000, 310*4882a593Smuzhiyun 119400, 311*4882a593Smuzhiyun /* Index 930 - 939 */ 312*4882a593Smuzhiyun 119800, 120200, 120600, 121000, 121400, 121800, 122200, 122600, 123000, 313*4882a593Smuzhiyun 123400, 314*4882a593Smuzhiyun /* Index 940 - 945 */ 315*4882a593Smuzhiyun 123800, 124200, 124600, 124900, 125000, 125000, 316*4882a593Smuzhiyun }; 317*4882a593Smuzhiyun 318*4882a593Smuzhiyun /* DRA752 data */ 319*4882a593Smuzhiyun const struct ti_bandgap_data dra752_data = { 320*4882a593Smuzhiyun .features = TI_BANDGAP_FEATURE_FREEZE_BIT | 321*4882a593Smuzhiyun TI_BANDGAP_FEATURE_TALERT | 322*4882a593Smuzhiyun TI_BANDGAP_FEATURE_COUNTER_DELAY | 323*4882a593Smuzhiyun TI_BANDGAP_FEATURE_HISTORY_BUFFER | 324*4882a593Smuzhiyun TI_BANDGAP_FEATURE_ERRATA_814, 325*4882a593Smuzhiyun .fclock_name = "l3instr_ts_gclk_div", 326*4882a593Smuzhiyun .div_ck_name = "l3instr_ts_gclk_div", 327*4882a593Smuzhiyun .conv_table = dra752_adc_to_temp, 328*4882a593Smuzhiyun .adc_start_val = DRA752_ADC_START_VALUE, 329*4882a593Smuzhiyun .adc_end_val = DRA752_ADC_END_VALUE, 330*4882a593Smuzhiyun .expose_sensor = ti_thermal_expose_sensor, 331*4882a593Smuzhiyun .remove_sensor = ti_thermal_remove_sensor, 332*4882a593Smuzhiyun .sensors = { 333*4882a593Smuzhiyun { 334*4882a593Smuzhiyun .registers = &dra752_mpu_temp_sensor_registers, 335*4882a593Smuzhiyun .ts_data = &dra752_mpu_temp_sensor_data, 336*4882a593Smuzhiyun .domain = "cpu", 337*4882a593Smuzhiyun .register_cooling = ti_thermal_register_cpu_cooling, 338*4882a593Smuzhiyun .unregister_cooling = ti_thermal_unregister_cpu_cooling, 339*4882a593Smuzhiyun .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 340*4882a593Smuzhiyun .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 341*4882a593Smuzhiyun }, 342*4882a593Smuzhiyun { 343*4882a593Smuzhiyun .registers = &dra752_gpu_temp_sensor_registers, 344*4882a593Smuzhiyun .ts_data = &dra752_gpu_temp_sensor_data, 345*4882a593Smuzhiyun .domain = "gpu", 346*4882a593Smuzhiyun .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 347*4882a593Smuzhiyun .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 348*4882a593Smuzhiyun }, 349*4882a593Smuzhiyun { 350*4882a593Smuzhiyun .registers = &dra752_core_temp_sensor_registers, 351*4882a593Smuzhiyun .ts_data = &dra752_core_temp_sensor_data, 352*4882a593Smuzhiyun .domain = "core", 353*4882a593Smuzhiyun .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 354*4882a593Smuzhiyun .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 355*4882a593Smuzhiyun }, 356*4882a593Smuzhiyun { 357*4882a593Smuzhiyun .registers = &dra752_dspeve_temp_sensor_registers, 358*4882a593Smuzhiyun .ts_data = &dra752_dspeve_temp_sensor_data, 359*4882a593Smuzhiyun .domain = "dspeve", 360*4882a593Smuzhiyun .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 361*4882a593Smuzhiyun .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 362*4882a593Smuzhiyun }, 363*4882a593Smuzhiyun { 364*4882a593Smuzhiyun .registers = &dra752_iva_temp_sensor_registers, 365*4882a593Smuzhiyun .ts_data = &dra752_iva_temp_sensor_data, 366*4882a593Smuzhiyun .domain = "iva", 367*4882a593Smuzhiyun .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 368*4882a593Smuzhiyun .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 369*4882a593Smuzhiyun }, 370*4882a593Smuzhiyun }, 371*4882a593Smuzhiyun .sensor_count = 5, 372*4882a593Smuzhiyun }; 373