How to set imx6solo gpio_8 as xtalosc_ref_clk_32k ?

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

How to set imx6solo gpio_8 as xtalosc_ref_clk_32k ?

784 Views
chia
Contributor II

Do anyone know how to set gpio_8 as xtalosc_ref_clk_32 ?

Does only iomux need to setup ??

Labels (1)
4 Replies

589 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello lan yi-chia,

You may configure the mux mode of the GPIO08 pin on the IOMUXC_SW_MUX_CTL_PAD_GPIO08[MUX_MODE] bits. For details please check section 37.4.139 of the i.MX6S Reference Manual which covers the IOMUXC_SW_MUX_CTL_PAD_GPIO08 register.

0 Kudos

589 Views
chia
Contributor II

Hello gusarmbula,

Yes, i do config IOMUXC_SW_MUX_CTL_PAD_GPIO08[MUX_MODE] bits as XTALOSC_REF_CLK_32K. After set done, I can read register valu as 0x1.

But there is no clock output.

0 Kudos

589 Views
chia
Contributor II

After set GPIO_8 mux as 32k clock, then i read register get value as below:

1. IOMUXC_SW_MUX_CTL_PAD_GPIO08 (0x20e023c) = 0x1
2. IOMUXC_SW_PAD_CTL_PAD_GPIO08 (0x20e060c) = 0x1 

I have tried to modify IOMUXC_SW_PAD_CTL_PAD_GPIO08 as 0x1e05d at kernel run time (not set this register by device tree), then 32K clock output success.

Now my question is ,  where to set IOMUXC_SW_PAD_CTL_PAD_GPIO08 register value ????

0 Kudos

589 Views
chia
Contributor II

issue resolved. I got wrong device tree file.