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 <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
304c42c39c
commit
de072e47b0
1 changed files with 3 additions and 0 deletions
|
@ -1,11 +1,14 @@
|
|||
# Copyright (c) 2021, Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
DT_COMPAT_NRF_LED_MATRIX := nordic,nrf-led-matrix
|
||||
|
||||
config DISPLAY_NRF_LED_MATRIX
|
||||
bool "LED matrix driven by GPIOs"
|
||||
depends on SOC_FAMILY_NRF
|
||||
select NRFX_GPIOTE
|
||||
select NRFX_PPI if HAS_HW_NRF_PPI
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_NRF_LED_MATRIX))
|
||||
help
|
||||
Enable driver for a LED matrix with rows and columns driven by
|
||||
GPIOs. The matrix is refreshed pixel by pixel (only one LED is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue