platform/kernel/linux-exynos.git
10 years agopackaging: use upstream tags 06/38306/1
Inha Song [Thu, 16 Apr 2015 07:56:39 +0000 (16:56 +0900)]
packaging: use upstream tags

Change-Id: Ib6eaf6e12ecc8f065b085253dbcc0c538caff511
Signed-off-by: Inha Song <ideal.song@samsung.com>
10 years agoARM: odroidxu3_defconfig: enable uinput config
Seung-Woo Kim [Thu, 16 Apr 2015 04:29:52 +0000 (13:29 +0900)]
ARM: odroidxu3_defconfig: enable uinput config

This patch enables uinput config to support userland input driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: EXYNOS: Fix failed second suspend on Exynos4
Krzysztof Kozlowski [Wed, 11 Mar 2015 10:13:57 +0000 (11:13 +0100)]
ARM: EXYNOS: Fix failed second suspend on Exynos4

On Exynos4412 boards (Trats2, Odroid U3) after enabling L2 cache in
56b60b8bce4a ("ARM: 8265/1: dts: exynos4: Add nodes for L2 cache
controller") the second suspend to RAM failed. First suspend worked fine
but the next one hang just after powering down of secondary CPUs (system
consumed energy as it would be running but was not responsive).

The issue was caused by enabling delayed reset assertion for CPU0 just
after issuing power down of cores. This was introduced for Exynos4 in
13cfa6c4f7fa ("ARM: EXYNOS: Fix CPU idle clock down after CPU off").

The whole behavior is not well documented but after checking with vendor
code this should be done like this (on Exynos4):
1. Enable delayed reset assertion when system is running (for all CPUs).
2. Disable delayed reset assertion before suspending the system.
   This can be done after powering off secondary CPUs.
3. Re-enable the delayed reset assertion when system is resumed.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Fixes: 13cfa6c4f7fa ("ARM: EXYNOS: Fix CPU idle clock down after CPU off")
Cc: <stable@vger.kernel.org>
Tested-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
10 years agopackaging: add spec file to generate odroid-xu3 kernel by GBS
Inha Song [Tue, 17 Mar 2015 01:58:16 +0000 (10:58 +0900)]
packaging: add spec file to generate odroid-xu3 kernel by GBS

This patch add spec file to generate odroid-xu3 kernel-headers by GBS.

Signed-off-by: Inha Song <ideal.song@samsung.com>
10 years agoARM: odroidxu3_defconfig: update configs to Linux 4.0
Inha Song [Mon, 9 Mar 2015 05:21:18 +0000 (14:21 +0900)]
ARM: odroidxu3_defconfig: update configs to Linux 4.0

This patch updates odroid configs to Linux 4.0 for tizen.

Signed-off-by: Inha Song <ideal.song@samsung.com>
10 years agosmack: add permissive mode for debugging purpose
Chanho Park [Tue, 3 Jun 2014 10:54:53 +0000 (19:54 +0900)]
smack: add permissive mode for debugging purpose

This patch adds smack permissive mode.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
10 years agoARM: dts: exynos5420: fix clk of mali node
Joonyoung Shim [Wed, 8 Apr 2015 07:23:52 +0000 (16:23 +0900)]
ARM: dts: exynos5420: fix clk of mali node

Need only CLK_G3D gate clock for mali and use clk_mali name to control
the clock from mali core codes.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: remove clk and regulator control from exynos5422
Joonyoung Shim [Wed, 8 Apr 2015 07:22:16 +0000 (16:22 +0900)]
gpu: arm: midgard: remove clk and regulator control from exynos5422

Clk and regulator of mali will be controlled mali core codes.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: add voltage scaling for devfreq
Joonyoung Shim [Wed, 8 Apr 2015 04:59:45 +0000 (13:59 +0900)]
gpu: arm: midgard: add voltage scaling for devfreq

Support voltage scaling of mali regulator for devfreq.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: add regulator control
Joonyoung Shim [Wed, 8 Apr 2015 04:23:56 +0000 (13:23 +0900)]
gpu: arm: midgard: add regulator control

Support to control regulator from mali core code instead of each
platform driver.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: add ondemand_data for simple_ondemand devfreq
Joonyoung Shim [Mon, 6 Apr 2015 09:58:20 +0000 (18:58 +0900)]
gpu: arm: midgard: add ondemand_data for simple_ondemand devfreq

Need custom upthreshold and downdifferential for mali devfreq.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: remove set_dma_ops
Joonyoung Shim [Tue, 10 Mar 2015 01:07:08 +0000 (10:07 +0900)]
gpu: arm: midgard: remove set_dma_ops

Don't use set_dma_ops since commit 9d3bfbb4df58 ("arm64: Combine
coherent and non-coherent swiotlb dma_ops")

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agoarm: exynos5420.dts: add FIMC_3AA async bridge clock to GSC power domain
Marek Szyprowski [Thu, 2 Apr 2015 11:18:58 +0000 (13:18 +0200)]
arm: exynos5420.dts: add FIMC_3AA async bridge clock to GSC power domain

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agodrm/exynos: fimc: fix runtime pm support
Marek Szyprowski [Tue, 31 Mar 2015 11:19:38 +0000 (13:19 +0200)]
drm/exynos: fimc: fix runtime pm support

Once pm_runtime_set_active() gets called, the kernel assumes that given
device has already enabled runtime pm and will call pm_runtime_suspend() without matching pm_runtime_resume(). In case of DRM FIMC IPP driver, this
will result in calling clk_disable() without respective call to clk_enable(). This patch removes call to pm_runtime_set_active() to ensure
that pm_runtime_suspend/resume calls will match.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoi2c: exynos5: register driver early in subsys initcall to avoid probe defer
Marek Szyprowski [Tue, 31 Mar 2015 12:47:00 +0000 (14:47 +0200)]
i2c: exynos5: register driver early in subsys initcall to avoid probe defer

i2c bus drivers should be registered earlier than other drivers to let
important i2c devices (like pmic) get registered early enough to avoid
probe defer of other devices.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agodrm/exynos: add debugfs interface and gem_info node
YoungJun Cho [Thu, 12 Feb 2015 03:59:47 +0000 (12:59 +0900)]
drm/exynos: add debugfs interface and gem_info node

The memps requires gem_info with gem_names to analyze graphics
shared memory, so this patch adds gem_info node with debugfs
interface.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos: fix to calculate offset of each plane for ipp gsc
Seung-Woo Kim [Wed, 4 Mar 2015 05:05:02 +0000 (14:05 +0900)]
drm/exynos: fix to calculate offset of each plane for ipp gsc

NV12 and YUV420 formats are needed to calculate offset of each plane
in a gem buffer for ipp gsc. Without proper offset, only Y plane
can be processed, so result shows green frame. This patch fixes to
calculate offset for cbcr planes for NV12 and YUV420 formats.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos: fix to calculate offset of each plane for ipp fimc
Seung-Woo Kim [Wed, 4 Mar 2015 05:05:02 +0000 (14:05 +0900)]
drm/exynos: fix to calculate offset of each plane for ipp fimc

NV12 and YUV420 formats are need to calculate offset of each plane
for ipp fimc in a gem buffer. Without proper offset, only Y plane
can be processed, so result shows green frame.
This patch fixes to calculate offset for cbcr planes for NV12 and
YUV420 formats.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos: add ARGB8888 support for ipp fimc
Seung-Woo Kim [Wed, 4 Mar 2015 05:05:02 +0000 (14:05 +0900)]
drm/exynos: add ARGB8888 support for ipp fimc

This patch adds ARGB8888 support for ipp fimc driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos: gsc: fix wrong pm_runtime state
Seung-Woo Kim [Fri, 9 Jan 2015 06:55:30 +0000 (15:55 +0900)]
drm/exynos: gsc: fix wrong pm_runtime state

At probe time, gsc clock is not enabled, so pm_runtime state should
be deactive. So this patch removes pm_runtime_set_active() from
gsc_probe().

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos/ipp: Validate buffer enqueue requests
Beata Michalska [Thu, 26 Feb 2015 12:18:46 +0000 (13:18 +0100)]
drm/exynos/ipp: Validate buffer enqueue requests

As for now there is no validation of incoming buffer
enqueue request as far as the gem buffers are being
concerned. This might lead to some undesired cases
when the driver tries to operate on invalid buffers
(wiht no valid gem object handle i.e.).
Add some basic checks to rule out those potential issues.

Signed-off-by: Beata Michalska <b.michalska@samsung.com>
[mszyprow: rebased onto v3.19]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos: gsc: prepare and unprepare gsc clock
Seung-Woo Kim [Fri, 9 Jan 2015 06:54:00 +0000 (15:54 +0900)]
drm/exynos: gsc: prepare and unprepare gsc clock

Ths patch changes the clk_enable and clk_disable call in gsc driver
into clk_prepare_enable and clk_disable_unprepare.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: add lcd-wb flag to gsc dt nodes for Odroid XU3 board
Seung-Woo Kim [Tue, 6 Jan 2015 08:32:34 +0000 (17:32 +0900)]
ARM: dts: add lcd-wb flag to gsc dt nodes for Odroid XU3 board

This patch adds lcd-wb binding flag to gsc dt nodes to bind with
exynos drm gsc driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos: allow multiplatform configuration for gsc
Seung-Woo Kim [Tue, 6 Jan 2015 08:09:54 +0000 (17:09 +0900)]
drm/exynos: allow multiplatform configuration for gsc

The patch removes dependency on !ARCH_MULTIPLATFORM.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agodrm/exynos: gsc: add device tree support
Seung-Woo Kim [Wed, 1 Jul 2015 05:02:46 +0000 (14:02 +0900)]
drm/exynos: gsc: add device tree support

This patch adds device tree support for exynos_drm_gsc. The gsc
driver is bound only when lcd-wb binding flag is set to gsc dt
node.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
10 years agoexynos-gsc: add devicetree binding optional flag for lcd-wb
Seung-Woo Kim [Tue, 6 Jan 2015 08:19:04 +0000 (17:19 +0900)]
exynos-gsc: add devicetree binding optional flag for lcd-wb

This patch adds optional flag for lcd-wb of gsc. If the flag is set,
then the gsc hw is controlled by drm driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: exynos5422-odroidxu3: add gpio key dt node
Seung-Woo Kim [Mon, 23 Mar 2015 05:25:40 +0000 (14:25 +0900)]
ARM: dts: exynos5422-odroidxu3: add gpio key dt node

This patch adds gpio key dt node for power button. The dt nodes
are ported from https://github.com/hardkernel/linux.git
+refs/heads/odroidxu3-3.10.y.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: exynos5422-odroidxu3: add leds dt nodes
Seung-Woo Kim [Mon, 23 Mar 2015 05:18:52 +0000 (14:18 +0900)]
ARM: dts: exynos5422-odroidxu3: add leds dt nodes

This patch adds leds dt nodes to support rgb led devices. The dt
nodes are ported from https://github.com/hardkernel/linux.git
+refs/heads/odroidxu3-3.10.y.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: add odroid-usbotg extcon support for odroid platform
Robert Baldyga [Mon, 4 Aug 2014 06:56:32 +0000 (08:56 +0200)]
ARM: dts: add odroid-usbotg extcon support for odroid platform

This patch adds odroid-usbotg extcon dt node for odroid-u3 and
odroid-x.

Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
[Adjust gpio dt node name with the odroid-usbotg driver]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: exynos5422-odroidxu3: make usbdrd3 extcon client
Robert Baldyga [Mon, 23 Feb 2015 14:27:13 +0000 (15:27 +0100)]
ARM: dts: exynos5422-odroidxu3: make usbdrd3 extcon client

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: exynos: add software role switching code
Robert Baldyga [Mon, 9 Mar 2015 12:28:18 +0000 (13:28 +0100)]
dwc3: exynos: add software role switching code

Exynos platform doesn't have hardware OTG support, so we need to
supply mechanism of notification about cable change.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agoARM: dts: exynos5420: add snps,dis_u3_susphy_quirk to dwc3 controllers
Robert Baldyga [Wed, 4 Mar 2015 12:46:59 +0000 (13:46 +0100)]
ARM: dts: exynos5420: add snps,dis_u3_susphy_quirk to dwc3 controllers

It's needed for proper role switching in OTG mode.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: core: fix SUSPHY problem
Robert Baldyga [Mon, 23 Feb 2015 14:58:30 +0000 (15:58 +0100)]
dwc3: core: fix SUSPHY problem

This is needed for OTG mode. Without this change endpoint enabling in
gadget mode fails after role switching.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: core: add OTG support
Robert Baldyga [Mon, 23 Feb 2015 14:44:04 +0000 (15:44 +0100)]
dwc3: core: add OTG support

Initialize OTG core if hardware runs in OTG mode.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: gadget: reinitialize core after each role change
Robert Baldyga [Mon, 23 Feb 2015 15:20:48 +0000 (16:20 +0100)]
dwc3: gadget: reinitialize core after each role change

According to the Databook in case of reconnection and role switching
the core should be completely reinitialized, excepting first connection
as peripheral when core was initialized during probing.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: host: don't add xhci device only if in OTG mode
Robert Baldyga [Mon, 23 Feb 2015 11:32:19 +0000 (12:32 +0100)]
dwc3: host: don't add xhci device only if in OTG mode

OTG handling code adds xhci device automaticaly when USB host cable
is detected.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: gadget: register gadget in OTG core
Robert Baldyga [Mon, 23 Feb 2015 12:57:14 +0000 (13:57 +0100)]
dwc3: gadget: register gadget in OTG core

Gadget driver needs to be registered in OTG to perform dynamic
role switching.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: gadget: add VBUS session handling
Robert Baldyga [Mon, 9 Mar 2015 10:20:15 +0000 (11:20 +0100)]
dwc3: gadget: add VBUS session handling

Add software VBUS session handling code.
It's necessary for OTG role switching.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: add otg handling code
Robert Baldyga [Mon, 23 Feb 2015 11:01:54 +0000 (12:01 +0100)]
dwc3: add otg handling code

This code is based on DWC3 driver from https://github.com/hardkernel/linux.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agoARM: dts: exynos5420: set usb3_lpm_capable in dwc3 controllers
Robert Baldyga [Mon, 9 Mar 2015 10:12:48 +0000 (11:12 +0100)]
ARM: dts: exynos5420: set usb3_lpm_capable in dwc3 controllers

These hardware has LPM and we want to use it.
This will be necessary for OTG role switching.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: make LPM configurable in DT
Robert Baldyga [Mon, 9 Mar 2015 09:29:01 +0000 (10:29 +0100)]
dwc3: make LPM configurable in DT

LPM capability is hardware property, so now it's moved to DT.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agodwc3: core: cleanup suspend/resume code
Robert Baldyga [Mon, 9 Mar 2015 08:41:24 +0000 (09:41 +0100)]
dwc3: core: cleanup suspend/resume code

Remove unused cases from switch-case statement and place
dwc3_event_buffers_cleanup() function outside switch-case
as it's called in each case anyway.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agoARM: dts: exynos5422-odroidxu3: add odroid-usbotg extcon support
Robert Baldyga [Mon, 9 Mar 2015 10:09:43 +0000 (11:09 +0100)]
ARM: dts: exynos5422-odroidxu3: add odroid-usbotg extcon support

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agoextcon: add extcon-odroid-usbotg driver
Robert Baldyga [Mon, 9 Mar 2015 10:00:47 +0000 (11:00 +0100)]
extcon: add extcon-odroid-usbotg driver

This patch adds extcon driver for Odroid U3, U3+ and X boards.
It recognizes type of USB cable connected to Odroid board basing on
two signal lines VBUS_DET and OTG_ID (the second one is present only
on Odroid U3+ board).

Following table of states presents relationship between this signals
and detected cable type:

state    | VBUS_DET |  OTG_ID
-------------------------------
USB      |    H     |    H
invalid  |    H     |    L
disconn. |    L     |    H
USB-Host |    L     |    L

This driver is based on extcon-gpio driver.

Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
10 years agolocal / usb: gadget: Add slp composite gadget
Jaewon Kim [Tue, 2 Dec 2014 12:34:54 +0000 (21:34 +0900)]
local / usb: gadget: Add slp composite gadget

This patch adds slp composite gadget for tizen platform.
slp composite gadget code comes from android.c

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
10 years agoARM: dts: exynos5420: add iommu support to jpeg devices
Marek Szyprowski [Mon, 9 Mar 2015 09:27:57 +0000 (10:27 +0100)]
ARM: dts: exynos5420: add iommu support to jpeg devices

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos5420: add nodes for jpeg codec
Andrzej Pietrasiewicz [Fri, 6 Mar 2015 10:32:39 +0000 (11:32 +0100)]
ARM: dts: exynos5420: add nodes for jpeg codec

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
10 years agomedia: s5p-jpeg: add 5420 family support
Andrzej Pietrasiewicz [Fri, 6 Mar 2015 10:32:40 +0000 (11:32 +0100)]
media: s5p-jpeg: add 5420 family support

JPEG IP found in Exynos5420 is similar to what is in Exynos3250, but
there are some subtle differences which this patch takes into account.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
10 years agoARM: dts: Support audio on Exynos5422-odroidxu3 using simple-audio-card
Inha Song [Fri, 13 Feb 2015 01:12:37 +0000 (10:12 +0900)]
ARM: dts: Support audio on Exynos5422-odroidxu3 using simple-audio-card

Add MAX98090 audio codec, I2S interface and the sound nodes to support
audio on Exynos5422 SoC Based Odroid-XU3 board. Now we can support audio
in Odroid-XU3 board using simple-audio-card DT binding.

Signed-off-by: Inha Song <ideal.song@samsung.com>
10 years agoARM: dts: exynos4412-odroid*: enable MFC device
Marek Szyprowski [Thu, 31 Jul 2014 11:43:17 +0000 (13:43 +0200)]
ARM: dts: exynos4412-odroid*: enable MFC device

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos5422-odroidxu3: use cd-gpio method to detect sd-card
Jaehoon Chung [Thu, 26 Feb 2015 08:16:30 +0000 (17:16 +0900)]
ARM: dts: exynos5422-odroidxu3: use cd-gpio method to detect sd-card

To detect sd-card use the cd-gpio method.
It can decrease the interrupt for detecting sd-card.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 years agommc: dw_mmc: enable mmc-erase capability
Jaehoon Chung [Thu, 26 Feb 2015 07:20:46 +0000 (16:20 +0900)]
mmc: dw_mmc: enable mmc-erase capability

To use erase feature(DISCARD or SANITIZE or ERASE, etc..), set MMC_CAP_ERASE.
(In future, this feature should be enabled by default. But before enable
 by default, it needs to fix the some erase issue - discussing at
 Mailing-list.)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 years agoARM: dts: exynos5422-odroidxu3: support HS400 mode for eMMC
Jaehoon Chung [Thu, 26 Feb 2015 07:17:48 +0000 (16:17 +0900)]
ARM: dts: exynos5422-odroidxu3: support HS400 mode for eMMC

Add "mmc_hs400_1_8v" property to use HS400 mode.
(HS400 mode is supported since eMMC5.0.)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 years agoARM: dts: Add HS400 support for exynos5420 and exynos5800
Seungwon Jeon [Thu, 29 Jan 2015 02:41:58 +0000 (08:11 +0530)]
ARM: dts: Add HS400 support for exynos5420 and exynos5800

HS400 timing values are added for SMDK5420, exynos5420-peach-pit
and exynos5800-peach-pi boards.
This also adds RCLK GPIO line, this gpio should be in pull-down
state.
This also enables HS400 on peach-pi and this updates the clock frequency
to 800MHz to be set as input clock to controller.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
[Alim: addressed review comments]

10 years agoARM: dts: exynos5422-odroidxu3: support HS200 mode for eMMC
Jaehoon Chung [Thu, 26 Feb 2015 06:39:03 +0000 (15:39 +0900)]
ARM: dts: exynos5422-odroidxu3: support HS200 mode for eMMC

Add "mmc-hs200_1_8v" property to use HS200 mode.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 years agommc: dw_mmc: exynos: Support eMMC's HS400 mode
Seungwon Jeon [Thu, 29 Jan 2015 02:41:57 +0000 (08:11 +0530)]
mmc: dw_mmc: exynos: Support eMMC's HS400 mode

Implements HS400 mode support for exynos host driver.
This also include some updates as new mode is added.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
[Alim: addressed review comments]
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
10 years agoARM: dts: exynos4: add nodes for jpeg codec
Marek Szyprowski [Wed, 18 Feb 2015 11:11:00 +0000 (12:11 +0100)]
ARM: dts: exynos4: add nodes for jpeg codec

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos5422-odroidxu3: add pwm-fan node
Joonyoung Shim [Tue, 27 Jan 2015 06:13:51 +0000 (15:13 +0900)]
ARM: dts: exynos5422-odroidxu3: add pwm-fan node

Usage:
echo [0 - 255] > /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agoregulator: s2mps11: add shutdown function
Jaehoon Chung [Fri, 23 Jan 2015 09:16:54 +0000 (18:16 +0900)]
regulator: s2mps11: add shutdown function

This needs for poweroff on odroid xu3 board.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 years agoARM: dts: add eMMC reset line for exynos5422-odroidxu3
Marek Szyprowski [Thu, 5 Mar 2015 08:30:47 +0000 (09:30 +0100)]
ARM: dts: add eMMC reset line for exynos5422-odroidxu3

This patch adds reset-gpios property to the eMMC slot, so the MMC driver
is able to properly reset eMMC card on system restart and thus fixes
system hang on software reboot.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
10 years agoARM: dts: add eMMC reset line for exynos4412-odroid-common
Marek Szyprowski [Wed, 4 Feb 2015 15:35:58 +0000 (00:35 +0900)]
ARM: dts: add eMMC reset line for exynos4412-odroid-common

This patch adds reset-gpios property to the eMMC slot, so the MMC driver
is able to properly reset eMMC card on system restart and thus fixes
system hang on software reboot.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
10 years agoARM: dts: exynos542x: move mfc device into own bus with limited dma-range
Marek Szyprowski [Wed, 21 Jan 2015 07:57:44 +0000 (08:57 +0100)]
ARM: dts: exynos542x: move mfc device into own bus with limited dma-range

MFC block does not support setting address base to 0, what is the default
value when using generic iommu based dma-mapping. This patch adds
additional virtual bus (with dma ranges limited to 0x10000000..0x20000000)
only for MFC device, so it gets proper dma mapping configuration. This is
a workaround until proper configuration of default dma window gets
implemented.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agomedia: videobuf2-dc: set properly dma_max_segment_size
Marek Szyprowski [Fri, 16 Jan 2015 13:10:33 +0000 (14:10 +0100)]
media: videobuf2-dc: set properly dma_max_segment_size

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos4412-odroid-common: update vdd_g3d voltage range
Seung-Woo Kim [Thu, 5 Feb 2015 11:03:37 +0000 (20:03 +0900)]
ARM: dts: exynos4412-odroid-common: update vdd_g3d voltage range

This patch updates voltage range of vdd_g3d regulator and its
boot-on mode.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: exynos4412-odroid-common: add gpu node
Seung-Woo Kim [Thu, 5 Feb 2015 10:06:39 +0000 (19:06 +0900)]
ARM: dts: exynos4412-odroid-common: add gpu node

This patch adds gpu node to exynos4412-odroid-common dtsi.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: exynos4x12: Add gpu node for arm mali 400
Seung-Woo Kim [Thu, 5 Feb 2015 10:04:29 +0000 (19:04 +0900)]
ARM: dts: exynos4x12: Add gpu node for arm mali 400

This patch adds gpu node to exynos4x12 dtsi.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agogpu: arm : mali400: replace CONFIG_PM_RUNTIME to CONFIG_PM
Seung-Woo Kim [Fri, 27 Mar 2015 05:10:47 +0000 (14:10 +0900)]
gpu: arm : mali400: replace CONFIG_PM_RUNTIME to CONFIG_PM

After commit 464ed18ebdb6 ("PM: Eliminate CONFIG_PM_RUNTIME") which
is applied kernel version 3.19, PM_RUNTIME is eliminated. So this
patch replaces CONFIG_PM_RUNTIME to CONFIG_PM for kernel version
larger than 3.19.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agogpu: arm : add mali400 r3p2 and r4p0-rel0 drivers
Seung-Woo Kim [Thu, 5 Feb 2015 07:10:42 +0000 (16:10 +0900)]
gpu: arm : add mali400 r3p2 and r4p0-rel0 drivers

This patch adds mali400 r3p2 driver and r4p0-rel0 drivers with
exynos4 soc platform support.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
10 years agoARM: dts: odroidxu3: add mali node
Joonyoung Shim [Tue, 20 Jan 2015 08:46:16 +0000 (17:46 +0900)]
ARM: dts: odroidxu3: add mali node

Support mali for odroid xu3 board.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agoARM: dts: exynos5420: add mali node
Joonyoung Shim [Tue, 20 Jan 2015 08:45:06 +0000 (17:45 +0900)]
ARM: dts: exynos5420: add mali node

Support mali node for exynos542x.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: add initial exynos5422 platform files
Joonyoung Shim [Mon, 19 Jan 2015 08:54:35 +0000 (17:54 +0900)]
gpu: arm: midgard: add initial exynos5422 platform files

We should check more clock and regulator for DVFS.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: support kernel error defines for platform.
Joonyoung Shim [Tue, 20 Jan 2015 09:07:38 +0000 (18:07 +0900)]
gpu: arm: midgard: support kernel error defines for platform.

Don't use mali error defines, it'a ugly.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: Drop CONFIG_PM_RUNTIME
Joonyoung Shim [Wed, 21 Jan 2015 08:13:51 +0000 (17:13 +0900)]
gpu: arm: midgard: Drop CONFIG_PM_RUNTIME

After commit 464ed18ebdb6 ("PM: Eliminate CONFIG_PM_RUNTIME") PM_RUNTIME
is eliminated.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: midgard: add build condition
Joonyoung Shim [Tue, 20 Jan 2015 02:45:04 +0000 (11:45 +0900)]
gpu: arm: midgard: add build condition

Modify Kconfig and Makefile for mali.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agogpu: arm: add mali midgard r5p0-06rel0 driver
Joonyoung Shim [Tue, 20 Jan 2015 02:18:00 +0000 (11:18 +0900)]
gpu: arm: add mali midgard r5p0-06rel0 driver

This comes from below link. Remove sconscript and modify file permission
to 644.

http://malideveloper.arm.com/develop-for-mali/drivers/open-source-mali-t6xx-gpu-kernel-device-drivers/

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agomisc: add global lock driver for TIZEN
Joonyoung Shim [Tue, 29 Jan 2013 08:00:09 +0000 (17:00 +0900)]
misc: add global lock driver for TIZEN

This is the driver for tizen global lock feature for TIZEN specific and
will be removed if dma fence feature is enabled.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
10 years agotemporary: media: s5p-mfc: remove DT hacks & initialization custom memory init code
Marek Szyprowski [Thu, 31 Jul 2014 08:37:59 +0000 (10:37 +0200)]
temporary: media: s5p-mfc: remove DT hacks & initialization custom memory init code

This patch removes custom initialization of reserved memory regions from
s5p-mfc driver. Driver will use main device pointer for all memory allocations.

This patch is temporary, do not merge it yet.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: add callback for initializing devices from device tree
Marek Szyprowski [Fri, 23 Jan 2015 15:51:28 +0000 (16:51 +0100)]
iommu: exynos: add callback for initializing devices from device tree

This patch adds implementation of of_xlate callback, which prepares
masters device for attaching to IOMMU. This callback is called during
creating devices from device tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: init from dt-specific callback instead of initcall
Marek Szyprowski [Fri, 23 Jan 2015 15:51:27 +0000 (16:51 +0100)]
iommu: exynos: init from dt-specific callback instead of initcall

This patch introduces IOMMU_OF_DECLARE-based initialization to the
driver, which replaces subsys_initcall-based procedure.
exynos_iommu_of_setup ensures that each sysmmu controller is probed
before its master device.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: remove excessive includes and sort others alphabetically
Marek Szyprowski [Fri, 23 Jan 2015 15:51:26 +0000 (16:51 +0100)]
iommu: exynos: remove excessive includes and sort others alphabetically

Removed following unused includes: <linux/mm.h>, <linux/errno.h>,
<linux/memblock.h> and <linux/export.h>.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: document internal structures
Marek Szyprowski [Fri, 23 Jan 2015 15:51:25 +0000 (16:51 +0100)]
iommu: exynos: document internal structures

Add a few words of comment to all internal structures used by the driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: rename variables to reflect their purpose
Marek Szyprowski [Fri, 23 Jan 2015 15:51:24 +0000 (16:51 +0100)]
iommu: exynos: rename variables to reflect their purpose

This patch renames some variables to make the code easier to understand.
'domain' is replaced by 'iommu_domain' (more generic entity) and really
meaning less 'priv' by 'domain' to reflect its purpose.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: add support for runtime_pm
Marek Szyprowski [Fri, 23 Jan 2015 15:51:23 +0000 (16:51 +0100)]
iommu: exynos: add support for runtime_pm

This patch fixes support for runtime power management for SYSMMU
controllers, so they are enabled when master device is attached.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: add support for binding more than one sysmmu to master device
Marek Szyprowski [Fri, 23 Jan 2015 15:51:22 +0000 (16:51 +0100)]
iommu: exynos: add support for binding more than one sysmmu to master device

This patch adds support for assigning more than one SYSMMU controller to
the master device. This has been achieved simply by chaning the struct
device pointer in struct exynos_iommu_owner into the list of struct
sysmmu_drvdata of all controllers assigned to the given master device.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: remove useless device_add/remove callbacks
Marek Szyprowski [Fri, 23 Jan 2015 15:51:21 +0000 (16:51 +0100)]
iommu: exynos: remove useless device_add/remove callbacks

The driver doesn't need to do anything important in device add/remove
callbacks, because initialization will be done from device-tree specific
callbacks added later. IOMMU groups created by current code were never
used.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: remove unused functions, part 2
Marek Szyprowski [Fri, 23 Jan 2015 15:51:20 +0000 (16:51 +0100)]
iommu: exynos: remove unused functions, part 2

After refactoring functions to use pointer to struct sysmmu_drvdata
directly, some functions became useless and thus never used, so remove
them completely.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: refactor function parameters to simplify code
Marek Szyprowski [Fri, 23 Jan 2015 15:51:19 +0000 (16:51 +0100)]
iommu: exynos: refactor function parameters to simplify code

This patch simplifies the code by:
- refactoring function parameters from struct device pointer to direct pointer
  to struct sysmmu drvdata
- moving list_head enteries from struct exynos_iommu_owner directly to struct
  sysmmu_drvdata

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: remove useless spinlock
Marek Szyprowski [Fri, 23 Jan 2015 15:51:18 +0000 (16:51 +0100)]
iommu: exynos: remove useless spinlock

This patch removes useless spinlocks and other unused members from
struct exynos_iommu_owner. There is no point is protecting this
structure by spinlock because content of this structure doesn't change
and other structures have their own spinlocks.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: remove unused functions
Marek Szyprowski [Fri, 23 Jan 2015 15:51:17 +0000 (16:51 +0100)]
iommu: exynos: remove unused functions

This patch removes two unneeded functions, which are not a part of
generic IOMMU API and were never used by any other driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoiommu: exynos: don't read version register on every tlb operation
Marek Szyprowski [Fri, 23 Jan 2015 15:51:16 +0000 (16:51 +0100)]
iommu: exynos: don't read version register on every tlb operation

This patch removes reading of REG_MMU_VERSION register on every tlb
operation and caches SYSMMU version in driver's internal data.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos5420: add sysmmu nodes
Marek Szyprowski [Mon, 5 Jan 2015 14:35:20 +0000 (15:35 +0100)]
ARM: dts: exynos5420: add sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos5250: add sysmmu nodes
Marek Szyprowski [Mon, 5 Jan 2015 08:15:57 +0000 (09:15 +0100)]
ARM: dts: exynos5250: add sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos4: add sysmmu nodes
Marek Szyprowski [Wed, 19 Nov 2014 08:33:53 +0000 (09:33 +0100)]
ARM: dts: exynos4: add sysmmu nodes

This patch adds System MMU nodes that are specific to Exynos4210/4x12 series.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoarm: exynos: pm_domains: register power domain driver from core_initcall
Marek Szyprowski [Wed, 19 Nov 2014 07:54:03 +0000 (08:54 +0100)]
arm: exynos: pm_domains: register power domain driver from core_initcall

SYSMMU devices are registered very early in arch_initcall, so ensure
that they can get access to power domains by registering power domain
driver from earlier initcall.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agodrm: exynos: detach from default dma-mapping domain on init
Marek Szyprowski [Fri, 23 Jan 2015 15:51:11 +0000 (16:51 +0100)]
drm: exynos: detach from default dma-mapping domain on init

This patch adds code, which detach sub-device nodes from default iommu
domain if such has been configured.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
10 years agoARM: dts: exynos5420: add async-bridge clocks to gsc power domain
Andrzej Hajda [Thu, 5 Feb 2015 09:33:33 +0000 (10:33 +0100)]
ARM: dts: exynos5420: add async-bridge clocks to gsc power domain

Both GSCALER IPs in gsc power domain have async-bridges (to FIMD and MIXER),
therefore their clocks should be enabled during power domain switch.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
10 years agoARM: dts: exynos5420: add async-bridge clocks to disp1 power domain
Andrzej Hajda [Thu, 5 Feb 2015 08:42:29 +0000 (09:42 +0100)]
ARM: dts: exynos5420: add async-bridge clocks to disp1 power domain

FIMD and MIXER IPs in disp1 power domain have async-bridges (to GSCALER),
therefore their clocks should be enabled during power domain switch.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
10 years agoarm/exynos/pm_domains: add support for async-bridge clocks
Andrzej Hajda [Thu, 5 Feb 2015 08:49:14 +0000 (09:49 +0100)]
arm/exynos/pm_domains: add support for async-bridge clocks

Since Exynos5420 there are async-bridges (ASB) between different IPs. These
bridges must be operational during power domain on/off, ie. clocks used
by these bridges should be enabled.
This patch enabled these clocks during domain on/off.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
10 years agoarm/exynos: add asynchronous bridge clock bindings
Andrzej Hajda [Thu, 5 Feb 2015 08:32:10 +0000 (09:32 +0100)]
arm/exynos: add asynchronous bridge clock bindings

The patch adds bindings for clocks required by async-bridges
present in the particular power domain.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
10 years agoARM: odroidxu3_defconfig: add defconfig file odroid XU3
Joonyoung Shim [Tue, 6 Jan 2015 05:52:08 +0000 (14:52 +0900)]
ARM: odroidxu3_defconfig: add defconfig file odroid XU3

This was copied from exynos_defconfig.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>