timer-imx-gpt.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. /*
  2. * linux/arch/arm/plat-mxc/time.c
  3. *
  4. * Copyright (C) 2000-2001 Deep Blue Solutions
  5. * Copyright (C) 2002 Shane Nay (shane@minirl.com)
  6. * Copyright (C) 2006-2007 Pavel Pisa (ppisa@pikron.com)
  7. * Copyright (C) 2008 Juergen Beisert (kernel@pengutronix.de)
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version 2
  12. * of the License, or (at your option) any later version.
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  21. * MA 02110-1301, USA.
  22. */
  23. #include <linux/interrupt.h>
  24. #include <linux/irq.h>
  25. #include <linux/clockchips.h>
  26. #include <linux/clk.h>
  27. #include <linux/delay.h>
  28. #include <linux/err.h>
  29. #include <linux/sched_clock.h>
  30. #include <linux/slab.h>
  31. #include <linux/of.h>
  32. #include <linux/of_address.h>
  33. #include <linux/of_irq.h>
  34. #include <soc/imx/timer.h>
  35. /*
  36. * There are 4 versions of the timer hardware on Freescale MXC hardware.
  37. * - MX1/MXL
  38. * - MX21, MX27.
  39. * - MX25, MX31, MX35, MX37, MX51, MX6Q(rev1.0)
  40. * - MX6DL, MX6SX, MX6Q(rev1.1+)
  41. */
  42. /* defines common for all i.MX */
  43. #define MXC_TCTL 0x00
  44. #define MXC_TCTL_TEN (1 << 0) /* Enable module */
  45. #define MXC_TPRER 0x04
  46. /* MX1, MX21, MX27 */
  47. #define MX1_2_TCTL_CLK_PCLK1 (1 << 1)
  48. #define MX1_2_TCTL_IRQEN (1 << 4)
  49. #define MX1_2_TCTL_FRR (1 << 8)
  50. #define MX1_2_TCMP 0x08
  51. #define MX1_2_TCN 0x10
  52. #define MX1_2_TSTAT 0x14
  53. /* MX21, MX27 */
  54. #define MX2_TSTAT_CAPT (1 << 1)
  55. #define MX2_TSTAT_COMP (1 << 0)
  56. /* MX31, MX35, MX25, MX5, MX6 */
  57. #define V2_TCTL_WAITEN (1 << 3) /* Wait enable mode */
  58. #define V2_TCTL_CLK_IPG (1 << 6)
  59. #define V2_TCTL_CLK_PER (2 << 6)
  60. #define V2_TCTL_CLK_OSC_DIV8 (5 << 6)
  61. #define V2_TCTL_FRR (1 << 9)
  62. #define V2_TCTL_24MEN (1 << 10)
  63. #define V2_TPRER_PRE24M 12
  64. #define V2_IR 0x0c
  65. #define V2_TSTAT 0x08
  66. #define V2_TSTAT_OF1 (1 << 0)
  67. #define V2_TCN 0x24
  68. #define V2_TCMP 0x10
  69. #define V2_TIMER_RATE_OSC_DIV8 3000000
  70. struct imx_timer {
  71. enum imx_gpt_type type;
  72. void __iomem *base;
  73. int irq;
  74. struct clk *clk_per;
  75. struct clk *clk_ipg;
  76. const struct imx_gpt_data *gpt;
  77. struct clock_event_device ced;
  78. struct irqaction act;
  79. };
  80. struct imx_gpt_data {
  81. int reg_tstat;
  82. int reg_tcn;
  83. int reg_tcmp;
  84. void (*gpt_setup_tctl)(struct imx_timer *imxtm);
  85. void (*gpt_irq_enable)(struct imx_timer *imxtm);
  86. void (*gpt_irq_disable)(struct imx_timer *imxtm);
  87. void (*gpt_irq_acknowledge)(struct imx_timer *imxtm);
  88. int (*set_next_event)(unsigned long evt,
  89. struct clock_event_device *ced);
  90. };
  91. static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced)
  92. {
  93. return container_of(ced, struct imx_timer, ced);
  94. }
  95. static void imx1_gpt_irq_disable(struct imx_timer *imxtm)
  96. {
  97. unsigned int tmp;
  98. tmp = readl_relaxed(imxtm->base + MXC_TCTL);
  99. writel_relaxed(tmp & ~MX1_2_TCTL_IRQEN, imxtm->base + MXC_TCTL);
  100. }
  101. #define imx21_gpt_irq_disable imx1_gpt_irq_disable
  102. static void imx31_gpt_irq_disable(struct imx_timer *imxtm)
  103. {
  104. writel_relaxed(0, imxtm->base + V2_IR);
  105. }
  106. #define imx6dl_gpt_irq_disable imx31_gpt_irq_disable
  107. static void imx1_gpt_irq_enable(struct imx_timer *imxtm)
  108. {
  109. unsigned int tmp;
  110. tmp = readl_relaxed(imxtm->base + MXC_TCTL);
  111. writel_relaxed(tmp | MX1_2_TCTL_IRQEN, imxtm->base + MXC_TCTL);
  112. }
  113. #define imx21_gpt_irq_enable imx1_gpt_irq_enable
  114. static void imx31_gpt_irq_enable(struct imx_timer *imxtm)
  115. {
  116. writel_relaxed(1<<0, imxtm->base + V2_IR);
  117. }
  118. #define imx6dl_gpt_irq_enable imx31_gpt_irq_enable
  119. static void imx1_gpt_irq_acknowledge(struct imx_timer *imxtm)
  120. {
  121. writel_relaxed(0, imxtm->base + MX1_2_TSTAT);
  122. }
  123. static void imx21_gpt_irq_acknowledge(struct imx_timer *imxtm)
  124. {
  125. writel_relaxed(MX2_TSTAT_CAPT | MX2_TSTAT_COMP,
  126. imxtm->base + MX1_2_TSTAT);
  127. }
  128. static void imx31_gpt_irq_acknowledge(struct imx_timer *imxtm)
  129. {
  130. writel_relaxed(V2_TSTAT_OF1, imxtm->base + V2_TSTAT);
  131. }
  132. #define imx6dl_gpt_irq_acknowledge imx31_gpt_irq_acknowledge
  133. static void __iomem *sched_clock_reg;
  134. static u64 notrace mxc_read_sched_clock(void)
  135. {
  136. return sched_clock_reg ? readl_relaxed(sched_clock_reg) : 0;
  137. }
  138. static struct delay_timer imx_delay_timer;
  139. static unsigned long imx_read_current_timer(void)
  140. {
  141. return readl_relaxed(sched_clock_reg);
  142. }
  143. static int __init mxc_clocksource_init(struct imx_timer *imxtm)
  144. {
  145. unsigned int c = clk_get_rate(imxtm->clk_per);
  146. void __iomem *reg = imxtm->base + imxtm->gpt->reg_tcn;
  147. imx_delay_timer.read_current_timer = &imx_read_current_timer;
  148. imx_delay_timer.freq = c;
  149. register_current_timer_delay(&imx_delay_timer);
  150. sched_clock_reg = reg;
  151. sched_clock_register(mxc_read_sched_clock, 32, c);
  152. return clocksource_mmio_init(reg, "mxc_timer1", c, 200, 32,
  153. clocksource_mmio_readl_up);
  154. }
  155. /* clock event */
  156. static int mx1_2_set_next_event(unsigned long evt,
  157. struct clock_event_device *ced)
  158. {
  159. struct imx_timer *imxtm = to_imx_timer(ced);
  160. unsigned long tcmp;
  161. tcmp = readl_relaxed(imxtm->base + MX1_2_TCN) + evt;
  162. writel_relaxed(tcmp, imxtm->base + MX1_2_TCMP);
  163. return (int)(tcmp - readl_relaxed(imxtm->base + MX1_2_TCN)) < 0 ?
  164. -ETIME : 0;
  165. }
  166. static int v2_set_next_event(unsigned long evt,
  167. struct clock_event_device *ced)
  168. {
  169. struct imx_timer *imxtm = to_imx_timer(ced);
  170. unsigned long tcmp;
  171. tcmp = readl_relaxed(imxtm->base + V2_TCN) + evt;
  172. writel_relaxed(tcmp, imxtm->base + V2_TCMP);
  173. return evt < 0x7fffffff &&
  174. (int)(tcmp - readl_relaxed(imxtm->base + V2_TCN)) < 0 ?
  175. -ETIME : 0;
  176. }
  177. static int mxc_shutdown(struct clock_event_device *ced)
  178. {
  179. struct imx_timer *imxtm = to_imx_timer(ced);
  180. unsigned long flags;
  181. u32 tcn;
  182. /*
  183. * The timer interrupt generation is disabled at least
  184. * for enough time to call mxc_set_next_event()
  185. */
  186. local_irq_save(flags);
  187. /* Disable interrupt in GPT module */
  188. imxtm->gpt->gpt_irq_disable(imxtm);
  189. tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn);
  190. /* Set event time into far-far future */
  191. writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp);
  192. /* Clear pending interrupt */
  193. imxtm->gpt->gpt_irq_acknowledge(imxtm);
  194. #ifdef DEBUG
  195. printk(KERN_INFO "%s: changing mode\n", __func__);
  196. #endif /* DEBUG */
  197. local_irq_restore(flags);
  198. return 0;
  199. }
  200. static int mxc_set_oneshot(struct clock_event_device *ced)
  201. {
  202. struct imx_timer *imxtm = to_imx_timer(ced);
  203. unsigned long flags;
  204. /*
  205. * The timer interrupt generation is disabled at least
  206. * for enough time to call mxc_set_next_event()
  207. */
  208. local_irq_save(flags);
  209. /* Disable interrupt in GPT module */
  210. imxtm->gpt->gpt_irq_disable(imxtm);
  211. if (!clockevent_state_oneshot(ced)) {
  212. u32 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn);
  213. /* Set event time into far-far future */
  214. writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp);
  215. /* Clear pending interrupt */
  216. imxtm->gpt->gpt_irq_acknowledge(imxtm);
  217. }
  218. #ifdef DEBUG
  219. printk(KERN_INFO "%s: changing mode\n", __func__);
  220. #endif /* DEBUG */
  221. /*
  222. * Do not put overhead of interrupt enable/disable into
  223. * mxc_set_next_event(), the core has about 4 minutes
  224. * to call mxc_set_next_event() or shutdown clock after
  225. * mode switching
  226. */
  227. imxtm->gpt->gpt_irq_enable(imxtm);
  228. local_irq_restore(flags);
  229. return 0;
  230. }
  231. /*
  232. * IRQ handler for the timer
  233. */
  234. static irqreturn_t mxc_timer_interrupt(int irq, void *dev_id)
  235. {
  236. struct clock_event_device *ced = dev_id;
  237. struct imx_timer *imxtm = to_imx_timer(ced);
  238. uint32_t tstat;
  239. tstat = readl_relaxed(imxtm->base + imxtm->gpt->reg_tstat);
  240. imxtm->gpt->gpt_irq_acknowledge(imxtm);
  241. ced->event_handler(ced);
  242. return IRQ_HANDLED;
  243. }
  244. static int __init mxc_clockevent_init(struct imx_timer *imxtm)
  245. {
  246. struct clock_event_device *ced = &imxtm->ced;
  247. struct irqaction *act = &imxtm->act;
  248. ced->name = "mxc_timer1";
  249. ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_DYNIRQ;
  250. ced->set_state_shutdown = mxc_shutdown;
  251. ced->set_state_oneshot = mxc_set_oneshot;
  252. ced->tick_resume = mxc_shutdown;
  253. ced->set_next_event = imxtm->gpt->set_next_event;
  254. ced->rating = 200;
  255. ced->cpumask = cpumask_of(0);
  256. ced->irq = imxtm->irq;
  257. clockevents_config_and_register(ced, clk_get_rate(imxtm->clk_per),
  258. 0xff, 0xfffffffe);
  259. act->name = "i.MX Timer Tick";
  260. act->flags = IRQF_TIMER | IRQF_IRQPOLL;
  261. act->handler = mxc_timer_interrupt;
  262. act->dev_id = ced;
  263. return setup_irq(imxtm->irq, act);
  264. }
  265. static void imx1_gpt_setup_tctl(struct imx_timer *imxtm)
  266. {
  267. u32 tctl_val;
  268. tctl_val = MX1_2_TCTL_FRR | MX1_2_TCTL_CLK_PCLK1 | MXC_TCTL_TEN;
  269. writel_relaxed(tctl_val, imxtm->base + MXC_TCTL);
  270. }
  271. #define imx21_gpt_setup_tctl imx1_gpt_setup_tctl
  272. static void imx31_gpt_setup_tctl(struct imx_timer *imxtm)
  273. {
  274. u32 tctl_val;
  275. tctl_val = V2_TCTL_FRR | V2_TCTL_WAITEN | MXC_TCTL_TEN;
  276. if (clk_get_rate(imxtm->clk_per) == V2_TIMER_RATE_OSC_DIV8)
  277. tctl_val |= V2_TCTL_CLK_OSC_DIV8;
  278. else
  279. tctl_val |= V2_TCTL_CLK_PER;
  280. writel_relaxed(tctl_val, imxtm->base + MXC_TCTL);
  281. }
  282. static void imx6dl_gpt_setup_tctl(struct imx_timer *imxtm)
  283. {
  284. u32 tctl_val;
  285. tctl_val = V2_TCTL_FRR | V2_TCTL_WAITEN | MXC_TCTL_TEN;
  286. if (clk_get_rate(imxtm->clk_per) == V2_TIMER_RATE_OSC_DIV8) {
  287. tctl_val |= V2_TCTL_CLK_OSC_DIV8;
  288. /* 24 / 8 = 3 MHz */
  289. writel_relaxed(7 << V2_TPRER_PRE24M, imxtm->base + MXC_TPRER);
  290. tctl_val |= V2_TCTL_24MEN;
  291. } else {
  292. tctl_val |= V2_TCTL_CLK_PER;
  293. }
  294. writel_relaxed(tctl_val, imxtm->base + MXC_TCTL);
  295. }
  296. static const struct imx_gpt_data imx1_gpt_data = {
  297. .reg_tstat = MX1_2_TSTAT,
  298. .reg_tcn = MX1_2_TCN,
  299. .reg_tcmp = MX1_2_TCMP,
  300. .gpt_irq_enable = imx1_gpt_irq_enable,
  301. .gpt_irq_disable = imx1_gpt_irq_disable,
  302. .gpt_irq_acknowledge = imx1_gpt_irq_acknowledge,
  303. .gpt_setup_tctl = imx1_gpt_setup_tctl,
  304. .set_next_event = mx1_2_set_next_event,
  305. };
  306. static const struct imx_gpt_data imx21_gpt_data = {
  307. .reg_tstat = MX1_2_TSTAT,
  308. .reg_tcn = MX1_2_TCN,
  309. .reg_tcmp = MX1_2_TCMP,
  310. .gpt_irq_enable = imx21_gpt_irq_enable,
  311. .gpt_irq_disable = imx21_gpt_irq_disable,
  312. .gpt_irq_acknowledge = imx21_gpt_irq_acknowledge,
  313. .gpt_setup_tctl = imx21_gpt_setup_tctl,
  314. .set_next_event = mx1_2_set_next_event,
  315. };
  316. static const struct imx_gpt_data imx31_gpt_data = {
  317. .reg_tstat = V2_TSTAT,
  318. .reg_tcn = V2_TCN,
  319. .reg_tcmp = V2_TCMP,
  320. .gpt_irq_enable = imx31_gpt_irq_enable,
  321. .gpt_irq_disable = imx31_gpt_irq_disable,
  322. .gpt_irq_acknowledge = imx31_gpt_irq_acknowledge,
  323. .gpt_setup_tctl = imx31_gpt_setup_tctl,
  324. .set_next_event = v2_set_next_event,
  325. };
  326. static const struct imx_gpt_data imx6dl_gpt_data = {
  327. .reg_tstat = V2_TSTAT,
  328. .reg_tcn = V2_TCN,
  329. .reg_tcmp = V2_TCMP,
  330. .gpt_irq_enable = imx6dl_gpt_irq_enable,
  331. .gpt_irq_disable = imx6dl_gpt_irq_disable,
  332. .gpt_irq_acknowledge = imx6dl_gpt_irq_acknowledge,
  333. .gpt_setup_tctl = imx6dl_gpt_setup_tctl,
  334. .set_next_event = v2_set_next_event,
  335. };
  336. static int __init _mxc_timer_init(struct imx_timer *imxtm)
  337. {
  338. int ret;
  339. switch (imxtm->type) {
  340. case GPT_TYPE_IMX1:
  341. imxtm->gpt = &imx1_gpt_data;
  342. break;
  343. case GPT_TYPE_IMX21:
  344. imxtm->gpt = &imx21_gpt_data;
  345. break;
  346. case GPT_TYPE_IMX31:
  347. imxtm->gpt = &imx31_gpt_data;
  348. break;
  349. case GPT_TYPE_IMX6DL:
  350. imxtm->gpt = &imx6dl_gpt_data;
  351. break;
  352. default:
  353. return -EINVAL;
  354. }
  355. if (IS_ERR(imxtm->clk_per)) {
  356. pr_err("i.MX timer: unable to get clk\n");
  357. return PTR_ERR(imxtm->clk_per);
  358. }
  359. if (!IS_ERR(imxtm->clk_ipg))
  360. clk_prepare_enable(imxtm->clk_ipg);
  361. clk_prepare_enable(imxtm->clk_per);
  362. /*
  363. * Initialise to a known state (all timers off, and timing reset)
  364. */
  365. writel_relaxed(0, imxtm->base + MXC_TCTL);
  366. writel_relaxed(0, imxtm->base + MXC_TPRER); /* see datasheet note */
  367. imxtm->gpt->gpt_setup_tctl(imxtm);
  368. /* init and register the timer to the framework */
  369. ret = mxc_clocksource_init(imxtm);
  370. if (ret)
  371. return ret;
  372. return mxc_clockevent_init(imxtm);
  373. }
  374. void __init mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type)
  375. {
  376. struct imx_timer *imxtm;
  377. imxtm = kzalloc(sizeof(*imxtm), GFP_KERNEL);
  378. BUG_ON(!imxtm);
  379. imxtm->clk_per = clk_get_sys("imx-gpt.0", "per");
  380. imxtm->clk_ipg = clk_get_sys("imx-gpt.0", "ipg");
  381. imxtm->base = ioremap(pbase, SZ_4K);
  382. BUG_ON(!imxtm->base);
  383. imxtm->type = type;
  384. imxtm->irq = irq;
  385. _mxc_timer_init(imxtm);
  386. }
  387. static int __init mxc_timer_init_dt(struct device_node *np, enum imx_gpt_type type)
  388. {
  389. struct imx_timer *imxtm;
  390. static int initialized;
  391. int ret;
  392. /* Support one instance only */
  393. if (initialized)
  394. return 0;
  395. imxtm = kzalloc(sizeof(*imxtm), GFP_KERNEL);
  396. if (!imxtm)
  397. return -ENOMEM;
  398. imxtm->base = of_iomap(np, 0);
  399. if (!imxtm->base)
  400. return -ENXIO;
  401. imxtm->irq = irq_of_parse_and_map(np, 0);
  402. if (imxtm->irq <= 0)
  403. return -EINVAL;
  404. imxtm->clk_ipg = of_clk_get_by_name(np, "ipg");
  405. /* Try osc_per first, and fall back to per otherwise */
  406. imxtm->clk_per = of_clk_get_by_name(np, "osc_per");
  407. if (IS_ERR(imxtm->clk_per))
  408. imxtm->clk_per = of_clk_get_by_name(np, "per");
  409. imxtm->type = type;
  410. ret = _mxc_timer_init(imxtm);
  411. if (ret)
  412. return ret;
  413. initialized = 1;
  414. return 0;
  415. }
  416. static int __init imx1_timer_init_dt(struct device_node *np)
  417. {
  418. return mxc_timer_init_dt(np, GPT_TYPE_IMX1);
  419. }
  420. static int __init imx21_timer_init_dt(struct device_node *np)
  421. {
  422. return mxc_timer_init_dt(np, GPT_TYPE_IMX21);
  423. }
  424. static int __init imx31_timer_init_dt(struct device_node *np)
  425. {
  426. enum imx_gpt_type type = GPT_TYPE_IMX31;
  427. /*
  428. * We were using the same compatible string for i.MX6Q/D and i.MX6DL/S
  429. * GPT device, while they actually have different programming model.
  430. * This is a workaround to keep the existing i.MX6DL/S DTBs continue
  431. * working with the new kernel.
  432. */
  433. if (of_machine_is_compatible("fsl,imx6dl"))
  434. type = GPT_TYPE_IMX6DL;
  435. return mxc_timer_init_dt(np, type);
  436. }
  437. static int __init imx6dl_timer_init_dt(struct device_node *np)
  438. {
  439. return mxc_timer_init_dt(np, GPT_TYPE_IMX6DL);
  440. }
  441. CLOCKSOURCE_OF_DECLARE(imx1_timer, "fsl,imx1-gpt", imx1_timer_init_dt);
  442. CLOCKSOURCE_OF_DECLARE(imx21_timer, "fsl,imx21-gpt", imx21_timer_init_dt);
  443. CLOCKSOURCE_OF_DECLARE(imx27_timer, "fsl,imx27-gpt", imx21_timer_init_dt);
  444. CLOCKSOURCE_OF_DECLARE(imx31_timer, "fsl,imx31-gpt", imx31_timer_init_dt);
  445. CLOCKSOURCE_OF_DECLARE(imx25_timer, "fsl,imx25-gpt", imx31_timer_init_dt);
  446. CLOCKSOURCE_OF_DECLARE(imx50_timer, "fsl,imx50-gpt", imx31_timer_init_dt);
  447. CLOCKSOURCE_OF_DECLARE(imx51_timer, "fsl,imx51-gpt", imx31_timer_init_dt);
  448. CLOCKSOURCE_OF_DECLARE(imx53_timer, "fsl,imx53-gpt", imx31_timer_init_dt);
  449. CLOCKSOURCE_OF_DECLARE(imx6q_timer, "fsl,imx6q-gpt", imx31_timer_init_dt);
  450. CLOCKSOURCE_OF_DECLARE(imx6dl_timer, "fsl,imx6dl-gpt", imx6dl_timer_init_dt);
  451. CLOCKSOURCE_OF_DECLARE(imx6sl_timer, "fsl,imx6sl-gpt", imx6dl_timer_init_dt);
  452. CLOCKSOURCE_OF_DECLARE(imx6sx_timer, "fsl,imx6sx-gpt", imx6dl_timer_init_dt);