AnsweredAssumed Answered

enabling timer compare through kernel

Question asked by Hamid Sani on Jan 20, 2015
Latest reply on Jan 21, 2015 by alejandrolozano

Hello community,


I have been trying to enable the timer output compare pin (MX6QDL_PAD_SD1_DAT2__GPT_COMPARE2) on the iMX6Q with no success. I haven't found any example that discusses how to properly do this. My understanding is that I need to enable the pin on the kernel and then I could set the OCR1, TCCR1, and TIMSK1 registers through Linux.


Here is what I have been doing:

edit the kernel/arch/arm/boot/dts/imx6q-udoo.dts (I have an UDOO board)


&gptcomp {

  pinctrl-names = "default"

  pinctrl-0 = <&pinctrl_gptcomp>;

  status = "okay";



and in &iomuxc I added:

pinctrl_gptcomp: gptcompgrp{

  fsl,pins = <




Sadly this doesn't work correctly and building the kernel fails. I know that part of what I am doing is right because I have successfully enabled the UART3, 5 and I2C1 pins using similar method.


Any help would be appreciated.