From nobody Tue Apr 7 14:05:32 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6010037FF56; Fri, 3 Apr 2026 13:58:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775224734; cv=none; b=DRoos/9OORO7gzXsM+HhdKleYd1wB3nfLahcGXuDNNk/+/ED2NHUYPTHW1FIFpJaaVx44mt2NWCgKfklkSLL+jp5QUFxubP4UvVWXkM0GTYu6BeLmiNHBi8K9aZhtL3ErfUQutY4VFWAIBrHHfBMP2NJK+RBl/IPRWn1RyLURq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775224734; c=relaxed/simple; bh=rmJTbzK4IDzritBYdCx+sZj1Nkzl6sMVuKHMhZwu9Fc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dyXDZEd4rCxOJOb4vFSoHzC3hhdkoK1rX7ZQT0OCDRE5YLf7dsVgxLZ9LI/hRXO0MszatOWfvurbpUttvJbTcMvVCVyrPUGgWc7NvxJRC+sNMqL+/1I7slXzVBvSUstvW45dd2fhWEih5jqkM83kc7cGQSDpDIaI772Qgs+1axI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mii2qDml; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mii2qDml" Received: by smtp.kernel.org (Postfix) with ESMTPS id 12D14C2BCB0; Fri, 3 Apr 2026 13:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775224734; bh=rmJTbzK4IDzritBYdCx+sZj1Nkzl6sMVuKHMhZwu9Fc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Mii2qDmlPyKDWEa+4VtTKGhv37BX3sGEXQJrDe1dPwAwBp3HJPgZooRffYX4GRLxk KlaFxaq7dC3rP9qVYzuAIeHyJFIc5GVYQ3X/lyxWI5rrJbrwyZq+oc+sMQokgCdnwP hhalHKQWY2XcGifElkhRfqcLVUkXgP/A5F0xAg019JviwtzGFTqOBCHtL2AKfzXx14 GmrDKBXFNAd5QtRH7ZUtmStPcPbtFbK0dcIaKzmut2QTecSiuy4uv9DTPjIxIcrtTg /xLaY6fXc5F65hMP81l1fzDZ1IqvANRC8bxHt0GlU+aFHLvzMeP9dVNfOuxc/lYHYc /RZBFTB0wK+pg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 093D3E85372; Fri, 3 Apr 2026 13:58:54 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Fri, 03 Apr 2026 15:58:49 +0200 Subject: [PATCH v3 4/5] arm64: dts: qcom: sdm845-shift-axolotl: Enable NFC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260403-oneplus-nfc-v3-4-fbdce57d63c1@ixit.cz> References: <20260403-oneplus-nfc-v3-0-fbdce57d63c1@ixit.cz> In-Reply-To: <20260403-oneplus-nfc-v3-0-fbdce57d63c1@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexander Martinz , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Casey Connolly , Alexander Martinz Cc: Petr Hodina , biemster , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, oe-linux-nfc@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Krzysztof Kozlowski , David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1823; i=david@ixit.cz; h=from:subject:message-id; bh=s22pJ5rTEtiXwSmEEiYHretFehUi77jUBIFY7CCGWZE=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpz8eb82gH++yptm6T8ADjzBk2D5EZflA3/byGV 1ebat1IbiiJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCac/HmwAKCRBgAj/E00kg ci5FD/kBnCx6eNjtESPBu0C549OsGknPfQK1othvKtMzd6Z+vLl/Z1Z3ugvieA/f9w+e5w22n8f ovkUW1jx7Y2+2y0w7wx6gcS6oO52HG2d4D8GlhrGUxJXXpd1/vxz1Mn3To2o0fP+DLutnQI/k4A /apctd1AaoXKSmx9IG7vw6eFIYTmH/K1i9/uDIP3ZX4034FPKcqBSyeqwyw3V1oUaLkAgjrTcJ6 rw2zzAmdEq91c78pTFuc4Bx22pEOSmdfXRBlIuBDeSbdDytI+S+LuzMjbDA428128GouJVx9wwW N9Ifaq/f26mvwNNrN7EmpuS7+H/yvIcDv48hLxInxNPr3ftqx+gsOJ4LS/Sc5VOpjnOCTBePj1X Mnx0D4nEPxCIhYtxI+zMJidbAfs9kT1X6630r5r3YaPbPp7VI6+pWVzM1Mbu+kBv84BLWPy5Tl0 xSmFawwM+RVYYY8BON5qh17SZtwGEAcX65xxC9uVXnmPyOsqKmv3wayxazSQlJErcXqxZ/SVoNp 55L/qToeWFqvELDOyUFD3tnLMqNE/BCC4WwlyDWhriCP0u9Fv0usFeb28N5jXQKa7nNw3zgmV/L DGncZq8l8C9viTYjjxXPpbidGE6iGm/gIjPHEmDOqDuM6Y75vBbG6xKuecJ1zImeCIYM3KNptd9 /f9WSc6bLIioWEg== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Enable NFC controller NXP PN553. Signed-off-by: David Heidelberg Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 52 +++++++++++++++++++= ++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64= /boot/dts/qcom/sdm845-shift-axolotl.dts index 783d66cf5b0f8..101597c666332 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -431,6 +431,26 @@ &gpu_zap_shader { firmware-name =3D "qcom/sdm845/SHIFT/axolotl/a630_zap.mbn"; }; =20 +&i2c3 { + clock-frequency =3D <400000>; + + status =3D "okay"; + + nfc@28 { + compatible =3D "nxp,pn553", "nxp,nxp-nci-i2c"; + reg =3D <0x28>; + + interrupts-extended =3D <&tlmm 63 IRQ_TYPE_EDGE_RISING>; + + enable-gpios =3D <&tlmm 12 GPIO_ACTIVE_HIGH>; + firmware-gpios =3D <&tlmm 62 GPIO_ACTIVE_HIGH>; + + pinctrl-0 =3D <&nfc_default>; + pinctrl-1 =3D <&nfc_sleep>; + pinctrl-names =3D "default", "sleep"; + }; +}; + &i2c5 { status =3D "okay"; =20 @@ -609,6 +629,38 @@ &slpi_pas { &tlmm { gpio-reserved-ranges =3D <0 4>, <81 4>; =20 + nfc_default: nfc-default-state { + enable-pins { + pins =3D "gpio12", "gpio62"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + + int-pins { + pins =3D "gpio63"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + }; + + nfc_sleep: nfc-sleep-state { + enable-pins { + pins =3D "gpio12", "gpio62"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + int-pins { + pins =3D "gpio63"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + }; + sde_dsi_active: sde-dsi-active-state { pins =3D "gpio6", "gpio11"; function =3D "gpio"; --=20 2.53.0