How to gate an internal i.MX6 clock to a GPIO pin ?

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

How to gate an internal i.MX6 clock to a GPIO pin ?

1,249 Views
mihaitaivascu
Contributor III

Hello,

     I'm working on a board equipped with a i.MX6 Solo/Duallite processor and was reguested to export a clock on a GPIO pin so it can be used by another board. I have looked into

the i.MX6 Solo/Duallite reference manual and found this  at GPIO clocks sub-chapter:

ipg_clk_s  Peripheral access clock

Can i use this clock source for external usage and if so how should proceed further? If this is not a good choice what clock should I use to "export" it on a GPIO pin ?

Thanks in advance,

            Mihaita Ivascu

Labels (1)
3 Replies

816 Views
mihaitaivascu
Contributor III

Hello guys,

   Thank you for your answers. I use barebox bootloader and a imx6q BSP. I suppose the DCD entry is equivalent to devicetree(.dtsi) entry for GPIO3 IOMUX.

   Also, i don't know where should I set  in the kernel tree:

IOMUXC_SW_MUX_CTL_PAD_GPIO03

IOMUXC_SW_PAD_CTL_PAD_GPIO03

Thank you again,

        Mihaita

0 Kudos

816 Views
BiyongSUN
NXP Employee
NXP Employee

Mihaita,

You need to set the IOMUX to route the clock out.

And you write the Device Configuration Data (DCD) in the uboot. 

Untitled.png

0 Kudos

816 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mihaita

clocks can be outputted on pins CLKO1,2 please check

sect.18.6.21 CCM Clock Output Source Register (CCM_CCOSR)

IMX6DQRM

Best regards

igor

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

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

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

0 Kudos