platform/kernel/linux-3.10.git
9 years agoARM: dts: exynos4210-trats: Add physical display size properties
Tomasz Figa [Fri, 1 Mar 2013 14:27:59 +0000 (15:27 +0100)]
ARM: dts: exynos4210-trats: Add physical display size properties

This patch adds physical size properties to panel node.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: drm: exynos: fimd: Parse display physical size from DT
Tomasz Figa [Fri, 1 Mar 2013 14:27:05 +0000 (15:27 +0100)]
gpu: drm: exynos: fimd: Parse display physical size from DT

This patch adds a temporary solution for getting physical display size
from device tree by parsing driver-specific properties in display node.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: drm: exynos: fimd: Fix parsing video mode from incorrect DT node
Tomasz Figa [Fri, 1 Mar 2013 14:25:55 +0000 (15:25 +0100)]
gpu: drm: exynos: fimd: Fix parsing video mode from incorrect DT node

This patch fixes the driver to parse video mode from display node
received by parsing samsung,fimd-display phandle, falling back
to parsing from fimd node only if no display phandle is specified.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add node for max17042 battery fuel gauge
Tomasz Figa [Fri, 1 Mar 2013 14:24:46 +0000 (15:24 +0100)]
ARM: dts: exynos4210-trats: Add node for max17042 battery fuel gauge

This patch adds device tree node for max17042 battery fuel gauge present
on Trats board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agopower: max8997-charger: Fix getting platform data
Tomasz Figa [Fri, 1 Mar 2013 14:22:45 +0000 (15:22 +0100)]
power: max8997-charger: Fix getting platform data

This patch fixes incorrect way of getting platform data, which should be
read from MFD private data structure instead.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: Make ARM_EXYNOS*_CPUFREQ depend on ARM_EXYNOS_CPUFREQ
Tomasz Figa [Thu, 28 Feb 2013 19:06:13 +0000 (20:06 +0100)]
cpufreq: Make ARM_EXYNOS*_CPUFREQ depend on ARM_EXYNOS_CPUFREQ

This patch adds dependency on ARM_EXYNOS_CPUFREQ to particular SoC
drivers to avoid compilation errors when ARM_EXYNOS_CPUFREQ is disabled.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add nodes for audio hardware
Tomasz Figa [Thu, 28 Feb 2013 18:42:59 +0000 (19:42 +0100)]
ARM: dts: exynos4210-trats: Add nodes for audio hardware

This patch adds nodes for audio hardware present on Trats board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add LDO1 regulator node
Tomasz Figa [Thu, 28 Feb 2013 18:42:08 +0000 (19:42 +0100)]
ARM: dts: exynos4210-trats: Add LDO1 regulator node

This patch adds missing node for LDO1 regulator required by audio
components.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agosound: soc: samsung: Add Trats platform audio driver
Tomasz Figa [Thu, 28 Feb 2013 18:41:30 +0000 (19:41 +0100)]
sound: soc: samsung: Add Trats platform audio driver

This patch adds ASoC platform glue driver for Trats board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agosound: soc: codecs: Import Yamaha YMU823 (MC1N2) codec driver
Tomasz Figa [Thu, 28 Feb 2013 18:38:05 +0000 (19:38 +0100)]
sound: soc: codecs: Import Yamaha YMU823 (MC1N2) codec driver

This patch adds initial version of Yamaha YMU823 (MC1N2) codec driver
ported for Linux 3.8 and Device Tree.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4: Add clkout Device Tree node
Tomasz Figa [Thu, 28 Feb 2013 17:57:07 +0000 (18:57 +0100)]
ARM: dts: exynos4: Add clkout Device Tree node

This patch adds device tree node for CLKOUT clock controller (part of
Exynos 4 PMU block).

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: exynos4: Add support for CLKOUT
Tomasz Figa [Thu, 28 Feb 2013 17:53:27 +0000 (18:53 +0100)]
clk: samsung: exynos4: Add support for CLKOUT

This patch adds the ability to control gating and muxing of CLKOUT
signal through common clock routines.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agosound: samsung: i2s: Correct I2S clock handling
Tomasz Figa [Thu, 28 Feb 2013 17:48:54 +0000 (18:48 +0100)]
sound: samsung: i2s: Correct I2S clock handling

