| 1 |
## SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config DRIVERS_NXP_UWB_SR1XX |
| 4 |
bool "NXP UWB SR1xx driver" |
| 5 |
help |
| 6 |
Enable support for a NXP UWB SR1xx (e.g., SR150) chip. |
| 7 |
|
| 8 |
A configuration should be added to device tree like below: |
| 9 |
device ref gspi0 on |
| 10 |
chip drivers/nxp/uwb |
| 11 |
# The ACPI name of the device. Note it will be |
| 12 |
# truncated to 4 characters if a longer name is given. |
| 13 |
register "name" = ""UWB0"" |
| 14 |
|
| 15 |
# Description of the module. |
| 16 |
register "desc" = ""NXP UWB Module"" |
| 17 |
|
| 18 |
# SPI bus speed (in Hz). |
| 19 |
register "speed" = "1000000" |
| 20 |
|
| 21 |
# The GPIO connected to SENSORINT. |
| 22 |
register "irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_HIGH(GPP_F21)" |
| 23 |
|
| 24 |
# The GPIO connected to CHIP_EN. |
| 25 |
register "ce_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A12)" |
| 26 |
|
| 27 |
# The GPIO connected to WAKEUP. |
| 28 |
register "ri_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A7)" |
| 29 |
|
| 30 |
device spi 0 on end |
| 31 |
end |
| 32 |
end |