From 4444444444444444444444444444444444444444 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Thu, 25 Sep 2026 09:01:00 +0200 Subject: [PATCH 1/2] nfc: widget: add the driver The widget answers on I2C and reports its revision at probe. The probe reads the revision register once and keeps it for the sysfs attribute. Tested on the board as of 2026-09-20 with v1 of the firmware. Signed-off-by: Jorijn van der Graaf Reviewed-by: Some Reviewer --- drivers/nfc/widget.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 drivers/nfc/widget.c diff --git a/drivers/nfc/widget.c b/drivers/nfc/widget.c new file mode 100644 index 0000000..a1b2c3d --- /dev/null +++ b/drivers/nfc/widget.c @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 +#include + +static int widget_probe(struct i2c_client *client) +{ + int rev; + + rev = i2c_smbus_read_byte_data(client, 0x00); + if (rev < 0) + return rev; + return 0; +} -- 2.51.0