Moving to Common Clock Framework introduced the need to configure clock
hierarchy and rates in driver.

This patch reworks clock handling in samsung-i2s driver to meet this
requirement.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: Add Exynos Audio Subsystem clock controller node
Sylwester Nawrocki [Thu, 21 Feb 2013 14:58:27 +0000 (15:58 +0100)]
ARM: dts: Add Exynos Audio Subsystem clock controller node

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoregulator: wm8994: Enable device tree based driver matching
Sylwester Nawrocki [Thu, 21 Feb 2013 14:54:19 +0000 (15:54 +0100)]
regulator: wm8994: Enable device tree based driver matching

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoclk: Add Exynos Audio Subsystem clocks driver
Sylwester Nawrocki [Thu, 21 Feb 2013 20:23:42 +0000 (21:23 +0100)]
clk: Add Exynos Audio Subsystem clocks driver

TODO: gate clocks.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: Add I2S device nodes for Exynos4 SoCs
Sylwester Nawrocki [Thu, 21 Feb 2013 14:23:39 +0000 (15:23 +0100)]
ARM: dts: Add I2S device nodes for Exynos4 SoCs

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: Use generic DMA bindings for Exynos4 SPI devices
Sylwester Nawrocki [Fri, 15 Feb 2013 17:55:41 +0000 (18:55 +0100)]
ARM: dts: Use generic DMA bindings for Exynos4 SPI devices

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoASoC: samsung: Add pinctrl support to I2S driver
Sylwester Nawrocki [Thu, 14 Feb 2013 17:33:26 +0000 (18:33 +0100)]
ASoC: samsung: Add pinctrl support to I2S driver

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: exynos4210-trats: add s5k5baf sensor support
Sylwester Nawrocki [Fri, 10 May 2013 13:16:07 +0000 (15:16 +0200)]
ARM: dts: exynos4210-trats: add s5k5baf sensor support

Added:
- i2c-gpio bus for the sensor,
- required regulators,
- MIPI-CSIS1 node,
- sensor node.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
9 years agom5mols: added device tree support
Andrzej Hajda [Wed, 27 Feb 2013 13:34:40 +0000 (14:34 +0100)]
m5mols: added device tree support

The only property required by m5mols is "gpios",
which should contain specification of reset GPIO.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
9 years agom5mols: device initialization moved to V4L2 registered callback
Andrzej Hajda [Wed, 27 Feb 2013 12:26:29 +0000 (13:26 +0100)]
m5mols: device initialization moved to V4L2 registered callback

Since parent media device controls camera clock
device initialization must be performed in registered callback.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
9 years agom5mols: improved power on routine
Andrzej Hajda [Wed, 27 Feb 2013 11:32:39 +0000 (12:32 +0100)]
m5mols: improved power on routine

1. Regulators are enabled sequentially.
2. Added 1ms delay after GPIO reset.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
9 years agoARM: dts: added trats m5mols camera support
Andrzej Hajda [Wed, 13 Feb 2013 14:33:06 +0000 (15:33 +0100)]
ARM: dts: added trats m5mols camera support

The patch adds:
- m5mols camera node,
- csis0 node,
- m5mols camera fixed regulators.
Additionally all fixed regulators are moved to regulators node.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: added cam_port_a to exynos4210 pinctrl
Andrzej Hajda [Wed, 27 Feb 2013 09:36:38 +0000 (10:36 +0100)]
ARM: dts: added cam_port_a to exynos4210 pinctrl

Patch adds cam_port a to exynos4210.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
9 years agoARM: dts: add mshc controller node for Exynos4x12 SoCs
Thomas Abraham [Wed, 27 Feb 2013 09:13:06 +0000 (10:13 +0100)]
ARM: dts: add mshc controller node for Exynos4x12 SoCs

Commit cea0f256 ("ARM: dts: Add board dts file for ODROID-X") includes a node
to describe the board level properties for mshc controller. But the mshc
controller node was not added in the Exynos4x12 dtsi file which resulted
in the following warning when compiling the dtb files.

Warning (reg_format): "reg" property in /mshc@12550000/slot@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /mshc@12550000/slot@0
Warning (avoid_default_addr_size): Relying on default #size-cells value for /mshc@12550000/slot@0

Fix this by adding the mshc controller node for Exynos4x12 SoCs.

Cc: Dongjin Kim <tobetter@gmail.com>
Cc: Kukjin Kim <kgene.kim@samsung.com>
[s.nawrocki: resolved merge conflict]
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Tested-by: Dongjin Kim <tobetter@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: exynos4412-redwood: Add gpu node for ARM Mali 400
Tomasz Figa [Thu, 21 Feb 2013 15:23:39 +0000 (16:23 +0100)]
ARM: dts: exynos4412-redwood: Add gpu node for ARM Mali 400

This patch adds gpu node with board-specific properties and status
override to enable G3D on Redwood board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add gpu node for ARM Mali 400
Tomasz Figa [Wed, 20 Feb 2013 09:59:43 +0000 (10:59 +0100)]
ARM: dts: exynos4210-trats: Add gpu node for ARM Mali 400

This patch adds gpu node with board-specific properties and status
override to enable G3D on Trats board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add G3D voltage regulator
Tomasz Figa [Wed, 20 Feb 2013 09:57:42 +0000 (10:57 +0100)]
ARM: dts: exynos4210-trats: Add G3D voltage regulator

This patch adds G3D voltage regulator, which is needed for voltage
scaling in Mali driver, to PMIC node.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-slp_pq: Add gpu node for ARM Mali 400
Tomasz Figa [Thu, 14 Feb 2013 11:25:47 +0000 (12:25 +0100)]
ARM: dts: exynos4412-slp_pq: Add gpu node for ARM Mali 400

This patch adds gpu node with board-specific properties and status
override to enable G3D on SLP_PQ board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4: Add gpu node for ARM Mali 400
Tomasz Figa [Thu, 14 Feb 2013 11:24:07 +0000 (12:24 +0100)]
ARM: dts: exynos4: Add gpu node for ARM Mali 400

This patch adds gpu node to exynos4 dtsi with properties common for all
Exynos4 SoCs.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: arm: mali400: mali: Add exynos4 platform code
Tomasz Figa [Fri, 10 May 2013 17:11:22 +0000 (19:11 +0200)]
gpu: arm: mali400: mali: Add exynos4 platform code

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: arm: mali400: Add support for Device Tree
Tomasz Figa [Fri, 10 May 2013 17:10:17 +0000 (19:10 +0200)]
gpu: arm: mali400: Add support for Device Tree

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: arm: mali400: ump: Remove call to flush_all_cpu_caches()
Tomasz Figa [Fri, 10 May 2013 17:06:39 +0000 (19:06 +0200)]
gpu: arm: mali400: ump: Remove call to flush_all_cpu_caches()

This function is not available anymore in Linux 3.8.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: arm: mali400: mali: Remove useless platforms
Tomasz Figa [Fri, 10 May 2013 12:53:03 +0000 (14:53 +0200)]
gpu: arm: mali400: mali: Remove useless platforms

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: arm: mali400: ump: Do not use non-existent VM_RESERVED flag
Tomasz Figa [Thu, 9 May 2013 15:21:56 +0000 (17:21 +0200)]
gpu: arm: mali400: ump: Do not use non-existent VM_RESERVED flag

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: arm: mali400: mali: Do not use non-existent VM_RESERVED flag
Tomasz Figa [Thu, 9 May 2013 15:21:28 +0000 (17:21 +0200)]
gpu: arm: mali400: mali: Do not use non-existent VM_RESERVED flag

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agogpu: arm: Import new mali400 drivers from exynos-3.4-dev tree
Tomasz Figa [Mon, 11 Feb 2013 16:53:37 +0000 (17:53 +0100)]
gpu: arm: Import new mali400 drivers from exynos-3.4-dev tree

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: exynos4: Add support for PLL46xx rate configuration
Tomasz Figa [Tue, 14 May 2013 17:20:03 +0000 (19:20 +0200)]
clk: samsung: exynos4: Add support for PLL46xx rate configuration

This patch adds support for rate configuration of PLL46xx, which is used
for EPLL and VPLL on Exynos4210.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: exynos4: Fix clock registration order
Tomasz Figa [Tue, 14 May 2013 17:17:33 +0000 (19:17 +0200)]
clk: samsung: exynos4: Fix clock registration order

This patch moves registration of fixed clocks and Exynos4210-specific
mux clocks before PLL registration, because some of those clocks are
needed for Exynos4210 PLL initialization.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: exynos4: Allow rate setting propagation through sclk_vpll
Tomasz Figa [Mon, 13 May 2013 15:54:36 +0000 (17:54 +0200)]
clk: samsung: exynos4: Allow rate setting propagation through sclk_vpll

This patch adds CLK_SET_RATE_PARENT flag to sclk_vpll to allow rate
configuration of VPLL on Exynos4210 and Exynos4x12.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: pll: Add support for PLL36xx rate configuration
Tomasz Figa [Mon, 13 May 2013 15:51:59 +0000 (17:51 +0200)]
clk: samsung: pll: Add support for PLL36xx rate configuration

This patch adds implementation of round_rate and set_rate operations of
PLL36xx PLLs used on Exynos 4x12 SoCs as EPLL and VPLL.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-slp_pq: Correct cpufreq device node
Lukasz Majewski [Mon, 4 Mar 2013 12:13:47 +0000 (13:13 +0100)]
ARM: dts: exynos4412-slp_pq: Correct cpufreq device node

9 years agoclk: samsung: pll: Do not return error codes in round_rate callback
Tomasz Figa [Fri, 1 Mar 2013 17:28:31 +0000 (18:28 +0100)]
clk: samsung: pll: Do not return error codes in round_rate callback

This patch modifies pll35xx round_rate callback to return current
frequency instead of error codes to avoid problems caused by clock core
using error codes as frequencies.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Use board name for BUCK1 regulator
Tomasz Figa [Fri, 1 Mar 2013 17:16:30 +0000 (18:16 +0100)]
ARM: dts: exynos4210-trats: Use board name for BUCK1 regulator

This patch removes the workaround originally required for cpufreq and
sets BUCK1 regulator name to name specified in board schematics.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add cpufreq node
Tomasz Figa [Fri, 1 Mar 2013 17:15:48 +0000 (18:15 +0100)]
ARM: dts: exynos4210-trats: Add cpufreq node

This patch adds cpufreq node with board-specific parameters to enable
CPU frequency scaling on Trats board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210: Add cpufreq node
Tomasz Figa [Fri, 1 Mar 2013 17:15:05 +0000 (18:15 +0100)]
ARM: dts: exynos4210: Add cpufreq node

This patch adds cpufreq node with SoC specific parameters of cpufreq
driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos4210: Use common clock operations for APLL configuration
Tomasz Figa [Fri, 1 Mar 2013 17:12:02 +0000 (18:12 +0100)]
cpufreq: exynos4210: Use common clock operations for APLL configuration

This patch modifies the driver to use clk_set_rate for setting the rate
of APLL.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos4210: Use device-based lookup for clocks
Tomasz Figa [Fri, 1 Mar 2013 17:10:53 +0000 (18:10 +0100)]
cpufreq: exynos4210: Use device-based lookup for clocks

This patch adds device-based lookup of clocks to allow lookup using
Device Tree.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: pll: Add support for PLL45xx rate setting
Tomasz Figa [Fri, 1 Mar 2013 16:53:53 +0000 (17:53 +0100)]
clk: samsung: pll: Add support for PLL45xx rate setting

This patch adds support for setting rate of PLL45xx based on PMS table
received from SoC-specific code.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: Replace set_apll code with common clock framework's clk_set_rate()
Lukasz Majewski [Mon, 25 Feb 2013 18:02:33 +0000 (19:02 +0100)]
cpufreq: Replace set_apll code with common clock framework's  clk_set_rate()

This commit is a first step for moving common clock's framework code
from exynos4x12-cpufreq.c to common clock framework.

Tested-at: Trats (U1HD) (Exynos4210), Proxima PQ, Redwood (Exynos4412)

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
9 years agoclock: Support for [A|M]PLL's (35xx) set_rate and round_rate functions
Lukasz Majewski [Mon, 25 Feb 2013 15:40:46 +0000 (16:40 +0100)]
clock: Support for [A|M]PLL's (35xx) set_rate and round_rate functions

Support for [A|M]PLL's [set|round]_rate functions has been added.
Now simple call to clk_set_rate is responsible for setting proper
frequency.

