2021-12-03 21:44:41 +08:00
|
|
|
# Copyright (c) 2021, Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-12-17 17:28:23 +08:00
|
|
|
DT_COMPAT_NRF_LED_MATRIX := nordic,nrf-led-matrix
|
|
|
|
|
2021-12-03 21:44:41 +08:00
|
|
|
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
|
2021-12-17 17:28:23 +08:00
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_NRF_LED_MATRIX))
|
2021-12-03 21:44:41 +08:00
|
|
|
help
|
|
|
|
Enable driver for a LED matrix with rows and columns driven by
|
2021-12-20 20:15:56 +08:00
|
|
|
GPIOs. The driver allows setting one of 256 levels of brightness
|
|
|
|
(where 0 means off completely) for each of the LEDs independently.
|
2021-12-03 21:44:41 +08:00
|
|
|
Assignment of GPIOs to rows and columns and the mapping of those
|
|
|
|
to pixels are specified in properties of a "nordic,nrf-led-matrix"
|
|
|
|
compatible node in devicetree.
|
2021-12-20 20:15:56 +08:00
|
|
|
The driver uses one TIMER instance and, depending on what is set in
|
|
|
|
devicetree, one PWM instance or one or more GPIOTE and PPI channels
|
|
|
|
(the latter value depends on the chosen pixel group size - the number
|
|
|
|
of LEDs in one row that can be lit simultaneously).
|