platform/kernel/linux-rpi.git
6 years agoarm64: dts: renesas: r8a77970: add VIN and CSI-2 nodes
Niklas Söderlund [Wed, 16 May 2018 01:58:52 +0000 (03:58 +0200)]
arm64: dts: renesas: r8a77970: add VIN and CSI-2 nodes

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add VIN and CSI-2 nodes
Niklas Söderlund [Wed, 16 May 2018 01:58:51 +0000 (03:58 +0200)]
arm64: dts: renesas: r8a77965: add VIN and CSI-2 nodes

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7796: add VIN and CSI-2 nodes
Niklas Söderlund [Wed, 16 May 2018 01:58:50 +0000 (03:58 +0200)]
arm64: dts: renesas: r8a7796: add VIN and CSI-2 nodes

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795-es1: add CSI-2 node
Niklas Söderlund [Wed, 16 May 2018 01:58:49 +0000 (03:58 +0200)]
arm64: dts: renesas: r8a7795-es1: add CSI-2 node

Renesas H3 ES1.0 have one extra CSI-2 node, CSI21 which is not present
for later ES versions of H3.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: add VIN and CSI-2 nodes
Niklas Söderlund [Wed, 16 May 2018 01:58:48 +0000 (03:58 +0200)]
arm64: dts: renesas: r8a7795: add VIN and CSI-2 nodes

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add I2C support
Niklas Söderlund [Fri, 11 May 2018 14:00:29 +0000 (16:00 +0200)]
arm64: dts: renesas: r8a77965: add I2C support

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77990: ebisu: Enable EthernetAVB
Yoshihiro Shimoda [Fri, 11 May 2018 04:31:21 +0000 (13:31 +0900)]
arm64: dts: renesas: r8a77990: ebisu: Enable EthernetAVB

This patch enables EthernetAVB for r8a77990 Ebisu board.

Based on a patch from Takeshi Kihara <takeshi.kihara.df@renesas.com>

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77990: Add EthernetAVB device nodes
Yoshihiro Shimoda [Fri, 11 May 2018 04:31:20 +0000 (13:31 +0900)]
arm64: dts: renesas: r8a77990: Add EthernetAVB device nodes

This patch adds EthernetAVB node for r8a77990 (R-Car E3).

Based on a patch from Takeshi Kihara <takeshi.kihara.df@renesas.com>

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77990: Add GPIO device nodes
Yoshihiro Shimoda [Fri, 11 May 2018 04:31:19 +0000 (13:31 +0900)]
arm64: dts: renesas: r8a77990: Add GPIO device nodes

This patch adds GPIO nodes for r8a77990 (R-Car E3).

Based on a patch from Takeshi Kihara <takeshi.kihara.df@renesas.com>

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
[simon: dropped use of deprecated "renesas,gpio-rcar"]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77990: Add PFC device node
Yoshihiro Shimoda [Fri, 11 May 2018 04:31:18 +0000 (13:31 +0900)]
arm64: dts: renesas: r8a77990: Add PFC device node

This patch adds PFC device node for r8a77990 (R-Car E3).

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: initial V3HSK board device tree
Sergei Shtylyov [Thu, 10 May 2018 18:12:30 +0000 (21:12 +0300)]
arm64: dts: renesas: initial V3HSK board device tree

Add the initial device  tree for  the V3H Starter Kit board.
The board has 1 debug serial port (SCIF0); include support for it,
so that the serial console can work.

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77980: disable EtherAVB
Sergei Shtylyov [Fri, 11 May 2018 20:23:26 +0000 (23:23 +0300)]
arm64: dts: renesas: r8a77980: disable EtherAVB

When adding the R8A77980 EtherAVB device I failed to notice that it does
not have the usual "status" property disabling the described devices in
anticipation that the board device trees enable the devices according to
their needs. This causes the EtherAVB driver to successfully probe despite
e.g. the needed pins not having been configured -- luckily, "eth<n>" device
can't be opened anyway...

Fixes: bf6f90832f81 ("arm64: dts: renesas: r8a77980: add EtherAVB support")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: disable EtherAVB
Sergei Shtylyov [Fri, 11 May 2018 20:21:57 +0000 (23:21 +0300)]
arm64: dts: renesas: r8a77970: disable EtherAVB

When adding the R8A77970 EtherAVB device I failed to notice that it does
not have the usual "status" property disabling the described devices in
anticipation that the board device trees enable the devices according to
their needs. This causes the EtherAVB driver to successfully probe despite
e.g. the needed pins not having been configured -- luckily, "eth<n>" device
can't be opened anyway...

Fixes: bea2ab136eaa ("arm64: dts: renesas: r8a77970: add EtherAVB support")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77995: Add VIN4
Jacopo Mondi [Fri, 11 May 2018 10:00:01 +0000 (12:00 +0200)]
arm64: dts: renesas: r8a77995: Add VIN4

Describe VIN4 interface for R-Car D3 R8A77995 SoC.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
[simon: sorted node by bus address]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
6 years agoarm64: dts: renesas: r8a77980: add resets property to CAN-FD node
Simon Horman [Wed, 9 May 2018 17:54:09 +0000 (19:54 +0200)]
arm64: dts: renesas: r8a77980: add resets property to CAN-FD node

Add resets property to CAN-FD node to describe it in the reset topology of
on-SoC devices.  This allows to reset the CAN-FD device using the Reset
Controller API.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
6 years agoarm64: dts: renesas: r8a77970: Add Cortex-A53 PMU node
Geert Uytterhoeven [Wed, 9 May 2018 15:23:23 +0000 (17:23 +0200)]
arm64: dts: renesas: r8a77970: Add Cortex-A53 PMU node

Enable the performance monitor unit for the Cortex-A53 cores on the
R-Car V3M (r8a77970) SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: Add secondary CA53 CPU core
Geert Uytterhoeven [Wed, 9 May 2018 15:23:22 +0000 (17:23 +0200)]
arm64: dts: renesas: r8a77970: Add secondary CA53 CPU core

Add a device node for the second Cortex-A53 CPU core on the Renesas
R-Car V3M (r8a77970) SoC, and adjust the interrupt delivery masks for
ARM Generic Interrupt Controller and Architectured Timer.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add SDHI device nodes
Takeshi Kihara [Wed, 9 May 2018 12:38:24 +0000 (21:38 +0900)]
arm64: dts: renesas: r8a77965: Add SDHI device nodes

Add SDHI nodes to the DT of the r8a77965 SoC.

Based on several similar patches of the R8A7796 device tree
by Simon Horman <horms+renesas@verge.net.au>.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: ulcb: Add PMIC DDR Backup Power config
Geert Uytterhoeven [Thu, 3 May 2018 12:30:51 +0000 (14:30 +0200)]
arm64: dts: renesas: ulcb: Add PMIC DDR Backup Power config

On the R-Car Starter Kit Premier/Pro, all of the DDR0, DDR1, DDR0C, and
DDR1C power rails need to be kept powered when backup mode is enabled.
Reflect this in the "rohm,ddr-backup-power" property for the BD9571MWV
PMIC node.

The accessory power switch (SW8) is a momentary switch, hense specify
"rohm,rstbmode-pulse".

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: salvator-common: Add PMIC DDR Backup Power config
Geert Uytterhoeven [Thu, 3 May 2018 12:30:50 +0000 (14:30 +0200)]
arm64: dts: renesas: salvator-common: Add PMIC DDR Backup Power config

On Salvator-X(S), all of the DDR0, DDR1, DDR0C, and DDR1C power rails
need to be kept powered when backup mode is enabled.  Reflect this in
the "rohm,ddr-backup-power" property for the BD9571MWV PMIC node.

The accessory power switch (SW23) is a toggle switch, hence specify
"rohm,rstbmode-level".

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: ulcb: Add BD9571 PMIC
Geert Uytterhoeven [Thu, 3 May 2018 12:30:49 +0000 (14:30 +0200)]
arm64: dts: renesas: ulcb: Add BD9571 PMIC

Add a device node for the ROHM BD9571MWV PMIC.

This was based on the example in the DT binding documentation, but using
IRQ0 instead of a GPIO interrupt, as that matches the schematics, and
because INTC-EX is a simpler block.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Correct whitespace
Geert Uytterhoeven [Thu, 3 May 2018 12:38:30 +0000 (14:38 +0200)]
arm64: dts: renesas: r8a77965: Correct whitespace

Add missing space after comma.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7796: Correct whitespace
Geert Uytterhoeven [Thu, 3 May 2018 12:38:29 +0000 (14:38 +0200)]
arm64: dts: renesas: r8a7796: Correct whitespace

Add missing spaces after commas.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: Correct whitespace
Geert Uytterhoeven [Thu, 3 May 2018 12:38:28 +0000 (14:38 +0200)]
arm64: dts: renesas: r8a7795: Correct whitespace

Add missing spaces after commas.
Replace 8 consecutive spaces by a TAB.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: salvator-xs: enable USB2.0 host channel 3
Yoshihiro Shimoda [Fri, 27 Apr 2018 06:34:32 +0000 (15:34 +0900)]
arm64: dts: renesas: r8a7795: salvator-xs: enable USB2.0 host channel 3

This patch enables USB2.0 host channel 3 for r8a7795 with Salvator-XS.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: salvator-xs: enable hsusb channel 3 node
Yoshihiro Shimoda [Fri, 27 Apr 2018 06:34:31 +0000 (15:34 +0900)]
arm64: dts: renesas: r8a7795: salvator-xs: enable hsusb channel 3 node

This patch enables HS-USB channel3 node for r8a7795 with Salvator-XS.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: salvator-xs: enable usb2_phy3 node
Yoshihiro Shimoda [Fri, 27 Apr 2018 06:34:30 +0000 (15:34 +0900)]
arm64: dts: renesas: r8a7795: salvator-xs: enable usb2_phy3 node

This patch enables usb2_phy3 node for r8a7795 with Salvator-XS.
You must change the SW31 to OFF-OFF-ON-ON-ON-ON on the board.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: salvator-common: add eeprom
Wolfram Sang [Sun, 29 Apr 2018 18:26:39 +0000 (20:26 +0200)]
arm64: dts: renesas: salvator-common: add eeprom

Add the EEPROM found on Salvator-X and -XS boards for H3, M3-W, and M3-N
on the IIC_DVFS bus.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: condor: add CAN-FD support
Sergei Shtylyov [Fri, 27 Apr 2018 19:14:26 +0000 (22:14 +0300)]
arm64: dts: renesas: condor: add CAN-FD support

Define the Condor board dependent part of the CAN-FD device node.

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77980: add CAN-FD support
Sergei Shtylyov [Fri, 27 Apr 2018 19:12:51 +0000 (22:12 +0300)]
arm64: dts: renesas: r8a77980: add CAN-FD support

Define the generic R8A77980 part of the CAN-FD device node.

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[simon: consistently use tabs for indentation]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: eagle: add CAN-FD support
Sergei Shtylyov [Thu, 26 Apr 2018 20:34:35 +0000 (23:34 +0300)]
arm64: dts: renesas: eagle: add CAN-FD support

Define the Eagle board dependent part of the CAN-FD device node.

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: add CAN-FD support
Sergei Shtylyov [Thu, 26 Apr 2018 20:33:14 +0000 (23:33 +0300)]
arm64: dts: renesas: r8a77970: add CAN-FD support

Define the generic R8A77970 part of the CAN-FD device node.

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add R-Car Gen3 thermal support
Niklas Söderlund [Thu, 26 Apr 2018 19:49:06 +0000 (21:49 +0200)]
arm64: dts: renesas: r8a77965: Add R-Car Gen3 thermal support

Based on previous work by Ryo Kataoka <ryo.kataoka.wt@renesas.com>.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
[simon: moved thermal node to preseve ordering of nodes by bus address]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: use r8a77965-sysc binding definitions
Niklas Söderlund [Thu, 26 Apr 2018 19:34:47 +0000 (21:34 +0200)]
arm64: dts: renesas: r8a77965: use r8a77965-sysc binding definitions

Replace the hardcoded power domain indices by R8A77965_PD_* symbols.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
[simon: dropped hunk to include r8a77965-sysc.h which is already present]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77980: use SYSC power domain macros
Sergei Shtylyov [Thu, 26 Apr 2018 10:45:21 +0000 (13:45 +0300)]
arm64: dts: renesas: r8a77980: use SYSC power domain macros

Now that the commit 7755b40d07a8 ("dt-bindings: power: add R8A77980 SYSC
power domain definitions") has hit Linus' tree, we can replace  the bare
numbers (we had to use to avoid a cross tree dependency) with these macro
definitions...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77980: use CPG core clock macros
Sergei Shtylyov [Thu, 26 Apr 2018 10:43:56 +0000 (13:43 +0300)]
arm64: dts: renesas: r8a77980: use CPG core clock macros

Now that the commit 35b3c462dae1 ("dt-bindings: clock: add R8A77980 CPG
core clock definitions") has hit Linus' tree, we can replace the bare
numbers (we had to use to avoid a cross tree dependency) with these macro
definitions...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add address properties to rcar_sound port nodes
Simon Horman [Thu, 26 Apr 2018 09:42:43 +0000 (11:42 +0200)]
arm64: dts: renesas: r8a77965: Add address properties to rcar_sound port nodes

The rcar_sound port nodes have unit names and thus should have register
properties.

This is flagged by dtc as follows:
 # make dtbs W=1
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dtb
arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property
 DTC     arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dtb
arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property

Prior to this patch the port nodes only defined in board DTS files.
As the register properties are common this patch defines the port nodes
and provides register properties in the SoC DTS file.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
6 years agoarm64: dts: renesas: r8a7796: Add address properties to rcar_sound port nodes
Simon Horman [Thu, 26 Apr 2018 09:42:43 +0000 (11:42 +0200)]
arm64: dts: renesas: r8a7796: Add address properties to rcar_sound port nodes

The rcar_sound port nodes have unit names and thus should have register
properties.

This is flagged by dtc as follows:
 # make dtbs W=1
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dtb
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@1: node has a unit name, but no reg property
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dtb
 arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property
 arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@1: node has a unit name, but no reg property

Prior to this patch the port nodes only defined in board DTS files.
As the register properties are common this patch defines the port nodes
and provides register properties in the SoC DTS file.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
6 years agoarm64: dts: renesas: r8a7795: Add address properties to rcar_sound port nodes
Simon Horman [Thu, 26 Apr 2018 09:42:43 +0000 (11:42 +0200)]
arm64: dts: renesas: r8a7795: Add address properties to rcar_sound port nodes

The rcar_sound port nodes have unit names and thus should have register
properties.

This is flagged by dtc as follows:
 # make dtbs W=1
 ...
 DTC     arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@1: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@2: node has a unit name, but no reg property
  ...
  DTC     arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@1: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@2: node has a unit name, but no reg property
  DTC     arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@0: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@1: node has a unit name, but no reg property
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb: Warning (unit_address_vs_reg): /soc/sound@ec500000/ports/port@2: node has a unit name, but no reg property

Prior to this patch the port nodes only defined in board DTS files.
As the register properties are common this patch defines the port nodes
and provides register properties in the SoC DTS file.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
6 years agoarm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
Sergei Shtylyov [Mon, 23 Apr 2018 20:45:49 +0000 (23:45 +0300)]
arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support

Define the V3M Starter Kit board dependent part of the DU and LVDS device
nodes. Also add the device nodes for Thine THC63LVD1024 LVDS decoder and
Analog Devices ADV7511W HDMI transmitter...

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: condor: add eMMC support
Sergei Shtylyov [Tue, 24 Apr 2018 19:25:24 +0000 (22:25 +0300)]
arm64: dts: renesas: condor: add eMMC support

Define the Condor board dependent part of the MMC0 (connected to eMMC chip)
device node along with the necessary voltage regulators...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965-salvator-xs: Enable DU external clocks and HDMI
Kieran Bingham [Fri, 27 Apr 2018 22:02:20 +0000 (23:02 +0100)]
arm64: dts: renesas: r8a77965-salvator-xs: Enable DU external clocks and HDMI

The DU1 external dot clock is provided by the fixed frequency clock
generator X21, while the DU0 and DU3 clocks are provided by the
programmable Versaclock6 clock generator.

Enable the clocks, and the HDMI encoder for the M3-N Salvator-XS, and
hook it up to the HDMI connector

Based on patches from Takeshi Kihara <takeshi.kihara.df@renesas.com>

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965-salvator-x: Enable DU external clocks and HDMI
Kieran Bingham [Fri, 27 Apr 2018 22:02:19 +0000 (23:02 +0100)]
arm64: dts: renesas: r8a77965-salvator-x: Enable DU external clocks and HDMI

The DU1 external dot clock is provided by the fixed frequency clock
generator X21, while the DU0 and DU3 clocks are provided by the
programmable Versaclock5 clock generator.

Enable the clocks, and the HDMI encoder for the M3-N Salvator-X board
and hook it up to the HDMI connector.

Based on patches from Takeshi Kihara <takeshi.kihara.df@renesas.com>

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add HDMI encoder instance
Kieran Bingham [Fri, 27 Apr 2018 22:02:18 +0000 (23:02 +0100)]
arm64: dts: renesas: r8a77965: Add HDMI encoder instance

Add the HDMI encoder to the R8A77965 DT in disabled state.

Based on a similar patch of the R8A7796 device tree
by Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[Kieran: Rebase to top of tree]
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Populate the DU instance placeholder
Kieran Bingham [Fri, 27 Apr 2018 22:02:17 +0000 (23:02 +0100)]
arm64: dts: renesas: r8a77965: Populate the DU instance placeholder

The DU entity node has been previously added but only as a placeholder.
Populate the node with the properties to use the device.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add VSP instances
Kieran Bingham [Fri, 27 Apr 2018 22:02:16 +0000 (23:02 +0100)]
arm64: dts: renesas: r8a77965: Add VSP instances

The r8a77965 has 4 VSP instances.

Based on a similar patch of the R8A7796 device tree
by Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[Kieran: Rebased to top of tree, fixed sort orders]
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add FCPF and FCPV instances
Kieran Bingham [Fri, 27 Apr 2018 22:02:15 +0000 (23:02 +0100)]
arm64: dts: renesas: r8a77965: Add FCPF and FCPV instances

The FCPs handle the interface between various IP cores and memory. Add
the instances related to the FDPs and VSP2s.

Based on a similar patch of the R8A7796 device tree
by Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[Kieran: Rebase to top of tree]
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77990: Revise the cache controller node
Yoshihiro Shimoda [Wed, 25 Apr 2018 08:20:09 +0000 (17:20 +0900)]
arm64: dts: renesas: r8a77990: Revise the cache controller node

The cache controller node should not have unit-addresses and reg
properties. So, this patch removes them.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77990: Revise the psci node
Yoshihiro Shimoda [Wed, 25 Apr 2018 08:20:10 +0000 (17:20 +0900)]
arm64: dts: renesas: r8a77990: Revise the psci node

The basic support patch 9491a8b17530 ("arm64: dts: renesas: Add Renesas
R8A77990 SoC support") lacks the compatible "arm,psci-1.0" in the psci
node. So, this patch revises it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795-es1: Enable IPMMU devices
Simon Horman [Tue, 24 Apr 2018 09:26:59 +0000 (11:26 +0200)]
arm64: dts: renesas: r8a7795-es1: Enable IPMMU devices

Remove 'status = "disabled"' to make sure all IPMMU devices are enabled
in DT on the r8a7795 ES1.0 Soc.

This is a follow up for a patch by Magnus Damm for the
the r8a7795 ES2.0 and other R-Car Gen 3 SoCs.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7796-salvator-x: enable HDMI sound
Kuninori Morimoto [Mon, 23 Apr 2018 01:41:39 +0000 (01:41 +0000)]
arm64: dts: renesas: r8a7796-salvator-x: enable HDMI sound

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795-salvator-x: enable HDMI sound
Kuninori Morimoto [Mon, 23 Apr 2018 01:41:23 +0000 (01:41 +0000)]
arm64: dts: renesas: r8a7795-salvator-x: enable HDMI sound

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7796-salvator-xs: enable HDMI sound
Kuninori Morimoto [Mon, 23 Apr 2018 01:41:07 +0000 (01:41 +0000)]
arm64: dts: renesas: r8a7796-salvator-xs: enable HDMI sound

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795-salvator-xs: enable HDMI sound
Kuninori Morimoto [Mon, 23 Apr 2018 01:40:52 +0000 (01:40 +0000)]
arm64: dts: renesas: r8a7795-salvator-xs: enable HDMI sound

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795-es1-salvator-x: enable HDMI sound
Kuninori Morimoto [Mon, 23 Apr 2018 01:40:34 +0000 (01:40 +0000)]
arm64: dts: renesas: r8a7795-es1-salvator-x: enable HDMI sound

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: salvator-common: use audio-graph-card for Sound
Kuninori Morimoto [Mon, 23 Apr 2018 01:40:16 +0000 (01:40 +0000)]
arm64: dts: renesas: salvator-common: use audio-graph-card for Sound

Current Sound is using simple-audio-card which can't support HDMI.
To use HDMI sound, we need to use audio-graph-card.
But, one note is that r8a7795 has 2 HDMI ports, but r8a7796 has 1.
Because of this mismatch, supporting HDMI on salvator-common is
impossible.
Thus, this patch exchange sound card to audio-graph-card and keep
supporting ak4613 as 1st sound node.
r8a7795/r8a7796 salvator-x{s} need to add HDMI sound individually.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7796: add HDMI sound support
Kuninori Morimoto [Mon, 23 Apr 2018 01:39:56 +0000 (01:39 +0000)]
arm64: dts: renesas: r8a7796: add HDMI sound support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: add HDMI sound support
Kuninori Morimoto [Mon, 23 Apr 2018 01:39:39 +0000 (01:39 +0000)]
arm64: dts: renesas: r8a7795: add HDMI sound support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Nguyen Viet Dung <nv-dung@jinso.co.jp>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77980: add MMC support
Sergei Shtylyov [Sat, 14 Apr 2018 19:27:04 +0000 (22:27 +0300)]
arm64: dts: renesas: r8a77980: add MMC support

Define the generic R8A77980 part of the MMC0 (SDHI2) device node.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: condor: add EtherAVB pins
Sergei Shtylyov [Fri, 9 Mar 2018 12:09:38 +0000 (15:09 +0300)]
arm64: dts: renesas: condor: add EtherAVB pins

Add the (previously omitted) EtherAVB pin data to the Condor board's
device tree.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: condor: add SCIF0 pins
Sergei Shtylyov [Fri, 9 Mar 2018 12:07:51 +0000 (15:07 +0300)]
arm64: dts: renesas: condor: add SCIF0 pins

Add the (previously omitted) SCIF0 pin data to the Condor board's
device tree.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77980: add PFC support
Sergei Shtylyov [Fri, 9 Mar 2018 12:06:32 +0000 (15:06 +0300)]
arm64: dts: renesas: r8a77980: add PFC support

Define the generic R8A77980 part of the PFC device node.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: v3msk: add EtherAVB pins
Sergei Shtylyov [Wed, 14 Mar 2018 20:30:34 +0000 (23:30 +0300)]
arm64: dts: renesas: v3msk: add EtherAVB pins

Add the (previously omitted) EtherAVB pin data to the V3M Starter Kit
board's device tree.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: eagle: add EtherAVB pins
Sergei Shtylyov [Wed, 14 Mar 2018 19:58:33 +0000 (22:58 +0300)]
arm64: dts: renesas: eagle: add EtherAVB pins

Add the (previously omitted) EtherAVB pin data to the Eagle board's
device tree.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: ulcb: Rename EtherAVB "mdc" pin group to "mdio"
Geert Uytterhoeven [Mon, 12 Mar 2018 15:11:59 +0000 (16:11 +0100)]
arm64: dts: renesas: ulcb: Rename EtherAVB "mdc" pin group to "mdio"

On other Renesas SoCs, the pin group for the MDIO bus is named "mdio"
instead of "mdc".  Fix the inconsistency, now the pinctrl drivers for
R-Car H3, M3-W, and M3-N have gained support for the traditional pin
group name.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: salvator-common: Rename EtherAVB "mdc" pin group to "mdio"
Geert Uytterhoeven [Mon, 12 Mar 2018 15:11:58 +0000 (16:11 +0100)]
arm64: dts: renesas: salvator-common: Rename EtherAVB "mdc" pin group to "mdio"

On other Renesas SoCs, the pin group for the MDIO bus is named "mdio"
instead of "mdc".  Fix the inconsistency, now the pinctrl drivers for
R-Car H3, M3-W, and M3-N have gained support for the traditional pin
group name.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: draak: Rename EtherAVB "mdc" pin group to "mdio"
Geert Uytterhoeven [Mon, 12 Mar 2018 15:12:00 +0000 (16:12 +0100)]
arm64: dts: renesas: draak: Rename EtherAVB "mdc" pin group to "mdio"

On other Renesas SoCs, the pin group for the MDIO bus is named "mdio"
instead of "mdc".  Fix the inconsistency, now the pinctrl drivers for
R-Car H3, M3-W, and M3-N have gained support for the traditional pin
group name.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77995: Enable IPMMU devices
Magnus Damm [Sun, 22 Apr 2018 10:08:41 +0000 (19:08 +0900)]
arm64: dts: renesas: r8a77995: Enable IPMMU devices

Remove 'status = "disabled"' to make sure all IPMMU devices are enabled
in DT on the r8a77995 SoC.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
[simon: rebased]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: Enable IPMMU devices
Magnus Damm [Sun, 22 Apr 2018 10:08:32 +0000 (19:08 +0900)]
arm64: dts: renesas: r8a77970: Enable IPMMU devices

Remove 'status = "disabled"' to make sure all IPMMU devices are enabled
in DT on the r8a77970 SoC.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
[simon: rebased]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7796: Enable IPMMU devices
Magnus Damm [Sun, 22 Apr 2018 10:08:24 +0000 (19:08 +0900)]
arm64: dts: renesas: r8a7796: Enable IPMMU devices

Remove 'status = "disabled"' to make sure all IPMMU devices are enabled
in DT on the r8a7796 SoC.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: Enable IPMMU devices
Magnus Damm [Sun, 22 Apr 2018 10:08:15 +0000 (19:08 +0900)]
arm64: dts: renesas: r8a7795: Enable IPMMU devices

Remove 'status = "disabled"' to make sure all IPMMU devices are enabled
in DT on the r8a7795 SoC.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: Add Renesas Ebisu board support
Takeshi Kihara [Fri, 20 Apr 2018 12:28:17 +0000 (21:28 +0900)]
arm64: dts: renesas: Add Renesas Ebisu board support

Basic support for the Renesas Ebisu board based on R-Car E3:
  - Memory,
  - Main crystal,
  - Serial console,

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[shimoda: rebase and add SPDX-License-Identifier]
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: Add Renesas R8A77990 SoC support
Yoshihiro Shimoda [Fri, 20 Apr 2018 12:28:16 +0000 (21:28 +0900)]
arm64: dts: renesas: Add Renesas R8A77990 SoC support

This patch adds basic support for the Renesas R-Car E3 (R8A77990) SoC:
  - PSCI
  - CPU (single)
  - Cache controller
  - Main clocks and controller
  - Interrupt controller
  - Timer
  - PMU
  - Reset controller
  - Product register
  - System controller
  - UART for console

Inspried by a patch by Takeshi Kihara in the BSP.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: sort subnodes of the soc node
Yoshihiro Kaneko [Wed, 18 Apr 2018 20:14:40 +0000 (05:14 +0900)]
arm64: dts: renesas: r8a77970: sort subnodes of the soc node

Sort subnodes of the soc node.
- The primary key is the bus address.
- The secondary key is the IP block.
- The tertiary key is the node name.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
[simon: rebased; move fcpvd0 to after vspd0]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: sort subnodes of the soc node
Yoshihiro Kaneko [Wed, 18 Apr 2018 20:14:39 +0000 (05:14 +0900)]
arm64: dts: renesas: r8a77965: sort subnodes of the soc node

Sort subnodes of the soc node.
- The primary key is the bus address.
- The secondary key is the IP block.
- The tertiary key is the node name.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: sort subnodes of the root node
Yoshihiro Kaneko [Wed, 18 Apr 2018 20:14:38 +0000 (05:14 +0900)]
arm64: dts: renesas: r8a77965: sort subnodes of the root node

Sort subnodes of the root node alphanumerically.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77995: sort subnodes of the soc node
Yoshihiro Kaneko [Wed, 18 Apr 2018 20:14:37 +0000 (05:14 +0900)]
arm64: dts: renesas: r8a77995: sort subnodes of the soc node

Sort subnodes of the soc node.
- The primary key is the bus address.
- The secondary key is the IP block.
- The tertiary key is the node name.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77995: sort subnodes of the root node
Yoshihiro Kaneko [Wed, 18 Apr 2018 20:14:36 +0000 (05:14 +0900)]
arm64: dts: renesas: r8a77995: sort subnodes of the root node

Sort subnodes of the root node alphanumerically.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: eagle: Enable HDMI output
Jacopo Mondi [Thu, 12 Apr 2018 08:14:01 +0000 (10:14 +0200)]
arm64: dts: renesas: eagle: Enable HDMI output

Enable HDMI output on Renesas R-Car V3M Eagle board.

The HDMI output is enabled connecting the DU LVDS output to the
transparent LVDS converter THC63LVD1024, and successively routing its
RGB output to the ADV7511W HDMI encoder.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[for THC63LVD1024: ]
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: add LVDS support
Sergei Shtylyov [Thu, 12 Apr 2018 08:14:00 +0000 (10:14 +0200)]
arm64: dts: renesas: r8a77970: add LVDS support

Define the generic R8A77970 part of the LVDS device node.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: add DU support
Sergei Shtylyov [Thu, 12 Apr 2018 08:13:59 +0000 (10:13 +0200)]
arm64: dts: renesas: r8a77970: add DU support

Define the generic R8A77970 part of the DU device node.

Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: add VSPD support
Sergei Shtylyov [Thu, 12 Apr 2018 08:13:58 +0000 (10:13 +0200)]
arm64: dts: renesas: r8a77970: add VSPD support

Describe VSPD0 in the R8A77970 device tree; it will be used by DU in
the next patch...

Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7796: decrease temperature hysteresis
Niklas Söderlund [Tue, 17 Apr 2018 20:54:28 +0000 (22:54 +0200)]
arm64: dts: renesas: r8a7796: decrease temperature hysteresis

To incorporate more tests by the hardware team decrease the hysteresis
value to 1C.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: decrease temperature hysteresis
Niklas Söderlund [Tue, 17 Apr 2018 20:54:27 +0000 (22:54 +0200)]
arm64: dts: renesas: r8a7795: decrease temperature hysteresis

To incorporate more tests by the hardware team decrease the hysteresis
value to 1C.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: Add Renesas R8A77990 Kconfig support
Yoshihiro Shimoda [Wed, 11 Apr 2018 09:35:53 +0000 (18:35 +0900)]
arm64: dts: renesas: Add Renesas R8A77990 Kconfig support

Add configuration option for the R-Car E3 (R8A77990) SoC.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77970: add FCPVD support
Sergei Shtylyov [Fri, 6 Apr 2018 13:08:06 +0000 (15:08 +0200)]
arm64: dts: renesas: r8a77970: add FCPVD support

Describe FCPVD0 in the R8A77970 device tree; it will be used by VSPD0 in
the next patch...

Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add PWM device nodes
Yoshihiro Shimoda [Fri, 23 Mar 2018 11:32:51 +0000 (20:32 +0900)]
arm64: dts: renesas: r8a77965: Add PWM device nodes

This patch adds PWM device nodes for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: Add all MSIOF device nodes
Takeshi Kihara [Fri, 23 Mar 2018 09:19:09 +0000 (10:19 +0100)]
arm64: dts: renesas: r8a77965: Add all MSIOF device nodes

Add the device nodes for all MSIOF SPI controllers.

Based on several similar patches of the R8A7796 device tree
by Geert Uytterhoeven <geert+renesas@glider.be>
and Simon Horman <horms+renesas@verge.net.au>.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[geert: Use numerical power domain indices for initial r8a77965.dtsi]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a7795: sort subnodes of the soc node
Simon Horman [Fri, 23 Mar 2018 10:04:06 +0000 (11:04 +0100)]
arm64: dts: renesas: r8a7795: sort subnodes of the soc node

Sort subnodes of the soc node.
- The primary key is the bus address.
- The secondary key is the IP block.
- The tertiary key is the node name.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
6 years agoarm64: dts: renesas: r8a7795: sort subnodes of the root node
Simon Horman [Fri, 23 Mar 2018 10:04:05 +0000 (11:04 +0100)]
arm64: dts: renesas: r8a7795: sort subnodes of the root node

Sort subnodes of the root node alphanumerically.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

Also remove excessive line-wrapping of interrupts-extended property of
timer node.

This should not have any run-time effect.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
6 years agoarm64: dts: renesas: r8a7796: sort subnodes of the soc node
Simon Horman [Fri, 23 Mar 2018 10:04:08 +0000 (11:04 +0100)]
arm64: dts: renesas: r8a7796: sort subnodes of the soc node

Sort subnodes of the soc node.
- The primary key is the bus address.
- The secondary key is the IP block.
- The tertiary key is the node name.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
6 years agoarm64: dts: renesas: r8a7796: sort subnodes of the root node
Simon Horman [Fri, 23 Mar 2018 10:04:07 +0000 (11:04 +0100)]
arm64: dts: renesas: r8a7796: sort subnodes of the root node

Sort subnodes of the root node alphanumerically.

This is part of an ongoing effort to provide consistent node
order in the DT of Renesas SoCs to improve maintainability.

This should not have any run-time effect.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
6 years agoarm64: dts: renesas: r8a77970: Update IPMMU DS1 bit number
Magnus Damm [Tue, 20 Mar 2018 07:51:07 +0000 (16:51 +0900)]
arm64: dts: renesas: r8a77970: Update IPMMU DS1 bit number

Judging by "R-Car-Gen3-rev0.80" IPMMU IMSSTR register documentation
for [R-Car V3M] the DS1 bit field should be bit 0.

Update the ipmmu-main property to make it match the data sheet.

Fixes: ce3b52a1595b ("arm64: dts: renesas: r8a77970: Add IPMMU device nodes")
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add USB 3.0 peripheral node
Yoshihiro Shimoda [Mon, 19 Mar 2018 12:28:27 +0000 (21:28 +0900)]
arm64: dts: renesas: r8a77965: add USB 3.0 peripheral node

This patch adds USB 3.0 peripheral node for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add USB 3.0 host node
Yoshihiro Shimoda [Mon, 19 Mar 2018 12:28:26 +0000 (21:28 +0900)]
arm64: dts: renesas: r8a77965: add USB 3.0 host node

This patch adds USB 3.0 host node for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add HS-USB node
Yoshihiro Shimoda [Mon, 19 Mar 2018 12:28:25 +0000 (21:28 +0900)]
arm64: dts: renesas: r8a77965: add HS-USB node

This patch adds HS-USB node for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add usb_dmac nodes
Yoshihiro Shimoda [Mon, 19 Mar 2018 12:28:24 +0000 (21:28 +0900)]
arm64: dts: renesas: r8a77965: add usb_dmac nodes

This patch adds USB-DMAC nodes for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add USB 2.0 host nodes
Yoshihiro Shimoda [Mon, 19 Mar 2018 12:28:23 +0000 (21:28 +0900)]
arm64: dts: renesas: r8a77965: add USB 2.0 host nodes

This patch adds USB 2.0 host (EHCI/OHCI) nodes for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add usb3_phy node
Yoshihiro Shimoda [Mon, 19 Mar 2018 12:28:22 +0000 (21:28 +0900)]
arm64: dts: renesas: r8a77965: add usb3_phy node

This patch adds usb3_phy node for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
6 years agoarm64: dts: renesas: r8a77965: add usb2_phy nodes
Yoshihiro Shimoda [Mon, 19 Mar 2018 12:28:21 +0000 (21:28 +0900)]
arm64: dts: renesas: r8a77965: add usb2_phy nodes

This patch add usb2_phy nodes for r8a77965.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>