From nobody Tue Dec 2 02:30:32 2025 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 EC53B30148C; Thu, 20 Nov 2025 07:14:45 +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=1763622886; cv=none; b=svmJ0pj37Eb455xXym6EKFlttvZbUklsDKtXVMftg55pXqitylInrbfoRjBYcft51fJ+n8QNISOLLVBqq3QHxpR0Eavut77xHHJVf1/A2IgpZhqusoatuprcL0pnd1LVGz+Y5UXQ2DRRFBHpdt5rDG+c4LyaYnYO90eiYVT9on8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763622886; c=relaxed/simple; bh=wUMRIieLBzIE+aqveirvwxw8A0WjFHGTrrZtssRY0JM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PW1iRoL3X4Uv057lQGvgYbkhcoF0KjHL88sJl0TaQ/VpI3YtgIccGsdyw9vqAZ8NiHz4WYEpX442JtlViW7vKovwM1G9SSssvzAHV++tPXK2qC9QCVJNBmxLuLUxeBJ6FtMwbo4/sQKCgPGet9NFwCFQKQmUJERrNlEull/DqII= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hs/+szAS; 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="hs/+szAS" Received: by smtp.kernel.org (Postfix) with ESMTPS id 9E917C116C6; Thu, 20 Nov 2025 07:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763622885; bh=wUMRIieLBzIE+aqveirvwxw8A0WjFHGTrrZtssRY0JM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hs/+szASjUy0ULfQsjWLdFIGxKMiZQb8+UUkVSaR+XvPS8OzejSci3QSarOGL66QV rVY1swcpTuEOTHculcexyHFu0HYAR7dIpCrkJTblzSw3t+CmpRPT1QSy84YuJiWfD9 GMbeahOe2/Gq+K3/wYc/Z9/GkPjKMI3CLEnMHmFOcXJEaLP334TPukwM+2c3SzCfBX 3okYSJwNtb2cjEmHEUsXq8lqxFHsozPREO9ZtCmpwyByf3r8ZHJGGe4XufBJeS7Rr/ 7abIKASaH0LwIWefzrs4XV+93HgqgT5whNT65+PIFil1sQPhPtGc/mR5PKbLb+DVS8 Krk31k4XvfRmQ== 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 97561CF854A; Thu, 20 Nov 2025 07:14:45 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 19 Nov 2025 23:14:43 -0800 Subject: [PATCH 2/4] ARM: dts: qcom: msm8960: expressatt: Add 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: <20251119-expressatt_nfc_accel_magn_light-v1-2-636f16f05cf4@gmail.com> References: <20251119-expressatt_nfc_accel_magn_light-v1-0-636f16f05cf4@gmail.com> In-Reply-To: <20251119-expressatt_nfc_accel_magn_light-v1-0-636f16f05cf4@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1763622884; l=1981; i=guptarud@gmail.com; s=20240916; h=from:subject:message-id; bh=dhcYn18NjnrjN7FHJSqZT3TzBPkLXU1vzgXpjYyunrU=; b=zPt4+IsQkN5byXW7pHQhBS4whiJSKUQi6rLSi45YJogrIksS4H0sZyVYFOQcTa5G5HYb4JODs F3P+jp3pQ7pBhN3Xhi411EGaxsgZ8wANu4PjI9Wme/u5humWLQg6SUh X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=ETrudRugWAtOpr0OhRiheQ1lXM4Kk4KGFnBySlKDi2I= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240916 with auth_id=211 X-Original-From: Rudraksha Gupta Reply-To: guptarud@gmail.com From: Rudraksha Gupta Add pn544 NFC chip Signed-off-by: Rudraksha Gupta --- .../dts/qcom/qcom-msm8960-samsung-expressatt.dts | 46 ++++++++++++++++++= ++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts b/a= rch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts index 1e331a046e7b..81806d7ca001 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts +++ b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts @@ -77,6 +77,27 @@ light-sensor@39 { pinctrl-0 =3D <&prox_sensor_int>; }; }; + + i2c-gpio-nfc { + compatible =3D "i2c-gpio"; + sda-gpios =3D <&tlmm 32 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios =3D <&tlmm 33 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us =3D <5>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + nfc@2b { + compatible =3D "nxp,pn544-i2c"; + reg =3D <0x2b>; + interrupt-parent =3D <&tlmm>; + interrupts =3D <106 IRQ_TYPE_EDGE_RISING>; + enable-gpios =3D <&pm8921_gpio 21 GPIO_ACTIVE_HIGH>; + firmware-gpios =3D <&tlmm 92 GPIO_ACTIVE_HIGH>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&nfc_default &nfc_enable>; + }; + }; }; =20 &gsbi5 { @@ -182,6 +203,22 @@ touchscreen: touchscreen-int-state { bias-disable; drive-strength =3D <2>; }; + + nfc_default: nfc-default-state { + irq-pins { + pins =3D "gpio106"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + }; + + firmware-pins { + pins =3D "gpio92"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + }; }; =20 &pm8921 { @@ -195,6 +232,15 @@ prox_sensor_int: prox-sensor-int-state { input-enable; bias-disable; }; + + nfc_enable: nfc-enable-state { + pins =3D "gpio21"; + function =3D "normal"; + output-low; + bias-disable; + qcom,drive-strength =3D ; + power-source =3D ; + }; }; =20 &rpm { --=20 2.51.2