ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 11 May 2016 09:00:02 +0000 (11:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 00:06:49 +0000 (17:06 -0700)
commitb66cb8c5137da3dda2f32b2bcc69d3937f6d4899
tree563b2ca00fe72ebc45570c3e4404aa0a521a4753
parent8e5bb3c5417fd98c8966807dc07cc1b687da97c4
ARM: dts: at91: sam9x5: Fix the memory range assigned to the PMC

commit aab0a4c83ceb344d2327194bf354820e50607af6 upstream.

The memory range assigned to the PMC (Power Management Controller) was
not including the PMC_PCR register which are used to control peripheral
clocks.

This was working fine thanks to the page granularity of ioremap(), but
started to fail when we switched to syscon/regmap, because regmap is
making sure that all accesses are falling into the reserved range.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Richard Genoud <richard.genoud@gmail.com>
Tested-by: Richard Genoud <richard.genoud@gmail.com>
Fixes: 863a81c3be1d ("clk: at91: make use of syscon to share PMC registers in several drivers")
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/at91sam9x5.dtsi