[Cat-M] Paths change for analog inputs on R15

Hello,
We are currently porting our custom FW to the R15.0.3 of the Cat-M and we just saw that the analog input paths has changed:

cat /sys/class/hwmon/hwmon0/device/mpp_05
cat: can't open '/sys/class/hwmon/hwmon0/device/mpp_05': No such file or directory
 cat /sys/devices/qpnp-vadc-8/mpp2_div1
cat: can't open '/sys/devices/qpnp-vadc-8/mpp2_div1': No such file or directory

What are the new paths?

Best regards,
Guillaume

how about using AT command or “cm adc” command?

root@fx30:~#  cm adc read EXT_ADC0
EXT_ADC0:270
root@fx30:~#  cm adc read EXT_ADC1
EXT_ADC1:254
root@fx30:~#


***********
at!madc=?
AT!MADC?<input adc>
  input adc:
    0: VBATT
    2: PA_THERM
    3: PMIC_THERM
    4: XO_THERM
    5: ADC1
    6: ADC2
   10: ADC0
   11: ADC3

OK
at!madc?10
!MADC: 273 (mV)

OK
at!madc?5
!MADC: 259 (mV)

OK

Thank you for your answer, however we need the linux path since our applications are reading (and process) the analog value directly. We can’t use system/AT command in our context.

Best regards,
Guillaume

@cchenry , any idea on this?

you might try this:

root@fx30:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage17_input
226864
root@fx30:~# cm adc read EXT_ADC0
EXT_ADC0:222
root@fx30:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage19_input
286369
root@fx30:~# cm adc read EXT_ADC1
EXT_ADC1:285