18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2012-2014,2018,2020 The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_H 78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_QCOM_SPMI_VADC_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* Voltage ADC channels */ 108c2ecf20Sopenharmony_ci#define VADC_USBIN 0x00 118c2ecf20Sopenharmony_ci#define VADC_DCIN 0x01 128c2ecf20Sopenharmony_ci#define VADC_VCHG_SNS 0x02 138c2ecf20Sopenharmony_ci#define VADC_SPARE1_03 0x03 148c2ecf20Sopenharmony_ci#define VADC_USB_ID_MV 0x04 158c2ecf20Sopenharmony_ci#define VADC_VCOIN 0x05 168c2ecf20Sopenharmony_ci#define VADC_VBAT_SNS 0x06 178c2ecf20Sopenharmony_ci#define VADC_VSYS 0x07 188c2ecf20Sopenharmony_ci#define VADC_DIE_TEMP 0x08 198c2ecf20Sopenharmony_ci#define VADC_REF_625MV 0x09 208c2ecf20Sopenharmony_ci#define VADC_REF_1250MV 0x0a 218c2ecf20Sopenharmony_ci#define VADC_CHG_TEMP 0x0b 228c2ecf20Sopenharmony_ci#define VADC_SPARE1 0x0c 238c2ecf20Sopenharmony_ci#define VADC_SPARE2 0x0d 248c2ecf20Sopenharmony_ci#define VADC_GND_REF 0x0e 258c2ecf20Sopenharmony_ci#define VADC_VDD_VADC 0x0f 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#define VADC_P_MUX1_1_1 0x10 288c2ecf20Sopenharmony_ci#define VADC_P_MUX2_1_1 0x11 298c2ecf20Sopenharmony_ci#define VADC_P_MUX3_1_1 0x12 308c2ecf20Sopenharmony_ci#define VADC_P_MUX4_1_1 0x13 318c2ecf20Sopenharmony_ci#define VADC_P_MUX5_1_1 0x14 328c2ecf20Sopenharmony_ci#define VADC_P_MUX6_1_1 0x15 338c2ecf20Sopenharmony_ci#define VADC_P_MUX7_1_1 0x16 348c2ecf20Sopenharmony_ci#define VADC_P_MUX8_1_1 0x17 358c2ecf20Sopenharmony_ci#define VADC_P_MUX9_1_1 0x18 368c2ecf20Sopenharmony_ci#define VADC_P_MUX10_1_1 0x19 378c2ecf20Sopenharmony_ci#define VADC_P_MUX11_1_1 0x1a 388c2ecf20Sopenharmony_ci#define VADC_P_MUX12_1_1 0x1b 398c2ecf20Sopenharmony_ci#define VADC_P_MUX13_1_1 0x1c 408c2ecf20Sopenharmony_ci#define VADC_P_MUX14_1_1 0x1d 418c2ecf20Sopenharmony_ci#define VADC_P_MUX15_1_1 0x1e 428c2ecf20Sopenharmony_ci#define VADC_P_MUX16_1_1 0x1f 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#define VADC_P_MUX1_1_3 0x20 458c2ecf20Sopenharmony_ci#define VADC_P_MUX2_1_3 0x21 468c2ecf20Sopenharmony_ci#define VADC_P_MUX3_1_3 0x22 478c2ecf20Sopenharmony_ci#define VADC_P_MUX4_1_3 0x23 488c2ecf20Sopenharmony_ci#define VADC_P_MUX5_1_3 0x24 498c2ecf20Sopenharmony_ci#define VADC_P_MUX6_1_3 0x25 508c2ecf20Sopenharmony_ci#define VADC_P_MUX7_1_3 0x26 518c2ecf20Sopenharmony_ci#define VADC_P_MUX8_1_3 0x27 528c2ecf20Sopenharmony_ci#define VADC_P_MUX9_1_3 0x28 538c2ecf20Sopenharmony_ci#define VADC_P_MUX10_1_3 0x29 548c2ecf20Sopenharmony_ci#define VADC_P_MUX11_1_3 0x2a 558c2ecf20Sopenharmony_ci#define VADC_P_MUX12_1_3 0x2b 568c2ecf20Sopenharmony_ci#define VADC_P_MUX13_1_3 0x2c 578c2ecf20Sopenharmony_ci#define VADC_P_MUX14_1_3 0x2d 588c2ecf20Sopenharmony_ci#define VADC_P_MUX15_1_3 0x2e 598c2ecf20Sopenharmony_ci#define VADC_P_MUX16_1_3 0x2f 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci#define VADC_LR_MUX1_BAT_THERM 0x30 628c2ecf20Sopenharmony_ci#define VADC_LR_MUX2_BAT_ID 0x31 638c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_XO_THERM 0x32 648c2ecf20Sopenharmony_ci#define VADC_LR_MUX4_AMUX_THM1 0x33 658c2ecf20Sopenharmony_ci#define VADC_LR_MUX5_AMUX_THM2 0x34 668c2ecf20Sopenharmony_ci#define VADC_LR_MUX6_AMUX_THM3 0x35 678c2ecf20Sopenharmony_ci#define VADC_LR_MUX7_HW_ID 0x36 688c2ecf20Sopenharmony_ci#define VADC_LR_MUX8_AMUX_THM4 0x37 698c2ecf20Sopenharmony_ci#define VADC_LR_MUX9_AMUX_THM5 0x38 708c2ecf20Sopenharmony_ci#define VADC_LR_MUX10_USB_ID 0x39 718c2ecf20Sopenharmony_ci#define VADC_AMUX_PU1 0x3a 728c2ecf20Sopenharmony_ci#define VADC_AMUX_PU2 0x3b 738c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_BUF_XO_THERM 0x3c 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci#define VADC_LR_MUX1_PU1_BAT_THERM 0x70 768c2ecf20Sopenharmony_ci#define VADC_LR_MUX2_PU1_BAT_ID 0x71 778c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_PU1_XO_THERM 0x72 788c2ecf20Sopenharmony_ci#define VADC_LR_MUX4_PU1_AMUX_THM1 0x73 798c2ecf20Sopenharmony_ci#define VADC_LR_MUX5_PU1_AMUX_THM2 0x74 808c2ecf20Sopenharmony_ci#define VADC_LR_MUX6_PU1_AMUX_THM3 0x75 818c2ecf20Sopenharmony_ci#define VADC_LR_MUX7_PU1_AMUX_HW_ID 0x76 828c2ecf20Sopenharmony_ci#define VADC_LR_MUX8_PU1_AMUX_THM4 0x77 838c2ecf20Sopenharmony_ci#define VADC_LR_MUX9_PU1_AMUX_THM5 0x78 848c2ecf20Sopenharmony_ci#define VADC_LR_MUX10_PU1_AMUX_USB_ID 0x79 858c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_BUF_PU1_XO_THERM 0x7c 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci#define VADC_LR_MUX1_PU2_BAT_THERM 0xb0 888c2ecf20Sopenharmony_ci#define VADC_LR_MUX2_PU2_BAT_ID 0xb1 898c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_PU2_XO_THERM 0xb2 908c2ecf20Sopenharmony_ci#define VADC_LR_MUX4_PU2_AMUX_THM1 0xb3 918c2ecf20Sopenharmony_ci#define VADC_LR_MUX5_PU2_AMUX_THM2 0xb4 928c2ecf20Sopenharmony_ci#define VADC_LR_MUX6_PU2_AMUX_THM3 0xb5 938c2ecf20Sopenharmony_ci#define VADC_LR_MUX7_PU2_AMUX_HW_ID 0xb6 948c2ecf20Sopenharmony_ci#define VADC_LR_MUX8_PU2_AMUX_THM4 0xb7 958c2ecf20Sopenharmony_ci#define VADC_LR_MUX9_PU2_AMUX_THM5 0xb8 968c2ecf20Sopenharmony_ci#define VADC_LR_MUX10_PU2_AMUX_USB_ID 0xb9 978c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_BUF_PU2_XO_THERM 0xbc 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci#define VADC_LR_MUX1_PU1_PU2_BAT_THERM 0xf0 1008c2ecf20Sopenharmony_ci#define VADC_LR_MUX2_PU1_PU2_BAT_ID 0xf1 1018c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_PU1_PU2_XO_THERM 0xf2 1028c2ecf20Sopenharmony_ci#define VADC_LR_MUX4_PU1_PU2_AMUX_THM1 0xf3 1038c2ecf20Sopenharmony_ci#define VADC_LR_MUX5_PU1_PU2_AMUX_THM2 0xf4 1048c2ecf20Sopenharmony_ci#define VADC_LR_MUX6_PU1_PU2_AMUX_THM3 0xf5 1058c2ecf20Sopenharmony_ci#define VADC_LR_MUX7_PU1_PU2_AMUX_HW_ID 0xf6 1068c2ecf20Sopenharmony_ci#define VADC_LR_MUX8_PU1_PU2_AMUX_THM4 0xf7 1078c2ecf20Sopenharmony_ci#define VADC_LR_MUX9_PU1_PU2_AMUX_THM5 0xf8 1088c2ecf20Sopenharmony_ci#define VADC_LR_MUX10_PU1_PU2_AMUX_USB_ID 0xf9 1098c2ecf20Sopenharmony_ci#define VADC_LR_MUX3_BUF_PU1_PU2_XO_THERM 0xfc 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci/* ADC channels for SPMI PMIC5 */ 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci#define ADC5_REF_GND 0x00 1148c2ecf20Sopenharmony_ci#define ADC5_1P25VREF 0x01 1158c2ecf20Sopenharmony_ci#define ADC5_VREF_VADC 0x02 1168c2ecf20Sopenharmony_ci#define ADC5_VREF_VADC5_DIV_3 0x82 1178c2ecf20Sopenharmony_ci#define ADC5_VPH_PWR 0x83 1188c2ecf20Sopenharmony_ci#define ADC5_VBAT_SNS 0x84 1198c2ecf20Sopenharmony_ci#define ADC5_VCOIN 0x85 1208c2ecf20Sopenharmony_ci#define ADC5_DIE_TEMP 0x06 1218c2ecf20Sopenharmony_ci#define ADC5_USB_IN_I 0x07 1228c2ecf20Sopenharmony_ci#define ADC5_USB_IN_V_16 0x08 1238c2ecf20Sopenharmony_ci#define ADC5_CHG_TEMP 0x09 1248c2ecf20Sopenharmony_ci#define ADC5_BAT_THERM 0x0a 1258c2ecf20Sopenharmony_ci#define ADC5_BAT_ID 0x0b 1268c2ecf20Sopenharmony_ci#define ADC5_XO_THERM 0x0c 1278c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM1 0x0d 1288c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM2 0x0e 1298c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM3 0x0f 1308c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM4 0x10 1318c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM5 0x11 1328c2ecf20Sopenharmony_ci#define ADC5_GPIO1 0x12 1338c2ecf20Sopenharmony_ci#define ADC5_GPIO2 0x13 1348c2ecf20Sopenharmony_ci#define ADC5_GPIO3 0x14 1358c2ecf20Sopenharmony_ci#define ADC5_GPIO4 0x15 1368c2ecf20Sopenharmony_ci#define ADC5_GPIO5 0x16 1378c2ecf20Sopenharmony_ci#define ADC5_GPIO6 0x17 1388c2ecf20Sopenharmony_ci#define ADC5_GPIO7 0x18 1398c2ecf20Sopenharmony_ci#define ADC5_SBUx 0x99 1408c2ecf20Sopenharmony_ci#define ADC5_MID_CHG_DIV6 0x1e 1418c2ecf20Sopenharmony_ci#define ADC5_OFF 0xff 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci/* 30k pull-up1 */ 1448c2ecf20Sopenharmony_ci#define ADC5_BAT_THERM_30K_PU 0x2a 1458c2ecf20Sopenharmony_ci#define ADC5_BAT_ID_30K_PU 0x2b 1468c2ecf20Sopenharmony_ci#define ADC5_XO_THERM_30K_PU 0x2c 1478c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM1_30K_PU 0x2d 1488c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM2_30K_PU 0x2e 1498c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM3_30K_PU 0x2f 1508c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM4_30K_PU 0x30 1518c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM5_30K_PU 0x31 1528c2ecf20Sopenharmony_ci#define ADC5_GPIO1_30K_PU 0x32 1538c2ecf20Sopenharmony_ci#define ADC5_GPIO2_30K_PU 0x33 1548c2ecf20Sopenharmony_ci#define ADC5_GPIO3_30K_PU 0x34 1558c2ecf20Sopenharmony_ci#define ADC5_GPIO4_30K_PU 0x35 1568c2ecf20Sopenharmony_ci#define ADC5_GPIO5_30K_PU 0x36 1578c2ecf20Sopenharmony_ci#define ADC5_GPIO6_30K_PU 0x37 1588c2ecf20Sopenharmony_ci#define ADC5_GPIO7_30K_PU 0x38 1598c2ecf20Sopenharmony_ci#define ADC5_SBUx_30K_PU 0x39 1608c2ecf20Sopenharmony_ci 1618c2ecf20Sopenharmony_ci/* 100k pull-up2 */ 1628c2ecf20Sopenharmony_ci#define ADC5_BAT_THERM_100K_PU 0x4a 1638c2ecf20Sopenharmony_ci#define ADC5_BAT_ID_100K_PU 0x4b 1648c2ecf20Sopenharmony_ci#define ADC5_XO_THERM_100K_PU 0x4c 1658c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM1_100K_PU 0x4d 1668c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM2_100K_PU 0x4e 1678c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM3_100K_PU 0x4f 1688c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM4_100K_PU 0x50 1698c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM5_100K_PU 0x51 1708c2ecf20Sopenharmony_ci#define ADC5_GPIO1_100K_PU 0x52 1718c2ecf20Sopenharmony_ci#define ADC5_GPIO2_100K_PU 0x53 1728c2ecf20Sopenharmony_ci#define ADC5_GPIO3_100K_PU 0x54 1738c2ecf20Sopenharmony_ci#define ADC5_GPIO4_100K_PU 0x55 1748c2ecf20Sopenharmony_ci#define ADC5_GPIO5_100K_PU 0x56 1758c2ecf20Sopenharmony_ci#define ADC5_GPIO6_100K_PU 0x57 1768c2ecf20Sopenharmony_ci#define ADC5_GPIO7_100K_PU 0x58 1778c2ecf20Sopenharmony_ci#define ADC5_SBUx_100K_PU 0x59 1788c2ecf20Sopenharmony_ci 1798c2ecf20Sopenharmony_ci/* 400k pull-up3 */ 1808c2ecf20Sopenharmony_ci#define ADC5_BAT_THERM_400K_PU 0x6a 1818c2ecf20Sopenharmony_ci#define ADC5_BAT_ID_400K_PU 0x6b 1828c2ecf20Sopenharmony_ci#define ADC5_XO_THERM_400K_PU 0x6c 1838c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM1_400K_PU 0x6d 1848c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM2_400K_PU 0x6e 1858c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM3_400K_PU 0x6f 1868c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM4_400K_PU 0x70 1878c2ecf20Sopenharmony_ci#define ADC5_AMUX_THM5_400K_PU 0x71 1888c2ecf20Sopenharmony_ci#define ADC5_GPIO1_400K_PU 0x72 1898c2ecf20Sopenharmony_ci#define ADC5_GPIO2_400K_PU 0x73 1908c2ecf20Sopenharmony_ci#define ADC5_GPIO3_400K_PU 0x74 1918c2ecf20Sopenharmony_ci#define ADC5_GPIO4_400K_PU 0x75 1928c2ecf20Sopenharmony_ci#define ADC5_GPIO5_400K_PU 0x76 1938c2ecf20Sopenharmony_ci#define ADC5_GPIO6_400K_PU 0x77 1948c2ecf20Sopenharmony_ci#define ADC5_GPIO7_400K_PU 0x78 1958c2ecf20Sopenharmony_ci#define ADC5_SBUx_400K_PU 0x79 1968c2ecf20Sopenharmony_ci 1978c2ecf20Sopenharmony_ci/* 1/3 Divider */ 1988c2ecf20Sopenharmony_ci#define ADC5_GPIO1_DIV3 0x92 1998c2ecf20Sopenharmony_ci#define ADC5_GPIO2_DIV3 0x93 2008c2ecf20Sopenharmony_ci#define ADC5_GPIO3_DIV3 0x94 2018c2ecf20Sopenharmony_ci#define ADC5_GPIO4_DIV3 0x95 2028c2ecf20Sopenharmony_ci#define ADC5_GPIO5_DIV3 0x96 2038c2ecf20Sopenharmony_ci#define ADC5_GPIO6_DIV3 0x97 2048c2ecf20Sopenharmony_ci#define ADC5_GPIO7_DIV3 0x98 2058c2ecf20Sopenharmony_ci#define ADC5_SBUx_DIV3 0x99 2068c2ecf20Sopenharmony_ci 2078c2ecf20Sopenharmony_ci/* Current and combined current/voltage channels */ 2088c2ecf20Sopenharmony_ci#define ADC5_INT_EXT_ISENSE 0xa1 2098c2ecf20Sopenharmony_ci#define ADC5_PARALLEL_ISENSE 0xa5 2108c2ecf20Sopenharmony_ci#define ADC5_CUR_REPLICA_VDS 0xa7 2118c2ecf20Sopenharmony_ci#define ADC5_CUR_SENS_BATFET_VDS_OFFSET 0xa9 2128c2ecf20Sopenharmony_ci#define ADC5_CUR_SENS_REPLICA_VDS_OFFSET 0xab 2138c2ecf20Sopenharmony_ci#define ADC5_EXT_SENS_OFFSET 0xad 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_ci#define ADC5_INT_EXT_ISENSE_VBAT_VDATA 0xb0 2168c2ecf20Sopenharmony_ci#define ADC5_INT_EXT_ISENSE_VBAT_IDATA 0xb1 2178c2ecf20Sopenharmony_ci#define ADC5_EXT_ISENSE_VBAT_VDATA 0xb2 2188c2ecf20Sopenharmony_ci#define ADC5_EXT_ISENSE_VBAT_IDATA 0xb3 2198c2ecf20Sopenharmony_ci#define ADC5_PARALLEL_ISENSE_VBAT_VDATA 0xb4 2208c2ecf20Sopenharmony_ci#define ADC5_PARALLEL_ISENSE_VBAT_IDATA 0xb5 2218c2ecf20Sopenharmony_ci 2228c2ecf20Sopenharmony_ci#define ADC5_MAX_CHANNEL 0xc0 2238c2ecf20Sopenharmony_ci 2248c2ecf20Sopenharmony_ci/* ADC channels for ADC for PMIC7 */ 2258c2ecf20Sopenharmony_ci 2268c2ecf20Sopenharmony_ci#define ADC7_REF_GND 0x00 2278c2ecf20Sopenharmony_ci#define ADC7_1P25VREF 0x01 2288c2ecf20Sopenharmony_ci#define ADC7_VREF_VADC 0x02 2298c2ecf20Sopenharmony_ci#define ADC7_DIE_TEMP 0x03 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM1 0x04 2328c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM2 0x05 2338c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM3 0x06 2348c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM4 0x07 2358c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM5 0x08 2368c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM6 0x09 2378c2ecf20Sopenharmony_ci#define ADC7_GPIO1 0x0a 2388c2ecf20Sopenharmony_ci#define ADC7_GPIO2 0x0b 2398c2ecf20Sopenharmony_ci#define ADC7_GPIO3 0x0c 2408c2ecf20Sopenharmony_ci#define ADC7_GPIO4 0x0d 2418c2ecf20Sopenharmony_ci 2428c2ecf20Sopenharmony_ci#define ADC7_CHG_TEMP 0x10 2438c2ecf20Sopenharmony_ci#define ADC7_USB_IN_V_16 0x11 2448c2ecf20Sopenharmony_ci#define ADC7_VDC_16 0x12 2458c2ecf20Sopenharmony_ci#define ADC7_CC1_ID 0x13 2468c2ecf20Sopenharmony_ci#define ADC7_VREF_BAT_THERM 0x15 2478c2ecf20Sopenharmony_ci#define ADC7_IIN_FB 0x17 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_ci/* 30k pull-up1 */ 2508c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM1_30K_PU 0x24 2518c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM2_30K_PU 0x25 2528c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM3_30K_PU 0x26 2538c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM4_30K_PU 0x27 2548c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM5_30K_PU 0x28 2558c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM6_30K_PU 0x29 2568c2ecf20Sopenharmony_ci#define ADC7_GPIO1_30K_PU 0x2a 2578c2ecf20Sopenharmony_ci#define ADC7_GPIO2_30K_PU 0x2b 2588c2ecf20Sopenharmony_ci#define ADC7_GPIO3_30K_PU 0x2c 2598c2ecf20Sopenharmony_ci#define ADC7_GPIO4_30K_PU 0x2d 2608c2ecf20Sopenharmony_ci#define ADC7_CC1_ID_30K_PU 0x33 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_ci/* 100k pull-up2 */ 2638c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM1_100K_PU 0x44 2648c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM2_100K_PU 0x45 2658c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM3_100K_PU 0x46 2668c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM4_100K_PU 0x47 2678c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM5_100K_PU 0x48 2688c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM6_100K_PU 0x49 2698c2ecf20Sopenharmony_ci#define ADC7_GPIO1_100K_PU 0x4a 2708c2ecf20Sopenharmony_ci#define ADC7_GPIO2_100K_PU 0x4b 2718c2ecf20Sopenharmony_ci#define ADC7_GPIO3_100K_PU 0x4c 2728c2ecf20Sopenharmony_ci#define ADC7_GPIO4_100K_PU 0x4d 2738c2ecf20Sopenharmony_ci#define ADC7_CC1_ID_100K_PU 0x53 2748c2ecf20Sopenharmony_ci 2758c2ecf20Sopenharmony_ci/* 400k pull-up3 */ 2768c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM1_400K_PU 0x64 2778c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM2_400K_PU 0x65 2788c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM3_400K_PU 0x66 2798c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM4_400K_PU 0x67 2808c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM5_400K_PU 0x68 2818c2ecf20Sopenharmony_ci#define ADC7_AMUX_THM6_400K_PU 0x69 2828c2ecf20Sopenharmony_ci#define ADC7_GPIO1_400K_PU 0x6a 2838c2ecf20Sopenharmony_ci#define ADC7_GPIO2_400K_PU 0x6b 2848c2ecf20Sopenharmony_ci#define ADC7_GPIO3_400K_PU 0x6c 2858c2ecf20Sopenharmony_ci#define ADC7_GPIO4_400K_PU 0x6d 2868c2ecf20Sopenharmony_ci#define ADC7_CC1_ID_400K_PU 0x73 2878c2ecf20Sopenharmony_ci 2888c2ecf20Sopenharmony_ci/* 1/3 Divider */ 2898c2ecf20Sopenharmony_ci#define ADC7_GPIO1_DIV3 0x8a 2908c2ecf20Sopenharmony_ci#define ADC7_GPIO2_DIV3 0x8b 2918c2ecf20Sopenharmony_ci#define ADC7_GPIO3_DIV3 0x8c 2928c2ecf20Sopenharmony_ci#define ADC7_GPIO4_DIV3 0x8d 2938c2ecf20Sopenharmony_ci 2948c2ecf20Sopenharmony_ci#define ADC7_VPH_PWR 0x8e 2958c2ecf20Sopenharmony_ci#define ADC7_VBAT_SNS 0x8f 2968c2ecf20Sopenharmony_ci 2978c2ecf20Sopenharmony_ci#define ADC7_SBUx 0x94 2988c2ecf20Sopenharmony_ci#define ADC7_VBAT_2S_MID 0x96 2998c2ecf20Sopenharmony_ci 3008c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_H */ 301