Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2012-2014,2018 The Linux Foundation. All rights reserved. */ #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_H #define _DT_BINDINGS_QCOM_SPMI_VADC_H /* Voltage ADC channels */ #define VADC_USBIN 0x00 #define VADC_DCIN 0x01 #define VADC_VCHG_SNS 0x02 #define VADC_SPARE1_03 0x03 #define VADC_USB_ID_MV 0x04 #define VADC_VCOIN 0x05 #define VADC_VBAT_SNS 0x06 #define VADC_VSYS 0x07 #define VADC_DIE_TEMP 0x08 #define VADC_REF_625MV 0x09 #define VADC_REF_1250MV 0x0a #define VADC_CHG_TEMP 0x0b #define VADC_SPARE1 0x0c #define VADC_SPARE2 0x0d #define VADC_GND_REF 0x0e #define VADC_VDD_VADC 0x0f #define VADC_P_MUX1_1_1 0x10 #define VADC_P_MUX2_1_1 0x11 #define VADC_P_MUX3_1_1 0x12 #define VADC_P_MUX4_1_1 0x13 #define VADC_P_MUX5_1_1 0x14 #define VADC_P_MUX6_1_1 0x15 #define VADC_P_MUX7_1_1 0x16 #define VADC_P_MUX8_1_1 0x17 #define VADC_P_MUX9_1_1 0x18 #define VADC_P_MUX10_1_1 0x19 #define VADC_P_MUX11_1_1 0x1a #define VADC_P_MUX12_1_1 0x1b #define VADC_P_MUX13_1_1 0x1c #define VADC_P_MUX14_1_1 0x1d #define VADC_P_MUX15_1_1 0x1e #define VADC_P_MUX16_1_1 0x1f #define VADC_P_MUX1_1_3 0x20 #define VADC_P_MUX2_1_3 0x21 #define VADC_P_MUX3_1_3 0x22 #define VADC_P_MUX4_1_3 0x23 #define VADC_P_MUX5_1_3 0x24 #define VADC_P_MUX6_1_3 0x25 #define VADC_P_MUX7_1_3 0x26 #define VADC_P_MUX8_1_3 0x27 #define VADC_P_MUX9_1_3 0x28 #define VADC_P_MUX10_1_3 0x29 #define VADC_P_MUX11_1_3 0x2a #define VADC_P_MUX12_1_3 0x2b #define VADC_P_MUX13_1_3 0x2c #define VADC_P_MUX14_1_3 0x2d #define VADC_P_MUX15_1_3 0x2e #define VADC_P_MUX16_1_3 0x2f #define VADC_LR_MUX1_BAT_THERM 0x30 #define VADC_LR_MUX2_BAT_ID 0x31 #define VADC_LR_MUX3_XO_THERM 0x32 #define VADC_LR_MUX4_AMUX_THM1 0x33 #define VADC_LR_MUX5_AMUX_THM2 0x34 #define VADC_LR_MUX6_AMUX_THM3 0x35 #define VADC_LR_MUX7_HW_ID 0x36 #define VADC_LR_MUX8_AMUX_THM4 0x37 #define VADC_LR_MUX9_AMUX_THM5 0x38 #define VADC_LR_MUX10_USB_ID 0x39 #define VADC_AMUX_PU1 0x3a #define VADC_AMUX_PU2 0x3b #define VADC_LR_MUX3_BUF_XO_THERM 0x3c #define VADC_LR_MUX1_PU1_BAT_THERM 0x70 #define VADC_LR_MUX2_PU1_BAT_ID 0x71 #define VADC_LR_MUX3_PU1_XO_THERM 0x72 #define VADC_LR_MUX4_PU1_AMUX_THM1 0x73 #define VADC_LR_MUX5_PU1_AMUX_THM2 0x74 #define VADC_LR_MUX6_PU1_AMUX_THM3 0x75 #define VADC_LR_MUX7_PU1_AMUX_HW_ID 0x76 #define VADC_LR_MUX8_PU1_AMUX_THM4 0x77 #define VADC_LR_MUX9_PU1_AMUX_THM5 0x78 #define VADC_LR_MUX10_PU1_AMUX_USB_ID 0x79 #define VADC_LR_MUX3_BUF_PU1_XO_THERM 0x7c #define VADC_LR_MUX1_PU2_BAT_THERM 0xb0 #define VADC_LR_MUX2_PU2_BAT_ID 0xb1 #define VADC_LR_MUX3_PU2_XO_THERM 0xb2 #define VADC_LR_MUX4_PU2_AMUX_THM1 0xb3 #define VADC_LR_MUX5_PU2_AMUX_THM2 0xb4 #define VADC_LR_MUX6_PU2_AMUX_THM3 0xb5 #define VADC_LR_MUX7_PU2_AMUX_HW_ID 0xb6 #define VADC_LR_MUX8_PU2_AMUX_THM4 0xb7 #define VADC_LR_MUX9_PU2_AMUX_THM5 0xb8 #define VADC_LR_MUX10_PU2_AMUX_USB_ID 0xb9 #define VADC_LR_MUX3_BUF_PU2_XO_THERM 0xbc #define VADC_LR_MUX1_PU1_PU2_BAT_THERM 0xf0 #define VADC_LR_MUX2_PU1_PU2_BAT_ID 0xf1 #define VADC_LR_MUX3_PU1_PU2_XO_THERM 0xf2 #define VADC_LR_MUX4_PU1_PU2_AMUX_THM1 0xf3 #define VADC_LR_MUX5_PU1_PU2_AMUX_THM2 0xf4 #define VADC_LR_MUX6_PU1_PU2_AMUX_THM3 0xf5 #define VADC_LR_MUX7_PU1_PU2_AMUX_HW_ID 0xf6 #define VADC_LR_MUX8_PU1_PU2_AMUX_THM4 0xf7 #define VADC_LR_MUX9_PU1_PU2_AMUX_THM5 0xf8 #define VADC_LR_MUX10_PU1_PU2_AMUX_USB_ID 0xf9 #define VADC_LR_MUX3_BUF_PU1_PU2_XO_THERM 0xfc /* ADC channels for SPMI PMIC5 */ #define ADC5_REF_GND 0x00 #define ADC5_1P25VREF 0x01 #define ADC5_VREF_VADC 0x02 #define ADC5_VREF_VADC5_DIV_3 0x82 #define ADC5_VPH_PWR 0x83 #define ADC5_VBAT_SNS 0x84 #define ADC5_VCOIN 0x85 #define ADC5_DIE_TEMP 0x06 #define ADC5_USB_IN_I 0x07 #define ADC5_USB_IN_V_16 0x08 #define ADC5_CHG_TEMP 0x09 #define ADC5_BAT_THERM 0x0a #define ADC5_BAT_ID 0x0b #define ADC5_XO_THERM 0x0c #define ADC5_AMUX_THM1 0x0d #define ADC5_AMUX_THM2 0x0e #define ADC5_AMUX_THM3 0x0f #define ADC5_AMUX_THM4 0x10 #define ADC5_AMUX_THM5 0x11 #define ADC5_GPIO1 0x12 #define ADC5_GPIO2 0x13 #define ADC5_GPIO3 0x14 #define ADC5_GPIO4 0x15 #define ADC5_GPIO5 0x16 #define ADC5_GPIO6 0x17 #define ADC5_GPIO7 0x18 #define ADC5_SBUx 0x99 #define ADC5_MID_CHG_DIV6 0x1e #define ADC5_OFF 0xff /* 30k pull-up1 */ #define ADC5_BAT_THERM_30K_PU 0x2a #define ADC5_BAT_ID_30K_PU 0x2b #define ADC5_XO_THERM_30K_PU 0x2c #define ADC5_AMUX_THM1_30K_PU 0x2d #define ADC5_AMUX_THM2_30K_PU 0x2e #define ADC5_AMUX_THM3_30K_PU 0x2f #define ADC5_AMUX_THM4_30K_PU 0x30 #define ADC5_AMUX_THM5_30K_PU 0x31 #define ADC5_GPIO1_30K_PU 0x32 #define ADC5_GPIO2_30K_PU 0x33 #define ADC5_GPIO3_30K_PU 0x34 #define ADC5_GPIO4_30K_PU 0x35 #define ADC5_GPIO5_30K_PU 0x36 #define ADC5_GPIO6_30K_PU 0x37 #define ADC5_GPIO7_30K_PU 0x38 #define ADC5_SBUx_30K_PU 0x39 /* 100k pull-up2 */ #define ADC5_BAT_THERM_100K_PU 0x4a #define ADC5_BAT_ID_100K_PU 0x4b #define ADC5_XO_THERM_100K_PU 0x4c #define ADC5_AMUX_THM1_100K_PU 0x4d #define ADC5_AMUX_THM2_100K_PU 0x4e #define ADC5_AMUX_THM3_100K_PU 0x4f #define ADC5_AMUX_THM4_100K_PU 0x50 #define ADC5_AMUX_THM5_100K_PU 0x51 #define ADC5_GPIO1_100K_PU 0x52 #define ADC5_GPIO2_100K_PU 0x53 #define ADC5_GPIO3_100K_PU 0x54 #define ADC5_GPIO4_100K_PU 0x55 #define ADC5_GPIO5_100K_PU 0x56 #define ADC5_GPIO6_100K_PU 0x57 #define ADC5_GPIO7_100K_PU 0x58 #define ADC5_SBUx_100K_PU 0x59 /* 400k pull-up3 */ #define ADC5_BAT_THERM_400K_PU 0x6a #define ADC5_BAT_ID_400K_PU 0x6b #define ADC5_XO_THERM_400K_PU 0x6c #define ADC5_AMUX_THM1_400K_PU 0x6d #define ADC5_AMUX_THM2_400K_PU 0x6e #define ADC5_AMUX_THM3_400K_PU 0x6f #define ADC5_AMUX_THM4_400K_PU 0x70 #define ADC5_AMUX_THM5_400K_PU 0x71 #define ADC5_GPIO1_400K_PU 0x72 #define ADC5_GPIO2_400K_PU 0x73 #define ADC5_GPIO3_400K_PU 0x74 #define ADC5_GPIO4_400K_PU 0x75 #define ADC5_GPIO5_400K_PU 0x76 #define ADC5_GPIO6_400K_PU 0x77 #define ADC5_GPIO7_400K_PU 0x78 #define ADC5_SBUx_400K_PU 0x79 /* 1/3 Divider */ #define ADC5_GPIO1_DIV3 0x92 #define ADC5_GPIO2_DIV3 0x93 #define ADC5_GPIO3_DIV3 0x94 #define ADC5_GPIO4_DIV3 0x95 #define ADC5_GPIO5_DIV3 0x96 #define ADC5_GPIO6_DIV3 0x97 #define ADC5_GPIO7_DIV3 0x98 #define ADC5_SBUx_DIV3 0x99 /* Current and combined current/voltage channels */ #define ADC5_INT_EXT_ISENSE 0xa1 #define ADC5_PARALLEL_ISENSE 0xa5 #define ADC5_CUR_REPLICA_VDS 0xa7 #define ADC5_CUR_SENS_BATFET_VDS_OFFSET 0xa9 #define ADC5_CUR_SENS_REPLICA_VDS_OFFSET 0xab #define ADC5_EXT_SENS_OFFSET 0xad #define ADC5_INT_EXT_ISENSE_VBAT_VDATA 0xb0 #define ADC5_INT_EXT_ISENSE_VBAT_IDATA 0xb1 #define ADC5_EXT_ISENSE_VBAT_VDATA 0xb2 #define ADC5_EXT_ISENSE_VBAT_IDATA 0xb3 #define ADC5_PARALLEL_ISENSE_VBAT_VDATA 0xb4 #define ADC5_PARALLEL_ISENSE_VBAT_IDATA 0xb5 #define ADC5_MAX_CHANNEL 0xc0 #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_H */