]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
9 years agoMerge branch 'defconfig-for-v4.1' into next
Simon Horman [Mon, 16 Mar 2015 21:50:44 +0000 (06:50 +0900)]
Merge branch 'defconfig-for-v4.1' into next

9 years agoMerge tag 'renesas-da9063-da9210-quirk-for-v4.1' into next
Simon Horman [Mon, 16 Mar 2015 21:50:29 +0000 (06:50 +0900)]
Merge tag 'renesas-da9063-da9210-quirk-for-v4.1' into next

Renesas ARM Based SoC da9063/da9210 Regulator Quirk for v4.1

The r8a7790/lager and r8a7791/koelsch development boards have da9063 and
da9210 regulators.  Both regulators have their interrupt request lines
tied to the same interrupt pin (IRQ2) on the SoC.

After cold boot or da9063-induced restart, both the da9063 and da9210
seem to assert their interrupt request lines.  Hence as soon as one
driver requests this irq, it gets stuck in an interrupt storm, as it
only manages to deassert its own interrupt request line, and the other
driver hasn't installed an interrupt handler yet.

To handle this, install a quirk that masks the interrupts in both the
da9063 and da9210.  This quirk has to run after the i2c master driver
has been initialized, but before the i2c slave drivers are initialized.
As it depends on i2c, select I2C if one of the affected platforms is
enabled in the kernel config.

9 years agoMerge branch 'heads/dt-for-v4.1' into next
Simon Horman [Wed, 11 Mar 2015 23:53:02 +0000 (08:53 +0900)]
Merge branch 'heads/dt-for-v4.1' into next

9 years agoMerge branch 'heads/soc-cleanup-for-v4.1' into next
Simon Horman [Wed, 11 Mar 2015 23:52:40 +0000 (08:52 +0900)]
Merge branch 'heads/soc-cleanup-for-v4.1' into next

9 years agoMerge tag 'renesas-sh73a0-multiplatform-for-v4.1' into requests/enqueued
Simon Horman [Wed, 11 Mar 2015 23:51:40 +0000 (08:51 +0900)]
Merge tag 'renesas-sh73a0-multiplatform-for-v4.1' into requests/enqueued

Renesas ARM Based SoC sh73a0 Multiplatform Updates for v4.1

* Add multiplatform support to sh73a0 and its kzm9g board
* Use Bus State Controller to enable ethernet for multiplatform sh73a0/kzm9g
* Add PM domain support to multiplatform sh73a0

Conflicts:
arch/arm/boot/dts/Makefile
arch/arm/mach-shmobile/Makefile
arch/arm/mach-shmobile/Makefile.boot
arch/arm/mach-shmobile/include/mach/zboot.h

9 years agoMerge tag 'renesas-r8a73a4-ccf-and-multiplatform-for-v4.1' into requests/enqueued
Simon Horman [Wed, 11 Mar 2015 23:51:27 +0000 (08:51 +0900)]
Merge tag 'renesas-r8a73a4-ccf-and-multiplatform-for-v4.1' into requests/enqueued

Renesas ARM Based SoC r8a73a4 CCF and Multiplatform Updates for v4.1

* Add CCF and them multiplatform support to r8a73a4 SoC and its
  ape6evm board.
* Then remove legacy r8a73a4 SoC and ape6evm board code.

----------------------------------------------------------------
Geert Uytterhoeven (6):
      ARM: shmobile: r8a73a4 dtsi: Add Bus State Controller node
      ARM: shmobile: ape6evm dts: Move Ethernet node to BSC
      ARM: shmobile: r8a73a4: Move pfc node to work around probe ordering bug
      ARM: shmobile: ape6evm dts: Drop console= bootargs parameter
      PM / Domains: R-Mobile SYSC: Document R-Mobile APE6 (r8a73a4) binding
      ARM: shmobile: r8a73a4 dtsi: Add PM domain support

Laurent Pinchart (1):
      ARM: shmobile: r8a73a4: Remove legacy code

Simon Horman (1):
      ARM: shmobile: r8a73a4: ape6evm: Remove legacy platform

Ulrich Hecht (5):
      ARM: shmobile: r8a73a4: Add CPG register bits header
      ARM: shmobile: r8a73a4: Common clock framework DT description
      ARM: shmobile: ape6evm: Disable legacy clock initialization
      ARM: shmobile: r8a73a4: Add MSTP clock assignments to DT
      ARM: shmobile: ape6evm-reference: Remove board C code and DT file

 Documentation/devicetree/bindings/arm/shmobile.txt |   2 -
 .../bindings/power/renesas,sysc-rmobile.txt        |   1 +
 MAINTAINERS                                        |   1 -
 arch/arm/boot/dts/Makefile                         |   2 -
 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts    | 156 -----
 arch/arm/boot/dts/r8a73a4-ape6evm.dts              |  37 +-
 arch/arm/boot/dts/r8a73a4.dtsi                     | 557 ++++++++++++++++-
 arch/arm/configs/ape6evm_defconfig                 | 109 ----
 arch/arm/mach-shmobile/Kconfig                     |  25 -
 arch/arm/mach-shmobile/Makefile                    |   3 -
 arch/arm/mach-shmobile/Makefile.boot               |   2 -
 arch/arm/mach-shmobile/board-ape6evm-reference.c   |  60 --
 arch/arm/mach-shmobile/board-ape6evm.c             | 306 ----------
 arch/arm/mach-shmobile/clock-r8a73a4.c             | 659 ---------------------
 arch/arm/mach-shmobile/r8a73a4.h                   |  17 -
 arch/arm/mach-shmobile/setup-r8a73a4.c             | 273 +--------
 include/dt-bindings/clock/r8a73a4-clock.h          |  62 ++
 17 files changed, 615 insertions(+), 1657 deletions(-)
 delete mode 100644 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
 delete mode 100644 arch/arm/configs/ape6evm_defconfig
 delete mode 100644 arch/arm/mach-shmobile/board-ape6evm-reference.c
 delete mode 100644 arch/arm/mach-shmobile/board-ape6evm.c
 delete mode 100644 arch/arm/mach-shmobile/clock-r8a73a4.c
 delete mode 100644 arch/arm/mach-shmobile/r8a73a4.h
 create mode 100644 include/dt-bindings/clock/r8a73a4-clock.h

Conflicts:
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/Makefile

9 years agoARM: shmobile: r8a7740: Remove restart callback
Geert Uytterhoeven [Mon, 23 Feb 2015 15:59:28 +0000 (16:59 +0100)]
ARM: shmobile: r8a7740: Remove restart callback

Remove the restart handling hack from the r8a7740 generic multiplatform
case.

Restart on DT-based r8a7740 platforms is now handled through the
R-Mobile reset driver.

This reverts commit 1174c712afa2779f ("ARM: shmobile: r8a7740: Add
restart callback").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set
Geert Uytterhoeven [Mon, 26 Jan 2015 16:21:14 +0000 (17:21 +0100)]
ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set

Since commit e042681894b62d60 ("ARM: shmobile: r8a7790: Remove legacy
code"), all R-Car Gen2 SoCs are supported by multiplatform kernels only.
As CONFIG_COMMON_CLK is always set for multiplatform kernels, we can
remove related #ifdefs in code specific to R-Car Gen2 SoCs.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: Remove stray closing parenthesis in debug description
Geert Uytterhoeven [Thu, 26 Feb 2015 10:29:35 +0000 (11:29 +0100)]
ARM: shmobile: Remove stray closing parenthesis in debug description

Remove the stray closing parenthesis in the config description for the
DEBUG_RCAR_GEN2_SCIF0 option.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoMerge tag 'renesas-dt2-for-v4.1' into requests/merged
Simon Horman [Wed, 11 Mar 2015 23:39:48 +0000 (08:39 +0900)]
Merge tag 'renesas-dt2-for-v4.1' into requests/merged

Second Round of Renesas ARM Based SoC DT Updates for v4.1

* ape6evm board
  - Configure GPIO keys as wake-up source
  - Enable pull-up for GPIO switches
  - Correct polarity of LEDs
* r8a7791 SoC
  - Correct IPMMU-GP clock to device tree
* r8a7794 SoC
  - Correct ethernet controller PHY IRQ
* lager, koelsch and marzen boards
  - Add DU external pixel clock to DT
* lager board
  - Add HDMI output support to DT
* r8a7791 and r8a7790 SoCs
  - Tidy up SDHI register size in DT
  - Reference DMA channels for SDHI in DT

9 years agoMerge tag 'renesas-r8a7778-ccf-and-multiplatform-for-v4.1' into requests/merged
Simon Horman [Wed, 11 Mar 2015 23:38:39 +0000 (08:38 +0900)]
Merge tag 'renesas-r8a7778-ccf-and-multiplatform-for-v4.1' into requests/merged

Renesas ARM Based SoC r8a7778 CCF and Multiplatform Updates for v4.1

* Add CCF and them multiplatform support to r8a7778 SoC and its
  bockw board.

9 years agoARM: shmobile: lager: Add da9063 PMIC device node for system restart
Geert Uytterhoeven [Mon, 9 Mar 2015 20:06:57 +0000 (21:06 +0100)]
ARM: shmobile: lager: Add da9063 PMIC device node for system restart

Add a device node for the da9063 PMIC, with subnodes for rtc and wdt.
Regulator support is not yet included.

This allows the system to be restarted when the watchdog timer times
out, or when a system restart is requested.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: lager dts: Add da9210 regulator interrupt
Geert Uytterhoeven [Mon, 9 Mar 2015 20:06:56 +0000 (21:06 +0100)]
ARM: shmobile: lager dts: Add da9210 regulator interrupt

The da9210 regulator is connected to IRQ2. Reflect this in its device
node, so the driver can use it when it gains interrupt support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: koelsch: Add da9063 PMIC device node for system restart
Geert Uytterhoeven [Mon, 9 Mar 2015 20:06:55 +0000 (21:06 +0100)]
ARM: shmobile: koelsch: Add da9063 PMIC device node for system restart

Add a device node for the da9063 PMIC, with subnodes for rtc and wdt.
Regulator support is not yet included.

This allows the system to be restarted when the watchdog timer times
out, or when a system restart is requested.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: koelsch dts: Add da9210 regulator interrupt
Geert Uytterhoeven [Mon, 9 Mar 2015 20:06:54 +0000 (21:06 +0100)]
ARM: shmobile: koelsch dts: Add da9210 regulator interrupt

The da9210 regulator is connected to IRQ2. Reflect this in its device
node, so the driver can use it when it gains interrupt support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: R-Car Gen2: Add da9063/da9210 regulator quirk
Geert Uytterhoeven [Mon, 9 Mar 2015 19:50:40 +0000 (20:50 +0100)]
ARM: shmobile: R-Car Gen2: Add da9063/da9210 regulator quirk

The r8a7790/lager and r8a7791/koelsch development boards have da9063 and
da9210 regulators.  Both regulators have their interrupt request lines
tied to the same interrupt pin (IRQ2) on the SoC.

After cold boot or da9063-induced restart, both the da9063 and da9210
seem to assert their interrupt request lines.  Hence as soon as one
driver requests this irq, it gets stuck in an interrupt storm, as it
only manages to deassert its own interrupt request line, and the other
driver hasn't installed an interrupt handler yet.

To handle this, install a quirk that masks the interrupts in both the
da9063 and da9210.  This quirk has to run after the i2c master driver
has been initialized, but before the i2c slave drivers are initialized.
As it depends on i2c, select I2C if one of the affected platforms is
enabled in the kernel config.

On koelsch, the following happens:

  - Cold boot or reboot using the da9063 restart handler:

IRQ2 is asserted, installing da9063/da9210 regulator quirk
...
i2c i2c-6: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
i2c 6-0058: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
i2c 6-0058: Detected da9063
i2c 6-0058: Masking da9063 interrupt sources
i2c 6-0068: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
i2c 6-0068: Detected da9210
i2c 6-0068: Masking da9210 interrupt sources
i2c 6-0068: IRQ2 is not asserted, removing quirk

  - Warm boot (reset button):

rcar_gen2_regulator_quirk: IRQ2 is not asserted, not installing quirk

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7791: sound enables Audio DMAC entry on DTSI
Kuninori Morimoto [Tue, 10 Mar 2015 01:40:27 +0000 (01:40 +0000)]
ARM: shmobile: r8a7791: sound enables Audio DMAC entry on DTSI

This patch adds Audio DMAC (= rcar-dmac) entry for sound

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7790: sound enables Audio DMAC entry on DTSI
Kuninori Morimoto [Tue, 10 Mar 2015 01:40:13 +0000 (01:40 +0000)]
ARM: shmobile: r8a7790: sound enables Audio DMAC entry on DTSI

This patch adds Audio DMAC (= rcar-dmac) entry for sound

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7791: enable Audio DMAC peri peri via sound driver
Kuninori Morimoto [Tue, 10 Mar 2015 01:39:55 +0000 (01:39 +0000)]
ARM: shmobile: r8a7791: enable Audio DMAC peri peri via sound driver

Audio DMAC peri peri is no longer DMAEngine. it is supported by
sound driver. this patch enable it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7790: enable Audio DMAC peri peri via sound driver
Kuninori Morimoto [Tue, 10 Mar 2015 01:39:39 +0000 (01:39 +0000)]
ARM: shmobile: r8a7790: enable Audio DMAC peri peri via sound driver

Audio DMAC peri peri is no longer DMAEngine. it is supported by
sound driver. this patch enable it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7791: add reg-names for sound
Kuninori Morimoto [Tue, 10 Mar 2015 01:39:18 +0000 (01:39 +0000)]
ARM: shmobile: r8a7791: add reg-names for sound

Rensas R-Car sound driver supports reg-names.
Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7790: add reg-names for sound
Kuninori Morimoto [Tue, 10 Mar 2015 01:39:01 +0000 (01:39 +0000)]
ARM: shmobile: r8a7790: add reg-names for sound

Rensas R-Car sound driver supports reg-names.
Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source
Geert Uytterhoeven [Fri, 27 Feb 2015 17:48:39 +0000 (18:48 +0100)]
ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches
Geert Uytterhoeven [Fri, 27 Feb 2015 17:48:38 +0000 (18:48 +0100)]
ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches

The switches on r8a73a4/ape6evm do not have pull-up registers.  The
schematics say: "Need to use APE6 internal PullUp", hence enable pull-up
using pinctrl.

Without this, the switches don't really work, as the GPIO inputs are
more likely to pick up ghost signals through capacitive coupling than
actual keypresses.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoMerge tag 'renesas-soc-for-v4.1' into requests/merged
Simon Horman [Thu, 5 Mar 2015 00:41:56 +0000 (09:41 +0900)]
Merge tag 'renesas-soc-for-v4.1' into requests/merged

Renesas ARM Based SoC Updates for v4.1

* Do not make CMA reservation for R-Car Gen2 when HIGHMEM=n

9 years agoMerge tag 'renesas-soc-cleanup-for-v4.1' into requests/merged
Simon Horman [Thu, 5 Mar 2015 00:41:47 +0000 (09:41 +0900)]
Merge tag 'renesas-soc-cleanup-for-v4.1' into requests/merged

Renesas ARM Based SoC Cleanup for v4.1

* Remove redundant cpu_disable implementation from r8a7779 SoC
* Remove mach/{uncompress,clkdev,system}.h

9 years agoMerge tag 'renesas-sh7372-soc-removal-for-v4.1' into requests/merged
Simon Horman [Thu, 5 Mar 2015 00:41:38 +0000 (09:41 +0900)]
Merge tag 'renesas-sh7372-soc-removal-for-v4.1' into requests/merged

Renesas ARM Based SoC sh7372 SoC Removal Updates for v4.1

* Remove the sh7372 SoC and its mackerel board

9 years agoMerge tag 'renesas-dt-for-v4.1' into requests/merged
Simon Horman [Thu, 5 Mar 2015 00:41:29 +0000 (09:41 +0900)]
Merge tag 'renesas-dt-for-v4.1' into requests/merged

Renesas ARM Based SoC DT Updates for v4.1

* Increase hardware coverage of DT for various SoCs
* Add PFC information for emev2 SoC
* Remap entire APMU region for r8a7791 and r8a7790 SoCs
* Declare the full 512 MiB of RAM for kzm9g board
* Add selectable sources to DIV6 clocks to sh73a0 SoC
* Add missing INTCA0 clock for irqpin module on sh73a0 SoC
* Set control-parent for all irqpin node on sh73a0 SoC

9 years agoMerge tag 'renesas-simple-pm-bus-for-v4.1' into requests/merged
Simon Horman [Thu, 5 Mar 2015 00:41:22 +0000 (09:41 +0900)]
Merge tag 'renesas-simple-pm-bus-for-v4.1' into requests/merged

Renesas ARM Based SoC Simple PM Bus Updates for v4.1

* Add Simple Power-Managed Bus Driver

9 years agoMerge tag 'renesas-sh-drivers-for-v4.0' into requests/merged
Simon Horman [Thu, 5 Mar 2015 00:41:14 +0000 (09:41 +0900)]
Merge tag 'renesas-sh-drivers-for-v4.0' into requests/merged

SH Drivers Updates for v4.0

* Disable PM runtime for multi-platform r8a7740 with genpd

9 years agoARM: shmobile: Enable bockw board in multiplatform defconfig
Geert Uytterhoeven [Wed, 4 Mar 2015 12:14:20 +0000 (13:14 +0100)]
ARM: shmobile: Enable bockw board in multiplatform defconfig

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree
Ryo Kataoka [Thu, 19 Feb 2015 13:29:06 +0000 (22:29 +0900)]
ARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree

Signed-off-by: Ryo Kataoka <ryo.kataoka.wt@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7794: alt: Fix ethernet controller PHY IRQ line
Laurent Pinchart [Thu, 26 Feb 2015 14:08:33 +0000 (16:08 +0200)]
ARM: shmobile: r8a7794: alt: Fix ethernet controller PHY IRQ line

The PHY IRQ line is connected to external IRQ8, not IRQ0. Fix DT
accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: enable multiplatform target
Ulrich Hecht [Thu, 26 Feb 2015 16:42:13 +0000 (17:42 +0100)]
ARM: shmobile: r8a7778: enable multiplatform target

Adds config option and enables DTB building.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: bockw: add sound to DT
Ulrich Hecht [Thu, 26 Feb 2015 16:42:12 +0000 (17:42 +0100)]
ARM: shmobile: bockw: add sound to DT

Adds sound card using the ak4643 codec.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: add sound to DT
Ulrich Hecht [Thu, 26 Feb 2015 16:42:11 +0000 (17:42 +0100)]
ARM: shmobile: r8a7778: add sound to DT

Adds an entry for an R-Car Gen. 1 sound controller.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
[horms: Removed undocumented "renesas,rcar_sound" compat string]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: lager: Add DU external pixel clocks to DT
Laurent Pinchart [Thu, 26 Feb 2015 09:21:22 +0000 (11:21 +0200)]
ARM: shmobile: lager: Add DU external pixel clocks to DT

Declare the fixed 148.5MHz pixel clocks connected to the DU clock
inputs.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: koelsch: Add DU external pixel clocks to DT
Laurent Pinchart [Thu, 26 Feb 2015 09:21:23 +0000 (11:21 +0200)]
ARM: shmobile: koelsch: Add DU external pixel clocks to DT

Declare the fixed 148.5MHz pixel clocks connected to the DU clock
inputs.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: marzen: Add DU external pixel clock to DT
Laurent Pinchart [Thu, 26 Feb 2015 09:21:21 +0000 (11:21 +0200)]
ARM: shmobile: marzen: Add DU external pixel clock to DT

Declare the fixed 65MHz pixel clock connected to the DU clock input.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: ape6evm dts: Fix polarity of LEDs
Geert Uytterhoeven [Thu, 26 Feb 2015 10:46:29 +0000 (11:46 +0100)]
ARM: shmobile: ape6evm dts: Fix polarity of LEDs

While the LEDs on r8a73a4/ape6evm are tied to VSUPPLY, they're driven by
an N-channel MOSFET. Hence the GPIO signal should be active high.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: bockw: add devices hooked up to i2c0 to DT
Ulrich Hecht [Thu, 26 Feb 2015 16:42:09 +0000 (17:42 +0100)]
ARM: shmobile: bockw: add devices hooked up to i2c0 to DT

Cameras, RTC, and ak4643 sound codec.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoDT: i2c: add trivial binding for OKI ML86V7667 video decoder
Ulrich Hecht [Thu, 26 Feb 2015 16:42:08 +0000 (17:42 +0100)]
DT: i2c: add trivial binding for OKI ML86V7667 video decoder

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: common clock framework CPG driver
Ulrich Hecht [Thu, 26 Feb 2015 16:42:07 +0000 (17:42 +0100)]
ARM: shmobile: r8a7778: common clock framework CPG driver

Driver for the r8a7778's clocks that depend on the mode bits.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: bockw dts: set extal clock frequency
Ulrich Hecht [Mon, 16 Feb 2015 16:58:59 +0000 (17:58 +0100)]
ARM: shmobile: bockw dts: set extal clock frequency

Sets the extal clock to the frequency of the oscillator installed by
default (33 MHz).

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: bockw dts: Move Ethernet node to BSC
Ulrich Hecht [Mon, 16 Feb 2015 16:58:58 +0000 (17:58 +0100)]
ARM: shmobile: bockw dts: Move Ethernet node to BSC

Move the Ethernet node to the new BSC node, as its connected to the
Bus State Controller.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
[horms: dropped compat string changes as they seem out of scope]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: lager: Add DU HDMI output support
Laurent Pinchart [Wed, 10 Dec 2014 23:42:11 +0000 (01:42 +0200)]
ARM: shmobile: lager: Add DU HDMI output support

Add DT nodes for the ADV7511 HDMI encoder and its HDMI output connector.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7791: Fix HSUSB clock to hp_clk from mp_clk
Kazuya Mizuguchi [Thu, 19 Feb 2015 15:43:10 +0000 (10:43 -0500)]
ARM: shmobile: r8a7791: Fix HSUSB clock to hp_clk from mp_clk

HSUSB uses hp_clk rather than mp_clk for H/W register access.

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
[horms: updated changelog]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7790: Fix HSUSB clock to hp_clk from mp_clk
Kazuya Mizuguchi [Thu, 19 Feb 2015 15:42:55 +0000 (10:42 -0500)]
ARM: shmobile: r8a7790: Fix HSUSB clock to hp_clk from mp_clk

HSUSB uses hp_clk rather than mp_clk for H/W register access.

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
[horms: updated changelog]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7791: tidyup SDHI register size on DTSI
Kuninori Morimoto [Tue, 24 Feb 2015 02:20:52 +0000 (02:20 +0000)]
ARM: shmobile: r8a7791: tidyup SDHI register size on DTSI

r8a7791 SDHI ch0/ch1 has SD_DMACR which is located in 0x324.
This patch updates register size

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7790: tidyup SDHI register size on DTSI
Kuninori Morimoto [Tue, 24 Feb 2015 02:20:37 +0000 (02:20 +0000)]
ARM: shmobile: r8a7790: tidyup SDHI register size on DTSI

r8a7790 SDHI ch0/ch1 has SD_DMACR which is located in 0x324.
This patch updates register size

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7791: Reference DMA channels in SDHI DT nodes
Laurent Pinchart [Tue, 24 Feb 2015 02:20:19 +0000 (02:20 +0000)]
ARM: shmobile: r8a7791: Reference DMA channels in SDHI DT nodes

Add references to the transmit and receive DMA channels in the three
SDHI nodes.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes
Laurent Pinchart [Tue, 24 Feb 2015 02:20:03 +0000 (02:20 +0000)]
ARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes

Add references to the transmit and receive DMA channels in the four
SDHI nodes.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a73a4: Remove legacy code
Laurent Pinchart [Thu, 19 Feb 2015 17:48:03 +0000 (18:48 +0100)]
ARM: shmobile: r8a73a4: Remove legacy code

All r8a73a4 boards are now used with multiplatform kernels only. We can
remove all the unused r8a73a4 legacy device and clock registration code.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a73a4 dtsi: Add PM domain support
Geert Uytterhoeven [Tue, 17 Feb 2015 15:43:02 +0000 (16:43 +0100)]
ARM: shmobile: r8a73a4 dtsi: Add PM domain support

Add a device node for the System Controller, with subnodes that
represent the hardware power area hierarchy.
Hook up all devices to their respective PM domains.

Add a minimal device node for the Coresight-ETM hardware block, and
hook it up to the D4 PM domain, so the R-Mobile System Controller
driver can keep the domain powered, until the new Coresight code
handles runtime PM.

The System Controller is also used by the R-Mobile Reset driver, which
can now restart the system.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: defconfig: Drop useless SERIAL_8250_EXTENDED=y
Geert Uytterhoeven [Tue, 24 Feb 2015 14:09:24 +0000 (15:09 +0100)]
ARM: shmobile: defconfig: Drop useless SERIAL_8250_EXTENDED=y

SERIAL_8250_EXTENDED only serves as a guard for other Kconfig options,
none of which is enabled in shmobile_defconfig.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh73a0: Remove restart callback
Geert Uytterhoeven [Mon, 23 Feb 2015 15:59:29 +0000 (16:59 +0100)]
ARM: shmobile: sh73a0: Remove restart callback

Remove the restart handling hack from the sh73a0 generic multiplatform
case.

Restart on DT-based sh73a0 platforms is now handled through the
R-Mobile reset driver.

This basically reverts commit cad900819fba0176 ("ARM: shmobile: sh73a0:
Add restart callback").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh73a0 dtsi: Add PM domain support
Geert Uytterhoeven [Tue, 17 Feb 2015 15:31:38 +0000 (16:31 +0100)]
ARM: shmobile: sh73a0 dtsi: Add PM domain support

Add a device node for the System Controller, with subnodes that
represent the hardware power area hierarchy.
Hook up all devices to their respective PM domains.

Note that unlike on R-Mobile A1 (r8a7740), PM domain D4 can be powered
down without ill effects on s2ram behavior, just like on SH-Mobile AP4
(sh7372).  Hence we can postpone adding a (minimal) device node for the
Coresight-ETM hardware block.

The System Controller is also used by the R-Mobile Reset driver, which
can now restart the system.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh73a0: Remove unused sh73a0_add_standard_devices_dt()
Geert Uytterhoeven [Tue, 17 Feb 2015 14:52:40 +0000 (15:52 +0100)]
ARM: shmobile: sh73a0: Remove unused sh73a0_add_standard_devices_dt()

"ARM: shmobile: kzm9g-reference: Remove board C code and DT file"
removed the last user of sh73a0_add_standard_devices_dt(). Hence remove
this function.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node
Geert Uytterhoeven [Tue, 17 Feb 2015 14:52:39 +0000 (15:52 +0100)]
ARM: shmobile: sh73a0 dtsi: Add Cortex-A9 TWD node

Add a node for the Private Timer and Watchdog, as found in the Cortex-A9
MPCore.

Without this, there's no clocksource available during early kernel
initialization, before cmt1 is initialized, leading to a lock-up if
CONFIG_CPU_IDLE=y.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: kzm9g-reference: Remove board C code and DT file
Simon Horman [Mon, 23 Feb 2015 22:10:05 +0000 (07:10 +0900)]
ARM: shmobile: kzm9g-reference: Remove board C code and DT file

Now that the sh73a0 generic multiplatform case has the same feature set
as the kzm9g DT reference board code, we get rid of the latter.
DT reference code in the future shall make use of the sh73a0
multiplatform support code with the generic SoC machine vector.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: kzm9g dts: Move Ethernet node to BSC
Geert Uytterhoeven [Tue, 17 Feb 2015 14:52:37 +0000 (15:52 +0100)]
ARM: shmobile: kzm9g dts: Move Ethernet node to BSC

Move the Ethernet node from the root of the device tree to the BSC node,
as it's connected to the Bus State Controller.  This allows the system
to know the right position of the Ethernet node in the clock and PM
domain hierarchy, and manage the clock and PM domain appropriately.

Also rename the node's name from "lan9220" to "ethernet", to conform to
ePAPR generic name recomendations.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh73a0 dtsi: Add Bus State Controller node
Geert Uytterhoeven [Tue, 17 Feb 2015 14:52:36 +0000 (15:52 +0100)]
ARM: shmobile: sh73a0 dtsi: Add Bus State Controller node

Add a node for the Bus State Controller (BSC) on sh73a0, to which
multiple external devices can be connected.

The BSC is driven by the ZB clock, and located in PM domain A4S.
A reference to the latter will be added later.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: kzm9g: Build DTS for Multiplatform
Magnus Damm [Fri, 9 Jan 2015 13:08:52 +0000 (14:08 +0100)]
ARM: shmobile: kzm9g: Build DTS for Multiplatform

Build the sh73a0 KZM9G board DTB in case of Multiplatform.
The DT reference case will be removed in the future and
can be ignored for now.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: kzm9g dts: Sync with kzm9g-reference dts
Magnus Damm [Fri, 9 Jan 2015 13:08:51 +0000 (14:08 +0100)]
ARM: shmobile: kzm9g dts: Sync with kzm9g-reference dts

Sync the two DTS for the KZM9G board. The target is the file
"sh73a0-kzm9g.dts" and it is made identical to the DT reference
case with the exception of the compatbile string. In the future
the DT reference file will go away.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
[geert: Update for recent changes to sh73a0-kzm9g-reference.dts]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh73a0: Add Multiplatform support
Magnus Damm [Fri, 9 Jan 2015 13:08:50 +0000 (14:08 +0100)]
ARM: shmobile: sh73a0: Add Multiplatform support

Enable sh73a0 Multiplatform support for the generic sh73a0
machine vector. No board support is enabled, and the board
code for KZM9G DT Reference is left by itself.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh73a0: Introduce generic setup callback
Magnus Damm [Fri, 9 Jan 2015 13:08:49 +0000 (14:08 +0100)]
ARM: shmobile: sh73a0: Introduce generic setup callback

Add a generic sh73a0 machine setup callback for the upcoming
sh73a0 multiplatform case. Cache needs to be configured, and
legacy clocks must be omitted.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoMerge branch 'heads/dt-for-v4.1' into sh73a0-multiplatform-for-v4.1.base
Simon Horman [Mon, 23 Feb 2015 23:22:10 +0000 (08:22 +0900)]
Merge branch 'heads/dt-for-v4.1' into sh73a0-multiplatform-for-v4.1.base

9 years agoARM: shmobile: r8a7794: add SDHI DT support
Sergei Shtylyov [Sat, 21 Feb 2015 22:26:37 +0000 (01:26 +0300)]
ARM: shmobile: r8a7794: add SDHI DT support

Define the generic R8A7794 parts of the SDHI[012] device nodes.

Based on the orginal patch by Shinobu Uehara <shinobu.uehara.xc@renesas.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig
Geert Uytterhoeven [Mon, 23 Feb 2015 15:59:27 +0000 (16:59 +0100)]
ARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig

This is used on R-Mobile APE6 (r8a73a4), R-Mobile A1 (r8a7740), and
SH-Mobile AG5 (sh73a0).

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agodrivers: sh: Disable PM runtime for multi-platform r8a7740 with genpd
Geert Uytterhoeven [Wed, 3 Dec 2014 13:41:47 +0000 (14:41 +0100)]
drivers: sh: Disable PM runtime for multi-platform r8a7740 with genpd

If the default PM domain using PM_CLK is used for PM runtime, the real PM
domain(s) cannot be registered from DT later.

Hence do not enable it when running a multi-platform kernel with genpd
support on an r8a7740. The R-Mobile PM domain driver will take care of
PM runtime management of the module clocks.

The default PM domain is still needed for:
  - platforms without genpd support,
  - the legacy (non-DT) case, where genpd may take over later, except
    for the C5 "always on" PM domain.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: No R-Car Gen2 CMA reservation when HIGHMEM=n
Magnus Damm [Wed, 21 Jan 2015 05:01:37 +0000 (14:01 +0900)]
ARM: shmobile: No R-Car Gen2 CMA reservation when HIGHMEM=n

Allow R-Car Gen2 platforms to boot with CMA enabled
and HIGHMEM disabled. This patch adds code to check
if the R-Car Gen2 specific memory reservation window
is included in the kernel memory range or not. When
HIGHMEM is disabled the R-Car Gen2 reservation area is
outside the kernel memory range and in such case the
memory reservation is simply skipped over.

Without this patch the kernel boot hangs when CMA is
enabled and HIGHMEM is disabled on the r8a7791 Koelsch
hardware platform:

    WARNING: CPU: 1 PID: 1 at mm/cma.c:113 cma_init_reserved_areas+0x88/0x1d4()
    ...
    WARNING: CPU: 1 PID: 1 at mm/cma.c:121 cma_init_reserved_areas+0xf8/0x1d4()
    ...
    Unable to handle kernel NULL pointer dereference at virtual address 00000160
    pgd = c0003000
    [00000160] *pgd=80000040004003, *pmd=00000000
    Internal error: Oops: 206 [#1] SMP ARM
    Modules linked in:
    CPU: 1 PID: 1 Comm: swapper/0 Tainted: G        W
3.19.0-rc4-koelsch-01450-g7f9b6075ce12c3ea-dirty #735
    Hardware name: Generic R8A7791 (Flattened Device Tree)
    task: edc553c0 ti: edc56000 task.ti: edc56000
    PC is at set_pfnblock_flags_mask+0x54/0xa0
    LR is at 0x440

In the current shmobile_defconfig HIGHMEM is enabled
while CMA is disabled, so to trigger this the kernel
configuration for both CMA and HIGHMEM needs to be
adjusted.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7779: Remove redundant cpu_disable implementation
Stephen Boyd [Sat, 14 Feb 2015 00:41:01 +0000 (16:41 -0800)]
ARM: shmobile: r8a7779: Remove redundant cpu_disable implementation

By default only the non-boot CPUs can be hotplugged if the
smp_operations structure doesn't have the cpu_disable function
pointer set. r8a7779_cpu_disable() implements the same logic,
only non-boot CPUs can be hotplugged, so it's redundant to
override the default behavior.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: Remove mach/uncompress.h
Magnus Damm [Tue, 20 Jan 2015 11:58:20 +0000 (20:58 +0900)]
ARM: shmobile: Remove mach/uncompress.h

Convert ARCH_SHMOBILE_LEGACY to make use of <debug/uncompress.h>
and remove the now unused <mach/uncompress.h>.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: Remove mach/clkdev.h
Magnus Damm [Tue, 20 Jan 2015 11:58:10 +0000 (20:58 +0900)]
ARM: shmobile: Remove mach/clkdev.h

Move over ARCH_SHMOBILE_LEGACY to use the default legacy ARM
implementations of __clk_get() and __clk_put() in <asm/clkdev.h>
by deselecting HAVE_MACH_CLKDEV. This has the nice side effect
that <mach/clkdev.h> is no longer used and can be removed.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: Remove mach/system.h
Magnus Damm [Tue, 20 Jan 2015 11:58:00 +0000 (20:58 +0900)]
ARM: shmobile: Remove mach/system.h

The file <mach/system.h> is no longer included from anywhere so
clean up the code by removing mach-shmobile/include/mach/system.h

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoDocumentation: Remove ZBOOT MMC/SDHI utility and docs
Magnus Damm [Mon, 26 Jan 2015 06:19:51 +0000 (15:19 +0900)]
Documentation: Remove ZBOOT MMC/SDHI utility and docs

Remove ZBOOT MMC/SDHI Documentation for sh7372 together
wit the vrl4 utility. Without sh7372 and Mackerel support
these files are no longer useful.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh7372 dtsi: Remove Legacy DTSI file
Magnus Damm [Mon, 26 Jan 2015 06:19:41 +0000 (15:19 +0900)]
ARM: shmobile: sh7372 dtsi: Remove Legacy DTSI file

Remove the sh7372 DTSI file for the now unsupported sh7372 SoC.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh7372: Remove DT binding documentation
Magnus Damm [Mon, 26 Jan 2015 06:19:31 +0000 (15:19 +0900)]
ARM: shmobile: sh7372: Remove DT binding documentation

Remove DT compatible string documentation for the now removed sh7372 SoC.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh7372: Remove Legacy C SoC code
Magnus Damm [Mon, 26 Jan 2015 06:19:20 +0000 (15:19 +0900)]
ARM: shmobile: sh7372: Remove Legacy C SoC code

Remove support for the legacy Cortex-A8 based sh7372 SoC.

The Linux kernel still lacks DT bindings for the sh7372 INTC
interrupt controller so DT multiplatform support is not possibile.

Also, the sh7372 SoC never went into mass production anyway so to
aid migration to DT multiplatform simply get rid of sh7372 support.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: sh7372: Remove ZBOOT MMC/SDHI support
Magnus Damm [Mon, 26 Jan 2015 06:19:09 +0000 (15:19 +0900)]
ARM: shmobile: sh7372: Remove ZBOOT MMC/SDHI support

Remove the sh7372 implementation and the shared ZBOOT MMC
and SDHI support code from the compressed ARM boot loader.

With this in place it is no longer possible to boot any
self-contained kernel for sh7372 directly from Mask ROM
via SDHI and MMCIF hardware.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: mackerel: Remove from MAINTAINERS
Magnus Damm [Mon, 26 Jan 2015 06:19:00 +0000 (15:19 +0900)]
ARM: shmobile: mackerel: Remove from MAINTAINERS

Remove the mackerel_defconfig from the MAINTAINERS file.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: mackerel: Remove defconfig
Magnus Damm [Mon, 26 Jan 2015 06:18:49 +0000 (15:18 +0900)]
ARM: shmobile: mackerel: Remove defconfig

Remove the defconfig for the no longer supported mackerel board.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: mackerel: Remove mach-type entry
Magnus Damm [Mon, 26 Jan 2015 06:18:39 +0000 (15:18 +0900)]
ARM: shmobile: mackerel: Remove mach-type entry

Remove the mackerel entry from the mach-types file.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: mackerel: Remove DT binding documentation
Magnus Damm [Mon, 26 Jan 2015 06:18:29 +0000 (15:18 +0900)]
ARM: shmobile: mackerel: Remove DT binding documentation

Remove the DT compatible string documentation for the
no longer supported Mackerel board.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: mackerel dts: Remove Legacy DTS file
Magnus Damm [Mon, 26 Jan 2015 06:18:19 +0000 (15:18 +0900)]
ARM: shmobile: mackerel dts: Remove Legacy DTS file

Remove the DTS file for the no longer supported Mackerel board.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: mackerel: Remove Legacy C board code
Magnus Damm [Mon, 26 Jan 2015 06:18:08 +0000 (15:18 +0900)]
ARM: shmobile: mackerel: Remove Legacy C board code

Remove legacy C code for the sh7372 Mackerel board. There is no
DT multiplatform implementation available for the sh7372 SoC so
simply phase out the board and SoC code support.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: mackerel: Remove ZBOOT code
Magnus Damm [Mon, 26 Jan 2015 06:17:58 +0000 (15:17 +0900)]
ARM: shmobile: mackerel: Remove ZBOOT code

Remove ZBOOT support code for Mackerel. With this patch in place
it is no longer possible to boot a self-contained kernel directly
from the reset vector. ZBOOT is still supported on kzm9g.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778 dtsi: Add Bus State Controller node
Ulrich Hecht [Mon, 16 Feb 2015 16:58:57 +0000 (17:58 +0100)]
ARM: shmobile: r8a7778 dtsi: Add Bus State Controller node

Add a node for the Bus State Controller (BSC) on r8a7778, to which
multiple external devices can be connected.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: bockw: add USB, VIN pin descriptions to DT
Ulrich Hecht [Mon, 16 Feb 2015 16:58:53 +0000 (17:58 +0100)]
ARM: shmobile: bockw: add USB, VIN pin descriptions to DT

Adds pin control info for USB host and video-in devices.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: add internal ethernet controller to DT
Ulrich Hecht [Mon, 16 Feb 2015 16:58:52 +0000 (17:58 +0100)]
ARM: shmobile: r8a7778: add internal ethernet controller to DT

Internal Ethernet controller DT entry with clock information.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: add MSTP clock assignments to DT
Ulrich Hecht [Mon, 16 Feb 2015 16:58:50 +0000 (17:58 +0100)]
ARM: shmobile: r8a7778: add MSTP clock assignments to DT

Assigns clocks to i2c*, tmu*, scif*, mmcif, sdhi*, and hspi*.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: implement SoC and board CCF support
Ulrich Hecht [Mon, 16 Feb 2015 16:58:49 +0000 (17:58 +0100)]
ARM: shmobile: r8a7778: implement SoC and board CCF support

Disables the legacy clock framework and passes the mode bits to the CPG
driver if CCF is enabled.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: Common clock framework DT description
Ulrich Hecht [Mon, 16 Feb 2015 16:58:47 +0000 (17:58 +0100)]
ARM: shmobile: r8a7778: Common clock framework DT description

Declares all r8a7778 clocks supported by the legacy clock framework,
plus tmu2.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
[horms: only included dtsi changes]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: add CPG register bits header
Ulrich Hecht [Mon, 16 Feb 2015 16:58:46 +0000 (17:58 +0100)]
ARM: shmobile: r8a7778: add CPG register bits header

Enumerates CPG driver custom clocks and MSTP clock enable bits.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a7778: synchronize dts with reference platform
Ulrich Hecht [Mon, 16 Feb 2015 16:58:45 +0000 (17:58 +0100)]
ARM: shmobile: r8a7778: synchronize dts with reference platform

This moves everything to the legacy dts that is missing there to make it
suitable for use with multiplatform.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoPM / Domains: R-Mobile SYSC: Document R-Mobile APE6 (r8a73a4) binding
Geert Uytterhoeven [Tue, 17 Feb 2015 15:43:01 +0000 (16:43 +0100)]
PM / Domains: R-Mobile SYSC: Document R-Mobile APE6 (r8a73a4) binding

R-Mobile APE6 (r8a73a4) is handled fine by the same driver and bindings.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: ape6evm dts: Drop console= bootargs parameter
Geert Uytterhoeven [Tue, 17 Feb 2015 15:04:46 +0000 (16:04 +0100)]
ARM: shmobile: ape6evm dts: Drop console= bootargs parameter

Since ("ARM: shmobile: r8a73a4: ape6evm: Remove legacy platform"),
ape6evm is restricted to booting from DT, so chosen/stdout-path is
always used, and we can drop the "console=" parameter from
chosen/bootargs.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a73a4: ape6evm: Remove legacy platform
Simon Horman [Mon, 23 Feb 2015 21:38:14 +0000 (06:38 +0900)]
ARM: shmobile: r8a73a4: ape6evm: Remove legacy platform

This removes the remains of the legacy ape6evm platform.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: ape6evm-reference: Remove board C code and DT file
Ulrich Hecht [Tue, 17 Feb 2015 15:04:44 +0000 (16:04 +0100)]
ARM: shmobile: ape6evm-reference: Remove board C code and DT file

Now that the r8a73a4 generic multiplatform case has the same features as the
APE6EVM DT reference board code, we get rid of the latter.  DT reference
code in the future shall make use of the r8a73a4 multiplatform support code
with the generic SoC machine vector.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[geert: Update Documentation/devicetree/bindings/arm/shmobile.txt]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
9 years agoARM: shmobile: r8a73a4: Move pfc node to work around probe ordering bug
Geert Uytterhoeven [Tue, 17 Feb 2015 15:04:43 +0000 (16:04 +0100)]
ARM: shmobile: r8a73a4: Move pfc node to work around probe ordering bug

Currently the pin function controller (which is also a GPIO controller)
is instantiated before the interrupt controllers due to the order in the
DTS. At that time, the irq domains for the interrupt controllers
referenced by its interrupts-extended property cannot be found yet:

    irq: no irq domain found for /interrupt-controller@e61c0000 !

Nevertheless, the core OF probing code ignores this failure, besides a
debug message that's not normally printed:

    not all legacy IRQ resources mapped for pfc

and continues initialization of the device. Then, the sh-pfc driver
cannot find any IRQ resources, and thinks no interrupts are available,
causing gpio-keys to fail later:

    gpio-keys keyboard: Unable to claim irq 0; error -22
    gpio-keys: probe of keyboard failed with error -22

Move the pin function controller node after the interrupt controller
nodes it references to work around the bug in the core OF probing code.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>