MLK-14280: gpc: gpc driver not probed
authorRobert Chiras <robert.chiras@nxp.com>
Thu, 2 Mar 2017 12:01:46 +0000 (14:01 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:51 +0000 (15:10 -0500)
commitfab513930e78c58b959c806c445988ae155c2485
tree3f24a9ef282bcf9af21c6381d38e45dc492bb7c9
parentb530b4477bd1891f30362f8feffbe40a39325046
MLK-14280: gpc: gpc driver not probed

The GPC controller driver is handling two sections: interrupts and PGC
(Power Gate Controller). The interrupts are handled in imx_gpcv2_init
function, and the PGC is handled in imx_gpcv2_probe function.
In kernel 4.9, the driver is probed by it's compatible entry in:
OF_DECLARE_2(irqchip, imx_gpcv2, "fsl,imx7d-gpc", imx_gpcv2_init);

Because the driver is already probed, imx_gpcv2_probe function is not
called, since it is registered with the same compatible name.
In order to separate the interrupts from PGC, this patch moves the
regulator entrys in DTS to a new node: pgc. And, assign the probe
function to this new node.
Also, added DeviceTree documentation about the new added node. Since GPC
(the block containing the PGC) didn't have any documentation, documented
GPC too.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Documentation/devicetree/bindings/soc/fsl/gpc.txt [new file with mode: 0644]
arch/arm/boot/dts/imx7s.dtsi
arch/arm/mach-imx/gpcv2.c