Do anyone know how to set gpio_8 as xtalosc_ref_clk_32 ?
Does only iomux need to setup ??
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.
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.
After set GPIO_8 mux as 32k clock, then i read register get value as below:
1. IOMUXC_SW_MUX_CTL_PAD_GPIO08 (0x20e023c) = 0x12. 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 ????
issue resolved. I got wrong device tree file.
Retrieving data ...