Fixes to make improve mainline compatiblity
Created by: mmind
I've started playing with your code on Rockchip SoCs using Mali400 GPUs and as I'm working with the mainline kernel as base, I stumbled over some areas for improvement :-) .
The biggest is of course the devicetree binding. Utgard Malis have an approved binding in the mainline kernel  that differs quite a bit from the older out-of-tree variants. So I've modified the device init to conform to the mainline one and have been able to bring up the gpus on both the rk3188 and rk3036 socs. So far I've only concentrated on the kernel side to get the driver to come up at all :-) .
The lima_ip stuff now also looks a bit much, with only the interrupt actually being handled there, so I'm planning on simplifying this a bit more in the future.
In my branch  I'm also sitting on some more patches that are needed for newer kernel versions to work at all (prefixed with FORWARD).
So, let me know what you think :-)
 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt  https://github.com/mmind/linux-rockchip/commits/devel/lima-yuq