On Fri, May 11, 2018 at 01:31:18PM +0900, Yoshihiro Shimoda wrote:
> This patch adds PFC device node for r8a77990 (R-Car E3).
>
> Signed-off-by: Yoshihiro Shimoda <[email protected]>
> ---
> arch/arm64/boot/dts/renesas/r8a77990.dtsi | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi
> b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
> index 4658029..efc3c0b 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi
> @@ -60,6 +60,11 @@
> #size-cells = <2>;
> ranges;
>
> + pfc: pin-controller@e6060000 {
> + compatible = "renesas,pfc-r8a77990";
> + reg = <0 0xe6060000 0 0x508>;
> + };
Here the register size is 0x508 which matches r8a77995.dtsi in mainline.
Other variants there are:
* 0x50c: r8a7795.dtsi, r8a77965.dtsi, r8a7796.dtsi
* 0x504: r8a77970.dtsi
My reading of the documentation is that the size of the register range is
0x50c. So I suggest we either use that value consistently or move to a
larger value after some rounding-up. Geert?
> +
> cpg: clock-controller@e6150000 {
> compatible = "renesas,r8a77990-cpg-mssr";
> reg = <0 0xe6150000 0 0x1000>;
> --
> 1.9.1
>