This is a resend of http://www.spinics.net/lists/linux-sh/msg45969.html
Besides some minor clean up and fixes, it's rebased against https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest 0ea1cc9f0c9537d3fb42722c188 [WIP] arm64: r8a7796: Integration and adds support for RCar Gen3. Additionally, it moves the MODEMR register to device tree instead of hard coding its address. These patches are available in https://github.com/dirkbehme/linux-renesas-rcar-gen3/commits/geert/topic/gen3-latest-modereg too. It's boot tested on r8a7795 Salvator-X and checked that the same mode value is read without and with this patch series. Dirk Changes in v2: * Correct link & subject in introduction patch 0000 * Fix some spelling errors * Drop the goto in boot_mode_reg_get() and boot_mode_reg_get() * Convert device tree node to renesas,rcar-rst and use whole reset device * Add devcie tree node documentation * Preserve compatibility with old DTBs that don't have the node in DT