ADC Gain configuration for nRF54L15

Hi,

I'm porting an application from nRF5 SDK (v16.0.0) to nRF Connect SDK (v2.9.0) to be able to work with the nRF54L15. While porting our ADC functionality, I noticed that it seems that not all gain settings mentioned in the datasheet seem to be supported (yet?) in Zephyr/ncs, specifically 2/4, 2/6, 2/7 and 2/8. Since it's just a matter of setting a value to a register, I was wondering how the mapping of ADC gains is done on the nRF54L15 in our version of the SDK?

Is it just a matter of setting the mathematical equivalent (e.g. instead of GAIN_2_6 which is not supported, use the supported GAIN_1_3)? And if that's the case, how would you be able to use the 2/7gain? Not that we use it, but I just feel that this may be a documentation issue.

Best,

Wout

Related