GitHub/moto-9609/android_kernel_motorola_exynos9610.git
8 years agoMerge tag 'zynq-soc-for-4.10' of https://github.com/Xilinx/linux-xlnx into next/soc
Olof Johansson [Wed, 7 Dec 2016 20:35:46 +0000 (12:35 -0800)]
Merge tag 'zynq-soc-for-4.10' of https://github.com/Xilinx/linux-xlnx into next/soc

arm: Xilinx Zynq patches for v4.10

- Fix dma issue

* tag 'zynq-soc-for-4.10' of https://github.com/Xilinx/linux-xlnx:
  ARM: zynq: Reserve correct amount of non-DMA RAM

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'arm-soc/for-4.10/soc' of http://github.com/Broadcom/stblinux into next/soc
Arnd Bergmann [Wed, 30 Nov 2016 16:49:17 +0000 (17:49 +0100)]
Merge tag 'arm-soc/for-4.10/soc' of github.com/Broadcom/stblinux into next/soc

Merge "Broadcom soc changes for 4.10" from Florian Fainelli:

This pull request contains Broadcom ARM-based SoC changes for 4.10, please pull
the following:

- Rafal adds back the abort handler hook on BCM5301x which is required to silence
  errors forwared from the PCIe controller that cannot be silenced at the PCIe RC level

* tag 'arm-soc/for-4.10/soc' of http://github.com/Broadcom/stblinux:
  ARM: BCM5301X: Add back handler ignoring external imprecise aborts

8 years agoMerge tag 'davinci-for-v4.10/soc-3' of git://git.kernel.org/pub/scm/linux/kernel...
Arnd Bergmann [Wed, 30 Nov 2016 13:48:30 +0000 (14:48 +0100)]
Merge tag 'davinci-for-v4.10/soc-3' of git://git./linux/kernel/git/nsekhar/linux-davinci into next/soc

Pull "DaVinci SoC updates for v4.10 (part 3)" from Sekhar Nori:

mach-davinci SoC support updates to adjust
USB ohci device name to that used by drivers
and update of various board files to use gpio
descriptor API used by MMC subsystem for card
detect and write-protect detection.

* tag 'davinci-for-v4.10/soc-3' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
  ARM: davinci: da830-evm: use gpio descriptor for mmc pins
  ARM: davinci: da850-evm: use gpio descriptor for mmc pins
  ARM: davinci: hawk: use gpio descriptor for mmc pins
  ARM: davinci: da8xx: Fix ohci device name

8 years agoMerge tag 'davinci-for-v4.10/soc-2' of git://git.kernel.org/pub/scm/linux/kernel...
Arnd Bergmann [Wed, 30 Nov 2016 13:47:37 +0000 (14:47 +0100)]
Merge tag 'davinci-for-v4.10/soc-2' of git://git./linux/kernel/git/nsekhar/linux-davinci into next/soc

Pull "DaVinci SoC updates for v4.10 (part 2)" from Sekhar Nori:

Adds suspend-to-RAM support for DT boot mode
on DA850.

* tag 'davinci-for-v4.10/soc-2' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
  ARM: davinci: PM: support da8xx DT platforms

8 years agoMerge tag 'davinci-for-v4.10/cleanup-2' of git://git.kernel.org/pub/scm/linux/kernel...
Arnd Bergmann [Wed, 30 Nov 2016 13:45:31 +0000 (14:45 +0100)]
Merge tag 'davinci-for-v4.10/cleanup-2' of git://git./linux/kernel/git/nsekhar/linux-davinci into next/soc

Pull DaVinci cleanup for v4.10 from Sekhar Nori:

mach-davinci cleanup to make it easy to add PM support
for DT-boot.

* tag 'davinci-for-v4.10/cleanup-2' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
  ARM: davinci: PM: fix build when da850 not compiled in
  ARM: davinci: PM: cleanup: remove references to pdata
  ARM: davinci: PM: rework init, remove platform device

8 years agoARM: davinci: da830-evm: use gpio descriptor for mmc pins
Axel Haslam [Thu, 24 Nov 2016 15:04:54 +0000 (16:04 +0100)]
ARM: davinci: da830-evm: use gpio descriptor for mmc pins

Currently the mmc driver is polling the gpio to know if the
card was removed.

By using a gpio descriptor instead of the platform callbacks,
the driver will be able to register the gpio using the mmc core
APIs designed for this purpose.

This has the advantage that an irq will be registered, and
polling is no longer needed. Also, a dependency on platform
callbacks is removed for this board.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
[nsekhar@ti.com: minor commit message edit]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da850-evm: use gpio descriptor for mmc pins
Axel Haslam [Thu, 24 Nov 2016 15:04:53 +0000 (16:04 +0100)]
ARM: davinci: da850-evm: use gpio descriptor for mmc pins

Currently the mmc driver is polling the gpio to know if the
card was removed.

By using a gpio descriptor instead of the platform callbacks,
the driver will be able to register the gpio using the mmc core
APIs designed for this purpose.

This has the advantage that an irq will be registered, and
polling is no longer needed. Also, a dependency on platform
callbacks is removed for this board.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
[nsekhar@ti.com: minor commit message edit]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: hawk: use gpio descriptor for mmc pins
Axel Haslam [Thu, 24 Nov 2016 15:04:52 +0000 (16:04 +0100)]
ARM: davinci: hawk: use gpio descriptor for mmc pins

Currently the mmc driver is polling the gpio to know if the
card was removed.

By using a gpio descriptor instead of the platform callbacks,
the driver will be able to register the gpio using the mmc core
APIs designed for this purpose.

This has the advantage that an irq will be registered, and
polling is no longer needed. Also, a dependency on platform
callbacks is removed for this board.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoMerge tag 'mvebu-soc-4.10-1' of git://git.infradead.org/linux-mvebu into next/soc
Arnd Bergmann [Fri, 25 Nov 2016 23:48:43 +0000 (00:48 +0100)]
Merge tag 'mvebu-soc-4.10-1' of git://git.infradead.org/linux-mvebu into next/soc

Pull "mvebu soc for 4.10 (part 1)" from Gregory CLEMENT:

remove legacy support of orion5x ls-chl

* tag 'mvebu-soc-4.10-1' of git://git.infradead.org/linux-mvebu:
  ARM: orion5x: remove legacy support of ls-chl

8 years agoMerge tag 'oxnas-arm-soc-for-4.10-v2' of https://github.com/OXNAS/linux into next/soc
Arnd Bergmann [Fri, 25 Nov 2016 23:30:46 +0000 (00:30 +0100)]
Merge tag 'oxnas-arm-soc-for-4.10-v2' of https://github.com/OXNAS/linux into next/soc

Pull "ARM: OXNAS SoC updates for 4.10" from Neil Armstrong:

- Add SMP support for the Oxford Semiconductor OX820 SoC
from http://lkml.kernel.org/r/20161021085848.1754-1-narmstrong@baylibre.com

