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:
Johann Fischer 2021-12-17 10:28:23 +01:00 committed by Carles Cufí
commit de072e47b0

View file

@ -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