[PATCH 2/4] ARM: dts: qcom: msm8960: expressatt: Add NFC

Rudraksha Gupta via B4 Relay posted 4 patches 1 week, 4 days ago
There is a newer version of this series
[PATCH 2/4] ARM: dts: qcom: msm8960: expressatt: Add NFC
Posted by Rudraksha Gupta via B4 Relay 1 week, 4 days ago
From: Rudraksha Gupta <guptarud@gmail.com>

Add pn544 NFC chip

Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
---
 .../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/arch/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 = <&prox_sensor_int>;
 		};
 	};
+
+	i2c-gpio-nfc {
+		compatible = "i2c-gpio";
+		sda-gpios = <&tlmm 32 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+		scl-gpios = <&tlmm 33 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+		i2c-gpio,delay-us = <5>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		nfc@2b {
+			compatible = "nxp,pn544-i2c";
+			reg = <0x2b>;
+			interrupt-parent = <&tlmm>;
+			interrupts = <106 IRQ_TYPE_EDGE_RISING>;
+			enable-gpios = <&pm8921_gpio 21 GPIO_ACTIVE_HIGH>;
+			firmware-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>;
+
+			pinctrl-names = "default";
+			pinctrl-0 = <&nfc_default &nfc_enable>;
+		};
+	};
 };
 
 &gsbi5 {
@@ -182,6 +203,22 @@ touchscreen: touchscreen-int-state {
 		bias-disable;
 		drive-strength = <2>;
 	};
+
+	nfc_default: nfc-default-state {
+		irq-pins {
+			pins = "gpio106";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-pull-down;
+		};
+
+		firmware-pins {
+			pins = "gpio92";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-disable;
+		};
+	};
 };
 
 &pm8921 {
@@ -195,6 +232,15 @@ prox_sensor_int: prox-sensor-int-state {
 		input-enable;
 		bias-disable;
 	};
+
+	nfc_enable: nfc-enable-state {
+		pins = "gpio21";
+		function = "normal";
+		output-low;
+		bias-disable;
+		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
+		power-source = <PM8921_GPIO_S4>;
+	};
 };
 
 &rpm {

-- 
2.51.2
Re: [PATCH 2/4] ARM: dts: qcom: msm8960: expressatt: Add NFC
Posted by Konrad Dybcio 1 week, 4 days ago
On 11/20/25 8:14 AM, Rudraksha Gupta via B4 Relay wrote:
> From: Rudraksha Gupta <guptarud@gmail.com>
> 
> Add pn544 NFC chip
> 
> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
> ---
>  .../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/arch/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 = <&prox_sensor_int>;
>  		};
>  	};
> +
> +	i2c-gpio-nfc {
> +		compatible = "i2c-gpio";
> +		sda-gpios = <&tlmm 32 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
> +		scl-gpios = <&tlmm 33 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
> +		i2c-gpio,delay-us = <5>;

Same question, any chance this is GSBI7?

Konrad