From de072e47b08823274f0c1cd02068320266c8a60c Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Fri, 17 Dec 2021 10:28:23 +0100 Subject: [PATCH] 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 --- drivers/display/Kconfig.nrf_led_matrix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/display/Kconfig.nrf_led_matrix b/drivers/display/Kconfig.nrf_led_matrix index b89b9afe123..4ddd2520a96 100644 --- a/drivers/display/Kconfig.nrf_led_matrix +++ b/drivers/display/Kconfig.nrf_led_matrix @@ -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