PN5xxx driver issue with imx8mm

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

PN5xxx driver issue with imx8mm

1,071 Views
PramodKumar
Contributor IV

Hii Team ,

I go through with the below link document :

https://www.nxp.com/docs/en/application-note/AN11697.pdf 

 

But I am facing an issue with it , that pn5xx driver is compiled .ko and .o files are created but after implement the image in imx8mm board , there is no any message I am getting in the boot-up process .

 

Below are my changes in kernel :

 

 

#############  dts file changes :  ######################

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */        
        pinctrl_i2c4: i2c4grp {
            fsl,pins = <
                MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL            0x400001c3
                MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA            0x400001c3
            >;
        };
---------------------

 

&i2c4{
        pinctrl-names = "default";  
        pinctrl-0 = <&pinctrl_i2c4>;
        status = "okay";
    
    pn547: pn547@28 { compatible = "nxp,pn547";   
        reg = <0x28>;
        gpio-controller;
        clock-frequency = <400000>;     
        interrupt-gpios = <&gpio3 24 0>;     
        enable-gpios = <&gpio4 11 0>;   
        };
   };

    pinctrl_sai1: sai1grp {
            fsl,pins = <
                MX8MM_IOMUXC_SAI1_MCLK_SAI1_MCLK    0xd6
                MX8MM_IOMUXC_SAI1_TXFS_SAI1_TX_SYNC    0xd6
                MX8MM_IOMUXC_SAI1_RXD7_SAI1_TX_SYNC    0xd6
                MX8MM_IOMUXC_SAI1_TXC_GPIO4_IO11    0x19  /* Changes done for pn5xx  */

------------------------------------

        pinctrl_sai3: sai3grp {
            fsl,pins = <
                MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC     0xd6
                MX8MM_IOMUXC_SAI3_TXC_SAI3_TX_BCLK      0xd6
                MX8MM_IOMUXC_SAI3_MCLK_SAI3_MCLK        0xd6
                MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0     0xd6
        /*        MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21        0xd6 */
            >;

===============================================================

 

 

BR

Pramod

0 Kudos
1 Reply

705 Views
igorpadykov
NXP Employee
NXP Employee

Hi Pramod

 

there may be confusion as AN11697 is written for PN71xx family, for example

below PN5xx datasheet does not mention i2c interface but spi:

https://www.nxp.com/docs/en/data-sheet/PN5180A0XX-C1-C2.pdf 

May be relevant to consider below PN5xx patches an adapt them for i.MX8MM.

NfcRdLib for i.mx7dsabresd 

 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos