Skip to content

Commit e1b4532

Browse files
[nrf fromlist] drivers: comparator: comparator_nrf: Add analog pins for nRF54L20
Added set of analog pins for nRF54L20 COMP and LPCOMP. Upstream PR #: 89609 Signed-off-by: Michał Stasiak <[email protected]>
1 parent b8e226a commit e1b4532

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

drivers/comparator/comparator_nrf_comp.c

+9
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ static const uint32_t shim_nrf_comp_ain_map[] = {
8787
NRF_PIN_PORT_TO_PIN_NUMBER(12U, 1),
8888
NRF_PIN_PORT_TO_PIN_NUMBER(13U, 1),
8989
NRF_PIN_PORT_TO_PIN_NUMBER(14U, 1),
90+
#elif defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
91+
NRF_PIN_PORT_TO_PIN_NUMBER(0U, 1),
92+
NRF_PIN_PORT_TO_PIN_NUMBER(31U, 1),
93+
NRF_PIN_PORT_TO_PIN_NUMBER(30U, 1),
94+
NRF_PIN_PORT_TO_PIN_NUMBER(29U, 1),
95+
NRF_PIN_PORT_TO_PIN_NUMBER(6U, 1),
96+
NRF_PIN_PORT_TO_PIN_NUMBER(5U, 1),
97+
NRF_PIN_PORT_TO_PIN_NUMBER(4U, 1),
98+
NRF_PIN_PORT_TO_PIN_NUMBER(3U, 1),
9099
#endif
91100
};
92101
#endif

drivers/comparator/comparator_nrf_lpcomp.c

+9
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ static const uint32_t shim_nrf_lpcomp_ain_map[] = {
5858
NRF_PIN_PORT_TO_PIN_NUMBER(12U, 1),
5959
NRF_PIN_PORT_TO_PIN_NUMBER(13U, 1),
6060
NRF_PIN_PORT_TO_PIN_NUMBER(14U, 1),
61+
#elif defined(CONFIG_SOC_COMPATIBLE_NRF54LX)
62+
NRF_PIN_PORT_TO_PIN_NUMBER(0U, 1),
63+
NRF_PIN_PORT_TO_PIN_NUMBER(31U, 1),
64+
NRF_PIN_PORT_TO_PIN_NUMBER(30U, 1),
65+
NRF_PIN_PORT_TO_PIN_NUMBER(29U, 1),
66+
NRF_PIN_PORT_TO_PIN_NUMBER(6U, 1),
67+
NRF_PIN_PORT_TO_PIN_NUMBER(5U, 1),
68+
NRF_PIN_PORT_TO_PIN_NUMBER(4U, 1),
69+
NRF_PIN_PORT_TO_PIN_NUMBER(3U, 1),
6170
#endif
6271
};
6372
#endif

0 commit comments

Comments
 (0)