12c8909b9SSiddartha Mohanadoss /* SPDX-License-Identifier: GPL-2.0 */ 2d3ba5586SStanimir Varbanov /* 3*d1492bbdSJishnu Prakash * Copyright (c) 2012-2014,2018,2020 The Linux Foundation. All rights reserved. 4d3ba5586SStanimir Varbanov */ 5d3ba5586SStanimir Varbanov 6d3ba5586SStanimir Varbanov #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_H 7d3ba5586SStanimir Varbanov #define _DT_BINDINGS_QCOM_SPMI_VADC_H 8d3ba5586SStanimir Varbanov 9d3ba5586SStanimir Varbanov /* Voltage ADC channels */ 10d3ba5586SStanimir Varbanov #define VADC_USBIN 0x00 11d3ba5586SStanimir Varbanov #define VADC_DCIN 0x01 12d3ba5586SStanimir Varbanov #define VADC_VCHG_SNS 0x02 13d3ba5586SStanimir Varbanov #define VADC_SPARE1_03 0x03 14d3ba5586SStanimir Varbanov #define VADC_USB_ID_MV 0x04 15d3ba5586SStanimir Varbanov #define VADC_VCOIN 0x05 16d3ba5586SStanimir Varbanov #define VADC_VBAT_SNS 0x06 17d3ba5586SStanimir Varbanov #define VADC_VSYS 0x07 18d3ba5586SStanimir Varbanov #define VADC_DIE_TEMP 0x08 19d3ba5586SStanimir Varbanov #define VADC_REF_625MV 0x09 20d3ba5586SStanimir Varbanov #define VADC_REF_1250MV 0x0a 21d3ba5586SStanimir Varbanov #define VADC_CHG_TEMP 0x0b 22d3ba5586SStanimir Varbanov #define VADC_SPARE1 0x0c 23d3ba5586SStanimir Varbanov #define VADC_SPARE2 0x0d 24d3ba5586SStanimir Varbanov #define VADC_GND_REF 0x0e 25d3ba5586SStanimir Varbanov #define VADC_VDD_VADC 0x0f 26d3ba5586SStanimir Varbanov 27d3ba5586SStanimir Varbanov #define VADC_P_MUX1_1_1 0x10 28d3ba5586SStanimir Varbanov #define VADC_P_MUX2_1_1 0x11 29d3ba5586SStanimir Varbanov #define VADC_P_MUX3_1_1 0x12 30d3ba5586SStanimir Varbanov #define VADC_P_MUX4_1_1 0x13 31d3ba5586SStanimir Varbanov #define VADC_P_MUX5_1_1 0x14 32d3ba5586SStanimir Varbanov #define VADC_P_MUX6_1_1 0x15 33d3ba5586SStanimir Varbanov #define VADC_P_MUX7_1_1 0x16 34d3ba5586SStanimir Varbanov #define VADC_P_MUX8_1_1 0x17 35d3ba5586SStanimir Varbanov #define VADC_P_MUX9_1_1 0x18 36d3ba5586SStanimir Varbanov #define VADC_P_MUX10_1_1 0x19 37d3ba5586SStanimir Varbanov #define VADC_P_MUX11_1_1 0x1a 38d3ba5586SStanimir Varbanov #define VADC_P_MUX12_1_1 0x1b 39d3ba5586SStanimir Varbanov #define VADC_P_MUX13_1_1 0x1c 40d3ba5586SStanimir Varbanov #define VADC_P_MUX14_1_1 0x1d 41d3ba5586SStanimir Varbanov #define VADC_P_MUX15_1_1 0x1e 42d3ba5586SStanimir Varbanov #define VADC_P_MUX16_1_1 0x1f 43d3ba5586SStanimir Varbanov 44d3ba5586SStanimir Varbanov #define VADC_P_MUX1_1_3 0x20 45d3ba5586SStanimir Varbanov #define VADC_P_MUX2_1_3 0x21 46d3ba5586SStanimir Varbanov #define VADC_P_MUX3_1_3 0x22 47d3ba5586SStanimir Varbanov #define VADC_P_MUX4_1_3 0x23 48d3ba5586SStanimir Varbanov #define VADC_P_MUX5_1_3 0x24 49d3ba5586SStanimir Varbanov #define VADC_P_MUX6_1_3 0x25 50d3ba5586SStanimir Varbanov #define VADC_P_MUX7_1_3 0x26 51d3ba5586SStanimir Varbanov #define VADC_P_MUX8_1_3 0x27 52d3ba5586SStanimir Varbanov #define VADC_P_MUX9_1_3 0x28 53d3ba5586SStanimir Varbanov #define VADC_P_MUX10_1_3 0x29 54d3ba5586SStanimir Varbanov #define VADC_P_MUX11_1_3 0x2a 55d3ba5586SStanimir Varbanov #define VADC_P_MUX12_1_3 0x2b 56d3ba5586SStanimir Varbanov #define VADC_P_MUX13_1_3 0x2c 57d3ba5586SStanimir Varbanov #define VADC_P_MUX14_1_3 0x2d 58d3ba5586SStanimir Varbanov #define VADC_P_MUX15_1_3 0x2e 59d3ba5586SStanimir Varbanov #define VADC_P_MUX16_1_3 0x2f 60d3ba5586SStanimir Varbanov 61d3ba5586SStanimir Varbanov #define VADC_LR_MUX1_BAT_THERM 0x30 62d3ba5586SStanimir Varbanov #define VADC_LR_MUX2_BAT_ID 0x31 63d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_XO_THERM 0x32 64d3ba5586SStanimir Varbanov #define VADC_LR_MUX4_AMUX_THM1 0x33 65d3ba5586SStanimir Varbanov #define VADC_LR_MUX5_AMUX_THM2 0x34 66d3ba5586SStanimir Varbanov #define VADC_LR_MUX6_AMUX_THM3 0x35 67d3ba5586SStanimir Varbanov #define VADC_LR_MUX7_HW_ID 0x36 68d3ba5586SStanimir Varbanov #define VADC_LR_MUX8_AMUX_THM4 0x37 69d3ba5586SStanimir Varbanov #define VADC_LR_MUX9_AMUX_THM5 0x38 70d3ba5586SStanimir Varbanov #define VADC_LR_MUX10_USB_ID 0x39 71d3ba5586SStanimir Varbanov #define VADC_AMUX_PU1 0x3a 72d3ba5586SStanimir Varbanov #define VADC_AMUX_PU2 0x3b 73d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_BUF_XO_THERM 0x3c 74d3ba5586SStanimir Varbanov 75d3ba5586SStanimir Varbanov #define VADC_LR_MUX1_PU1_BAT_THERM 0x70 76d3ba5586SStanimir Varbanov #define VADC_LR_MUX2_PU1_BAT_ID 0x71 77d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_PU1_XO_THERM 0x72 78d3ba5586SStanimir Varbanov #define VADC_LR_MUX4_PU1_AMUX_THM1 0x73 79d3ba5586SStanimir Varbanov #define VADC_LR_MUX5_PU1_AMUX_THM2 0x74 80d3ba5586SStanimir Varbanov #define VADC_LR_MUX6_PU1_AMUX_THM3 0x75 81d3ba5586SStanimir Varbanov #define VADC_LR_MUX7_PU1_AMUX_HW_ID 0x76 82d3ba5586SStanimir Varbanov #define VADC_LR_MUX8_PU1_AMUX_THM4 0x77 83d3ba5586SStanimir Varbanov #define VADC_LR_MUX9_PU1_AMUX_THM5 0x78 84d3ba5586SStanimir Varbanov #define VADC_LR_MUX10_PU1_AMUX_USB_ID 0x79 85d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_BUF_PU1_XO_THERM 0x7c 86d3ba5586SStanimir Varbanov 87d3ba5586SStanimir Varbanov #define VADC_LR_MUX1_PU2_BAT_THERM 0xb0 88d3ba5586SStanimir Varbanov #define VADC_LR_MUX2_PU2_BAT_ID 0xb1 89d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_PU2_XO_THERM 0xb2 90d3ba5586SStanimir Varbanov #define VADC_LR_MUX4_PU2_AMUX_THM1 0xb3 91d3ba5586SStanimir Varbanov #define VADC_LR_MUX5_PU2_AMUX_THM2 0xb4 92d3ba5586SStanimir Varbanov #define VADC_LR_MUX6_PU2_AMUX_THM3 0xb5 93d3ba5586SStanimir Varbanov #define VADC_LR_MUX7_PU2_AMUX_HW_ID 0xb6 94d3ba5586SStanimir Varbanov #define VADC_LR_MUX8_PU2_AMUX_THM4 0xb7 95d3ba5586SStanimir Varbanov #define VADC_LR_MUX9_PU2_AMUX_THM5 0xb8 96d3ba5586SStanimir Varbanov #define VADC_LR_MUX10_PU2_AMUX_USB_ID 0xb9 97d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_BUF_PU2_XO_THERM 0xbc 98d3ba5586SStanimir Varbanov 99d3ba5586SStanimir Varbanov #define VADC_LR_MUX1_PU1_PU2_BAT_THERM 0xf0 100d3ba5586SStanimir Varbanov #define VADC_LR_MUX2_PU1_PU2_BAT_ID 0xf1 101d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_PU1_PU2_XO_THERM 0xf2 102d3ba5586SStanimir Varbanov #define VADC_LR_MUX4_PU1_PU2_AMUX_THM1 0xf3 103d3ba5586SStanimir Varbanov #define VADC_LR_MUX5_PU1_PU2_AMUX_THM2 0xf4 104d3ba5586SStanimir Varbanov #define VADC_LR_MUX6_PU1_PU2_AMUX_THM3 0xf5 105d3ba5586SStanimir Varbanov #define VADC_LR_MUX7_PU1_PU2_AMUX_HW_ID 0xf6 106d3ba5586SStanimir Varbanov #define VADC_LR_MUX8_PU1_PU2_AMUX_THM4 0xf7 107d3ba5586SStanimir Varbanov #define VADC_LR_MUX9_PU1_PU2_AMUX_THM5 0xf8 108d3ba5586SStanimir Varbanov #define VADC_LR_MUX10_PU1_PU2_AMUX_USB_ID 0xf9 109d3ba5586SStanimir Varbanov #define VADC_LR_MUX3_BUF_PU1_PU2_XO_THERM 0xfc 110d3ba5586SStanimir Varbanov 1112fca5855SSiddartha Mohanadoss /* ADC channels for SPMI PMIC5 */ 1122fca5855SSiddartha Mohanadoss 1132fca5855SSiddartha Mohanadoss #define ADC5_REF_GND 0x00 1142fca5855SSiddartha Mohanadoss #define ADC5_1P25VREF 0x01 1152fca5855SSiddartha Mohanadoss #define ADC5_VREF_VADC 0x02 1162fca5855SSiddartha Mohanadoss #define ADC5_VREF_VADC5_DIV_3 0x82 1172fca5855SSiddartha Mohanadoss #define ADC5_VPH_PWR 0x83 1182fca5855SSiddartha Mohanadoss #define ADC5_VBAT_SNS 0x84 1192fca5855SSiddartha Mohanadoss #define ADC5_VCOIN 0x85 1202fca5855SSiddartha Mohanadoss #define ADC5_DIE_TEMP 0x06 1212fca5855SSiddartha Mohanadoss #define ADC5_USB_IN_I 0x07 1222fca5855SSiddartha Mohanadoss #define ADC5_USB_IN_V_16 0x08 1232fca5855SSiddartha Mohanadoss #define ADC5_CHG_TEMP 0x09 1242fca5855SSiddartha Mohanadoss #define ADC5_BAT_THERM 0x0a 1252fca5855SSiddartha Mohanadoss #define ADC5_BAT_ID 0x0b 1262fca5855SSiddartha Mohanadoss #define ADC5_XO_THERM 0x0c 1272fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM1 0x0d 1282fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM2 0x0e 1292fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM3 0x0f 1302fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM4 0x10 1312fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM5 0x11 1322fca5855SSiddartha Mohanadoss #define ADC5_GPIO1 0x12 1332fca5855SSiddartha Mohanadoss #define ADC5_GPIO2 0x13 1342fca5855SSiddartha Mohanadoss #define ADC5_GPIO3 0x14 1352fca5855SSiddartha Mohanadoss #define ADC5_GPIO4 0x15 1362fca5855SSiddartha Mohanadoss #define ADC5_GPIO5 0x16 1372fca5855SSiddartha Mohanadoss #define ADC5_GPIO6 0x17 1382fca5855SSiddartha Mohanadoss #define ADC5_GPIO7 0x18 1392fca5855SSiddartha Mohanadoss #define ADC5_SBUx 0x99 1402fca5855SSiddartha Mohanadoss #define ADC5_MID_CHG_DIV6 0x1e 1412fca5855SSiddartha Mohanadoss #define ADC5_OFF 0xff 1422fca5855SSiddartha Mohanadoss 1432fca5855SSiddartha Mohanadoss /* 30k pull-up1 */ 1442fca5855SSiddartha Mohanadoss #define ADC5_BAT_THERM_30K_PU 0x2a 1452fca5855SSiddartha Mohanadoss #define ADC5_BAT_ID_30K_PU 0x2b 1462fca5855SSiddartha Mohanadoss #define ADC5_XO_THERM_30K_PU 0x2c 1472fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM1_30K_PU 0x2d 1482fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM2_30K_PU 0x2e 1492fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM3_30K_PU 0x2f 1502fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM4_30K_PU 0x30 1512fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM5_30K_PU 0x31 1522fca5855SSiddartha Mohanadoss #define ADC5_GPIO1_30K_PU 0x32 1532fca5855SSiddartha Mohanadoss #define ADC5_GPIO2_30K_PU 0x33 1542fca5855SSiddartha Mohanadoss #define ADC5_GPIO3_30K_PU 0x34 1552fca5855SSiddartha Mohanadoss #define ADC5_GPIO4_30K_PU 0x35 1562fca5855SSiddartha Mohanadoss #define ADC5_GPIO5_30K_PU 0x36 1572fca5855SSiddartha Mohanadoss #define ADC5_GPIO6_30K_PU 0x37 1582fca5855SSiddartha Mohanadoss #define ADC5_GPIO7_30K_PU 0x38 1592fca5855SSiddartha Mohanadoss #define ADC5_SBUx_30K_PU 0x39 1602fca5855SSiddartha Mohanadoss 1612fca5855SSiddartha Mohanadoss /* 100k pull-up2 */ 1622fca5855SSiddartha Mohanadoss #define ADC5_BAT_THERM_100K_PU 0x4a 1632fca5855SSiddartha Mohanadoss #define ADC5_BAT_ID_100K_PU 0x4b 1642fca5855SSiddartha Mohanadoss #define ADC5_XO_THERM_100K_PU 0x4c 1652fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM1_100K_PU 0x4d 1662fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM2_100K_PU 0x4e 1672fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM3_100K_PU 0x4f 1682fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM4_100K_PU 0x50 1692fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM5_100K_PU 0x51 1702fca5855SSiddartha Mohanadoss #define ADC5_GPIO1_100K_PU 0x52 1712fca5855SSiddartha Mohanadoss #define ADC5_GPIO2_100K_PU 0x53 1722fca5855SSiddartha Mohanadoss #define ADC5_GPIO3_100K_PU 0x54 1732fca5855SSiddartha Mohanadoss #define ADC5_GPIO4_100K_PU 0x55 1742fca5855SSiddartha Mohanadoss #define ADC5_GPIO5_100K_PU 0x56 1752fca5855SSiddartha Mohanadoss #define ADC5_GPIO6_100K_PU 0x57 1762fca5855SSiddartha Mohanadoss #define ADC5_GPIO7_100K_PU 0x58 1772fca5855SSiddartha Mohanadoss #define ADC5_SBUx_100K_PU 0x59 1782fca5855SSiddartha Mohanadoss 1792fca5855SSiddartha Mohanadoss /* 400k pull-up3 */ 1802fca5855SSiddartha Mohanadoss #define ADC5_BAT_THERM_400K_PU 0x6a 1812fca5855SSiddartha Mohanadoss #define ADC5_BAT_ID_400K_PU 0x6b 1822fca5855SSiddartha Mohanadoss #define ADC5_XO_THERM_400K_PU 0x6c 1832fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM1_400K_PU 0x6d 1842fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM2_400K_PU 0x6e 1852fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM3_400K_PU 0x6f 1862fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM4_400K_PU 0x70 1872fca5855SSiddartha Mohanadoss #define ADC5_AMUX_THM5_400K_PU 0x71 1882fca5855SSiddartha Mohanadoss #define ADC5_GPIO1_400K_PU 0x72 1892fca5855SSiddartha Mohanadoss #define ADC5_GPIO2_400K_PU 0x73 1902fca5855SSiddartha Mohanadoss #define ADC5_GPIO3_400K_PU 0x74 1912fca5855SSiddartha Mohanadoss #define ADC5_GPIO4_400K_PU 0x75 1922fca5855SSiddartha Mohanadoss #define ADC5_GPIO5_400K_PU 0x76 1932fca5855SSiddartha Mohanadoss #define ADC5_GPIO6_400K_PU 0x77 1942fca5855SSiddartha Mohanadoss #define ADC5_GPIO7_400K_PU 0x78 1952fca5855SSiddartha Mohanadoss #define ADC5_SBUx_400K_PU 0x79 1962fca5855SSiddartha Mohanadoss 1972fca5855SSiddartha Mohanadoss /* 1/3 Divider */ 1982fca5855SSiddartha Mohanadoss #define ADC5_GPIO1_DIV3 0x92 1992fca5855SSiddartha Mohanadoss #define ADC5_GPIO2_DIV3 0x93 2002fca5855SSiddartha Mohanadoss #define ADC5_GPIO3_DIV3 0x94 2012fca5855SSiddartha Mohanadoss #define ADC5_GPIO4_DIV3 0x95 2022fca5855SSiddartha Mohanadoss #define ADC5_GPIO5_DIV3 0x96 2032fca5855SSiddartha Mohanadoss #define ADC5_GPIO6_DIV3 0x97 2042fca5855SSiddartha Mohanadoss #define ADC5_GPIO7_DIV3 0x98 2052fca5855SSiddartha Mohanadoss #define ADC5_SBUx_DIV3 0x99 2062fca5855SSiddartha Mohanadoss 2072fca5855SSiddartha Mohanadoss /* Current and combined current/voltage channels */ 2082fca5855SSiddartha Mohanadoss #define ADC5_INT_EXT_ISENSE 0xa1 2092fca5855SSiddartha Mohanadoss #define ADC5_PARALLEL_ISENSE 0xa5 2102fca5855SSiddartha Mohanadoss #define ADC5_CUR_REPLICA_VDS 0xa7 2112fca5855SSiddartha Mohanadoss #define ADC5_CUR_SENS_BATFET_VDS_OFFSET 0xa9 2122fca5855SSiddartha Mohanadoss #define ADC5_CUR_SENS_REPLICA_VDS_OFFSET 0xab 2132fca5855SSiddartha Mohanadoss #define ADC5_EXT_SENS_OFFSET 0xad 2142fca5855SSiddartha Mohanadoss 2152fca5855SSiddartha Mohanadoss #define ADC5_INT_EXT_ISENSE_VBAT_VDATA 0xb0 2162fca5855SSiddartha Mohanadoss #define ADC5_INT_EXT_ISENSE_VBAT_IDATA 0xb1 2172fca5855SSiddartha Mohanadoss #define ADC5_EXT_ISENSE_VBAT_VDATA 0xb2 2182fca5855SSiddartha Mohanadoss #define ADC5_EXT_ISENSE_VBAT_IDATA 0xb3 2192fca5855SSiddartha Mohanadoss #define ADC5_PARALLEL_ISENSE_VBAT_VDATA 0xb4 2202fca5855SSiddartha Mohanadoss #define ADC5_PARALLEL_ISENSE_VBAT_IDATA 0xb5 2212fca5855SSiddartha Mohanadoss 2222fca5855SSiddartha Mohanadoss #define ADC5_MAX_CHANNEL 0xc0 2232fca5855SSiddartha Mohanadoss 224*d1492bbdSJishnu Prakash /* ADC channels for ADC for PMIC7 */ 225*d1492bbdSJishnu Prakash 226*d1492bbdSJishnu Prakash #define ADC7_REF_GND 0x00 227*d1492bbdSJishnu Prakash #define ADC7_1P25VREF 0x01 228*d1492bbdSJishnu Prakash #define ADC7_VREF_VADC 0x02 229*d1492bbdSJishnu Prakash #define ADC7_DIE_TEMP 0x03 230*d1492bbdSJishnu Prakash 231*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM1 0x04 232*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM2 0x05 233*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM3 0x06 234*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM4 0x07 235*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM5 0x08 236*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM6 0x09 237*d1492bbdSJishnu Prakash #define ADC7_GPIO1 0x0a 238*d1492bbdSJishnu Prakash #define ADC7_GPIO2 0x0b 239*d1492bbdSJishnu Prakash #define ADC7_GPIO3 0x0c 240*d1492bbdSJishnu Prakash #define ADC7_GPIO4 0x0d 241*d1492bbdSJishnu Prakash 242*d1492bbdSJishnu Prakash #define ADC7_CHG_TEMP 0x10 243*d1492bbdSJishnu Prakash #define ADC7_USB_IN_V_16 0x11 244*d1492bbdSJishnu Prakash #define ADC7_VDC_16 0x12 245*d1492bbdSJishnu Prakash #define ADC7_CC1_ID 0x13 246*d1492bbdSJishnu Prakash #define ADC7_VREF_BAT_THERM 0x15 247*d1492bbdSJishnu Prakash #define ADC7_IIN_FB 0x17 248*d1492bbdSJishnu Prakash 249*d1492bbdSJishnu Prakash /* 30k pull-up1 */ 250*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM1_30K_PU 0x24 251*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM2_30K_PU 0x25 252*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM3_30K_PU 0x26 253*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM4_30K_PU 0x27 254*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM5_30K_PU 0x28 255*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM6_30K_PU 0x29 256*d1492bbdSJishnu Prakash #define ADC7_GPIO1_30K_PU 0x2a 257*d1492bbdSJishnu Prakash #define ADC7_GPIO2_30K_PU 0x2b 258*d1492bbdSJishnu Prakash #define ADC7_GPIO3_30K_PU 0x2c 259*d1492bbdSJishnu Prakash #define ADC7_GPIO4_30K_PU 0x2d 260*d1492bbdSJishnu Prakash #define ADC7_CC1_ID_30K_PU 0x33 261*d1492bbdSJishnu Prakash 262*d1492bbdSJishnu Prakash /* 100k pull-up2 */ 263*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM1_100K_PU 0x44 264*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM2_100K_PU 0x45 265*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM3_100K_PU 0x46 266*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM4_100K_PU 0x47 267*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM5_100K_PU 0x48 268*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM6_100K_PU 0x49 269*d1492bbdSJishnu Prakash #define ADC7_GPIO1_100K_PU 0x4a 270*d1492bbdSJishnu Prakash #define ADC7_GPIO2_100K_PU 0x4b 271*d1492bbdSJishnu Prakash #define ADC7_GPIO3_100K_PU 0x4c 272*d1492bbdSJishnu Prakash #define ADC7_GPIO4_100K_PU 0x4d 273*d1492bbdSJishnu Prakash #define ADC7_CC1_ID_100K_PU 0x53 274*d1492bbdSJishnu Prakash 275*d1492bbdSJishnu Prakash /* 400k pull-up3 */ 276*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM1_400K_PU 0x64 277*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM2_400K_PU 0x65 278*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM3_400K_PU 0x66 279*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM4_400K_PU 0x67 280*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM5_400K_PU 0x68 281*d1492bbdSJishnu Prakash #define ADC7_AMUX_THM6_400K_PU 0x69 282*d1492bbdSJishnu Prakash #define ADC7_GPIO1_400K_PU 0x6a 283*d1492bbdSJishnu Prakash #define ADC7_GPIO2_400K_PU 0x6b 284*d1492bbdSJishnu Prakash #define ADC7_GPIO3_400K_PU 0x6c 285*d1492bbdSJishnu Prakash #define ADC7_GPIO4_400K_PU 0x6d 286*d1492bbdSJishnu Prakash #define ADC7_CC1_ID_400K_PU 0x73 287*d1492bbdSJishnu Prakash 288*d1492bbdSJishnu Prakash /* 1/3 Divider */ 289*d1492bbdSJishnu Prakash #define ADC7_GPIO1_DIV3 0x8a 290*d1492bbdSJishnu Prakash #define ADC7_GPIO2_DIV3 0x8b 291*d1492bbdSJishnu Prakash #define ADC7_GPIO3_DIV3 0x8c 292*d1492bbdSJishnu Prakash #define ADC7_GPIO4_DIV3 0x8d 293*d1492bbdSJishnu Prakash 294*d1492bbdSJishnu Prakash #define ADC7_VPH_PWR 0x8e 295*d1492bbdSJishnu Prakash #define ADC7_VBAT_SNS 0x8f 296*d1492bbdSJishnu Prakash 297*d1492bbdSJishnu Prakash #define ADC7_SBUx 0x94 298*d1492bbdSJishnu Prakash #define ADC7_VBAT_2S_MID 0x96 299*d1492bbdSJishnu Prakash 300d3ba5586SStanimir Varbanov #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_H */ 301