From f48f1fdc84098ab3055d88f79fae7d3f88f13428 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Thu, 4 Aug 2022 14:49:00 -0700 Subject: drivers/nxp/uwb: Add new driver for NXP UWB SR1xx chip Add a new driver for NXP UWB SR1xx (e.g., SR150) device. The driver was originally written by Tim Wawrzynczak as a WIP in CL:3503703, and was based on drivers/spi/acpi. BUG=b:240607130 BRANCH=firmware-brya-14505.B TEST=On ghost (with follow-up CL), patch linux with NXP's pending drivers -> UWB device is probed and can respond to a simple hello packet Co-authored-by: Tim Wawrzynczak Signed-off-by: Jack Rosenthal Change-Id: I5b1b0a5c1b48d0b09e7ab5f2ea6b6bc2fba2a7d8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66466 Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- src/drivers/nxp/uwb/chip.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/drivers/nxp/uwb/chip.h (limited to 'src/drivers/nxp/uwb/chip.h') diff --git a/src/drivers/nxp/uwb/chip.h b/src/drivers/nxp/uwb/chip.h new file mode 100644 index 0000000000..8233b254b4 --- /dev/null +++ b/src/drivers/nxp/uwb/chip.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __NXP_UWB_CHIP_H__ +#define __NXP_UWB_CHIP_H__ + +#include + +struct drivers_nxp_uwb_config { + /* ACPI Device Name */ + const char *name; + + /* Device Description */ + const char *desc; + + /* ACPI _UID */ + unsigned int uid; + + /* Bus speed in Hz (default 1MHz) */ + unsigned int speed; + + /* Use GPIO based interrupt instead of PIRQ */ + struct acpi_gpio irq_gpio; + struct acpi_gpio ce_gpio; + struct acpi_gpio ri_gpio; +}; + +#endif /* __NXP_UWB_CHIP_H__ */ -- cgit v1.2.3