Skip to content

Commit 7f07c27

Browse files
Rudraksha Guptaandersson
authored andcommitted
ARM: dts: qcom: msm8960: expressatt: Add NFC
Add pn544 NFC chip Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com> Link: https://lore.kernel.org/r/20251124-expressatt_nfc_accel_magn_light-v4-3-9c5686ad67e2@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 72c6158 commit 7f07c27

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,22 @@
182182
bias-disable;
183183
drive-strength = <2>;
184184
};
185+
186+
nfc_default: nfc-default-state {
187+
irq-pins {
188+
pins = "gpio106";
189+
function = "gpio";
190+
drive-strength = <2>;
191+
bias-pull-down;
192+
};
193+
194+
firmware-pins {
195+
pins = "gpio92";
196+
function = "gpio";
197+
drive-strength = <2>;
198+
bias-disable;
199+
};
200+
};
185201
};
186202

187203
&pm8921 {
@@ -195,6 +211,14 @@
195211
input-enable;
196212
bias-disable;
197213
};
214+
215+
nfc_enable: nfc-enable-state {
216+
pins = "gpio21";
217+
function = "normal";
218+
bias-disable;
219+
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
220+
power-source = <PM8921_GPIO_S4>;
221+
};
198222
};
199223

200224
&rpm {
@@ -442,3 +466,24 @@
442466
dr_mode = "otg";
443467
status = "okay";
444468
};
469+
470+
&gsbi7 {
471+
qcom,mode = <GSBI_PROT_I2C>;
472+
473+
status = "okay";
474+
};
475+
476+
&gsbi7_i2c {
477+
status = "okay";
478+
479+
nfc@2b {
480+
compatible = "nxp,pn544-i2c";
481+
reg = <0x2b>;
482+
interrupts-extended = <&tlmm 106 IRQ_TYPE_EDGE_RISING>;
483+
enable-gpios = <&pm8921_gpio 21 GPIO_ACTIVE_HIGH>;
484+
firmware-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>;
485+
486+
pinctrl-0 = <&nfc_default &nfc_enable>;
487+
pinctrl-names = "default";
488+
};
489+
};

0 commit comments

Comments
 (0)