]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: imx7d: fix LCDIF clock assignment
authorStefan Agner <stefan@agner.ch>
Wed, 23 Nov 2016 00:42:04 +0000 (16:42 -0800)
committerOlof Johansson <olof@lixom.net>
Wed, 7 Dec 2016 20:52:07 +0000 (12:52 -0800)
commit1d0ce1a43b11017f39eb7b6760328643a0057e90
treeab5023acc0be7a3a000a53ceccc26ea15e28f9d4
parent78b0c76ed0d54cd88eabcaab8c7c61ae57dec318
ARM: dts: imx7d: fix LCDIF clock assignment

The eLCDIF IP of the i.MX 7 SoC knows multiple clocks and lists them
separately:

Clock      Clock Root              Description
apb_clk    MAIN_AXI_CLK_ROOT       AXI clock
pix_clk    LCDIF_PIXEL_CLK_ROOT    Pixel clock
ipg_clk_s  MAIN_AXI_CLK_ROOT       Peripheral access clock

All of them are switched by a single gate, which is part of the
IMX7D_LCDIF_PIXEL_ROOT_CLK clock. Hence using that clock also for
the AXI bus clock (clock-name "axi") makes sure the gate gets
enabled when accessing registers.

There seem to be no separate AXI display clock, and the clock is
optional. Hence remove the dummy clock.

This fixes kernel freezes when starting the X-Server (which
disables/re-enables the display controller).

Fixes: 8613e8a71e9a ("ARM: dts: imx7d: add lcdif support")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/imx7s.dtsi