summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
diff options
context:
space:
mode:
authorStephan Gerhold <stephan@gerhold.net>2021-05-14 13:43:28 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-06-10 19:05:02 +0300
commitc4e61e0af4d9f72f77462b9d6759496c6e9f4c29 (patch)
tree0af7b774dbf6bfe6a345febf2b2ff5610252d396 /arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
parent81c3e08f726921f244e11795a415d2acb5bdf071 (diff)
downloadlinux-c4e61e0af4d9f72f77462b9d6759496c6e9f4c29.tar.xz
arm64: dts: qcom: msm8916-huawei-g7: Add NFC
The Huawei Ascend G7 supports NFC using the NXP PN547, which is supported by the nxp-nci-i2c driver in mainline. It seems to detect NFC tags using "nfctool" just fine, although it seems like there are not really any useful applications making use of the Linux NFC subsystem. :( Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20210514104328.18756-5-stephan@gerhold.net Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts b/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
index 5ad4e921b110..e0075b574190 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
@@ -193,6 +193,24 @@
};
};
+&blsp_i2c6 {
+ status = "okay";
+
+ nfc@28 {
+ compatible = "nxp,pn547", "nxp,nxp-nci-i2c";
+ reg = <0x28>;
+
+ interrupt-parent = <&msmgpio>;
+ interrupts = <21 IRQ_TYPE_EDGE_RISING>;
+
+ enable-gpios = <&msmgpio 20 GPIO_ACTIVE_HIGH>;
+ firmware-gpios = <&msmgpio 2 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&nfc_default>;
+ };
+};
+
&blsp1_uart2 {
status = "okay";
};
@@ -378,6 +396,14 @@
bias-disable;
};
+ nfc_default: nfc-default {
+ pins = "gpio2", "gpio20", "gpio21";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+
mag_reset_default: mag-reset-default {
pins = "gpio36";
function = "gpio";