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
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
Mihaita,
You need to set the IOMUX to route the clock out.
And you write the Device Configuration Data (DCD) in the uboot.
Hi Mihaita
clocks can be outputted on pins CLKO1,2 please check
sect.18.6.21 CCM Clock Output Source Register (CCM_CCOSR)
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------