drivers: Extend analog pins mapping for nRF54L.
Extended analog pins mappings for more nRF54L targets. Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
This commit is contained in:
parent
17ad5938fa
commit
18c0c3aeb9
2 changed files with 24 additions and 4 deletions
|
@ -54,7 +54,7 @@ static const uint32_t saadc_psels[NRF_SAADC_DVDD + 1] = {
|
|||
[NRF_SAADC_AVDD] = NRF_SAADC_INPUT_AVDD,
|
||||
[NRF_SAADC_DVDD] = NRF_SAADC_INPUT_DVDD,
|
||||
};
|
||||
#elif defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
|
||||
#elif defined(NRF54LM20A_ENGA_XXAA)
|
||||
static const uint32_t saadc_psels[NRF_SAADC_DVDD + 1] = {
|
||||
[NRF_SAADC_AIN0] = NRF_PIN_PORT_TO_PIN_NUMBER(0U, 1),
|
||||
[NRF_SAADC_AIN1] = NRF_PIN_PORT_TO_PIN_NUMBER(31U, 1),
|
||||
|
@ -65,9 +65,20 @@ static const uint32_t saadc_psels[NRF_SAADC_DVDD + 1] = {
|
|||
[NRF_SAADC_AIN6] = NRF_PIN_PORT_TO_PIN_NUMBER(4U, 1),
|
||||
[NRF_SAADC_AIN7] = NRF_PIN_PORT_TO_PIN_NUMBER(3U, 1),
|
||||
[NRF_SAADC_VDD] = NRF_SAADC_INPUT_VDD,
|
||||
#if defined(NRF_SAADC_INPUT_AVDD)
|
||||
[NRF_SAADC_AVDD] = NRF_SAADC_INPUT_AVDD,
|
||||
#endif
|
||||
[NRF_SAADC_DVDD] = NRF_SAADC_INPUT_DVDD,
|
||||
};
|
||||
#elif defined(NRF54LV10A_ENGA_XXAA)
|
||||
static const uint32_t saadc_psels[NRF_SAADC_DVDD + 1] = {
|
||||
[NRF_SAADC_AIN0] = NRF_PIN_PORT_TO_PIN_NUMBER(0U, 1),
|
||||
[NRF_SAADC_AIN1] = NRF_PIN_PORT_TO_PIN_NUMBER(1U, 1),
|
||||
[NRF_SAADC_AIN2] = NRF_PIN_PORT_TO_PIN_NUMBER(2U, 1),
|
||||
[NRF_SAADC_AIN3] = NRF_PIN_PORT_TO_PIN_NUMBER(3U, 1),
|
||||
[NRF_SAADC_AIN4] = NRF_PIN_PORT_TO_PIN_NUMBER(7U, 1),
|
||||
[NRF_SAADC_AIN5] = NRF_PIN_PORT_TO_PIN_NUMBER(10U, 1),
|
||||
[NRF_SAADC_AIN6] = NRF_PIN_PORT_TO_PIN_NUMBER(11U, 1),
|
||||
[NRF_SAADC_AIN7] = NRF_PIN_PORT_TO_PIN_NUMBER(12U, 1),
|
||||
[NRF_SAADC_VDD] = NRF_SAADC_INPUT_VDD,
|
||||
[NRF_SAADC_DVDD] = NRF_SAADC_INPUT_DVDD,
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -28,7 +28,7 @@ static const uint32_t shim_nrf_comp_ain_map[] = {
|
|||
NRF_PIN_PORT_TO_PIN_NUMBER(12U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(13U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(14U, 1),
|
||||
#elif defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
|
||||
#elif defined(NRF54LM20A_ENGA_XXAA)
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(0U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(31U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(30U, 1),
|
||||
|
@ -37,6 +37,15 @@ static const uint32_t shim_nrf_comp_ain_map[] = {
|
|||
NRF_PIN_PORT_TO_PIN_NUMBER(5U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(4U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(3U, 1),
|
||||
#elif defined(NRF54LV10A_ENGA_XXAA)
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(0U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(1U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(2U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(3U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(7U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(10U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(11U, 1),
|
||||
NRF_PIN_PORT_TO_PIN_NUMBER(12U, 1),
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue