Skip to content

Commit

Permalink
[nrf fromtree] drivers: adc: Fix Vref selection for nRF54L20pdk
Browse files Browse the repository at this point in the history
Select Reference voltage of 900mV for ADC on nRF54L20pdk.

Add ADC to the list of supported peripherals.

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit 99c398845d15373f82839a7848359fe6f13e3394)
  • Loading branch information
nordic-segl committed Feb 17, 2025
1 parent 737b7ad commit 443fb5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions boards/nordic/nrf54l20pdk/nrf54l20pdk_nrf54l20_cpuapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sysbuild: true
ram: 512
flash: 449
supported:
- adc
- counter
- gpio
- i2c
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_nrfx_saadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ static DEVICE_API(adc, adc_nrfx_driver_api) = {
#ifdef CONFIG_ADC_ASYNC
.read_async = adc_nrfx_read_async,
#endif
#if defined(CONFIG_SOC_NRF54L05) || defined(CONFIG_SOC_NRF54L10) || defined(CONFIG_SOC_NRF54L15)
#if defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
.ref_internal = 900,
#elif defined(CONFIG_NRF_PLATFORM_HALTIUM)
.ref_internal = 1024,
Expand Down

0 comments on commit 443fb5d

Please sign in to comment.