From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from h8.fbrelay.privateemail.com (h8.fbrelay.privateemail.com [162.0.218.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C806346FA0; Fri, 3 Jul 2026 20:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.0.218.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783110931; cv=none; b=kM+fIA2fmQIeH8ISddsnt/bPP3mVdW1vfTKlARLWfB7kZ3BmmWvpDhCFkx6x+widSPyku5tgnLJRwwCDSWObYHhk5iufiruX7V7tJpulC3uijAsq4Ny99Oh7USbQMjbx7R9/tO4/bIQ9lUQkmqdsV4edkDdVWqH8bjoajCN0HGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783110931; c=relaxed/simple; bh=UTlCBVva1207VYobcU/wMQX8vMFYMo1s5bO+OZW/kD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NemebIb5gParMRQiP4wkYQYSuBOrQsMJYijskvZxGir+/hF7S0ToH+Ab/5i+urxOUW7q9ucot3HHD6n0W4PR58Wgwf60X4zmMwb1HvxYimOlOOftHaM/DzTqwDNLJ8TcCOc4+sWFIzBk94ar2erT279ivSEE4MbiFU73/YlSa7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=catcrafts.net; spf=pass smtp.mailfrom=catcrafts.net; arc=none smtp.client-ip=162.0.218.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=catcrafts.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=catcrafts.net Received: from MTA-14-3.privateemail.com (mta-14-1.privateemail.com [198.54.122.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by h7.fbrelay.privateemail.com (Postfix) with ESMTPSA id 4gsQJS37Ppz2xDR; Fri, 3 Jul 2026 16:26:32 -0400 (EDT) Received: from mail.privateemail.com (K8S-PROD-WORKER-02 [87.215.145.39]) by mta-14.privateemail.com (Postfix) with ESMTPA id 4gsQJ02STWz3hhTD; Fri, 3 Jul 2026 16:26:08 -0400 (EDT) From: Jorijn van der Graaf To: Krzysztof Kozlowski Cc: David Heidelberg , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Conor Dooley , oe-linux-nfc@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jorijn van der Graaf Subject: [PATCH net-next 0/2] nfc: s3fwrn5: support the S3NRN4V variant Date: Fri, 3 Jul 2026 22:25:59 +0200 Message-ID: <20260703202601.78563-1-jorijnvdgraaf@catcrafts.net> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This adds support for the Samsung S3NRN4V, an S3FWRN5-family NFC controller found e.g. on the Fairphone 6 (SM7635), to the s3fwrn5 driver. The S3NRN4V differs from the already-supported parts in three ways: it ships with working firmware behind a bootloader protocol the driver does not implement (so firmware download is skipped), it loads its RF registers through a different proprietary command (DUAL_OPTION), and it gates its reference clock through a CLK_REQ line that the driver must service for the chip to be able to generate the 13.56 MHz poll carrier. Patch 1 adds the compatible and the clk-req-gpios property to the binding; patch 2 implements the variant in the driver. Tested on a Fairphone 6 running a mainline kernel: reader mode polls and reads ISO 14443-4 tags reliably, both from a fresh boot and across driver reloads. Existing S3FWRN5/S3FWRN82 setups are unaffected. Jorijn van der Graaf (2): dt-bindings: net: nfc: samsung,s3fwrn5: add S3NRN4V and clk-req-gpios nfc: s3fwrn5: support the S3NRN4V variant .../bindings/net/nfc/samsung,s3fwrn5.yaml | 23 +++- drivers/nfc/s3fwrn5/core.c | 40 +++++- drivers/nfc/s3fwrn5/i2c.c | 114 ++++++++++++++++-- drivers/nfc/s3fwrn5/nci.c | 111 ++++++++++++++++- drivers/nfc/s3fwrn5/nci.h | 32 ++++- drivers/nfc/s3fwrn5/s3fwrn5.h | 14 ++- drivers/nfc/s3fwrn5/uart.c | 2 +- 7 files changed, 321 insertions(+), 15 deletions(-) base-commit: 805185b7c7a1069e407b6f7b3bc98e44d415f484 -- 2.55.0