Hi,
I'm interested in GPT, not EPIT.
I already read the Linux Reference Manual.
Using config tools for i.MX8 I added the pins GPT1_CLK, GPT1_COMPARE and GPT1_CAPTURE to pinctrl_flexspi0.
I added gpt node in the dtb (taken from imx8mq.dtsi)
gpt1: gpt@302d0000 {
compatible = "fsl,imx8mm-gpt";
reg = <0x302d0000 0x10000>;
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MM_CLK_GPT1_ROOT>,
<&clk IMX8MM_CLK_GPT1_ROOT>,
<&clk IMX8MM_CLK_GPT_3M>;
clock-names = "ipg", "per", "osc_per";
status = "okay";
};
I got the gpt driver (drivers/clocksource/timer-imx-gpt.c) to compile, and the function imx6dl_timer_init_dt() is invoked.
The function imx6dl_timer_init_dt() fails at
of_clk_get_by_name(np, "ipg");
of_clk_get_by_name(np, "osc_per");
and
of_clk_get_by_name(np, "per");
Can you help me solve this error?
Thanks,
Nir.