- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have PN7150 NC controller on custom apq8909 board. I am adding the hardware configuration in the device tree. But my device is not registered in i2c bus and device noe /dev/pn544 is also not created. The following iss the device tree coniguration for PN7150. Is the configuration is either right or wrong. Please help me to solve the probem
nfc: pn544@28 { | |
status = "okay"; | |
compatible = "nxp,pn544"; | |
reg = <0x28>; | |
nxp,gpio_sda = <&msm_gpio 111 0x00>; | |
nxp,gpio_scl = <&msm_gpio 112 0x00>; | |
nxp,gpio_ven = <&msm_gpio 53 0x00>; | |
nxp,gpio_mode = <&msm_gpio 27 0x00>; | |
nxp,gpio_irq = <&msm_gpio 98 0x00>; | |
qcom,clk-src = "BBCLK2"; | |
interrupt-parent = <&msm_gpio>; | |
interrupts = <21 0x2>; | |
interrupt-names = "nfc_irq"; | |
pinctrl-names = "default","suspend"; | |
pinctrl-0 = <&nfc_int_active &nfc_reset_active &nfc_mode_active>; | |
pinctrl-1 = <&nfc_int_suspend &nfc_reset_suspend &nfc_mode_suspend>; | |
nxp,i2c-pull-up = <1>; | |
clocks = <&clock_rpm clk_bb_clk2_pin>; | |
clock-names = "ref_clk"; | |
}; |
Thanks and Regards,
Sivasubramaniyan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
nfc: pn544@28 {
status="okay";
compatible = "nxp,pn544";
reg = <0x28>;
pinctrl-names = "nfc_active","nfc_suspend";
pinctrl-0 = <&nfc_int_active &nfc_disable_active>;
pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>;
interrupt-parent = <&msm_gpio>;
interrupts = <98 0x2>;
enable-gpios = <&msm_gpio 53 0x1>;
interrupt-gpios = <&msm_gpio 98 0x1>;
};
Kindly use this device tree structure ‌
match the interuppt and enable pin according to your configuration
Regards,
Sivasubramaniyan P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much. Successfully device node is created
Thanks and Regards,
Sivasubramaniyan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please let me known the changes that you have made in device tree..since I'm also dealing with the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
nfc: pn544@28 {
status="okay";
compatible = "nxp,pn544";
reg = <0x28>;
pinctrl-names = "nfc_active","nfc_suspend";
pinctrl-0 = <&nfc_int_active &nfc_disable_active>;
pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>;
interrupt-parent = <&msm_gpio>;
interrupts = <98 0x2>;
enable-gpios = <&msm_gpio 53 0x1>;
interrupt-gpios = <&msm_gpio 98 0x1>;
};
Kindly use this device tree structure ‌
match the interuppt and enable pin according to your configuration
Regards,
Sivasubramaniyan P

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
Thank u for your valuable reply. but not even detecting PN7150 as shown below.
msm8909:/ # /data/NfcFactoryTestApp
----------------------------
NFC Factory Test Application
----------------------------
Cannot connect to PN71xx NFC controller
255|msm8909:/ #
I followed this application note as it is https://www.nxp.com/docs/en/application-note/AN11690.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi RICHU,
Please install the nxp nfc driver through insmod command and check it once again.
Regards,
Sivasubramaniyan P

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
installed pn5xx_i2c.ko in system/lib/modules using insmod command.
But nothing happens.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The document is on how to port PN7150 to linux OS.
https://www.nxp.com/docs/en/application-note/AN11697.pdf
and device tree has been given in the application note.
Refer to the application to port your PN7150 to embeded linux, please!
Have a nice day!
BR,
Weidong
