18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * DRA752 thermal data. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2013 Texas Instruments Inc. 68c2ecf20Sopenharmony_ci * Contact: 78c2ecf20Sopenharmony_ci * Eduardo Valentin <eduardo.valentin@ti.com> 88c2ecf20Sopenharmony_ci * Tero Kristo <t-kristo@ti.com> 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * This file is partially autogenerated. 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include "ti-thermal.h" 148c2ecf20Sopenharmony_ci#include "ti-bandgap.h" 158c2ecf20Sopenharmony_ci#include "dra752-bandgap.h" 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* 188c2ecf20Sopenharmony_ci * DRA752 has five instances of thermal sensor: MPU, GPU, CORE, 198c2ecf20Sopenharmony_ci * IVA and DSPEVE need to describe the individual registers and 208c2ecf20Sopenharmony_ci * bit fields. 218c2ecf20Sopenharmony_ci */ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/* 248c2ecf20Sopenharmony_ci * DRA752 CORE thermal sensor register offsets and bit-fields 258c2ecf20Sopenharmony_ci */ 268c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 278c2ecf20Sopenharmony_cidra752_core_temp_sensor_registers = { 288c2ecf20Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_CORE_OFFSET, 298c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 308c2ecf20Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 318c2ecf20Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 328c2ecf20Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 338c2ecf20Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_CORE_MASK, 348c2ecf20Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_CORE_MASK, 358c2ecf20Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 368c2ecf20Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_CORE_MASK, 378c2ecf20Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_CORE_OFFSET, 388c2ecf20Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 398c2ecf20Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 408c2ecf20Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 418c2ecf20Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_CORE_MASK, 428c2ecf20Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_CORE_MASK, 438c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_CORE_1_OFFSET, 448c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_CORE_2_OFFSET, 458c2ecf20Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_CORE_OFFSET, 468c2ecf20Sopenharmony_ci}; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci/* 498c2ecf20Sopenharmony_ci * DRA752 IVA thermal sensor register offsets and bit-fields 508c2ecf20Sopenharmony_ci */ 518c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 528c2ecf20Sopenharmony_cidra752_iva_temp_sensor_registers = { 538c2ecf20Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_IVA_OFFSET, 548c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 558c2ecf20Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 568c2ecf20Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 578c2ecf20Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_2_OFFSET, 588c2ecf20Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_2_MASK_HOT_IVA_MASK, 598c2ecf20Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_2_MASK_COLD_IVA_MASK, 608c2ecf20Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 618c2ecf20Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_2_FREEZE_IVA_MASK, 628c2ecf20Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_IVA_OFFSET, 638c2ecf20Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 648c2ecf20Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 658c2ecf20Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_2_OFFSET, 668c2ecf20Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_2_HOT_IVA_MASK, 678c2ecf20Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_2_COLD_IVA_MASK, 688c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_IVA_1_OFFSET, 698c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_IVA_2_OFFSET, 708c2ecf20Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_IVA_OFFSET, 718c2ecf20Sopenharmony_ci}; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci/* 748c2ecf20Sopenharmony_ci * DRA752 MPU thermal sensor register offsets and bit-fields 758c2ecf20Sopenharmony_ci */ 768c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 778c2ecf20Sopenharmony_cidra752_mpu_temp_sensor_registers = { 788c2ecf20Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_MPU_OFFSET, 798c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 808c2ecf20Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 818c2ecf20Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 828c2ecf20Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 838c2ecf20Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_MPU_MASK, 848c2ecf20Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_MPU_MASK, 858c2ecf20Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 868c2ecf20Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_MPU_MASK, 878c2ecf20Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_MPU_OFFSET, 888c2ecf20Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 898c2ecf20Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 908c2ecf20Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 918c2ecf20Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_MPU_MASK, 928c2ecf20Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_MPU_MASK, 938c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_MPU_1_OFFSET, 948c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_MPU_2_OFFSET, 958c2ecf20Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_MPU_OFFSET, 968c2ecf20Sopenharmony_ci}; 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci/* 998c2ecf20Sopenharmony_ci * DRA752 DSPEVE thermal sensor register offsets and bit-fields 1008c2ecf20Sopenharmony_ci */ 1018c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 1028c2ecf20Sopenharmony_cidra752_dspeve_temp_sensor_registers = { 1038c2ecf20Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_DSPEVE_OFFSET, 1048c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 1058c2ecf20Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 1068c2ecf20Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 1078c2ecf20Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_2_OFFSET, 1088c2ecf20Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_2_MASK_HOT_DSPEVE_MASK, 1098c2ecf20Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_2_MASK_COLD_DSPEVE_MASK, 1108c2ecf20Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 1118c2ecf20Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_2_FREEZE_DSPEVE_MASK, 1128c2ecf20Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_DSPEVE_OFFSET, 1138c2ecf20Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 1148c2ecf20Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 1158c2ecf20Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_2_OFFSET, 1168c2ecf20Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_2_HOT_DSPEVE_MASK, 1178c2ecf20Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_2_COLD_DSPEVE_MASK, 1188c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_DSPEVE_1_OFFSET, 1198c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_DSPEVE_2_OFFSET, 1208c2ecf20Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_DSPEVE_OFFSET, 1218c2ecf20Sopenharmony_ci}; 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci/* 1248c2ecf20Sopenharmony_ci * DRA752 GPU thermal sensor register offsets and bit-fields 1258c2ecf20Sopenharmony_ci */ 1268c2ecf20Sopenharmony_cistatic struct temp_sensor_registers 1278c2ecf20Sopenharmony_cidra752_gpu_temp_sensor_registers = { 1288c2ecf20Sopenharmony_ci .temp_sensor_ctrl = DRA752_TEMP_SENSOR_GPU_OFFSET, 1298c2ecf20Sopenharmony_ci .bgap_tempsoff_mask = DRA752_TEMP_SENSOR_TMPSOFF_MASK, 1308c2ecf20Sopenharmony_ci .bgap_eocz_mask = DRA752_TEMP_SENSOR_EOCZ_MASK, 1318c2ecf20Sopenharmony_ci .bgap_dtemp_mask = DRA752_TEMP_SENSOR_DTEMP_MASK, 1328c2ecf20Sopenharmony_ci .bgap_mask_ctrl = DRA752_BANDGAP_CTRL_1_OFFSET, 1338c2ecf20Sopenharmony_ci .mask_hot_mask = DRA752_BANDGAP_CTRL_1_MASK_HOT_GPU_MASK, 1348c2ecf20Sopenharmony_ci .mask_cold_mask = DRA752_BANDGAP_CTRL_1_MASK_COLD_GPU_MASK, 1358c2ecf20Sopenharmony_ci .mask_counter_delay_mask = DRA752_BANDGAP_CTRL_1_COUNTER_DELAY_MASK, 1368c2ecf20Sopenharmony_ci .mask_freeze_mask = DRA752_BANDGAP_CTRL_1_FREEZE_GPU_MASK, 1378c2ecf20Sopenharmony_ci .bgap_threshold = DRA752_BANDGAP_THRESHOLD_GPU_OFFSET, 1388c2ecf20Sopenharmony_ci .threshold_thot_mask = DRA752_BANDGAP_THRESHOLD_HOT_MASK, 1398c2ecf20Sopenharmony_ci .threshold_tcold_mask = DRA752_BANDGAP_THRESHOLD_COLD_MASK, 1408c2ecf20Sopenharmony_ci .bgap_status = DRA752_BANDGAP_STATUS_1_OFFSET, 1418c2ecf20Sopenharmony_ci .status_hot_mask = DRA752_BANDGAP_STATUS_1_HOT_GPU_MASK, 1428c2ecf20Sopenharmony_ci .status_cold_mask = DRA752_BANDGAP_STATUS_1_COLD_GPU_MASK, 1438c2ecf20Sopenharmony_ci .ctrl_dtemp_1 = DRA752_DTEMP_GPU_1_OFFSET, 1448c2ecf20Sopenharmony_ci .ctrl_dtemp_2 = DRA752_DTEMP_GPU_2_OFFSET, 1458c2ecf20Sopenharmony_ci .bgap_efuse = DRA752_STD_FUSE_OPP_BGAP_GPU_OFFSET, 1468c2ecf20Sopenharmony_ci}; 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci/* Thresholds and limits for DRA752 MPU temperature sensor */ 1498c2ecf20Sopenharmony_cistatic struct temp_sensor_data dra752_mpu_temp_sensor_data = { 1508c2ecf20Sopenharmony_ci .t_hot = DRA752_MPU_T_HOT, 1518c2ecf20Sopenharmony_ci .t_cold = DRA752_MPU_T_COLD, 1528c2ecf20Sopenharmony_ci .min_freq = DRA752_MPU_MIN_FREQ, 1538c2ecf20Sopenharmony_ci .max_freq = DRA752_MPU_MAX_FREQ, 1548c2ecf20Sopenharmony_ci}; 1558c2ecf20Sopenharmony_ci 1568c2ecf20Sopenharmony_ci/* Thresholds and limits for DRA752 GPU temperature sensor */ 1578c2ecf20Sopenharmony_cistatic struct temp_sensor_data dra752_gpu_temp_sensor_data = { 1588c2ecf20Sopenharmony_ci .t_hot = DRA752_GPU_T_HOT, 1598c2ecf20Sopenharmony_ci .t_cold = DRA752_GPU_T_COLD, 1608c2ecf20Sopenharmony_ci .min_freq = DRA752_GPU_MIN_FREQ, 1618c2ecf20Sopenharmony_ci .max_freq = DRA752_GPU_MAX_FREQ, 1628c2ecf20Sopenharmony_ci}; 1638c2ecf20Sopenharmony_ci 1648c2ecf20Sopenharmony_ci/* Thresholds and limits for DRA752 CORE temperature sensor */ 1658c2ecf20Sopenharmony_cistatic struct temp_sensor_data dra752_core_temp_sensor_data = { 1668c2ecf20Sopenharmony_ci .t_hot = DRA752_CORE_T_HOT, 1678c2ecf20Sopenharmony_ci .t_cold = DRA752_CORE_T_COLD, 1688c2ecf20Sopenharmony_ci .min_freq = DRA752_CORE_MIN_FREQ, 1698c2ecf20Sopenharmony_ci .max_freq = DRA752_CORE_MAX_FREQ, 1708c2ecf20Sopenharmony_ci}; 1718c2ecf20Sopenharmony_ci 1728c2ecf20Sopenharmony_ci/* Thresholds and limits for DRA752 DSPEVE temperature sensor */ 1738c2ecf20Sopenharmony_cistatic struct temp_sensor_data dra752_dspeve_temp_sensor_data = { 1748c2ecf20Sopenharmony_ci .t_hot = DRA752_DSPEVE_T_HOT, 1758c2ecf20Sopenharmony_ci .t_cold = DRA752_DSPEVE_T_COLD, 1768c2ecf20Sopenharmony_ci .min_freq = DRA752_DSPEVE_MIN_FREQ, 1778c2ecf20Sopenharmony_ci .max_freq = DRA752_DSPEVE_MAX_FREQ, 1788c2ecf20Sopenharmony_ci}; 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_ci/* Thresholds and limits for DRA752 IVA temperature sensor */ 1818c2ecf20Sopenharmony_cistatic struct temp_sensor_data dra752_iva_temp_sensor_data = { 1828c2ecf20Sopenharmony_ci .t_hot = DRA752_IVA_T_HOT, 1838c2ecf20Sopenharmony_ci .t_cold = DRA752_IVA_T_COLD, 1848c2ecf20Sopenharmony_ci .min_freq = DRA752_IVA_MIN_FREQ, 1858c2ecf20Sopenharmony_ci .max_freq = DRA752_IVA_MAX_FREQ, 1868c2ecf20Sopenharmony_ci}; 1878c2ecf20Sopenharmony_ci 1888c2ecf20Sopenharmony_ci/* 1898c2ecf20Sopenharmony_ci * DRA752 : Temperature values in milli degree celsius 1908c2ecf20Sopenharmony_ci * ADC code values from 540 to 945 1918c2ecf20Sopenharmony_ci */ 1928c2ecf20Sopenharmony_cistatic 1938c2ecf20Sopenharmony_ciint dra752_adc_to_temp[DRA752_ADC_END_VALUE - DRA752_ADC_START_VALUE + 1] = { 1948c2ecf20Sopenharmony_ci /* Index 540 - 549 */ 1958c2ecf20Sopenharmony_ci -40000, -40000, -40000, -40000, -39800, -39400, -39000, -38600, -38200, 1968c2ecf20Sopenharmony_ci -37800, 1978c2ecf20Sopenharmony_ci /* Index 550 - 559 */ 1988c2ecf20Sopenharmony_ci -37400, -37000, -36600, -36200, -35800, -35300, -34700, -34200, -33800, 1998c2ecf20Sopenharmony_ci -33400, 2008c2ecf20Sopenharmony_ci /* Index 560 - 569 */ 2018c2ecf20Sopenharmony_ci -33000, -32600, -32200, -31800, -31400, -31000, -30600, -30200, -29800, 2028c2ecf20Sopenharmony_ci -29400, 2038c2ecf20Sopenharmony_ci /* Index 570 - 579 */ 2048c2ecf20Sopenharmony_ci -29000, -28600, -28200, -27700, -27100, -26600, -26200, -25800, -25400, 2058c2ecf20Sopenharmony_ci -25000, 2068c2ecf20Sopenharmony_ci /* Index 580 - 589 */ 2078c2ecf20Sopenharmony_ci -24600, -24200, -23800, -23400, -23000, -22600, -22200, -21800, -21400, 2088c2ecf20Sopenharmony_ci -21000, 2098c2ecf20Sopenharmony_ci /* Index 590 - 599 */ 2108c2ecf20Sopenharmony_ci -20500, -19900, -19400, -19000, -18600, -18200, -17800, -17400, -17000, 2118c2ecf20Sopenharmony_ci -16600, 2128c2ecf20Sopenharmony_ci /* Index 600 - 609 */ 2138c2ecf20Sopenharmony_ci -16200, -15800, -15400, -15000, -14600, -14200, -13800, -13400, -13000, 2148c2ecf20Sopenharmony_ci -12500, 2158c2ecf20Sopenharmony_ci /* Index 610 - 619 */ 2168c2ecf20Sopenharmony_ci -11900, -11400, -11000, -10600, -10200, -9800, -9400, -9000, -8600, 2178c2ecf20Sopenharmony_ci -8200, 2188c2ecf20Sopenharmony_ci /* Index 620 - 629 */ 2198c2ecf20Sopenharmony_ci -7800, -7400, -7000, -6600, -6200, -5800, -5400, -5000, -4500, 2208c2ecf20Sopenharmony_ci -3900, 2218c2ecf20Sopenharmony_ci /* Index 630 - 639 */ 2228c2ecf20Sopenharmony_ci -3400, -3000, -2600, -2200, -1800, -1400, -1000, -600, -200, 2238c2ecf20Sopenharmony_ci 200, 2248c2ecf20Sopenharmony_ci /* Index 640 - 649 */ 2258c2ecf20Sopenharmony_ci 600, 1000, 1400, 1800, 2200, 2600, 3000, 3400, 3900, 2268c2ecf20Sopenharmony_ci 4500, 2278c2ecf20Sopenharmony_ci /* Index 650 - 659 */ 2288c2ecf20Sopenharmony_ci 5000, 5400, 5800, 6200, 6600, 7000, 7400, 7800, 8200, 2298c2ecf20Sopenharmony_ci 8600, 2308c2ecf20Sopenharmony_ci /* Index 660 - 669 */ 2318c2ecf20Sopenharmony_ci 9000, 9400, 9800, 10200, 10600, 11000, 11400, 11800, 12200, 2328c2ecf20Sopenharmony_ci 12700, 2338c2ecf20Sopenharmony_ci /* Index 670 - 679 */ 2348c2ecf20Sopenharmony_ci 13300, 13800, 14200, 14600, 15000, 15400, 15800, 16200, 16600, 2358c2ecf20Sopenharmony_ci 17000, 2368c2ecf20Sopenharmony_ci /* Index 680 - 689 */ 2378c2ecf20Sopenharmony_ci 17400, 17800, 18200, 18600, 19000, 19400, 19800, 20200, 20600, 2388c2ecf20Sopenharmony_ci 21000, 2398c2ecf20Sopenharmony_ci /* Index 690 - 699 */ 2408c2ecf20Sopenharmony_ci 21400, 21900, 22500, 23000, 23400, 23800, 24200, 24600, 25000, 2418c2ecf20Sopenharmony_ci 25400, 2428c2ecf20Sopenharmony_ci /* Index 700 - 709 */ 2438c2ecf20Sopenharmony_ci 25800, 26200, 26600, 27000, 27400, 27800, 28200, 28600, 29000, 2448c2ecf20Sopenharmony_ci 29400, 2458c2ecf20Sopenharmony_ci /* Index 710 - 719 */ 2468c2ecf20Sopenharmony_ci 29800, 30200, 30600, 31000, 31400, 31900, 32500, 33000, 33400, 2478c2ecf20Sopenharmony_ci 33800, 2488c2ecf20Sopenharmony_ci /* Index 720 - 729 */ 2498c2ecf20Sopenharmony_ci 34200, 34600, 35000, 35400, 35800, 36200, 36600, 37000, 37400, 2508c2ecf20Sopenharmony_ci 37800, 2518c2ecf20Sopenharmony_ci /* Index 730 - 739 */ 2528c2ecf20Sopenharmony_ci 38200, 38600, 39000, 39400, 39800, 40200, 40600, 41000, 41400, 2538c2ecf20Sopenharmony_ci 41800, 2548c2ecf20Sopenharmony_ci /* Index 740 - 749 */ 2558c2ecf20Sopenharmony_ci 42200, 42600, 43100, 43700, 44200, 44600, 45000, 45400, 45800, 2568c2ecf20Sopenharmony_ci 46200, 2578c2ecf20Sopenharmony_ci /* Index 750 - 759 */ 2588c2ecf20Sopenharmony_ci 46600, 47000, 47400, 47800, 48200, 48600, 49000, 49400, 49800, 2598c2ecf20Sopenharmony_ci 50200, 2608c2ecf20Sopenharmony_ci /* Index 760 - 769 */ 2618c2ecf20Sopenharmony_ci 50600, 51000, 51400, 51800, 52200, 52600, 53000, 53400, 53800, 2628c2ecf20Sopenharmony_ci 54200, 2638c2ecf20Sopenharmony_ci /* Index 770 - 779 */ 2648c2ecf20Sopenharmony_ci 54600, 55000, 55400, 55900, 56500, 57000, 57400, 57800, 58200, 2658c2ecf20Sopenharmony_ci 58600, 2668c2ecf20Sopenharmony_ci /* Index 780 - 789 */ 2678c2ecf20Sopenharmony_ci 59000, 59400, 59800, 60200, 60600, 61000, 61400, 61800, 62200, 2688c2ecf20Sopenharmony_ci 62600, 2698c2ecf20Sopenharmony_ci /* Index 790 - 799 */ 2708c2ecf20Sopenharmony_ci 63000, 63400, 63800, 64200, 64600, 65000, 65400, 65800, 66200, 2718c2ecf20Sopenharmony_ci 66600, 2728c2ecf20Sopenharmony_ci /* Index 800 - 809 */ 2738c2ecf20Sopenharmony_ci 67000, 67400, 67800, 68200, 68600, 69000, 69400, 69800, 70200, 2748c2ecf20Sopenharmony_ci 70600, 2758c2ecf20Sopenharmony_ci /* Index 810 - 819 */ 2768c2ecf20Sopenharmony_ci 71000, 71500, 72100, 72600, 73000, 73400, 73800, 74200, 74600, 2778c2ecf20Sopenharmony_ci 75000, 2788c2ecf20Sopenharmony_ci /* Index 820 - 829 */ 2798c2ecf20Sopenharmony_ci 75400, 75800, 76200, 76600, 77000, 77400, 77800, 78200, 78600, 2808c2ecf20Sopenharmony_ci 79000, 2818c2ecf20Sopenharmony_ci /* Index 830 - 839 */ 2828c2ecf20Sopenharmony_ci 79400, 79800, 80200, 80600, 81000, 81400, 81800, 82200, 82600, 2838c2ecf20Sopenharmony_ci 83000, 2848c2ecf20Sopenharmony_ci /* Index 840 - 849 */ 2858c2ecf20Sopenharmony_ci 83400, 83800, 84200, 84600, 85000, 85400, 85800, 86200, 86600, 2868c2ecf20Sopenharmony_ci 87000, 2878c2ecf20Sopenharmony_ci /* Index 850 - 859 */ 2888c2ecf20Sopenharmony_ci 87400, 87800, 88200, 88600, 89000, 89400, 89800, 90200, 90600, 2898c2ecf20Sopenharmony_ci 91000, 2908c2ecf20Sopenharmony_ci /* Index 860 - 869 */ 2918c2ecf20Sopenharmony_ci 91400, 91800, 92200, 92600, 93000, 93400, 93800, 94200, 94600, 2928c2ecf20Sopenharmony_ci 95000, 2938c2ecf20Sopenharmony_ci /* Index 870 - 879 */ 2948c2ecf20Sopenharmony_ci 95400, 95800, 96200, 96600, 97000, 97500, 98100, 98600, 99000, 2958c2ecf20Sopenharmony_ci 99400, 2968c2ecf20Sopenharmony_ci /* Index 880 - 889 */ 2978c2ecf20Sopenharmony_ci 99800, 100200, 100600, 101000, 101400, 101800, 102200, 102600, 103000, 2988c2ecf20Sopenharmony_ci 103400, 2998c2ecf20Sopenharmony_ci /* Index 890 - 899 */ 3008c2ecf20Sopenharmony_ci 103800, 104200, 104600, 105000, 105400, 105800, 106200, 106600, 107000, 3018c2ecf20Sopenharmony_ci 107400, 3028c2ecf20Sopenharmony_ci /* Index 900 - 909 */ 3038c2ecf20Sopenharmony_ci 107800, 108200, 108600, 109000, 109400, 109800, 110200, 110600, 111000, 3048c2ecf20Sopenharmony_ci 111400, 3058c2ecf20Sopenharmony_ci /* Index 910 - 919 */ 3068c2ecf20Sopenharmony_ci 111800, 112200, 112600, 113000, 113400, 113800, 114200, 114600, 115000, 3078c2ecf20Sopenharmony_ci 115400, 3088c2ecf20Sopenharmony_ci /* Index 920 - 929 */ 3098c2ecf20Sopenharmony_ci 115800, 116200, 116600, 117000, 117400, 117800, 118200, 118600, 119000, 3108c2ecf20Sopenharmony_ci 119400, 3118c2ecf20Sopenharmony_ci /* Index 930 - 939 */ 3128c2ecf20Sopenharmony_ci 119800, 120200, 120600, 121000, 121400, 121800, 122200, 122600, 123000, 3138c2ecf20Sopenharmony_ci 123400, 3148c2ecf20Sopenharmony_ci /* Index 940 - 945 */ 3158c2ecf20Sopenharmony_ci 123800, 124200, 124600, 124900, 125000, 125000, 3168c2ecf20Sopenharmony_ci}; 3178c2ecf20Sopenharmony_ci 3188c2ecf20Sopenharmony_ci/* DRA752 data */ 3198c2ecf20Sopenharmony_ciconst struct ti_bandgap_data dra752_data = { 3208c2ecf20Sopenharmony_ci .features = TI_BANDGAP_FEATURE_FREEZE_BIT | 3218c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_TALERT | 3228c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_COUNTER_DELAY | 3238c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_HISTORY_BUFFER | 3248c2ecf20Sopenharmony_ci TI_BANDGAP_FEATURE_ERRATA_814, 3258c2ecf20Sopenharmony_ci .fclock_name = "l3instr_ts_gclk_div", 3268c2ecf20Sopenharmony_ci .div_ck_name = "l3instr_ts_gclk_div", 3278c2ecf20Sopenharmony_ci .conv_table = dra752_adc_to_temp, 3288c2ecf20Sopenharmony_ci .adc_start_val = DRA752_ADC_START_VALUE, 3298c2ecf20Sopenharmony_ci .adc_end_val = DRA752_ADC_END_VALUE, 3308c2ecf20Sopenharmony_ci .expose_sensor = ti_thermal_expose_sensor, 3318c2ecf20Sopenharmony_ci .remove_sensor = ti_thermal_remove_sensor, 3328c2ecf20Sopenharmony_ci .sensors = { 3338c2ecf20Sopenharmony_ci { 3348c2ecf20Sopenharmony_ci .registers = &dra752_mpu_temp_sensor_registers, 3358c2ecf20Sopenharmony_ci .ts_data = &dra752_mpu_temp_sensor_data, 3368c2ecf20Sopenharmony_ci .domain = "cpu", 3378c2ecf20Sopenharmony_ci .register_cooling = ti_thermal_register_cpu_cooling, 3388c2ecf20Sopenharmony_ci .unregister_cooling = ti_thermal_unregister_cpu_cooling, 3398c2ecf20Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 3408c2ecf20Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 3418c2ecf20Sopenharmony_ci }, 3428c2ecf20Sopenharmony_ci { 3438c2ecf20Sopenharmony_ci .registers = &dra752_gpu_temp_sensor_registers, 3448c2ecf20Sopenharmony_ci .ts_data = &dra752_gpu_temp_sensor_data, 3458c2ecf20Sopenharmony_ci .domain = "gpu", 3468c2ecf20Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 3478c2ecf20Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 3488c2ecf20Sopenharmony_ci }, 3498c2ecf20Sopenharmony_ci { 3508c2ecf20Sopenharmony_ci .registers = &dra752_core_temp_sensor_registers, 3518c2ecf20Sopenharmony_ci .ts_data = &dra752_core_temp_sensor_data, 3528c2ecf20Sopenharmony_ci .domain = "core", 3538c2ecf20Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 3548c2ecf20Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 3558c2ecf20Sopenharmony_ci }, 3568c2ecf20Sopenharmony_ci { 3578c2ecf20Sopenharmony_ci .registers = &dra752_dspeve_temp_sensor_registers, 3588c2ecf20Sopenharmony_ci .ts_data = &dra752_dspeve_temp_sensor_data, 3598c2ecf20Sopenharmony_ci .domain = "dspeve", 3608c2ecf20Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 3618c2ecf20Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 3628c2ecf20Sopenharmony_ci }, 3638c2ecf20Sopenharmony_ci { 3648c2ecf20Sopenharmony_ci .registers = &dra752_iva_temp_sensor_registers, 3658c2ecf20Sopenharmony_ci .ts_data = &dra752_iva_temp_sensor_data, 3668c2ecf20Sopenharmony_ci .domain = "iva", 3678c2ecf20Sopenharmony_ci .slope_pcb = DRA752_GRADIENT_SLOPE_W_PCB, 3688c2ecf20Sopenharmony_ci .constant_pcb = DRA752_GRADIENT_CONST_W_PCB, 3698c2ecf20Sopenharmony_ci }, 3708c2ecf20Sopenharmony_ci }, 3718c2ecf20Sopenharmony_ci .sensor_count = 5, 3728c2ecf20Sopenharmony_ci}; 373