Skip to content

Commit de072e4

Browse files
jfischer-nocarlescufi
authored andcommitted
drivers: nrf_led_matrix: enable driver if compatible is enabled
Enable nRF LED matrix display controller driver if compatible devicetree node is enabled. Signed-off-by: Johann Fischer <[email protected]>
1 parent 304c42c commit de072e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/display/Kconfig.nrf_led_matrix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# Copyright (c) 2021, Nordic Semiconductor ASA
22
# SPDX-License-Identifier: Apache-2.0
33

4+
DT_COMPAT_NRF_LED_MATRIX := nordic,nrf-led-matrix
5+
46
config DISPLAY_NRF_LED_MATRIX
57
bool "LED matrix driven by GPIOs"
68
depends on SOC_FAMILY_NRF
79
select NRFX_GPIOTE
810
select NRFX_PPI if HAS_HW_NRF_PPI
11+
default $(dt_compat_enabled,$(DT_COMPAT_NRF_LED_MATRIX))
912
help
1013
Enable driver for a LED matrix with rows and columns driven by
1114
GPIOs. The matrix is refreshed pixel by pixel (only one LED is

0 commit comments

Comments
 (0)