From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from MTA-14-3.privateemail.com (mta-14-3.privateemail.com [198.54.127.110]) (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 7C75F326945; Fri, 3 Jul 2026 20:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.54.127.110 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783110404; cv=none; b=YMQZ3Clty7WIXqyDReVYfuvkvEmoPIas5MwSwWhCkbMCKbL4VgzRyaQ75S6v1DHU/68JNVoVg66B09kPfp9694l7OEMx/vfxMMuAyo8N1XZBIQYvHH9aTclb0/1QGARZ/d63fAjCo8YKMWYvyEO+FTi78XoZ1CJJDuEcYjA2yDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783110404; c=relaxed/simple; bh=MhJYzX+IS9Ez004ql3MXyllQeQr4sWb4T59nN00QNsI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tNdBNPxVUbEAnIpJwKLLWITcgpR2JiyefsWvgJHTLhfS874CjlnAlffprUS/djcvi8YTovzPLwTk3pdt6TNVKPjMtogFQOYooDjbSm7csRa8Nvu5K7PXmrYNuBbEK5KUjto0Ivh2WoznYUHK/XjPLSfTiT7j+cNPVc9IbWvQIh0= 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=198.54.127.110 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 mail.privateemail.com (K8S-PROD-WORKER-02 [87.215.145.39]) by mta-14.privateemail.com (Postfix) with ESMTPA id 4gsQJK5RVCz3hhTP; Fri, 3 Jul 2026 16:26:24 -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 1/2] dt-bindings: net: nfc: samsung,s3fwrn5: add S3NRN4V and clk-req-gpios Date: Fri, 3 Jul 2026 22:26:00 +0200 Message-ID: <20260703202601.78563-2-jorijnvdgraaf@catcrafts.net> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260703202601.78563-1-jorijnvdgraaf@catcrafts.net> References: <20260703202601.78563-1-jorijnvdgraaf@catcrafts.net> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The S3NRN4V is an S3FWRN5-family NFC + eSE controller found e.g. on the Fairphone 6 (SM7635). Add a compatible for it and document the optional clk-req-gpios property: when wired, the controller drives this line to request its reference clock (needed to generate the poll carrier), and the driver gates the clock on it instead of leaving it always-on. The line is modelled as a GPIO rather than an interrupt because the driver reads its level to (re)synchronise the clock state, not just react to its edges. It is only meaningful on the S3NRN4V, so it is restricted to that compatible. Assisted-by: Claude:claude-opus-4-8 Assisted-by: Claude:claude-fable-5 Signed-off-by: Jorijn van der Graaf --- .../bindings/net/nfc/samsung,s3fwrn5.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml index 12baee457..3ebcd0933 100644 --- a/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml +++ b/Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml @@ -14,12 +14,20 @@ properties: enum: - samsung,s3fwrn5-i2c - samsung,s3fwrn82 + - samsung,s3nrn4v-i2c en-gpios: maxItems: 1 description: Output GPIO pin used for enabling/disabling the chip + clk-req-gpios: + maxItems: 1 + description: + Input GPIO pin connected to the controller's clock-request output. When + present, the reference clock is enabled in response to this signal + instead of being left always-on. + interrupts: maxItems: 1 @@ -58,12 +66,25 @@ allOf: properties: compatible: contains: - const: samsung,s3fwrn5-i2c + enum: + - samsung,s3fwrn5-i2c + - samsung,s3nrn4v-i2c then: required: - interrupts - reg + # The clock-request handshake only exists on the S3NRN4V. + - if: + not: + properties: + compatible: + contains: + const: samsung,s3nrn4v-i2c + then: + properties: + clk-req-gpios: false + examples: - | #include -- 2.55.0