This commit allows for further refactoring of exynos4x12-cpufreq.c code.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
clk: Fix bug on setting xpll's pms value in clk-pll.c

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
9 years agoARM: dts: exynos4x12-slp_pq: Add cpufreq node
Tomasz Figa [Tue, 19 Mar 2013 14:25:52 +0000 (15:25 +0100)]
ARM: dts: exynos4x12-slp_pq: Add cpufreq node

This patch adds cpufreq node with board-specific parameters to enable
CPU frequency scaling on SLP PQ board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4x12: Add cpufreq node
Tomasz Figa [Tue, 19 Mar 2013 14:24:14 +0000 (15:24 +0100)]
ARM: dts: exynos4x12: Add cpufreq node

This patch adds cpufreq node with SoC specific paramaters for
cpufreq-exynos driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos4x12: Parse frequency table from device tree
Lukasz Majewski [Thu, 14 Feb 2013 18:43:20 +0000 (19:43 +0100)]
cpufreq: exynos4x12: Parse frequency table from device tree

Proxima PQ (rev1.1) can run stable at frequencies not higher than 1100 MHz.
In the current code (exynos4x12-cpufreq) frequency up to 1400 MHz
can be set (which shall work for REDWOOD).

For the Proxima PQ frequency table has been modified and passed via device
tree.

Tested-on: Proxima PQ rev1.1

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: Adjust exynos4x12 cpufreq to work with v3.8-mobile (with common clocks)
Lukasz Majewski [Wed, 13 Feb 2013 16:50:12 +0000 (17:50 +0100)]
cpufreq: Adjust exynos4x12 cpufreq to work with v3.8-mobile (with common clocks)

