* NXP NFC version and ACPI @ 2018-12-05 7:38 Daniel Lezcano 2018-12-13 20:44 ` Daniel Lezcano 2019-05-13 20:15 ` Sedat Dilek 0 siblings, 2 replies; 19+ messages in thread From: Daniel Lezcano @ 2018-12-05 7:38 UTC (permalink / raw) To: Samuel Ortiz Cc: linux-wireless, linux-nfc, robert.dolca, oleg.zhurakivskyy, clement.perrochaud, charles.gorand Hi, the discussion reference is on github [1]. I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it really, it is called NXP NPC300 which could be a PN7xxx chip range. A hacked version of an old deprecated out-of-tree module made the PN5xxx to work with my laptop but I suspect it brought some subtle instability on my system. Now it would be nice to have this correctly supported upstream. I dumped the ACPI DSDT table and got the id NXP1001. This one is not listed in the match table of the nxp-nci driver. - is the driver missing for the so called NXP NPC300 ? - should the NXP1001 matching string to be added to nxp-nci? - is my firmware sending me garbage ? Thanks in advance for any input -- Daniel -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2018-12-05 7:38 NXP NFC version and ACPI Daniel Lezcano @ 2018-12-13 20:44 ` Daniel Lezcano 2018-12-13 20:50 ` [linux-nfc] " Anders Rundgren 2019-05-13 20:15 ` Sedat Dilek 1 sibling, 1 reply; 19+ messages in thread From: Daniel Lezcano @ 2018-12-13 20:44 UTC (permalink / raw) To: Samuel Ortiz Cc: linux-wireless, linux-nfc, robert.dolca, oleg.zhurakivskyy, clement.perrochaud, charles.gorand ping ... ? On 05/12/2018 08:38, Daniel Lezcano wrote: > > Hi, > > the discussion reference is on github [1]. > > I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it > really, it is called NXP NPC300 which could be a PN7xxx chip range. > > A hacked version of an old deprecated out-of-tree module made the PN5xxx > to work with my laptop but I suspect it brought some subtle instability > on my system. > > Now it would be nice to have this correctly supported upstream. > > I dumped the ACPI DSDT table and got the id NXP1001. This one is not > listed in the match table of the nxp-nci driver. > > - is the driver missing for the so called NXP NPC300 ? > - should the NXP1001 matching string to be added to nxp-nci? > - is my firmware sending me garbage ? > > Thanks in advance for any input > > -- Daniel > > -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [linux-nfc] NXP NFC version and ACPI 2018-12-13 20:44 ` Daniel Lezcano @ 2018-12-13 20:50 ` Anders Rundgren 2018-12-13 20:57 ` Daniel Lezcano 0 siblings, 1 reply; 19+ messages in thread From: Anders Rundgren @ 2018-12-13 20:50 UTC (permalink / raw) To: Daniel Lezcano, Samuel Ortiz Cc: robert.dolca, linux-nfc, linux-wireless, charles.gorand On 2018-12-13 21:44, Daniel Lezcano wrote: > > ping ... ? > > On 05/12/2018 08:38, Daniel Lezcano wrote: >> >> Hi, >> >> the discussion reference is on github [1]. >> >> I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it >> really, it is called NXP NPC300 which could be a PN7xxx chip range. >> >> A hacked version of an old deprecated out-of-tree module made the PN5xxx >> to work with my laptop but I suspect it brought some subtle instability >> on my system. >> >> Now it would be nice to have this correctly supported upstream. Since all other PC vendors have ceased supporting NFC (Intel made it useless), why bother? Anders >> >> I dumped the ACPI DSDT table and got the id NXP1001. This one is not >> listed in the match table of the nxp-nci driver. >> >> - is the driver missing for the so called NXP NPC300 ? >> - should the NXP1001 matching string to be added to nxp-nci? >> - is my firmware sending me garbage ? >> >> Thanks in advance for any input >> >> -- Daniel >> >> > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [linux-nfc] NXP NFC version and ACPI 2018-12-13 20:50 ` [linux-nfc] " Anders Rundgren @ 2018-12-13 20:57 ` Daniel Lezcano 2018-12-13 21:11 ` Anders Rundgren 0 siblings, 1 reply; 19+ messages in thread From: Daniel Lezcano @ 2018-12-13 20:57 UTC (permalink / raw) To: Anders Rundgren, Samuel Ortiz; +Cc: linux-nfc, linux-wireless, charles.gorand On 13/12/2018 21:50, Anders Rundgren wrote: > On 2018-12-13 21:44, Daniel Lezcano wrote: >> >> ping ... ? >> >> On 05/12/2018 08:38, Daniel Lezcano wrote: >>> >>> Hi, >>> >>> the discussion reference is on github [1]. >>> >>> I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it >>> really, it is called NXP NPC300 which could be a PN7xxx chip range. >>> >>> A hacked version of an old deprecated out-of-tree module made the PN5xxx >>> to work with my laptop but I suspect it brought some subtle instability >>> on my system. >>> >>> Now it would be nice to have this correctly supported upstream. > > Since all other PC vendors have ceased supporting NFC (Intel made it > useless), why bother? Well at least, I would like to have my laptop working correctly by supporting the NFC chip. I think it is not a big deal to have the driver supporting it. For my information, why Intel made it useless ? >>> >>> I dumped the ACPI DSDT table and got the id NXP1001. This one is not >>> listed in the match table of the nxp-nci driver. >>> >>> - is the driver missing for the so called NXP NPC300 ? >>> - should the NXP1001 matching string to be added to nxp-nci? >>> - is my firmware sending me garbage ? >>> >>> Thanks in advance for any input >>> >>> -- Daniel >>> >>> >> >> > -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [linux-nfc] NXP NFC version and ACPI 2018-12-13 20:57 ` Daniel Lezcano @ 2018-12-13 21:11 ` Anders Rundgren 0 siblings, 0 replies; 19+ messages in thread From: Anders Rundgren @ 2018-12-13 21:11 UTC (permalink / raw) To: Daniel Lezcano, Samuel Ortiz; +Cc: linux-nfc, linux-wireless, charles.gorand On 2018-12-13 21:57, Daniel Lezcano wrote: > On 13/12/2018 21:50, Anders Rundgren wrote: >> On 2018-12-13 21:44, Daniel Lezcano wrote: >>> <snip> >> >> Since all other PC vendors have ceased supporting NFC (Intel made it >> useless), why bother? > > Well at least, I would like to have my laptop working correctly by > supporting the NFC chip. I think it is not a big deal to have the driver > supporting it. > > For my information, why Intel made it useless ? The only high volume use of NFC in a PC would be for Secure Payments and Authentication where you use a mobile phone as payment credential holder or authenticator. Intel rejected this idea. QR has (forever) taken NFC's place. The QR phenomena is also getting strong in PoS terminal (shop) world since the NFC forum haven't realized that 7816 is an obsolete technology. 800 million Chinese have much better stuff than the West crippled by dated card level protocols. Anders > >>>> >>>> I dumped the ACPI DSDT table and got the id NXP1001. This one is not >>>> listed in the match table of the nxp-nci driver. >>>> >>>> - is the driver missing for the so called NXP NPC300 ? >>>> - should the NXP1001 matching string to be added to nxp-nci? >>>> - is my firmware sending me garbage ? >>>> >>>> Thanks in advance for any input >>>> >>>> -- Daniel >>>> >>>> >>> >>> >> > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2018-12-05 7:38 NXP NFC version and ACPI Daniel Lezcano 2018-12-13 20:44 ` Daniel Lezcano @ 2019-05-13 20:15 ` Sedat Dilek 2019-05-14 6:42 ` Daniel Lezcano 1 sibling, 1 reply; 19+ messages in thread From: Sedat Dilek @ 2019-05-13 20:15 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, robert.dolca, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On Wed, Dec 5, 2018 at 8:38 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > > > Hi, > > the discussion reference is on github [1]. > > I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it > really, it is called NXP NPC300 which could be a PN7xxx chip range. > > A hacked version of an old deprecated out-of-tree module made the PN5xxx > to work with my laptop but I suspect it brought some subtle instability > on my system. > > Now it would be nice to have this correctly supported upstream. > > I dumped the ACPI DSDT table and got the id NXP1001. This one is not > listed in the match table of the nxp-nci driver. > > - is the driver missing for the so called NXP NPC300 ? > - should the NXP1001 matching string to be added to nxp-nci? > - is my firmware sending me garbage ? > > Thanks in advance for any input > [ CC Andy ] Hi Daniel, I was able to get a NXP NPC300 NFC device run on Lenovo ThinkPad T470. Look at the patchset "[PATCH v2 00/12] NFC: nxp-nci: clean up and support new ID". I have tested on top of Linux v5.1.1. Here I have set... scripts/config -m NFC_NCI -m NFC_NXP_NCI -m NFC_NXP_NCI_I2C -e PINCTRL_SUNRISEPOINT Please give this a try and report. For details see the below references. Thanks. Regards, - Sedat - [1] https://patchwork.kernel.org/project/linux-wireless/list/?submitter=33142 [2] https://marc.info/?t=155740978400003&r=1&w=2 [3] https://marc.info/?t=155774435600001&r=1&w=2 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-13 20:15 ` Sedat Dilek @ 2019-05-14 6:42 ` Daniel Lezcano 2019-05-14 6:52 ` Sedat Dilek 2019-05-14 7:49 ` Sedat Dilek 0 siblings, 2 replies; 19+ messages in thread From: Daniel Lezcano @ 2019-05-14 6:42 UTC (permalink / raw) To: sedat.dilek Cc: Samuel Ortiz, linux-wireless, linux-nfc, robert.dolca, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On 13/05/2019 22:15, Sedat Dilek wrote: > On Wed, Dec 5, 2018 at 8:38 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: >> >> >> Hi, >> >> the discussion reference is on github [1]. >> >> I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it >> really, it is called NXP NPC300 which could be a PN7xxx chip range. >> >> A hacked version of an old deprecated out-of-tree module made the PN5xxx >> to work with my laptop but I suspect it brought some subtle instability >> on my system. >> >> Now it would be nice to have this correctly supported upstream. >> >> I dumped the ACPI DSDT table and got the id NXP1001. This one is not >> listed in the match table of the nxp-nci driver. >> >> - is the driver missing for the so called NXP NPC300 ? >> - should the NXP1001 matching string to be added to nxp-nci? >> - is my firmware sending me garbage ? >> >> Thanks in advance for any input >> > > [ CC Andy ] > > Hi Daniel, > > I was able to get a NXP NPC300 NFC device run on Lenovo ThinkPad T470. > > Look at the patchset "[PATCH v2 00/12] NFC: nxp-nci: clean up and > support new ID". > I have tested on top of Linux v5.1.1. Hi Sedat, yes, I have them see. Thanks for letting me know. > Here I have set... > > scripts/config -m NFC_NCI -m NFC_NXP_NCI -m NFC_NXP_NCI_I2C -e > PINCTRL_SUNRISEPOINT > > Please give this a try and report. My laptop is the first one I have with a NFC reader, so I'm not used to test this as it was not working yet. I booted the machine with a 5.1.1, the series applied on top, and the config options set as mentioned above. The nxp-nci kernel module is loaded and neard is installed. I used the sniffing tool with the command libnfc -d nfc0 -n but when passing my NFC devices on the laptop's NFC mark, nothing happens. Is that correct? -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 6:42 ` Daniel Lezcano @ 2019-05-14 6:52 ` Sedat Dilek 2019-05-14 6:56 ` Sedat Dilek 2019-05-14 6:57 ` Daniel Lezcano 2019-05-14 7:49 ` Sedat Dilek 1 sibling, 2 replies; 19+ messages in thread From: Sedat Dilek @ 2019-05-14 6:52 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, robert.dolca, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On Tue, May 14, 2019 at 8:43 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > > On 13/05/2019 22:15, Sedat Dilek wrote: > > On Wed, Dec 5, 2018 at 8:38 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > >> > >> > >> Hi, > >> > >> the discussion reference is on github [1]. > >> > >> I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it > >> really, it is called NXP NPC300 which could be a PN7xxx chip range. > >> > >> A hacked version of an old deprecated out-of-tree module made the PN5xxx > >> to work with my laptop but I suspect it brought some subtle instability > >> on my system. > >> > >> Now it would be nice to have this correctly supported upstream. > >> > >> I dumped the ACPI DSDT table and got the id NXP1001. This one is not > >> listed in the match table of the nxp-nci driver. > >> > >> - is the driver missing for the so called NXP NPC300 ? > >> - should the NXP1001 matching string to be added to nxp-nci? > >> - is my firmware sending me garbage ? > >> > >> Thanks in advance for any input > >> > > > > [ CC Andy ] > > > > Hi Daniel, > > > > I was able to get a NXP NPC300 NFC device run on Lenovo ThinkPad T470. > > > > Look at the patchset "[PATCH v2 00/12] NFC: nxp-nci: clean up and > > support new ID". > > I have tested on top of Linux v5.1.1. > > Hi Sedat, > > yes, I have them see. Thanks for letting me know. > > > Here I have set... > > > > scripts/config -m NFC_NCI -m NFC_NXP_NCI -m NFC_NXP_NCI_I2C -e > > PINCTRL_SUNRISEPOINT > > > > Please give this a try and report. > > My laptop is the first one I have with a NFC reader, so I'm not used to > test this as it was not working yet. > > I booted the machine with a 5.1.1, the series applied on top, and the > config options set as mentioned above. > > The nxp-nci kernel module is loaded and neard is installed. > > I used the sniffing tool with the command libnfc -d nfc0 -n but when > passing my NFC devices on the laptop's NFC mark, nothing happens. > > Is that correct? > Hi Daniel, I am new to the topic Linux NFC. I have installed neard (daemon) v0.16 and neard-tools from Debian/buster AMD64. root@iniza:~# systemctl is-active neard.service active root@iniza:~# nfctool --list nfc0: Tags: [ ] Devices: [ ] Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ] Powered: No RF Mode: None lto: 150 rw: 15 miux: 2047 root@iniza:~# nfctool --poll -d nfc0 Start polling on nfc0 as initiator ... Throwing my YubiKey Neo-5 NFC on my ThinkPad T470 NFC sticker shows me... Targets found for nfc0 Tags: [ tag0 ] Devices: [ ] Hope that helps. Regards, - Sedat - ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 6:52 ` Sedat Dilek @ 2019-05-14 6:56 ` Sedat Dilek 2019-05-14 6:57 ` Daniel Lezcano 1 sibling, 0 replies; 19+ messages in thread From: Sedat Dilek @ 2019-05-14 6:56 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On Tue, May 14, 2019 at 8:52 AM Sedat Dilek <sedat.dilek@gmail.com> wrote: > > On Tue, May 14, 2019 at 8:43 AM Daniel Lezcano > <daniel.lezcano@linaro.org> wrote: > > > > On 13/05/2019 22:15, Sedat Dilek wrote: > > > On Wed, Dec 5, 2018 at 8:38 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > > >> > > >> > > >> Hi, > > >> > > >> the discussion reference is on github [1]. > > >> > > >> I acquired a Lenovo x280 with a NFC chip. It is unclear what chip is it > > >> really, it is called NXP NPC300 which could be a PN7xxx chip range. > > >> > > >> A hacked version of an old deprecated out-of-tree module made the PN5xxx > > >> to work with my laptop but I suspect it brought some subtle instability > > >> on my system. > > >> > > >> Now it would be nice to have this correctly supported upstream. > > >> > > >> I dumped the ACPI DSDT table and got the id NXP1001. This one is not > > >> listed in the match table of the nxp-nci driver. > > >> > > >> - is the driver missing for the so called NXP NPC300 ? > > >> - should the NXP1001 matching string to be added to nxp-nci? > > >> - is my firmware sending me garbage ? > > >> > > >> Thanks in advance for any input > > >> > > > > > > [ CC Andy ] > > > > > > Hi Daniel, > > > > > > I was able to get a NXP NPC300 NFC device run on Lenovo ThinkPad T470. > > > > > > Look at the patchset "[PATCH v2 00/12] NFC: nxp-nci: clean up and > > > support new ID". > > > I have tested on top of Linux v5.1.1. > > > > Hi Sedat, > > > > yes, I have them see. Thanks for letting me know. > > > > > Here I have set... > > > > > > scripts/config -m NFC_NCI -m NFC_NXP_NCI -m NFC_NXP_NCI_I2C -e > > > PINCTRL_SUNRISEPOINT > > > > > > Please give this a try and report. > > > > My laptop is the first one I have with a NFC reader, so I'm not used to > > test this as it was not working yet. > > > > I booted the machine with a 5.1.1, the series applied on top, and the > > config options set as mentioned above. > > > > The nxp-nci kernel module is loaded and neard is installed. > > > > I used the sniffing tool with the command libnfc -d nfc0 -n but when > > passing my NFC devices on the laptop's NFC mark, nothing happens. > > > > Is that correct? > > > > Hi Daniel, > > I am new to the topic Linux NFC. > > I have installed neard (daemon) v0.16 and neard-tools from Debian/buster AMD64. > > root@iniza:~# systemctl is-active neard.service > active > > root@iniza:~# nfctool --list > nfc0: > Tags: [ ] > Devices: [ ] > Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ] > Powered: No > RF Mode: None > lto: 150 > rw: 15 > miux: 2047 > > root@iniza:~# nfctool --poll -d nfc0 > Start polling on nfc0 as initiator > > ... > > Throwing my YubiKey Neo-5 NFC on my ThinkPad T470 NFC sticker shows me... > > Targets found for nfc0 > Tags: [ tag0 ] > Devices: [ ] > > Hope that helps. > [ UN-CC Robert (Email is no more valid) ] Re-invoking after YubiKey touched... root@iniza:~# nfctool --list nfc0: Tags: [ tag0 ] Devices: [ ] Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ] Powered: Yes RF Mode: Initiator lto: 150 rw: 15 miux: 204 ...now shows "Powered: Yes". - Sedat - ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 6:52 ` Sedat Dilek 2019-05-14 6:56 ` Sedat Dilek @ 2019-05-14 6:57 ` Daniel Lezcano 2019-05-14 7:12 ` Sedat Dilek 1 sibling, 1 reply; 19+ messages in thread From: Daniel Lezcano @ 2019-05-14 6:57 UTC (permalink / raw) To: sedat.dilek Cc: Samuel Ortiz, linux-wireless, linux-nfc, robert.dolca, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On 14/05/2019 08:52, Sedat Dilek wrote: [ ... ] >>> Please give this a try and report. >> >> My laptop is the first one I have with a NFC reader, so I'm not used to >> test this as it was not working yet. >> >> I booted the machine with a 5.1.1, the series applied on top, and the >> config options set as mentioned above. >> >> The nxp-nci kernel module is loaded and neard is installed. >> >> I used the sniffing tool with the command libnfc -d nfc0 -n but when >> passing my NFC devices on the laptop's NFC mark, nothing happens. >> >> Is that correct? >> > > Hi Daniel, > > I am new to the topic Linux NFC. > > I have installed neard (daemon) v0.16 and neard-tools from Debian/buster AMD64. > > root@iniza:~# systemctl is-active neard.service > active Same for me > root@iniza:~# nfctool --list > nfc0: > Tags: [ ] > Devices: [ ] > Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ] > Powered: No > RF Mode: None > lto: 150 > rw: 15 > miux: 2047 I have: nfc0: Tags: [ ] Devices: [ ] Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ] Powered: Yes RF Mode: None lto: 150 rw: 15 miux: 2047 The powered field is different. > root@iniza:~# nfctool --poll -d nfc0 > Start polling on nfc0 as initiator > I have: Protocol error And the dmesg show me the errors related to nci: [ 343.056021] nci: nci_ntf_packet: unknown ntf opcode 0x0 ... [31611.394308] nci: nci_start_poll: failed to set local general bytes -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 6:57 ` Daniel Lezcano @ 2019-05-14 7:12 ` Sedat Dilek 0 siblings, 0 replies; 19+ messages in thread From: Sedat Dilek @ 2019-05-14 7:12 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On Tue, May 14, 2019 at 8:57 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > > On 14/05/2019 08:52, Sedat Dilek wrote: > > [ ... ] > > >>> Please give this a try and report. > >> > >> My laptop is the first one I have with a NFC reader, so I'm not used to > >> test this as it was not working yet. > >> > >> I booted the machine with a 5.1.1, the series applied on top, and the > >> config options set as mentioned above. > >> > >> The nxp-nci kernel module is loaded and neard is installed. > >> > >> I used the sniffing tool with the command libnfc -d nfc0 -n but when > >> passing my NFC devices on the laptop's NFC mark, nothing happens. > >> > >> Is that correct? > >> > > > > Hi Daniel, > > > > I am new to the topic Linux NFC. > > > > I have installed neard (daemon) v0.16 and neard-tools from Debian/buster AMD64. > > > > root@iniza:~# systemctl is-active neard.service > > active > > Same for me > > > root@iniza:~# nfctool --list > > nfc0: > > Tags: [ ] > > Devices: [ ] > > Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ] > > Powered: No > > RF Mode: None > > lto: 150 > > rw: 15 > > miux: 2047 > > I have: > > nfc0: > Tags: [ ] > Devices: [ ] > Protocols: [ Felica MIFARE Jewel ISO-DEP NFC-DEP ] > Powered: Yes > RF Mode: None > lto: 150 > rw: 15 > miux: 2047 > > The powered field is different. > > > root@iniza:~# nfctool --poll -d nfc0 > > > Start polling on nfc0 as initiator > > > > I have: > > Protocol error > > > And the dmesg show me the errors related to nci: > > [ 343.056021] nci: nci_ntf_packet: unknown ntf opcode 0x0 > ... > [31611.394308] nci: nci_start_poll: failed to set local general bytes > > I cannot say much to this. For the sake of completeness: I have the patch "NFC: fix attrs checks in netlink interface" applied. - Sedat - [1] https://patchwork.kernel.org/patch/10339089/ ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 6:42 ` Daniel Lezcano 2019-05-14 6:52 ` Sedat Dilek @ 2019-05-14 7:49 ` Sedat Dilek 2019-05-14 8:17 ` Daniel Lezcano 1 sibling, 1 reply; 19+ messages in thread From: Sedat Dilek @ 2019-05-14 7:49 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, robert.dolca, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On Tue, May 14, 2019 at 8:43 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: [...] > The nxp-nci kernel module is loaded and neard is installed. You have to... # modprobe -v nxp-nci_i2c # lsmod | egrep 'nfc|nci|nxp|i2c' | sort i2c_algo_bit 16384 1 i915 i2c_dev 24576 0 i2c_i801 32768 0 nci 77824 2 nxp_nci,nxp_nci_i2c nfc 131072 16 nci,nxp_nci nxp_nci 16384 1 nxp_nci_i2c nxp_nci_i2c 16384 0 rfkill 28672 10 nfc,bluetooth,thinkpad_acpi,cfg80211 # modinfo nxp_nci_i2c filename: /lib/modules/5.1.1-1-amd64-iniza/kernel/drivers/nfc/nxp-nci/nxp-nci_i2c.ko author: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> author: Clément Perrochaud <clement.perrochaud@nxp.com> description: I2C driver for NXP NCI NFC controllers license: GPL alias: i2c:nxp-nci_i2c alias: acpi*:NXP7471:* alias: acpi*:NXP1001:* alias: of:N*T*Cnxp,nxp-nci-i2cC* alias: of:N*T*Cnxp,nxp-nci-i2c depends: nci,nxp-nci retpoline: Y intree: Y name: nxp_nci_i2c vermagic: 5.1.1-1-amd64-iniza SMP mod_unload modversions - Sedat - ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 7:49 ` Sedat Dilek @ 2019-05-14 8:17 ` Daniel Lezcano 2019-05-14 8:30 ` Sedat Dilek 2019-05-14 14:59 ` Sedat Dilek 0 siblings, 2 replies; 19+ messages in thread From: Daniel Lezcano @ 2019-05-14 8:17 UTC (permalink / raw) To: sedat.dilek Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On 14/05/2019 09:49, Sedat Dilek wrote: > On Tue, May 14, 2019 at 8:43 AM Daniel Lezcano > <daniel.lezcano@linaro.org> wrote: > [...] > >> The nxp-nci kernel module is loaded and neard is installed. > > You have to... > > # modprobe -v nxp-nci_i2c > > # lsmod | egrep 'nfc|nci|nxp|i2c' | sort > i2c_algo_bit 16384 1 i915 > i2c_dev 24576 0 > i2c_i801 32768 0 > nci 77824 2 nxp_nci,nxp_nci_i2c > nfc 131072 16 nci,nxp_nci > nxp_nci 16384 1 nxp_nci_i2c > nxp_nci_i2c 16384 0 > rfkill 28672 10 nfc,bluetooth,thinkpad_acpi,cfg80211 I have the same modules except 'rfkill' > # modinfo nxp_nci_i2c > filename: > /lib/modules/5.1.1-1-amd64-iniza/kernel/drivers/nfc/nxp-nci/nxp-nci_i2c.ko > author: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> > author: Clément Perrochaud <clement.perrochaud@nxp.com> > description: I2C driver for NXP NCI NFC controllers > license: GPL > alias: i2c:nxp-nci_i2c > alias: acpi*:NXP7471:* > alias: acpi*:NXP1001:* > alias: of:N*T*Cnxp,nxp-nci-i2cC* > alias: of:N*T*Cnxp,nxp-nci-i2c > depends: nci,nxp-nci > retpoline: Y > intree: Y > name: nxp_nci_i2c > vermagic: 5.1.1-1-amd64-iniza SMP mod_unload modversions Same result for the modinfo. ----- So the first time I run: [mark] nfctool -d nfc0 -p Start polling on nfc0 as initiator With an error in syslog/dmesg: nci: nci_ntf_packet: unknown ntf opcode 0x0 The second time: nfctool -p -d nfc0 Protocol error With an error in syslog/dmesg: nci: nci_start_poll: failed to set local general bytes Then I do: nfctool -0 -d nfc0 it returns to point [mark] -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 8:17 ` Daniel Lezcano @ 2019-05-14 8:30 ` Sedat Dilek 2019-05-14 14:59 ` Sedat Dilek 1 sibling, 0 replies; 19+ messages in thread From: Sedat Dilek @ 2019-05-14 8:30 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On Tue, May 14, 2019 at 10:17 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > > On 14/05/2019 09:49, Sedat Dilek wrote: > > On Tue, May 14, 2019 at 8:43 AM Daniel Lezcano > > <daniel.lezcano@linaro.org> wrote: > > [...] > > > >> The nxp-nci kernel module is loaded and neard is installed. > > > > You have to... > > > > # modprobe -v nxp-nci_i2c > > > > # lsmod | egrep 'nfc|nci|nxp|i2c' | sort > > i2c_algo_bit 16384 1 i915 > > i2c_dev 24576 0 > > i2c_i801 32768 0 > > nci 77824 2 nxp_nci,nxp_nci_i2c > > nfc 131072 16 nci,nxp_nci > > nxp_nci 16384 1 nxp_nci_i2c > > nxp_nci_i2c 16384 0 > > rfkill 28672 10 nfc,bluetooth,thinkpad_acpi,cfg80211 > > I have the same modules except 'rfkill' > > > # modinfo nxp_nci_i2c > > filename: > > /lib/modules/5.1.1-1-amd64-iniza/kernel/drivers/nfc/nxp-nci/nxp-nci_i2c.ko > > author: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> > > author: Clément Perrochaud <clement.perrochaud@nxp.com> > > description: I2C driver for NXP NCI NFC controllers > > license: GPL > > alias: i2c:nxp-nci_i2c > > alias: acpi*:NXP7471:* > > alias: acpi*:NXP1001:* > > alias: of:N*T*Cnxp,nxp-nci-i2cC* > > alias: of:N*T*Cnxp,nxp-nci-i2c > > depends: nci,nxp-nci > > retpoline: Y > > intree: Y > > name: nxp_nci_i2c > > vermagic: 5.1.1-1-amd64-iniza SMP mod_unload modversions > > Same result for the modinfo. > > ----- > > So the first time I run: > > [mark] > nfctool -d nfc0 -p > Start polling on nfc0 as initiator > > With an error in syslog/dmesg: > nci: nci_ntf_packet: unknown ntf opcode 0x0 > > > The second time: > > nfctool -p -d nfc0 > Protocol error > > With an error in syslog/dmesg: > nci: nci_start_poll: failed to set local general bytes > > Then I do: > > nfctool -0 -d nfc0 > > it returns to point [mark] > I cannot help with (debugging) nci. I had all I2C and GPIO debug Kconfigs enabled to see a bit more informations in the logs. Maybe that helps you. - Sedat - ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 8:17 ` Daniel Lezcano 2019-05-14 8:30 ` Sedat Dilek @ 2019-05-14 14:59 ` Sedat Dilek 2019-05-14 16:36 ` Daniel Lezcano 2019-05-19 16:46 ` Daniel Lezcano 1 sibling, 2 replies; 19+ messages in thread From: Sedat Dilek @ 2019-05-14 14:59 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On Tue, May 14, 2019 at 10:17 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: [...] Just for the records: root@iniza:~# rfkill --output ID,TYPE ID TYPE 0 bluetooth 1 nfc 2 wlan 3 bluetooth root@iniza:~# rfkill list nfc 1: nfc0: NFC Soft blocked: no Hard blocked: no - Sedat - ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 14:59 ` Sedat Dilek @ 2019-05-14 16:36 ` Daniel Lezcano 2019-05-19 16:46 ` Daniel Lezcano 1 sibling, 0 replies; 19+ messages in thread From: Daniel Lezcano @ 2019-05-14 16:36 UTC (permalink / raw) To: sedat.dilek Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko On 14/05/2019 16:59, Sedat Dilek wrote: > On Tue, May 14, 2019 at 10:17 AM Daniel Lezcano > <daniel.lezcano@linaro.org> wrote: > [...] > > Just for the records: > > root@iniza:~# rfkill --output ID,TYPE > ID TYPE > 0 bluetooth > 1 nfc > 2 wlan > 3 bluetooth > > root@iniza:~# rfkill list nfc > 1: nfc0: NFC > Soft blocked: no > Hard blocked: no > Thanks, I have checked and it is the same values. -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-14 14:59 ` Sedat Dilek 2019-05-14 16:36 ` Daniel Lezcano @ 2019-05-19 16:46 ` Daniel Lezcano 2019-05-29 9:33 ` Sedat Dilek 2019-08-05 19:40 ` Sedat Dilek 1 sibling, 2 replies; 19+ messages in thread From: Daniel Lezcano @ 2019-05-19 16:46 UTC (permalink / raw) To: sedat.dilek Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko FYI, when I tried to make the NFC work on my x280, I tried the module at: https://github.com/jr64/nxp-pn5xx AFAIR, it finally worked somehow. May be you can cross check with your series and the change in this module to find out what could be missing? (I can do that but it will be certainly easier for you spot something in the code you wrote). I can experiment your changes in my laptop if needed. On 14/05/2019 16:59, Sedat Dilek wrote: > On Tue, May 14, 2019 at 10:17 AM Daniel Lezcano > <daniel.lezcano@linaro.org> wrote: > [...] > > Just for the records: > > root@iniza:~# rfkill --output ID,TYPE > ID TYPE > 0 bluetooth > 1 nfc > 2 wlan > 3 bluetooth > > root@iniza:~# rfkill list nfc > 1: nfc0: NFC > Soft blocked: no > Hard blocked: no > > - Sedat - > -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-19 16:46 ` Daniel Lezcano @ 2019-05-29 9:33 ` Sedat Dilek 2019-08-05 19:40 ` Sedat Dilek 1 sibling, 0 replies; 19+ messages in thread From: Sedat Dilek @ 2019-05-29 9:33 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko, Martin Weinelt On Sun, May 19, 2019 at 6:46 PM Daniel Lezcano <daniel.lezcano@linaro.org> wrote: > > > FYI, when I tried to make the NFC work on my x280, I tried the module at: > > https://github.com/jr64/nxp-pn5xx > > AFAIR, it finally worked somehow. > > May be you can cross check with your series and the change in this > module to find out what could be missing? (I can do that but it will be > certainly easier for you spot something in the code you wrote). > > I can experiment your changes in my laptop if needed. > [ CC Martin W. ] Hi Daniel, I was on holidays the last week and started working yesterday. The patchset is from Andy S. (see CC list). Hmm, I haven't see a v3 yet. As said I am new to NFC and played a bit with Andy's v2 patchset and neard (daemon). Before this I played with stuff from https://github.com/jr64/nxp-pn5xx together with NXP's libnfc-nci. Martin W. is reporting problems with v2 in [1]. Is it possible to report your experiences/findings to Andy's v2 patchset/cover-letter "[PATCH v2 00/12] NFC: nxp-nci: clean up and support new ID"? Thanks. Regards, - Sedat - [1] https://github.com/nfc-tools/libnfc/issues/455#issuecomment-493576740 > > On 14/05/2019 16:59, Sedat Dilek wrote: > > On Tue, May 14, 2019 at 10:17 AM Daniel Lezcano > > <daniel.lezcano@linaro.org> wrote: > > [...] > > > > Just for the records: > > > > root@iniza:~# rfkill --output ID,TYPE > > ID TYPE > > 0 bluetooth > > 1 nfc > > 2 wlan > > 3 bluetooth > > > > root@iniza:~# rfkill list nfc > > 1: nfc0: NFC > > Soft blocked: no > > Hard blocked: no > > > > - Sedat - > > > > > -- > <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs > > Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | > <http://twitter.com/#!/linaroorg> Twitter | > <http://www.linaro.org/linaro-blog/> Blog > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: NXP NFC version and ACPI 2019-05-19 16:46 ` Daniel Lezcano 2019-05-29 9:33 ` Sedat Dilek @ 2019-08-05 19:40 ` Sedat Dilek 1 sibling, 0 replies; 19+ messages in thread From: Sedat Dilek @ 2019-08-05 19:40 UTC (permalink / raw) To: Daniel Lezcano Cc: Samuel Ortiz, linux-wireless, linux-nfc, oleg.zhurakivskyy, clement.perrochaud, charles.gorand, Andy Shevchenko v4 of the patchset was included in net-next Git. [1] https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2019-08-05 19:40 UTC | newest] Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-12-05 7:38 NXP NFC version and ACPI Daniel Lezcano 2018-12-13 20:44 ` Daniel Lezcano 2018-12-13 20:50 ` [linux-nfc] " Anders Rundgren 2018-12-13 20:57 ` Daniel Lezcano 2018-12-13 21:11 ` Anders Rundgren 2019-05-13 20:15 ` Sedat Dilek 2019-05-14 6:42 ` Daniel Lezcano 2019-05-14 6:52 ` Sedat Dilek 2019-05-14 6:56 ` Sedat Dilek 2019-05-14 6:57 ` Daniel Lezcano 2019-05-14 7:12 ` Sedat Dilek 2019-05-14 7:49 ` Sedat Dilek 2019-05-14 8:17 ` Daniel Lezcano 2019-05-14 8:30 ` Sedat Dilek 2019-05-14 14:59 ` Sedat Dilek 2019-05-14 16:36 ` Daniel Lezcano 2019-05-19 16:46 ` Daniel Lezcano 2019-05-29 9:33 ` Sedat Dilek 2019-08-05 19:40 ` Sedat Dilek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).