How to use NFC component pn 7120 with Intel Edison ?

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

How to use NFC component pn 7120 with Intel Edison ?

2,159 Views
bryantrilck
Contributor I

Hi all,

I am working on Intel Edison with Yocto and kernel 3.10 and I have to use NFC component NXP pn7120.

The guide provided by NXP about Linux Software Stack Integration presents only ARM architecture. So how could I do to use NXP pn7120 for x86 architecture and Yocto? Currently I already made the recipe and compile the driver for the target. But I do not know how to modify the device tree or platform data. Could you please tell me how I could do?

Thanks,

Bryan

0 Kudos
1 Reply

1,577 Views
mihaipop11
Contributor I

Hi Bryan, i myself am working on the same very thing but i'm missing the yocto recipe, could you provide that for me?

I have integrated the driver in the kernel via device tree. These are the steps:

Copy the Qualcomm dts file from this folder into linux-2.6-imx/arch/arm/boot/dts

Copy the Qualcomm driver sources from this folder into linux-2.6-imx/drivers/net/ethernet

Add path to the new driver into kernel by modifying the Makefile and Kconfig file from the ethernet folder like this:

Add at the bottom of the Kconfig file: source "drivers/net/ethernet/qualcomm/Kconfig"

Add at the bottom of the Makefile file: obj-$(CONFIG_NET_VENDOR_QUALCOMM) += qualcomm/

and the dts file should look like this:

/*

* Qualcomm qca7000

*/

/dts-v1/;

/ {

  compatible = "qcom,qca7000";

  ssp2: spi@80014000 {

        #address-cells = <1>;

        #size-cells = <0>;

        compatible = "fsl,imx6-spi";

        pinctrl-names = "default";

        pinctrl-0 = <&spi2_pins_a>;

        status = "okay";

        qca7000: ethernet@0 {

                compatible = "qca,qca7000";

                reg = <0x0>;  /* CE 0 */

                interrupt-parent = <&gpio3>;      /* GPIO Bank 3 */

                interrupts = <25 0x1>;            /* Index: 25, rising edge */

                spi-cpha;                         /* SPI mode: CPHA=1 */

                spi-cpol;                         /* SPI mode: CPOL=1 */

                spi-max-frequency = <8000000>;    /* freq: 8 MHz */

        };

  };

};

0 Kudos