Im using an PN7150 NFC Controller in Android 9.0 on an i.mx8m Mini. Whenever I try to communicate with it I get the error message "pn54x_dev_write : i2c_master_send returned -6". I have been following the instructions in the porting guide AN11690
# insmod pn5xx_i2c.ko <
[ 65.910859] pn54x_dev_init
[ 65.911027] pn54x_probe
[ 65.911041] pn544 3-0028: FIRM GPIO <OPTIONAL> error getting from OF node
[ 65.911046] pn544 3-0028: CLKREQ GPIO <OPTIONAL> error getting from OF node
[ 65.911070] pn544 3-0028: 3-0028 supply nxp,pn54x-pvdd not found, using dummy regulator
[ 65.911184] pn544 3-0028: 3-0028 supply nxp,pn54x-vbat not found, using dummy regulator
[ 65.911232] pn544 3-0028: 3-0028 supply nxp,pn54x-pmuvcc not found, using dummy regulator
[ 65.911281] pn544 3-0028: 3-0028 supply nxp,pn54x-sevdd not found, using dummy regulator
[ 65.911325] pn54x_probe: request irq_gpio 6
[ 65.911333] pn54x_probe: request ven_gpio 8
[ 65.912688] pn54x_probe : requesting IRQ 69
# i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
# ls -la /dev/pn544 <
crw-rw---- 1 nfc nfc 10, 49 2021-02-09 15:37 /dev/pn544
imx8mm-var-dart:/vendor/lib/modules #
# ./NfcFactoryTestApp
[ 137.116224] pn54x_dev_open : 10,49
----------------------------
NFC Factory Test Application
----------------------------
[ 137.130149] pn54x_dev_write : i2c_master_send returned -6
[ 137.136874] pn54x_dev_write : i2c_master_send returned -6
[ 137.143654] pn54x_dev_write : i2c_master_send returned -6
[ 137.150382] pn54x_dev_write : i2c_master_send returned -6
Error communicating with PN71xx NFC Controller
[ 137.157265] pn54x_dev_release : closing 10,49
HI Jimmy
we found the "pn54x_dev_write : i2c_master_send returned -6" issue happened in PN71501, but PN71506 is good.
Is there any difference between PN71501 and PN71506 ?
Android 9 platform.