How to get pps out synchronize with ptp in imx6ul?

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

How to get pps out synchronize with ptp in imx6ul?

930 Views
batuhan_burhan
Contributor I

Hi everyone,

I am using custom imx6ul board. I installed linux ptp and make change on "fec_ptp.c" . And also  I made changes on dts file to get pps out but ı couldn't get pps out . Can someone help me.

Here my dts file :

"""

    pps {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pps>;

        gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>;

        echo-gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
        echo-active-ms = <200>;

        compatible = "pps-gpio";
        status = "okay";
    };

    pinctrl_pps: ppsgrp {
        fsl,pins = <
            MX6UL_PAD_LCD_DATA05__ENET2_1588_EVENT2_OUT 0x000010B0
            MX6UL_PAD_LCD_HSYNC__GPIO3_IO02     0x000010B0
        >;
    };
"""
Here my config file:
""""
CONFIG_PPS=y
CONFIG_PPS_DEBUG=y

#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set
CONFIG_PPS_CLIENT_LDISC=y
CONFIG_PPS_CLIENT_GPIO=y

#
# PPS generators support
#

#
# PTP clock support
#
CONFIG_PTP_1588_CLOCK=y
""""
 Here my fec_ptp.c :
"""
val = readl(fep->hwp + FEC_TCSR(fep->pps_channel));
val |= (1 << FEC_T_TF_OFFSET | 1 << FEC_T_TIE_OFFSET);
val &= ~(1 << FEC_T_TDRE_OFFSET);
val &= ~(FEC_T_TMODE_MASK);
val |= (FEC_TMODE_TOOGLE << FEC_T_TMODE_OFFSET);
"""

Thanks in advance!

Tags (2)
0 Kudos
Reply
1 Reply

906 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Are you working with the MX6ULL EVK ? because the latest BSP include ptp.

Regards

0 Kudos
Reply