[PATCH V5 9/9] clk: imx: add imx8qxp clk driver
From: aisheng.dong@nxp.com (A.s. Dong)
Date: 2018-11-10 15:58:06
Also in:
linux-clk
Hi Stephen, [...]
quoted
quoted
quoted
Where's the DT binding for this device?Sorry for missed to mention this. It's been merged into scu binding doc per Rob's request which has already been in Shawn's tree. Please take a look at here:[...]quoted
Ok I ask because it's odd to hardcode physical addresses in a clk driver when those should come from DT in reg properties. Was Rob aware that this clk node was combining I/O memory and message passing?Yes, I agree with you. That seems like a special to i.MX case. The problem is not all clocks having a LPCG gate. And those LPCGs are also not continuous and may be shared by many clocks which make things more complicated. I'm not sure parsing from device tree could be better way to do it. Probably need huge changes.
I reorganized the driver a lot to address this issue. See: https://patchwork.kernel.org/cover/10677275/ We now have a new LPCG clock type and retrieve the LPCG physical address from device tree. Besides that, as LPCG is moved out from the original SCU gate clocks, We have a chance to merge all three type of SCU clocks (divider/gate/mux) together into a general SCU clock. (new API introduced imx_clk_scu()). Thus, the consumer driver is also simplied a lot which looks better than before. Hopefully this can make you happy. Please help review that new version. Regards Dong Aisheng