Changes since v1 Pull Request at : http://lkml.kernel.org/r/1305c61f-b1ef-7caf-7788-67e2b907e873@baylibre.com
 - Clarify copyright dates in commit message
 - Remove linux/arch/... lines from the top of the files

* tag 'oxnas-arm-soc-for-4.10-v2' of https://github.com/OXNAS/linux:
  ARM: oxnas: Add OX820 config and makefile entry
  ARM: oxnas: Add OX820 SMP support

8 years agoARM: ARTPEC-6: add select MFD_SYSCON to MACH_ARTPEC6
Niklas Cassel [Fri, 14 Oct 2016 13:08:08 +0000 (15:08 +0200)]
ARM: ARTPEC-6: add select MFD_SYSCON to MACH_ARTPEC6

Since the ARTPEC-6 machine port already uses syscon,
MACH_ARTPEC6 should select MFD_SYSCON.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
8 years agoARM: davinci: da8xx: Fix ohci device name
Axel Haslam [Thu, 3 Nov 2016 16:03:06 +0000 (17:03 +0100)]
ARM: davinci: da8xx: Fix ohci device name

While the clk lookup table is making reference to "ohci"
other subsystems (such as phy) are trying to match "ohci.0"

Since there is a single ohci instance, instead of changing
the clk name, change the dev id to -1, and add the "-da8xx"
postfix to match the driver name that will also be changed
in a subsequent patch.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: oxnas: Add OX820 config and makefile entry
Neil Armstrong [Fri, 9 Sep 2016 10:23:45 +0000 (12:23 +0200)]
ARM: oxnas: Add OX820 config and makefile entry

Refactor the oxnas Kconfig entries among the OX810SE and OX820 configs,
and add the files to support the OX820 SMP feature.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
8 years agoARM: oxnas: Add OX820 SMP support
Neil Armstrong [Fri, 9 Sep 2016 10:23:11 +0000 (12:23 +0200)]
ARM: oxnas: Add OX820 SMP support

The Oxford Semiconductor OX820 is a ARM11MPcore based SoC sharing some
features with the OX810 earlier SoC.
This patch adds the core to wake up the second core.

Clarifications about Copyrights dates :
- hotplug.c was taken from an old versatile code by Ma Haijun and left verbatim
- headsmp.S was taken from an old versatile code and adapted by Ma Haijun
- platsmp.c is a mix from versatile code, Ma Haijun code and my code for DT
Hence the 2002/2003 ARM Coryrights and 2013 Ma Haijun Copyrights.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
8 years agoARM: davinci: PM: fix build when da850 not compiled in
Kevin Hilman [Wed, 16 Nov 2016 16:44:38 +0000 (08:44 -0800)]
ARM: davinci: PM: fix build when da850 not compiled in

Currently, suspend/resume support is only available on da850 platforms,
and the platform PM code has dependencies on da850 functions.  However,
CONFIG_SUSPEND might be enabled even when da850 support is not, causing
build failure:

arch/arm/mach-davinci/built-in.o: In function `davinci_pm_init':
pm_domain.c:(.init.text+0x1fb8): undefined reference to `da8xx_get_mem_ctlr'
pm_domain.c:(.init.text+0x20b0): undefined reference to `da8xx_syscfg1_base'

Fix this by only building the PM core when da850 is enabled.

Reported-by: Sekhar Nori <nsekhar@ti.com>
Fixes: aa9aa1ec2df6 ("ARM: davinci: PM: rework init, remove platform device")
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: orion5x: remove legacy support of ls-chl
Ashley Hughes [Sat, 19 Nov 2016 07:16:39 +0000 (08:16 +0100)]
ARM: orion5x: remove legacy support of ls-chl

This patch removes the legacy support of ls-chl which is converted to the
device tree.

[gregory.clement@free-electrons.com: removal extracted from a wider patch]
Signed-off-by: Ashley Hughes <ashley.hughes@blueyonder.co.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
8 years agoMerge tag 'mvebu-drivers-4.10-1' of git://git.infradead.org/linux-mvebu into next/soc
Olof Johansson [Sat, 19 Nov 2016 01:51:13 +0000 (17:51 -0800)]
Merge tag 'mvebu-drivers-4.10-1' of git://git.infradead.org/linux-mvebu into next/soc

mvebu drivers for 4.10 (part 1)

Clean-up on thegpio driver for old SoCs(non DT)

* tag 'mvebu-drivers-4.10-1' of git://git.infradead.org/linux-mvebu:
  ARM/orion/gpio: Replace three seq_printf() calls by seq_puts() in orion_gpio_dbg_show()

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'renesas-soc2-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Sat, 19 Nov 2016 01:22:54 +0000 (17:22 -0800)]
Merge tag 'renesas-soc2-for-v4.10' of git://git./linux/kernel/git/horms/renesas into next/soc

Second Round of Renesas ARM Based SoC Updates for v4.10

* Basic support for r8a7745 SoC

* tag 'renesas-soc2-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
  ARM: shmobile: document SK-RZG1E board
  ARM: shmobile: r8a7745: basic SoC support

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'omap-for-v4.10/legacy-signed' of git://git.kernel.org/pub/scm/linux/kernel...
Olof Johansson [Sat, 19 Nov 2016 00:49:09 +0000 (16:49 -0800)]
Merge tag 'omap-for-v4.10/legacy-signed' of git://git./linux/kernel/git/tmlind/linux-omap into next/soc

Legacy platform_data removal for omaps for v4.10 merge window.
We've dropped the last legacy boot board-*.c files for mach-omap2
for v4.9 so now we can start removing the unused platform_data.

All of the below has been unused since v4.9 merge window:

- Drop legacy pmic init code
- Apply seq_puts() fixes for legacy mux code, then drop it
- Drop legacy serial init
- Drop legacy i2c init
- Drop legacy PM init
- Drop legacy twl4030 platform init
- Drop legacy USB host init
- Drop legacy muxing for tusb6010, n8x0 is still using it's
  platform init via pdata-quirks.c
- Drop legacy musb init
- Drop hwmod related legacy mux code
- Drop legacy hwmod data for omap3
- Drop legacy smsc911x and smc91x init
- Drop legacy board flash init
- Drop legacy ads7846 init
- Drop legacy sdram timings

* tag 'omap-for-v4.10/legacy-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (21 commits)
  ARM: OMAP2+: Drop legacy sdram timings
  ARM: OMAP2+: Drop legacy ads7846 init
  ARM: OMAP2+: Remove legacy board-flash.c
  ARM: OMAP2+: Remove legacy smsc911x and smc91x GPMC support
  ARM: OMAP2+: Remove legacy data from hwmod for omap3
  ARM: OMAP2+: Remove legacy mux code
  ARM: OMAP2+: Remove legacy hwmod mux code
  ARM: OMAP2+: Remove legacy usb-musb.c platform init code
  ARM: OMAP2+: Remove legacy muxing for usb-tusb6010.c
  ARM: OMAP2+: Remove legacy usb-host.c platform init code
  ARM: OMAP2+: Remove legacy twl4030 platform init code
  ARM: OMAP2+: Remove legacy PM init
  ARM: OMAP2+: Remove legacy i2c.c platform init code
  ARM: OMAP2+: Remove legacy serial.c
  ARM: OMAP2+: mux: Use seq_putc() in omap_mux_dbg_signal_show()
  ARM: OMAP2+: mux: Replace three seq_printf() calls by seq_puts()
  ARM: OMAP: kill omap_pmic_init
  ARM: OMAP2: kill omap2_pmic_init
  ARM: OMAP3: kill omap3_pmic_init
  ARM: OMAP3: kill omap3_pmic_get_config and twl_{get,set}_voltage
  ...

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'omap-for-v4.10/soc-signed' of git://git.kernel.org/pub/scm/linux/kernel...
Olof Johansson [Sat, 19 Nov 2016 00:42:44 +0000 (16:42 -0800)]
Merge tag 'omap-for-v4.10/soc-signed' of git://git./linux/kernel/git/tmlind/linux-omap into next/soc

SoC changes for omaps for v4.10 merge window:

- Add hwmod interconnect target wrapper module data for crypto
  accelerators for am3xxx, am43xx and dra7

- Add support for dra71x family of SoCs

- PM fixes for omap4/5 needed for omap5 cpuidle

* tag 'omap-for-v4.10/soc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: DRA7: hwmod: Do not register RTC on DRA71
  ARM: OMAP2+: board-generic: add support for DRA71x family
  ARM: AMx3xx: hwmod: Add data for RNG
  ARM: AM43xx: hwmod: Add data for DES
  ARM: OMAP: DRA7xx: Make L4SEC clock domain SWSUP only
  ARM: DRA7: hwmod: Add data for RNG IP
  ARM: DRA7: hwmod: Add data for SHA IP
  ARM: DRA7: hwmod: Add data for AES IP
  ARM: DRA7: hwmod: Add data for DES IP
  ARM: OMAP5: Add basic cpuidle MPU CSWR support
  ARM: OMAP4+: Fix bad fallthrough for cpuidle
  ARM: OMAP5: Fix mpuss_early_init
  ARM: OMAP5: Fix build for PM code

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'soc-for-4.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue...
Olof Johansson [Fri, 18 Nov 2016 18:33:36 +0000 (10:33 -0800)]
Merge tag 'soc-for-4.10-1' of git://git./linux/kernel/git/atorgue/stm32 into next/soc

STM32 SOC updates for v4.10, round 1.

Highlights:
----------
 - Add new MCU SOC STM32F746

* tag 'soc-for-4.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32:
  ARM: Kconfig: Introduce MACH_STM32F746 flag
  ARM: mach-stm32: Add a new SOC - STM32F746

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'imx-soc-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo...
Olof Johansson [Fri, 18 Nov 2016 17:59:26 +0000 (09:59 -0800)]
Merge tag 'imx-soc-4.10' of git://git./linux/kernel/git/shawnguo/linux into next/soc

i.MX SoC changes for 4.10:
 - Drop PL310_ERRATA_769419 for Vybrid, as it turns out that the SoC
   integrates revision r3p2 of the L2C-310, which is not affected by
   errata 769419.
 - Support perf for i.MX6 Multi-Mode DDR Controller (MMDC), so that we
   can profile memory access performance.
 - Support i.MX6ULL SoC using i.MX6UL base, since it's a derivative of
   i.MX6UL and pin-to-pin compatible with i.MX6UL.

* tag 'imx-soc-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
  ARM: imx: mach-imx6ul: add imx6ull support
  ARM: imx: Drop errata 769419 for Vybrid
  ARM: imx: mmdc perf function support i.MX6QP
  ARM: imx: Added perf functionality to mmdc driver

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'v4.9-next-kconfig' of https://github.com/mbgg/linux-mediatek into next/soc
Olof Johansson [Fri, 18 Nov 2016 07:46:05 +0000 (23:46 -0800)]
Merge tag 'v4.9-next-kconfig' of https://github.com/mbgg/linux-mediatek into next/soc

- clean up mach-mediatek Makefile as kbuild only descends into the folder if
  ARCH_MEDIATEK is enabled

* tag 'v4.9-next-kconfig' of https://github.com/mbgg/linux-mediatek:
  ARM: mediatek: clean up mach-mediatek/Makefile

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoARM: integrator: drop EBI access use syscon
Linus Walleij [Wed, 9 Nov 2016 08:12:06 +0000 (09:12 +0100)]
ARM: integrator: drop EBI access use syscon

The EBI lookup is not longer in use: this has been moved to the
NAND chip driver. The syscon node is better accessed indirectly
using the regmap like the NAND chip driver does, so let's use
the syscon to set the modem control signals RTS/CTS through the
dedicated syscon register.

We also migrate the decoder status "SC_DEC" register that
enumerate the logic modules using syscon.

Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'pxa-for-4.10' of https://github.com/rjarzmik/linux into next/soc
Olof Johansson [Fri, 18 Nov 2016 07:15:25 +0000 (23:15 -0800)]
Merge tag 'pxa-for-4.10' of https://github.com/rjarzmik/linux into next/soc

This is the pxa changes for v4.10 cycle.

This cycle is covering :
 - some clock fixes common with sa1100 architecture
 - the consequence of the pxa_camera conversion to v4l2
 - a small irq related fix for pxa25x device-tree only

* tag 'pxa-for-4.10' of https://github.com/rjarzmik/linux:
  ARM: pxa: fix pxa25x interrupt init
  ARM: pxa: remove duplicated include from spitz.c
  ARM: pxa: em-x270: use the new pxa_camera platform_data
  ARM: pxa: ezx: use the new pxa_camera platform_data
  ARM: pxa: mioa701: use the new pxa_camera platform_data
  ARM: pxa: pxa_cplds: honor probe deferral
  ARM: sa11x0/pxa: get rid of get_clock_tick_rate
  watchdog: sa11x0/pxa: get rid of get_clock_tick_rate
  ARM: sa11x0/pxa: acquire timer rate from the clock rate
  clk: pxa25x: OSTIMER0 clocks from the main oscillator

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'lpc32xx-cleanup-v4.10' of https://github.com/sylemieux/linux-lpc32xx into...
Olof Johansson [Fri, 18 Nov 2016 01:47:44 +0000 (17:47 -0800)]
Merge tag 'lpc32xx-cleanup-v4.10' of https://github.com/sylemieux/linux-lpc32xx into next/soc

NXP LPC32xx ARM SoC cleanup for v4.10

This includes a few cleanup changes:
* remove unused header file mach/irqs.h;
* remove unused header file clock.h.

* tag 'lpc32xx-cleanup-v4.10' of https://github.com/sylemieux/linux-lpc32xx:
  ARM: lpc32xx: remove unused header file clock.h
  ARM: lpc32xx: remove unused header file mach/irqs.h

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'renesas-soc-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Fri, 18 Nov 2016 01:41:30 +0000 (17:41 -0800)]
Merge tag 'renesas-soc-for-v4.10' of git://git./linux/kernel/git/horms/renesas into next/soc

Renesas ARM Based SoC Updates for v4.10

Enhancements:
* Basic support for r8a7743 SoC; only SoC code so far
* Select errata 798181 for SoCs with CA15 cores

Clean-up:
* Consolidate R8A7743 and R8A779[234] machine definitions

Documentation:
* Add Marzen, Gose and Alt board part numbers to DT bindings
* Document SK-RZG1M board

* tag 'renesas-soc-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
  ARM: shmobile: r8a7779/marzen: Add board part number to DT bindings
  ARM: shmobile: select errata 798181 for SoCs with CA15 cores
  ARM: shmobile: Consolidate R8A7743 and R8A779[234] machine definitions
  ARM: shmobile: r8a7793/gose: Add board part number to DT bindings
  ARM: shmobile: r8a7794/alt: Add board part number to DT bindings
  ARM: shmobile: document SK-RZG1M board
  ARM: shmobile: r8a7743: basic SoC support
  ARM: shmobile: only call rcar_gen2_clocks_init() if present
  ARM: shmobile: Sort Kconfig selections

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoARM: BCM5301X: Add back handler ignoring external imprecise aborts
Rafał Miłecki [Sat, 29 Oct 2016 11:12:29 +0000 (13:12 +0200)]
ARM: BCM5301X: Add back handler ignoring external imprecise aborts

Since early BCM5301X days we got abort handler that was removed by
commit 937b12306ea79 ("ARM: BCM5301X: remove workaround imprecise abort
fault handler"). It assumed we need to deal only with pending aborts
left by the bootloader. Unfortunately this isn't true for BCM5301X.

When probing PCI config space (device enumeration) it is expected to
have master aborts on the PCI bus. Most bridges don't forward (or they
allow disabling it) these errors onto the AXI/AMBA bus but not the
Northstar (BCM5301X) one.

iProc PCIe controller on Northstar seems to be some older one, without
a control register for errors forwarding. It means we need to workaround
this at platform level. All newer platforms are not affected by this
issue.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
8 years agoARM: davinci: PM: support da8xx DT platforms
Kevin Hilman [Tue, 15 Nov 2016 19:54:21 +0000 (11:54 -0800)]
ARM: davinci: PM: support da8xx DT platforms

Add PM support for DA850 device-tree boot.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: PM: cleanup: remove references to pdata
Kevin Hilman [Tue, 15 Nov 2016 19:54:20 +0000 (11:54 -0800)]
ARM: davinci: PM: cleanup: remove references to pdata

Since the PM core code is no longer using a fake platform_device or
platform_data, remove references to 'pdata'.

No functional changes.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: PM: rework init, remove platform device
Kevin Hilman [Tue, 15 Nov 2016 19:54:19 +0000 (11:54 -0800)]
ARM: davinci: PM: rework init, remove platform device

Remove fake platform device used for PM init.  Move pdata values which
are common across all current platforms into pm.c.

Also, since PM is only used on da8xx, remove davinci_pm_init() from
common init code, and only use in da850/omapl138 board files that are
currently creating the fake platform_device.

Suggested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
[nsekhar@ti.com: subject line adjustment]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: Kconfig: Introduce MACH_STM32F746 flag
Alexandre TORGUE [Tue, 15 Nov 2016 11:02:59 +0000 (12:02 +0100)]
ARM: Kconfig: Introduce MACH_STM32F746 flag

This patch introduces the MACH_STM32F746 to make possible to only select
STM32F746 pinctrl driver

By default, all the MACH_STM32Fxxx flags will be set with STM32 defconfig.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
8 years agoARM: mach-stm32: Add a new SOC - STM32F746
Alexandre TORGUE [Tue, 15 Nov 2016 11:02:33 +0000 (12:02 +0100)]
ARM: mach-stm32: Add a new SOC - STM32F746

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
8 years agoARM: shmobile: document SK-RZG1E board
Sergei Shtylyov [Fri, 4 Nov 2016 09:44:38 +0000 (10:44 +0100)]
ARM: shmobile: document SK-RZG1E board

Document the SK-RZG1E device tree bindings, listing it as a supported board.

This allows to use checkpatch.pl to validate .dts files referring to the
SK-RZG1E board.

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>
8 years agoARM: shmobile: r8a7745: basic SoC support
Sergei Shtylyov [Fri, 4 Nov 2016 21:49:55 +0000 (00:49 +0300)]
ARM: shmobile: r8a7745: basic SoC support

Add minimal support for the RZ/G1E (R8A7745) SoC.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
8 years agoARM: imx: mach-imx6ul: add imx6ull support
Peter Chen [Mon, 14 Nov 2016 07:04:21 +0000 (15:04 +0800)]
ARM: imx: mach-imx6ul: add imx6ull support

imx6ull is derived SoC from imx6ul.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
8 years agoMerge branch 'omap-for-v4.10/cpuidle-v2' into omap-for-v4.10/soc
Tony Lindgren [Mon, 14 Nov 2016 23:58:18 +0000 (15:58 -0800)]
Merge branch 'omap-for-v4.10/cpuidle-v2' into omap-for-v4.10/soc

8 years agoARM: zynq: Reserve correct amount of non-DMA RAM
Kyle Roeschley [Mon, 31 Oct 2016 16:26:17 +0000 (11:26 -0500)]
ARM: zynq: Reserve correct amount of non-DMA RAM

On Zynq, we haven't been reserving the correct amount of DMA-incapable
RAM to keep DMA away from it (per the Zynq TRM Section 4.1, it should be
the first 512k). In older kernels, this was masked by the
memblock_reserve call in arm_memblock_init(). Now, reserve the correct
amount excplicitly rather than relying on swapper_pg_dir, which is an
address and not a size anyway.

Fixes: 46f5b96 ("ARM: zynq: Reserve not DMAable space in front of the
kernel")

Signed-off-by: Kyle Roeschley <kyle.roeschley@ni.com>
Tested-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: imx: Drop errata 769419 for Vybrid
Andrey Smirnov [Wed, 9 Nov 2016 16:44:10 +0000 (08:44 -0800)]
ARM: imx: Drop errata 769419 for Vybrid

According to the datasheet, VF610 uses revision r3p2 of the L2C-310
block, same as i.MX6Q+, which does not require a software workaround for
ARM errata 769419.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
8 years agoARM: imx: mmdc perf function support i.MX6QP
Frank Li [Mon, 7 Nov 2016 17:30:48 +0000 (11:30 -0600)]
ARM: imx: mmdc perf function support i.MX6QP

i.MX6QP added new register bit PROFILE_SEL in MADPCR0.
need set it at perf start.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
8 years agoARM: OMAP2+: Drop legacy sdram timings
Tony Lindgren [Thu, 10 Nov 2016 23:07:32 +0000 (16:07 -0700)]
ARM: OMAP2+: Drop legacy sdram timings

These are no longer used. If somebody needs to configure
memory timings for various idle modes, they should be
implemented as a device driver callbacks from the PM
code.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Drop legacy ads7846 init
Tony Lindgren [Thu, 10 Nov 2016 22:46:13 +0000 (15:46 -0700)]
ARM: OMAP2+: Drop legacy ads7846 init

8 years agoARM: OMAP2+: Remove legacy board-flash.c
Javier Martinez Canillas [Fri, 21 Oct 2016 10:43:35 +0000 (03:43 -0700)]
ARM: OMAP2+: Remove legacy board-flash.c

Legacy board files in mach-omap2 used the helper functions
board_{nor,nand,onenand}_init() to initialize the flash
devices attached to the GPMC.

With Device Tree booting the initialization is handled by
the GPMC driver gpmc_probe_*_child() functions so this
code is not needed anymore now that OMAP2+ is DT-only.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy smsc911x and smc91x GPMC support
Javier Martinez Canillas [Fri, 29 Nov 2013 19:18:15 +0000 (20:18 +0100)]
ARM: OMAP2+: Remove legacy smsc911x and smc91x GPMC support

When connecting an ethernet chip to the GPMC, such as smc91x
or smsc911x, a GPIO has to be requested to be used as an IRQ
and also the IO memory for a GPMC chip-select.

When booting with DT the chip-select allocation is handled
in a generic manner in the GPMC driver and the GPIO to IRQ
mapping is made by the DT core so this code is not needed
anymore now that mach-omap2 related boards are DT-only.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy data from hwmod for omap3
Tony Lindgren [Fri, 21 Oct 2016 10:02:12 +0000 (03:02 -0700)]
ARM: OMAP2+: Remove legacy data from hwmod for omap3

This data is now coming from device tree so we can remove the
duplicate data. Let's keep the DSS and DMA related things for now
until those have been converted to device tree completely.

While at it, let's also add the trailing commas to data structures
so further processing with scripts will be a bit easier.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy mux code
Tony Lindgren [Thu, 20 Oct 2016 13:42:19 +0000 (06:42 -0700)]
ARM: OMAP2+: Remove legacy mux code

All the boards booting with device tree use
drivers/pinctrl-single.c instead.

Note that mach-omap1 is still using the legacy mux,
so let's move the related Kconfig options from plat-omap
to mach-omap1.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy hwmod mux code
Tony Lindgren [Thu, 20 Oct 2016 13:35:21 +0000 (06:35 -0700)]
ARM: OMAP2+: Remove legacy hwmod mux code

This is no longer needed when booted with device tree.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy usb-musb.c platform init code
Tony Lindgren [Mon, 17 Oct 2016 07:48:32 +0000 (00:48 -0700)]
ARM: OMAP2+: Remove legacy usb-musb.c platform init code

This is no longer needed when booted with device tree.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy muxing for usb-tusb6010.c
Tony Lindgren [Mon, 17 Oct 2016 07:47:34 +0000 (00:47 -0700)]
ARM: OMAP2+: Remove legacy muxing for usb-tusb6010.c

We are moving to device tree based booting, and this should be
done using pinctrl-single instead.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy usb-host.c platform init code
Tony Lindgren [Mon, 17 Oct 2016 07:44:45 +0000 (00:44 -0700)]
ARM: OMAP2+: Remove legacy usb-host.c platform init code

This is no longer needed when booted with device tree.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy twl4030 platform init code
Tony Lindgren [Mon, 17 Oct 2016 07:30:02 +0000 (00:30 -0700)]
ARM: OMAP2+: Remove legacy twl4030 platform init code

This code is no longer used and can be removed as we
are using device tree.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy PM init
Tony Lindgren [Mon, 17 Oct 2016 07:08:40 +0000 (00:08 -0700)]
ARM: OMAP2+: Remove legacy PM init

This is no longer needed when booted with device tree.
And let's replace cpu_is with soc_is for the PM code to
avoid confusion, they do the same thing.

Note that omap_pmic_late_init() now just calls
omap3_twl_init() and omap4_twl_init() to initialize the
voltage layer so we can remove the remaining references
to twl-common code and remove it in the following patch.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy i2c.c platform init code
Tony Lindgren [Mon, 17 Oct 2016 07:06:54 +0000 (00:06 -0700)]
ARM: OMAP2+: Remove legacy i2c.c platform init code

We can now initialize I2C for mach-omap2 using device tree. And we
can move the remaining code in plat-omap/i2c.c into mach-omap1/i2c.c.

Note that we cannot remove some of the I2C bus reset functions
as they are being used by hwmod code.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: Remove legacy serial.c
Tony Lindgren [Mon, 17 Oct 2016 07:02:23 +0000 (00:02 -0700)]
ARM: OMAP2+: Remove legacy serial.c

We can now initialize the UARTs using device tree.

Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: DRA7: hwmod: Do not register RTC on DRA71
Nishanth Menon [Fri, 21 Oct 2016 10:38:38 +0000 (16:08 +0530)]
ARM: DRA7: hwmod: Do not register RTC on DRA71

RTC is not available on DRA71x, so accessing any of the RTC
register or clkctrl register will lead to a crash. So, do not
register RTC hwmod for DRA71x.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: board-generic: add support for DRA71x family
Lokesh Vutla [Fri, 21 Oct 2016 10:38:37 +0000 (16:08 +0530)]
ARM: OMAP2+: board-generic: add support for DRA71x family

DRA71x processor family is a derivative of DRA722 ES2.0 targetted for
infotainment systems.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: AMx3xx: hwmod: Add data for RNG
Lokesh Vutla [Tue, 18 Oct 2016 07:55:27 +0000 (10:55 +0300)]
ARM: AMx3xx: hwmod: Add data for RNG

Hardware random number generator is present in both AM33xx and AM43xx
SoC's. So moving the hwmod data to common data.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: AM43xx: hwmod: Add data for DES
Lokesh Vutla [Tue, 18 Oct 2016 07:55:26 +0000 (10:55 +0300)]
ARM: AM43xx: hwmod: Add data for DES

AM43xx SoC contains DES crypto hardware accelerator. Add hwmod data for
this IP so that it can be utilized by crypto frameworks.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP: DRA7xx: Make L4SEC clock domain SWSUP only
Joel Fernandes [Tue, 18 Oct 2016 07:55:25 +0000 (10:55 +0300)]
ARM: OMAP: DRA7xx: Make L4SEC clock domain SWSUP only

Using HWSUP for l4sec clock domain is causing warnings in HWMOD code for
DRA7. Based on some observations, once the clock domain goes into an IDLE
state (because of no activity etc), the IDLEST for the module goes to '0x2'
value which means Interface IDLE condition. So far so go, however once the
MODULEMODE is set to disabled for the particular IP, the IDLEST for the
module should go to '0x3', per the HW AUTO IDLE protocol. However this is
not observed and there is no reason per the protocl for the transition to
not happen. This could potentially be a bug in the HW AUTO state-machine.

Work around for this is to use SWSUP only for the particular clockdomain.
With this all the transitions of IDLEST happen correctly and warnings
don't occur.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: DRA7: hwmod: Add data for RNG IP
Joel Fernandes [Tue, 18 Oct 2016 07:55:24 +0000 (10:55 +0300)]
ARM: DRA7: hwmod: Add data for RNG IP

DRA7 SoC contains hardware random number generator. Add hwmod data for
this IP so that it can be utilized.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
[t-kristo@ti.com: squashed the RNG hwmod IP flag fixes from Lokesh,
                  squashed the HS chip fix from Daniel Allred]
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: DRA7: hwmod: Add data for SHA IP
Lokesh Vutla [Tue, 18 Oct 2016 07:55:23 +0000 (10:55 +0300)]
ARM: DRA7: hwmod: Add data for SHA IP

DRA7 SoC contains SHA crypto hardware accelerator. Add hwmod data for
this IP so that it can be utilized by crypto frameworks.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: DRA7: hwmod: Add data for AES IP
Joel Fernandes [Tue, 18 Oct 2016 07:55:22 +0000 (10:55 +0300)]
ARM: DRA7: hwmod: Add data for AES IP

DRA7 SoC contains AES crypto hardware accelerator. Add hwmod data for
this IP so that it can be utilized by crypto frameworks.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
[t-kristo@ti.com: squash in support for both AES1 and AES2 cores]
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: DRA7: hwmod: Add data for DES IP
Joel Fernandes [Tue, 18 Oct 2016 07:55:21 +0000 (10:55 +0300)]
ARM: DRA7: hwmod: Add data for DES IP

DRA7 SoC contains DES crypto hardware accelerator. Add hwmod data for
this IP so that it can be utilized by crypto frameworks.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: mux: Use seq_putc() in omap_mux_dbg_signal_show()
Markus Elfring [Sat, 15 Oct 2016 20:24:29 +0000 (22:24 +0200)]
ARM: OMAP2+: mux: Use seq_putc() in omap_mux_dbg_signal_show()

A single character (line break) should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2+: mux: Replace three seq_printf() calls by seq_puts()
Markus Elfring [Sat, 15 Oct 2016 20:22:09 +0000 (22:22 +0200)]
ARM: OMAP2+: mux: Replace three seq_printf() calls by seq_puts()

Strings which did not contain data format specification should be put into
a sequence. Thus use the corresponding function "seq_puts".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP: kill omap_pmic_init
Nicolae Rosia [Fri, 4 Nov 2016 14:02:18 +0000 (16:02 +0200)]
ARM: OMAP: kill omap_pmic_init

Last user of this function was removed in commit
9b714 ("ARM: OMAP2+: Drop legacy board file for n900") during
legacy board file removal.

Signed-off-by: Nicolae Rosia <Nicolae_Rosia@mentor.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP2: kill omap2_pmic_init
Nicolae Rosia [Fri, 4 Nov 2016 14:02:17 +0000 (16:02 +0200)]
ARM: OMAP2: kill omap2_pmic_init

Last call of function was removed with commit
bfd46a ("ARM: OMAP: Fix i2c init for twl4030")

Signed-off-by: Nicolae Rosia <Nicolae_Rosia@mentor.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP3: kill omap3_pmic_init
Nicolae Rosia [Fri, 4 Nov 2016 14:02:16 +0000 (16:02 +0200)]
ARM: OMAP3: kill omap3_pmic_init

Last user of this function was removed in commit
e92fc4 ("ARM: OMAP2+: Drop legacy board file for LDP") during
legacy board file removal.

Signed-off-by: Nicolae Rosia <Nicolae_Rosia@mentor.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP3: kill omap3_pmic_get_config and twl_{get,set}_voltage
Nicolae Rosia [Fri, 4 Nov 2016 14:02:15 +0000 (16:02 +0200)]
ARM: OMAP3: kill omap3_pmic_get_config and twl_{get,set}_voltage

Last user of these functions was removed in commit
e92fc4 ("ARM: OMAP2+: Drop legacy board file for LDP") during
legacy board file removal.

Signed-off-by: Nicolae Rosia <Nicolae_Rosia@mentor.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP4: kill omap4_pmic_init and omap4_pmic_get_config
Nicolae Rosia [Fri, 4 Nov 2016 14:02:14 +0000 (16:02 +0200)]
ARM: OMAP4: kill omap4_pmic_init and omap4_pmic_get_config

Last user of these functions was deleted in commit
b42b91 ("ARM: OMAP2+: Remove board-omap4panda.c") during DT transition.

Signed-off-by: Nicolae Rosia <Nicolae_Rosia@mentor.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoMerge tag 'davinci-for-v4.10/soc' of git://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Tue, 8 Nov 2016 20:22:33 +0000 (12:22 -0800)]
Merge tag 'davinci-for-v4.10/soc' of git://git./linux/kernel/git/nsekhar/linux-davinci into next/soc

DaVinci SoC support improvements mainly towards an effort to
get to working USB support.

- use CFGCHIP syscon device to access common registers

- define platform data and device tree nodes for newly
  introduced USB phy driver

- clock lookup and auxdata lookup for USB phy and also
  for LCDC (LCD controller)

* tag 'davinci-for-v4.10/soc' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
  ARM: davinci: da8xx: register USB PHY clocks in the DT file
  ARM: davinci: da8xx: add usb phy clocks
  ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for USB phy
  ARM: davinci: da8xx: Add USB device names to clock lookup tables
  ARM: davinci: da8xx: Add USB PHY platform device
  ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for lcdc
  ARM: davinci: da8xx: Add full regulator constraints for non-DT boot
  ARM: davinci: da8xx: Add CFGCHIP syscon platform device

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoMerge tag 'davinci-for-v4.10/cleanup' of git://git.kernel.org/pub/scm/linux/kernel...
Olof Johansson [Tue, 8 Nov 2016 20:21:16 +0000 (12:21 -0800)]
Merge tag 'davinci-for-v4.10/cleanup' of git://git./linux/kernel/git/nsekhar/linux-davinci into next/soc

Clean-up some unnecessary code from mach-davinci.

- Remove now unneeded dma resources where drivers
  are already converted to use the dma_slave_map[]
  structure.

- Remove some duplicated defines related to USB support.

* tag 'davinci-for-v4.10/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
  ARM: davinci: da8xx: Remove duplicated defines
  ARM: davinci: dm365: Remove DMA resources for SPI
  ARM: davinci: dm355: Remove DMA resources for SPI
  ARM: davinci: devices: Remove DMA resources for MMC
  ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoARM: OMAP5: Add basic cpuidle MPU CSWR support
Santosh Shilimkar [Mon, 7 Nov 2016 23:50:11 +0000 (16:50 -0700)]
ARM: OMAP5: Add basic cpuidle MPU CSWR support

Add OMAP5 CPUIDLE support.

This patch adds MPUSS low power states in cpuidle.

        C1 - CPU0 WFI + CPU1 WFI + MPU ON
        C2 - CPU0 RET + CPU1 RET + MPU CSWR

Modified from TI kernel tree commit 605967fd2205 ("ARM: DRA7: PM:
cpuidle MPU CSWR support") except enable cpuidle for omap5 instead
of dra7.

According to Nishanth Menon <nm@ti.com>, cpuidle on dra7 is not
supported properly in the hardware so we don't want to enable it.
However, for omap5 this adds some nice power savings. Note that
the TI 3.8 based tree has other cpuidle states that we may be able
to enable later on.

On omap5-uevm, the power consumption eventually settles down to about
920mW with ehci-omap and ohci-omap3 unloaded compared to about 1.7W
without these patches. Note that it seems to take few minutes after
booting for the idle power to go down to 920mW from 1.3W, no idea so
far what might be causing that.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
[ j-keerthy@ti.com rework on 3.14]
Signed-off-by: Keerthy <j-keerthy@ti.com>
[nm@ti.com: updates based on profiling]
[tony@atomide.com: dropped CPUIDLE_FLAG_TIME_VALID no longer used,
changed for omap5 only as requested by Nishanth, updated comments]
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP4+: Fix bad fallthrough for cpuidle
Tony Lindgren [Mon, 7 Nov 2016 23:50:11 +0000 (16:50 -0700)]
ARM: OMAP4+: Fix bad fallthrough for cpuidle

We don't want to fall through to a bunch of errors for retention
if PM_OMAP4_CPU_OSWR_DISABLE is not configured for a SoC.

Fixes: 6099dd37c669 ("ARM: OMAP5 / DRA7: Enable CPU RET on suspend")
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP5: Fix mpuss_early_init
Tony Lindgren [Mon, 7 Nov 2016 23:50:11 +0000 (16:50 -0700)]
ARM: OMAP5: Fix mpuss_early_init

We need to properly initialize mpuss also on omap5 like we do on omap4.
Otherwise we run into similar kexec problems like we had on omap4 when
trying to kexec from a kernel with PM initialized.

Fixes: 0573b957fc21 ("ARM: OMAP4+: Prevent CPU1 related hang with kexec")
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: OMAP5: Fix build for PM code
Tony Lindgren [Mon, 7 Nov 2016 23:50:10 +0000 (16:50 -0700)]
ARM: OMAP5: Fix build for PM code

It's CONFIG_SOC_OMAP5, not CONFIG_ARCH_OMAP5. Looks like make randconfig
builds have not hit this one yet.

Fixes: b3bf289c1c45 ("ARM: OMAP2+: Fix build with CONFIG_SMP and CONFIG_PM
is not set")
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
8 years agoARM: pxa: fix pxa25x interrupt init
Robert Jarzmik [Mon, 26 Sep 2016 07:21:51 +0000 (09:21 +0200)]
ARM: pxa: fix pxa25x interrupt init

In the device-tree case, the root interrupt controller cannot be
accessed through the 6th coprocessor, contrary to pxa27x and pxa3xx
architectures.

Fix it to behave as in non-devicetree builds.

Fixes: 32f17997c130 ("ARM: pxa: remove irq init from dt machines")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
8 years agoARM: shmobile: r8a7779/marzen: Add board part number to DT bindings
Geert Uytterhoeven [Mon, 31 Oct 2016 13:43:04 +0000 (14:43 +0100)]
ARM: shmobile: r8a7779/marzen: Add board part number to DT bindings

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
8 years agoARM: shmobile: select errata 798181 for SoCs with CA15 cores
Simon Horman [Thu, 27 Oct 2016 07:00:06 +0000 (09:00 +0200)]
ARM: shmobile: select errata 798181 for SoCs with CA15 cores

Select ARM errata 798181 on SoCs cores affected CA15 cores.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
8 years agoARM: pxa: remove duplicated include from spitz.c
Wei Yongjun [Sat, 29 Oct 2016 11:56:30 +0000 (13:56 +0200)]
ARM: pxa: remove duplicated include from spitz.c

This partially reverts commit 12beb346710b ("Merge tag 'pxa-fixes-v4.8'
of https://github.com/rjarzmik/linux into randconfig-4.8").

This former patch introduced accidentally a double include of module.h.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Paul Gortmaker <paul.gortmaker@windriver.com>
[amended commit message and 2 comments]
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
8 years agoARM: shmobile: Consolidate R8A7743 and R8A779[234] machine definitions
Laurent Pinchart [Mon, 17 Oct 2016 13:59:04 +0000 (16:59 +0300)]
ARM: shmobile: Consolidate R8A7743 and R8A779[234] machine definitions

The four SoCs use identical machine operations, consolidate them into
two machine definitions in a single file.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-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>
8 years agoARM: shmobile: r8a7793/gose: Add board part number to DT bindings
Geert Uytterhoeven [Tue, 4 Oct 2016 13:20:48 +0000 (15:20 +0200)]
ARM: shmobile: r8a7793/gose: Add board part number to DT bindings

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
8 years agoARM: shmobile: r8a7794/alt: Add board part number to DT bindings
Geert Uytterhoeven [Tue, 4 Oct 2016 13:20:47 +0000 (15:20 +0200)]
ARM: shmobile: r8a7794/alt: Add board part number to DT bindings

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
8 years agoARM: shmobile: document SK-RZG1M board
Sergei Shtylyov [Wed, 5 Oct 2016 21:45:18 +0000 (00:45 +0300)]
ARM: shmobile: document SK-RZG1M board

Document the SK-RZG1M device tree bindings, listing it as a supported board.

This allows to use checkpatch.pl to validate .dts files referring to the
SK-RZG1M board.

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>
8 years agoARM: shmobile: r8a7743: basic SoC support
Sergei Shtylyov [Wed, 5 Oct 2016 21:37:08 +0000 (00:37 +0300)]
ARM: shmobile: r8a7743: basic SoC support

Add minimal support for the RZ/G1M (R8A7743) SoC.

Based on the original (and large) patch by Dmitry Shifrin
<dmitry.shifrin@cogentembedded.com>.

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>
8 years agoARM: shmobile: only call rcar_gen2_clocks_init() if present
Simon Horman [Mon, 31 Oct 2016 09:52:17 +0000 (10:52 +0100)]
ARM: shmobile: only call rcar_gen2_clocks_init() if present

The RZ/G1M (r8a7743) uses the R-Car Gen2 core, but not the R-Car Gen2 clock
driver. This is a harbinger of a transition for R-Car Gen2 SoCs. As the
process to get all the required pieces in place is somewhat complex it
seems useful to try to disentangle dependencies where possible.

The approach here is to temporarily disable calling rcar_gen2_clocks_init()
if no R-Car Gen2 SoC are configured and thus the symbol will not be
present.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
8 years agoARM: davinci: da8xx: register USB PHY clocks in the DT file
Axel Haslam [Mon, 31 Oct 2016 20:47:21 +0000 (15:47 -0500)]
ARM: davinci: da8xx: register USB PHY clocks in the DT file

The usb20_phy clock needs to be registered for the driver to be able
to get and enable a clock. Currently the usb phy clocks are registered
from board files, which will not be called during a device tree based
boot.

To be able to probe correctly usb form a device tree boot, register
the usb phy clocks from the DT specific init.

Unfortunately, davinci does not have proper clock support on device tree
yet, so by registering the clock from the DT specific file we are
forced to hardcode the parent clock, and cannot select refclkin as
parent for any of the phy clocks of the da850 family.

As none of the current da850 based boards currently in mainline use
refclkin as source. I guess we can live with this limitation until clocks
are correctly represented through CCF/device tree.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
[Added error checking]
Signed-off-by: David Lechner <david@lechnology.com>
[nsekhar@ti.com: typo fixes in commit message]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da8xx: add usb phy clocks
David Lechner [Mon, 31 Oct 2016 20:47:20 +0000 (15:47 -0500)]
ARM: davinci: da8xx: add usb phy clocks

Up to this point, the USB phy clock configuration was handled manually in
the board files and in the usb drivers. This adds proper clocks so that
the usb drivers can use clk_get and clk_enable and not have to worry about
the details. Also, the related code is removed from the board files and
replaced with the new clock registration functions.

This also removes the #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) around the musb
declaration and renames the musb platform device so that we can reference
it from the usb20 clock even if the musb device is not used.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for USB phy
David Lechner [Mon, 31 Oct 2016 20:47:19 +0000 (15:47 -0500)]
ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for USB phy

Add OF_DEV_AUXDATA() entry for USB phy. This is required for
so that clock lookup will work for the USB PHY driver.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: mediatek: clean up mach-mediatek/Makefile
Masahiro Yamada [Sun, 18 Sep 2016 18:11:13 +0000 (03:11 +0900)]
ARM: mediatek: clean up mach-mediatek/Makefile

Kbuild descends into arch/arm/mach-mediatek/Makefile only when
CONFIG_ARCH_MEDIATEK is enabled.  So, obj-$(CONFIG_ARCH_MEDIATEK)
is always equivalent to obj-y in this Makefile.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
8 years agoARM: davinci: da8xx: Add USB device names to clock lookup tables
David Lechner [Thu, 27 Oct 2016 00:18:16 +0000 (19:18 -0500)]
ARM: davinci: da8xx: Add USB device names to clock lookup tables

This adds device names for the SoC USB devices to the clock lookup tables
in da830.c and da850.c.

Also add the USB device names to the da850_auxdata_lookup[] table.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da8xx: Add USB PHY platform device
David Lechner [Thu, 27 Oct 2016 00:18:15 +0000 (19:18 -0500)]
ARM: davinci: da8xx: Add USB PHY platform device

There is now a proper phy driver for the DA8xx SoC USB PHY. This adds the
platform device declarations needed to use it.

Signed-off-by: David Lechner <david@lechnology.com>
[nsekhar@ti.com: keep usb-davinci.h included in board-da830-evm.c
 minor subject line adjustment]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for lcdc
Karl Beldan [Wed, 5 Oct 2016 13:05:31 +0000 (15:05 +0200)]
ARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for lcdc

This is required for tilcdc to be able to acquire a functional clock
on da850 SoCs.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
[Bartosz:
  - added the commit description
  - changed the compatible string to 'ti,da850-tilcdc']
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da8xx: Add full regulator constraints for non-DT boot
Axel Haslam [Wed, 26 Oct 2016 19:41:55 +0000 (21:41 +0200)]
ARM: davinci: da8xx: Add full regulator constraints for non-DT boot

The phy framework requests an optional "phy" regulator. If it does
not find one, it returns -EPROBE_DEFER. In the case of non-DT boot
for the omap138-lcdk board, this would prevent the usb11 phy to probe
correctly and ohci would not enumerate.

By calling regulator_has_full_constraints(), An error would be returned
instead of -EPROBE_DEFER for the regulator, and the probe of the phy driver
can continue normally without a regulator.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
[nsekhar@ti.com: minor commit message updates]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da8xx: Add CFGCHIP syscon platform device
David Lechner [Wed, 26 Oct 2016 03:06:48 +0000 (22:06 -0500)]
ARM: davinci: da8xx: Add CFGCHIP syscon platform device

The CFGCHIP registers are used by a number of devices, so use a syscon
device to share them. The first consumer of this will be the phy-da8xx-usb
driver.

Add the syscon device and register it.

Signed-off-by: David Lechner <david@lechnology.com>
[nsekhar@ti.com: minor commit message fixes]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: davinci: da8xx: Remove duplicated defines
Alexandre Bailon [Thu, 27 Oct 2016 15:32:36 +0000 (17:32 +0200)]
ARM: davinci: da8xx: Remove duplicated defines

Some macro for DA8xx CFGCHIP are defined in usb-davinci.h,
but da8xx-cfgchip.h intend to replace them.
Remove duplicated defines between da8xx-cfgchip.h and usb-davinci.h

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
8 years agoARM: pxa: em-x270: use the new pxa_camera platform_data
Robert Jarzmik [Fri, 23 Sep 2016 20:30:54 +0000 (22:30 +0200)]
ARM: pxa: em-x270: use the new pxa_camera platform_data

pxa_camera has transitioned from a soc_camera driver to a standalone
v4l2 driver. Amend the device declaration accordingly.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
8 years agoMerge tag 'vexpress-fixes-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git...
Olof Johansson [Sat, 29 Oct 2016 18:40:52 +0000 (11:40 -0700)]
Merge tag 'vexpress-fixes-4.10' of git://git./linux/kernel/git/sudeep.holla/linux into next/soc

ARMv7 Vexpress fixes for v4.10

Couple of fixes to MCPM/CCI drivers to check and ensure that the kernel
is actually allowed to take control over CCI ports(i.e. running in
secure mode) before enabling MCPM.

This is needed to boot Linux in HYP mode (very useful for development
on virtualization) with CONFIG_MCPM enabled kernel.

* tag 'vexpress-fixes-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux:
  drivers: cci: add missing CCI port availability firmware check
  ARM: vexpress: refine MCPM smp operations override criteria

Signed-off-by: Olof Johansson <olof@lixom.net>
8 years agoARM: pxa: ezx: use the new pxa_camera platform_data
Robert Jarzmik [Fri, 23 Sep 2016 20:30:53 +0000 (22:30 +0200)]
ARM: pxa: ezx: use the new pxa_camera platform_data

pxa_camera has transitioned from a soc_camera driver to a standalone
v4l2 driver. Amend the device declaration accordingly.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
8 years agoARM: pxa: mioa701: use the new pxa_camera platform_data
Robert Jarzmik [Fri, 23 Sep 2016 20:30:52 +0000 (22:30 +0200)]
ARM: pxa: mioa701: use the new pxa_camera platform_data

pxa_camera has transitioned from a soc_camera driver to a standalone
v4l2 driver. Amend the device declaration accordingly.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>