PN7150 device tree

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PN7150 device tree

Jump to solution
3,222 Views
sivasu4098
Contributor III

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

Tags (1)
1 Solution
2,792 Views
sivasu4098
Contributor III

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 engineer.bsp01@vstmobility.com

match the interuppt and enable pin according to your configuration

Regards,

Sivasubramaniyan P

View solution in original post

0 Kudos
7 Replies
2,792 Views
sivasu4098
Contributor III

Thank you very much. Successfully device node is created

Thanks and Regards,

Sivasubramaniyan

2,792 Views
engineer_bsp01
Contributor III

sivasu4098@gmail.com  Please let me known the changes that you have made in device tree..since I'm also dealing with the same issue.

0 Kudos
2,793 Views
sivasu4098
Contributor III

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 engineer.bsp01@vstmobility.com

match the interuppt and enable pin according to your configuration

Regards,

Sivasubramaniyan P

0 Kudos
2,792 Views
engineer_bsp01
Contributor III

Hi sivasu4098@gmail.com,

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 

0 Kudos
2,792 Views
sivasu4098
Contributor III

Hi RICHU,

   Please install the nxp nfc driver through insmod command and check it once again.

Regards,

Sivasubramaniyan P

0 Kudos
2,792 Views
engineer_bsp01
Contributor III

installed pn5xx_i2c.ko in system/lib/modules using insmod command.

But nothing happens.

0 Kudos
2,792 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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.

pastedImage_2.png

Refer to the application to port your PN7150 to embeded linux, please!

Have a nice day!

BR,

Weidong