It was needed to change the clock names to reflect clock change on the
Exynos4412 device (especially arm_clk, mout_core") and add device-based
lookup to allow getting clocks from device tree.

Tested-on: Exynos4412 Proxima PQ (rev.1.1)

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos: Use device-based lookup for vdd_arm regulator
Tomasz Figa [Fri, 1 Mar 2013 17:09:39 +0000 (18:09 +0100)]
cpufreq: exynos: Use device-based lookup for vdd_arm regulator

This patch adds device-based lookup of vdd_arm regulator to allow lookup
using Device Tree.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos: Save struct device in driver data
Tomasz Figa [Fri, 1 Mar 2013 17:07:56 +0000 (18:07 +0100)]
cpufreq: exynos: Save struct device in driver data

This patch adds dev field in exynos cpufreq driver data to allow Device
Tree based clock and regulator lookups.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: Define cpufreq as a platform device
Lukasz Majewski [Thu, 14 Feb 2013 18:41:39 +0000 (19:41 +0100)]
cpufreq: Define cpufreq as a platform device

Now the cpufreq has been defined as a platform device. It will facilitate
binding to parameters passed via device tree.

We shall tweak the cpufreq configuration via board dependent dts files,
not per platform specific files.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
9 years agoARM: EXYNOS: Add sec_debug module stub
Tomasz Figa [Thu, 21 Feb 2013 15:25:00 +0000 (16:25 +0100)]
ARM: EXYNOS: Add sec_debug module stub

This patch adds simple stub for sec_debug module to allow unmodified
Tizen images to be booted.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-redwood: Enable MFC and CMA
Marek Szyprowski [Tue, 20 Aug 2013 13:15:13 +0000 (15:15 +0200)]
ARM: dts: exynos4412-redwood: Enable MFC and CMA

This patch adds device tree nodes for MFC and its CMA memory regions
to enable MFC/DRM/MALI support on Redwood board.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: exynos4x12: Disable handling of ISP power domain
Tomasz Figa [Thu, 21 Feb 2013 11:34:22 +0000 (12:34 +0100)]
ARM: dts: exynos4x12: Disable handling of ISP power domain

ISP power domain needs special handling and in current state disabling
it crashes the system. This patch disables ISP power domain handling
until it gets fixed.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: exynos4: List available mux clocks
Tomasz Figa [Thu, 14 Feb 2013 10:01:18 +0000 (11:01 +0100)]
clk: samsung: exynos4: List available mux clocks

This patch adds missing mux clocks to Device Tree binding documentation
of Exynos4 clock driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: enable invert feature of touchscreen
Joonyoung Shim [Tue, 29 Jan 2013 08:02:04 +0000 (17:02 +0900)]
ARM: dts: exynos4210-trats: enable invert feature of touchscreen

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
9 years agodrm/exynos: add EXYNOS_DISPLAY_TYPE_LCD for TIZEN
Joonyoung Shim [Tue, 29 Jan 2013 08:00:54 +0000 (17:00 +0900)]
drm/exynos: add EXYNOS_DISPLAY_TYPE_LCD for TIZEN

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
9 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

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
9 years agoARM: dts: Add missing MIPI-CSIS clock properties for Exynos4 SoCs
Sylwester Nawrocki [Wed, 13 Feb 2013 14:56:30 +0000 (15:56 +0100)]
ARM: dts: Add missing MIPI-CSIS clock properties for Exynos4 SoCs

Add MIPI-CSIS clock properties missing in commit
c266c6dc5fb3c597d0e1a706438aa64797ca249b
ARM: dts: Correct FIMC clocks definitions for Exynos4210

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add empty camera pinctrl property for Trats board
Sylwester Nawrocki [Wed, 13 Feb 2013 11:52:52 +0000 (12:52 +0100)]
ARM: dts: Add empty camera pinctrl property for Trats board

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add CMA region definitions and enable MFC for Trats board
Marek Szyprowski [Wed, 3 Jul 2013 06:54:47 +0000 (08:54 +0200)]
ARM: dts: Add CMA region definitions and enable MFC for Trats board

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: Add FIMC nodes for Exynos4210 Trats board
Sylwester Nawrocki [Wed, 13 Feb 2013 11:26:45 +0000 (12:26 +0100)]
ARM: dts: Add FIMC nodes for Exynos4210 Trats board

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Remove unnecessary properties in PQ camera node
Sylwester Nawrocki [Wed, 13 Feb 2013 11:26:09 +0000 (12:26 +0100)]
ARM: dts: Remove unnecessary properties in PQ camera node

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Correct FIMC clocks definitions for Exynos4210
Sylwester Nawrocki [Wed, 13 Feb 2013 11:24:42 +0000 (12:24 +0100)]
ARM: dts: Correct FIMC clocks definitions for Exynos4210

Set sclk_mpll as parent clock for FIMC and camera clocks
for Exynos4210 and mout_mpll_user_t for Exynos4x12.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoUSB: s3c-hsotg: fix Kconfig dependency
Marek Szyprowski [Tue, 12 Feb 2013 10:51:18 +0000 (11:51 +0100)]
USB: s3c-hsotg: fix Kconfig dependency

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: Add dts file for exynos4412-m0 board
Tomasz Figa [Tue, 5 Feb 2013 14:59:06 +0000 (15:59 +0100)]
ARM: dts: Add dts file for exynos4412-m0 board

This patch adds a basic dts file for M0 board based on Exynos 4412
SoC.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: Add dts file for exynos4412-redwood board
Tomasz Figa [Tue, 5 Feb 2013 14:59:06 +0000 (15:59 +0100)]
ARM: dts: Add dts file for exynos4412-redwood board

This patch adds a basic dts file for Redwood board based on Exynos 4412
SoC.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Update display nodes for CDF
Tomasz Figa [Wed, 6 Feb 2013 16:16:35 +0000 (17:16 +0100)]
ARM: dts: exynos4210-trats: Update display nodes for CDF

This patch updates DSI controller and LCD panel nodes in device tree
source of exynos4210-trats board for new exynos-dsi and s6e8ax0 drivers
using Common Display Framework.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-slp_pq: Update display nodes for CDF
Tomasz Figa [Mon, 28 Jan 2013 14:37:43 +0000 (15:37 +0100)]
ARM: dts: exynos4412-slp_pq: Update display nodes for CDF

This patch updates display device nodes in exynos4412-slp_pq.dts to be
compatible with new drivers using Common Display Framework.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4: Add node for exynos-dsi to exynos4.dtsi
Tomasz Figa [Fri, 31 Aug 2012 10:26:33 +0000 (12:26 +0200)]
ARM: dts: exynos4: Add node for exynos-dsi to exynos4.dtsi

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
ARM: dts: exynos4: Update DSI node for new driver

This patch updates DSI controller node in exynos4.dtsi for new
exynos-dsi driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agovideo: display: Add panel-s6e8aa0 driver
Tomasz Figa [Wed, 6 Feb 2013 16:11:57 +0000 (17:11 +0100)]
video: display: Add panel-s6e8aa0 driver

This patch adds a CDF-compliant panel driver for S6E8AA0 DSI
LCD panel.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agovideo: display: Add panel-s6d6aa1 driver
Tomasz Figa [Tue, 5 Feb 2013 14:57:50 +0000 (15:57 +0100)]
video: display: Add panel-s6d6aa1 driver

This patch adds a CDF-compliant panel driver for S6D6AA1 DSI LCD panel.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agovideo: display: Add exynos-dsi video source driver
Tomasz Figa [Mon, 28 Jan 2013 14:24:28 +0000 (15:24 +0100)]
video: display: Add exynos-dsi video source driver

This patch adds new driver for DSI master block available in Samsung
Exynos SoCs. The driver is designed and written specifically for Common
Display Framework.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: EXYNOS: Make MACH_EXYNOS4_DT select S5P_SETUP_MIPIPHY
Tomasz Figa [Mon, 3 Sep 2012 13:51:26 +0000 (15:51 +0200)]
ARM: EXYNOS: Make MACH_EXYNOS4_DT select S5P_SETUP_MIPIPHY

S5P_SETUP_MIPIPHY is needed for device tree support of MIPI DSI on
Exynos4.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: Exynos4: fix DSIM support
Marek Szyprowski [Mon, 11 Jun 2012 11:27:17 +0000 (13:27 +0200)]
ARM: Exynos4: fix DSIM support

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agovideo: add display-core
Tomasz Figa [Wed, 30 Jan 2013 10:07:46 +0000 (11:07 +0100)]
video: add display-core

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: Exynos: enable CMA and MFC for SLP_PQ board
Marek Szyprowski [Tue, 20 Aug 2013 12:59:04 +0000 (14:59 +0200)]
ARM: Exynos: enable CMA and MFC for SLP_PQ board

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agomedia: s5p-mfc: add support for runtime pm for memport client devices
Marek Szyprowski [Wed, 7 Aug 2013 09:01:53 +0000 (11:01 +0200)]
media: s5p-mfc: add support for runtime pm for memport client devices

Client device for handling memory/dma operations for right and left memory
port (memory bank) require runtime pm handling for correct operation. Add
required calls to power_on/power_off functions.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agomedia: s5p-mfc: remove DT hacks and simplify initialization code
Marek Szyprowski [Tue, 12 Feb 2013 13:03:29 +0000 (14:03 +0100)]
media: s5p-mfc: remove DT hacks and simplify initialization code

This patch removes custom initialization of reserved memory regions from
s5p-mfc driver. Memory initialization can be now handled by generic
code.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: Exynos: replace custom MFC reserved memory handling with generic code
Marek Szyprowski [Tue, 30 Jul 2013 13:23:55 +0000 (15:23 +0200)]
ARM: Exynos: replace custom MFC reserved memory handling with generic code

MFC driver use custom bindings for managing reserved memory. Those bindings
are not really specific to MFC device and no even well discussed. They can
be easily replaced with generic, platform independent code for handling
reserved and contiguous memory.

Two additional child devices for each memory port (AXI master) are
introduced to let one assign some properties to each of them. Later one
can also use them to assign properties related to SYSMMU controllers,
which can be used to manage the limited dma window provided by those
memory ports.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: init: add support for reserved memory defined by device tree
Marek Szyprowski [Fri, 9 Aug 2013 11:01:08 +0000 (13:01 +0200)]
ARM: init: add support for reserved memory defined by device tree

Enable reserved memory initialization from device tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrivers: of: add initialization code for dma reserved memory
Marek Szyprowski [Mon, 29 Jul 2013 12:09:55 +0000 (14:09 +0200)]
drivers: of: add initialization code for dma reserved memory

This patch adds device tree support for contiguous and reserved memory
regions defined in device tree.

Large memory blocks can be reliably reserved only during early boot.
This must happen before the whole memory management subsystem is
initialized, because we need to ensure that the given contiguous blocks
are not yet allocated by kernel. Also it must happen before kernel
mappings for the whole low memory are created, to ensure that there will
be no mappings (for reserved blocks) or mapping with special properties
can be created (for CMA blocks). This all happens before device tree
structures are unflattened, so we need to get reserved memory layout
directly from fdt.

Later, those reserved memory regions are assigned to devices on each
device structure initialization.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrivers: of: add function to scan fdt nodes given by path
Marek Szyprowski [Thu, 27 Jun 2013 08:32:15 +0000 (10:32 +0200)]
drivers: of: add function to scan fdt nodes given by path

Add a function to scan the flattened device-tree starting from the
node given by the path. It is used to extract information (like reserved
memory), which is required on early boot before we can unflatten the tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrivers: dma-contiguous: clean source code and prepare for device tree
Marek Szyprowski [Mon, 29 Jul 2013 12:31:45 +0000 (14:31 +0200)]
drivers: dma-contiguous: clean source code and prepare for device tree

This patch cleans the initialization of dma contiguous framework. The
all-in-one dma_declare_contiguous() function is now separated into
dma_contiguous_reserve_area() which only steals the the memory from
memblock allocator and dma_contiguous_add_device() function, which
assigns given device to the specified reserved memory area. This improves
the flexibility in defining contiguous memory areas and assigning device
to them, because now it is possible to assign more than one device to
the given contiguous memory area. Such split in initialization procedure
is also required for upcoming device tree support.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agoregulator: max77693: Remove no longer supported __dev* attributes
Sylwester Nawrocki [Fri, 8 Feb 2013 18:26:33 +0000 (19:26 +0100)]
regulator: max77693: Remove no longer supported __dev* attributes

This patch fixes following build error:

drivers/regulator/max77693.c:673: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
drivers/regulator/max77693.c:743: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘max77693_pmic_remove’
drivers/regulator/max77693.c:768: error: ‘max77693_pmic_probe’ undeclared here (not in a function)
drivers/regulator/max77693.c:769: error: implicit declaration of function ‘__devexit_p’
drivers/regulator/max77693.c:769: error: ‘max77693_pmic_remove’ undeclared here (not in a function)

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoregulator: Remove const from declation of reg_desc in regulator_dev.
Jonghwa Lee [Thu, 7 Feb 2013 06:05:27 +0000 (15:05 +0900)]
regulator: Remove const from declation of reg_desc in regulator_dev.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
9 years agoregulator: max77693: Add regulator driver for max77693
Jonghwa Lee [Thu, 7 Feb 2013 06:04:33 +0000 (15:04 +0900)]
regulator: max77693: Add regulator driver for max77693

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
9 years agov4l2: videobuf2-dc: fix support for mappings without struct page in userptr mode
Marek Szyprowski [Fri, 7 Jun 2013 12:09:29 +0000 (14:09 +0200)]
v4l2: videobuf2-dc: fix support for mappings without struct page in userptr mode

Earlier version of dma-contig allocator in user ptr mode assumed that in
all cases DMA address equals physical address. This was just a special case.
Commit e15dab752d4c588544ccabdbe020a7cc092e23c8 introduced correct support
for converting userpage to dma address, but unfortunately it broke the
support for simple dma address = physical address for the case, when given
physical frame has no struct page associated with it (this happens if one
use for example dma_declare_coherent api or other reserved memory approach).
This commit restores support for such cases.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: Add camera clocks definitions to exynos4/x12.dtsi
Sylwester Nawrocki [Fri, 18 Jan 2013 18:14:50 +0000 (19:14 +0100)]
ARM: dts: Add camera clocks definitions to exynos4/x12.dtsi

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add MFC node for Exynos4 SoC series
Sylwester Nawrocki [Tue, 29 Jan 2013 13:44:19 +0000 (14:44 +0100)]
ARM: dts: Add MFC node for Exynos4 SoC series

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add pinctrl property to fimc-is node for PQ board
Sylwester Nawrocki [Wed, 23 Jan 2013 16:25:56 +0000 (17:25 +0100)]
ARM: dts: Add pinctrl property to fimc-is node for PQ board

9 years agoARM: dts: Add pinctrl entries for FIMC-IS peripherals
Sylwester Nawrocki [Mon, 7 Jan 2013 19:27:53 +0000 (20:27 +0100)]
ARM: dts: Add pinctrl entries for FIMC-IS peripherals

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>