platform/kernel/linux-exynos.git
7 years agoLOCAL / arm64 dts: exynos5433: Add always on clock for aud uart
Beomho Seo [Fri, 10 Apr 2015 07:59:58 +0000 (16:59 +0900)]
LOCAL / arm64 dts: exynos5433: Add always on clock for aud uart

This patch add always on clock for aud uart.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoLOCAL / arm64: dts: exynos5433: Add sleep state pinctrl for bluetooth
Beomho Seo [Fri, 10 Apr 2015 06:39:56 +0000 (15:39 +0900)]
LOCAL / arm64: dts: exynos5433: Add sleep state pinctrl for bluetooth

This patch add sleep state pinctrl for bluetooth.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoLOCAL / net: rfkill: Fix irq trigger
Beomho Seo [Fri, 10 Apr 2015 06:33:19 +0000 (15:33 +0900)]
LOCAL / net: rfkill: Fix irq trigger

This patch fix wrong irq trigger.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agocpufreq: arm_big_little_dt: Free opp table from referenced CPU
Jonghwa Lee [Fri, 17 Apr 2015 17:56:46 +0000 (02:56 +0900)]
cpufreq: arm_big_little_dt: Free opp table from referenced CPU

When opp table is defined only one for each CLUSTER, opp table might
not be freed even all CPUs in CLUSTER hoplugged off unless last CPU
was referenced one. And un-freed opp table occurs annoying warning
messages when CPU hotplugged on again.

<Warning Log>
[ 2931.471956] cpu cpu4: _opp_add_dynamic: duplicate OPPs detected ~

So it fixes it to work corretly with modifying freeing procedure.
If last CPU is not the referenced one which holds opp table for CLUSTER,
it tries to find opp table from other sibling CPUs. Otherwise, it just
free itself's.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm64: dts: exynos5433: Add 'suspend-freq' to cpu's node.
Jonghwa Lee [Fri, 17 Apr 2015 16:56:45 +0000 (01:56 +0900)]
arm64: dts: exynos5433: Add 'suspend-freq' to cpu's node.

The property 'suspend-freq' will be used to preset CPU's freqeuncy
before entering suspend state. It sets the value to default at booting.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agocpufreq: arm_big_little_dt: Parse suspend frequency from CPU's dt node
Jonghwa Lee [Fri, 17 Apr 2015 16:49:22 +0000 (01:49 +0900)]
cpufreq: arm_big_little_dt: Parse suspend frequency from CPU's dt node

Some bigLittle system needs safety CPU freqeuncy to enter suspend state.
And it provides the way to get the frequency via devicetree.
Obtained suspend-safe frequency will be preset before the CPU goes into
sleep through the help of CPUFREQ subsystem.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agocpufreq: arm_big_little: Introduce suspend callback for bigLittle
Jonghwa Lee [Fri, 17 Apr 2015 16:36:16 +0000 (01:36 +0900)]
cpufreq: arm_big_little: Introduce suspend callback for bigLittle

It adds cpufreq's suspend callback to satisfy with some specific
requirements for suspend depends on chip implementation. When CPUFREQ
subsystem goes into suspend this driver will simply call arm_bL_ops's
suspend callback if it exists.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agortc: s3c: Make tick timer to be a selectable option.
Jonghwa Lee [Thu, 14 Aug 2014 10:57:03 +0000 (19:57 +0900)]
rtc: s3c: Make tick timer to be a selectable option.

s3c rtc driver has enabled timer tick default. However in some system,
it's not a mandatory option. So it modifies driver that tick timer can
be enabled selectively with a property, 's3c-rtc-tick-en', in DT.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
[k.kozlowski: rebased on 4.1]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agoarm64: dts: exynos5433: Enable Exynos5433 RTC device
Jonghwa Lee [Thu, 9 Apr 2015 05:15:22 +0000 (14:15 +0900)]
arm64: dts: exynos5433: Enable Exynos5433 RTC device

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoi2c: exynos5: Adjust initcall level to subsys_initcall.
Jonghwa Lee [Thu, 9 Apr 2015 05:08:52 +0000 (14:08 +0900)]
i2c: exynos5: Adjust initcall level to subsys_initcall.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm64: dts: exynos5433-tm2: Add suspend-on, suspend-reparent clocks.
Jonghwa Lee [Fri, 3 Apr 2015 05:29:00 +0000 (14:29 +0900)]
arm64: dts: exynos5433-tm2: Add suspend-on, suspend-reparent clocks.

This patch adds following clocks to 'suspend-on' clock list,

- CLK_SCLK_DSIM0_DISP,
- CLK_ACLK_DSIP_333,
- CLK_SCLK_DECON_ECLK_DISP,

and adds following clock to 'suspend-reparent' clock list.

- CLK_MOUT_AUD_PLL_USER

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm64: dts: exynos5433-tm2: Add always-on clocks.
Jonghwa Lee [Fri, 3 Apr 2015 05:25:46 +0000 (14:25 +0900)]
arm64: dts: exynos5433-tm2: Add always-on clocks.

This patch adds following clocks to 'always-on' clock domain.

- CLK_PCLK_UART1
- CLK_SCLK_UART1
- CLK_PCLK_AUD_UART

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoclk: samsung: exynos5433: Add suspend_prepare/unprepare callback.
Jonghwa Lee [Fri, 3 Apr 2015 05:17:22 +0000 (14:17 +0900)]
clk: samsung: exynos5433: Add suspend_prepare/unprepare callback.

This patch adds exynos5433 CMU's suspend_prepare/unprepare callback.
Exynos5433 has clocks to be controlled before entering suspend.
There're two types of clocks, one is a clock which has to be turned
on at suspend, and another is a clock which has to be set parent clock
to specified one. It can be defined at device tree with properties,
'suspend-on-clks' and 'suspend-reparent-clks'.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoclk: samsung: Introduce supend_prepare/unprepare callback.
Jonghwa Lee [Fri, 3 Apr 2015 05:16:51 +0000 (14:16 +0900)]
clk: samsung: Introduce supend_prepare/unprepare callback.

To manage the chip dependent clock control for suspend, this patch introduce
additional suspend callback at the level of entering suspend.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoLOCAL / RFC / clk: Provide an always-on clock domain framework
Lee Jones [Fri, 27 Mar 2015 08:47:27 +0000 (17:47 +0900)]
LOCAL / RFC / clk: Provide an always-on clock domain framework

Lots of platforms contain clocks which if turned off would prove fatal.
The only way to recover is to restart the board(s).  This driver takes
references to clocks which are required to be always-on in order to
prevent the common clk framework from trying to turn them off during
the clk_disabled_unused() procedure.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
7 years agoarm64: defconfig: Enable CONFIG_EXYNOS5433_PMU, CONFIG_EXYNOS5433_PM option
Jonghwa Lee [Mon, 16 Mar 2015 14:05:31 +0000 (23:05 +0900)]
arm64: defconfig: Enable CONFIG_EXYNOS5433_PMU, CONFIG_EXYNOS5433_PM option

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agospi: s3c64xx: Enable SCLK, PCLK to access sfr register during resume.
Jonghwa Lee [Mon, 16 Mar 2015 13:52:28 +0000 (22:52 +0900)]
spi: s3c64xx: Enable SCLK, PCLK to access sfr register during resume.

For Exynos5433, it needs to enable both of SCLK, PCLK clocks to access
sfr registers. It enables them before calling s3c64xx_spi_hw_init() at
resume state regardless of runtime pm state. After initialization, it
disables them again depends on runtime pm state to synchorize with
enabling count.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm64: dts: exynos5433-tm2: Set suspend operation mode of s2mps13 regulations.
Jonghwa Lee [Tue, 16 Dec 2014 07:52:14 +0000 (16:52 +0900)]
arm64: dts: exynos5433-tm2: Set suspend operation mode of s2mps13 regulations.

Mark regulators to be powered off during in suspend.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agosoc: samsung: Called regulator_suspend_prepare/finish for suspend.
Jonghwa Lee [Tue, 10 Mar 2015 06:32:09 +0000 (15:32 +0900)]
soc: samsung: Called regulator_suspend_prepare/finish for suspend.

To enter system-wide suspend, it may requires to set suspend operation
mode for regulators. Thus it calls regulator_suspend_prepare()/_finish()
at the proper step of suspend.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoclk: exynos5433: Add 'CLK_IGNORE_UNUSED' flag to clocks occuring hang at resume
Jonghwa Lee [Mon, 15 Dec 2014 11:29:40 +0000 (20:29 +0900)]
clk: exynos5433: Add 'CLK_IGNORE_UNUSED' flag to clocks occuring hang at resume

Add 'CLK_IGNORE_UNUSED' flag to th clocks which make hang at wake-up.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoclk: exynos5433: Add CLK_IGNORE_UNUSED flag to clocks occurring hang at sleep
Jonghwa Lee [Tue, 9 Dec 2014 11:34:41 +0000 (20:34 +0900)]
clk: exynos5433: Add CLK_IGNORE_UNUSED flag to clocks occurring hang at sleep

Some clocks are required being unmasked during suspend-to-ram. Otherwise,
PMU will stuck and power line never down.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoclk: exynos5433: Add 'CLK_IGNORE_UNUSED' flag to clocks for sercure monitor call
Jonghwa Lee [Tue, 2 Dec 2014 01:55:39 +0000 (10:55 +0900)]
clk: exynos5433: Add 'CLK_IGNORE_UNUSED' flag to clocks for sercure monitor call

This patch adds 'CLK_IGNORE_UNUSED' flag to clocks which is required for
operation of secure monitor call (smc). System will hang when it executes 'smc'
with one of those clock is gated. All related clocks must be enabled.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoLOCAL / arm64: psci: Support generic pm suspend withtout CPUIDLE subsystem's help.
Jonghwa Lee [Wed, 17 Dec 2014 05:17:58 +0000 (14:17 +0900)]
LOCAL / arm64: psci: Support generic pm suspend withtout CPUIDLE subsystem's help.

Current psci's cpu_suspend callback can be used only when common cpu idle
configuration is enabled. However, it's also needed for system which only
uses generic pm suspend not cpu idle. This patch modifies psci driver to
support both of cases.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm64: dts: exynos5433: Add device node of EXYNOS5433 iRAM
Jonghwa Lee [Wed, 17 Dec 2014 08:01:52 +0000 (17:01 +0900)]
arm64: dts: exynos5433: Add device node of EXYNOS5433 iRAM

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agosoc: samsung: exynos5433: Add support pm driver for EXYNOS5433
Jonghwa Lee [Wed, 17 Dec 2014 08:17:59 +0000 (17:17 +0900)]
soc: samsung: exynos5433: Add support pm driver for EXYNOS5433

This patch adds EXYNOS5433 pm driver which supports EXNOS5433 dependent
procedures to enter suspend.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
[Replace cpu_suspend to arm_cpuidle_suspend as commit fb1de80 ("arm64: kernel: rename __cpu_suspend to keep it aligned with arm")]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agosoc: samsung: Add support EXYNOS generic power management driver.
Jonghwa Lee [Wed, 17 Dec 2014 08:06:03 +0000 (17:06 +0900)]
soc: samsung: Add support EXYNOS generic power management driver.

To enter suspend, EXYNOS requires some machine dependent procedures.
This patch introduces new driver to support those requirements and generic
interface for power state management.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agosoc: samsung: exynos5433-pmu: Add support pmu driver for EXYNOS5433.
Jonghwa Lee [Tue, 16 Dec 2014 11:41:58 +0000 (20:41 +0900)]
soc: samsung: exynos5433-pmu: Add support pmu driver for EXYNOS5433.

Add initial support Exynos5433's PMU driver. Exynos5433 PMU has more specified
system level power down modes compared to former vesion to satisfy the various
needs.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoWIP: soc: samsung: Initial support PMU driver for EXYNOS SoCs.
Jonghwa Lee [Tue, 16 Dec 2014 11:13:39 +0000 (20:13 +0900)]
WIP: soc: samsung: Initial support PMU driver for EXYNOS SoCs.

This patch's manually ported with the Pnakaj's patches from ML,
(https://lkml.org/lkml/2014/11/30/175)

It's now in progress, however it's needed for further test of suspend-to-ram.
It will be rebased, when it finally goes into merge window.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm: dts: exynos5433: Add psci suspend code to exynos5433.dtsi
Jonghwa Lee [Mon, 8 Dec 2014 13:57:16 +0000 (22:57 +0900)]
arm: dts: exynos5433: Add psci suspend code to exynos5433.dtsi

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoLOCAL / arm64: configs: Update defconfig to enable CPU_THERMAL
Chanwoo Choi [Fri, 17 Apr 2015 09:51:22 +0000 (18:51 +0900)]
LOCAL / arm64: configs: Update defconfig to enable CPU_THERMAL

This patch enables the CONFIG_CPU_THERMAL.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433: Reduce the temperature of thermal trip ponit for Exynos5433
Chanwoo Choi [Fri, 17 Apr 2015 09:49:45 +0000 (18:49 +0900)]
arm64: dts: exynos5433: Reduce the temperature of thermal trip ponit for Exynos5433

This patch reduces the temperature of thermal trip point for Exynos5433
because basic temperature of thermal trip point is too high.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433: Add CPU cooling binding for Exynos5433 SoC
Chanwoo Choi [Fri, 17 Apr 2015 09:32:40 +0000 (18:32 +0900)]
arm64: dts: exynos5433: Add CPU cooling binding for Exynos5433 SoC

This patch adds the CPU cooling binding information for Exynos5433 SoC.
Each cooling map has both trip property and cooling-device property.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agocpufreq: arm_big_little: Add dt node parsing for cooling device properties
Chanwoo Choi [Fri, 17 Apr 2015 08:29:01 +0000 (17:29 +0900)]
cpufreq: arm_big_little: Add dt node parsing for cooling device properties

This patch adds the devicetree node to create the cpufreq cooling device
which is used as cooling device for thermal frameowrk.

Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: configs: enable uinput config
Seung-Woo Kim [Thu, 16 Apr 2015 05:15:25 +0000 (14:15 +0900)]
LOCAL / arm64: configs: enable uinput config

This patch enables uinput config to support userland input driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoLOCAL / arm64: configs: Enable KTD2692 Flash Led driver on tm2 board.
Ingi Kim [Mon, 13 Apr 2015 04:03:06 +0000 (13:03 +0900)]
LOCAL / arm64: configs: Enable KTD2692 Flash Led driver on tm2 board.

This patch enables KTD2692 FLASH LED Driver on tm2 board.

7 years agoLOCAL / arm64: dts: exynos5433: Add flash led node
Ingi Kim [Fri, 10 Apr 2015 05:25:06 +0000 (14:25 +0900)]
LOCAL / arm64: dts: exynos5433: Add flash led node

This patch adds flash led node and dummy regulator for KTD2692

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
7 years agoLOCAL / leds: Add ktd2692 flash LED driver
Ingi Kim [Thu, 29 Jan 2015 08:24:38 +0000 (17:24 +0900)]
LOCAL / leds: Add ktd2692 flash LED driver

This patch adds a driver to support the ktd2692 flash LEDs.
ktd2692 can control flash current by ExpressWire interface.

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
7 years agoLOCAL / leds: ktd2692: add device tree bindings for ktd2692
Ingi Kim [Thu, 29 Jan 2015 09:22:37 +0000 (18:22 +0900)]
LOCAL / leds: ktd2692: add device tree bindings for ktd2692

This patch adds the device tree bindings for ktd2692 flash LEDs.
Add Optional properties of child node for Flash LED

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
[k.kozlowski: rebased on 4.1]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agoLOCAL / of: Add vendor prefix for Kinetic technologies
Ingi Kim [Mon, 23 Feb 2015 12:53:11 +0000 (21:53 +0900)]
LOCAL / of: Add vendor prefix for Kinetic technologies

This patch adds vendor prefix for Kinetic technologies

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
Acked-by: Rob Herring <robh@kernel.org>
7 years agousb: dwc3: gadget: fix enumeration fail after suspend
Jaewon Kim [Wed, 15 Apr 2015 10:26:36 +0000 (19:26 +0900)]
usb: dwc3: gadget: fix enumeration fail after suspend

EP setup is not nessasary when entering resume state.
Because EP setup moved to dwc3_udc_init().

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL / arm64: dts: change keycode of keyboard device
Beomho Seo [Wed, 15 Apr 2015 05:09:35 +0000 (14:09 +0900)]
LOCAL / arm64: dts: change keycode of keyboard device

This patch change keycode of touchkey and gpio-keys.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoLOCAL / input: keyboard: add disable_irq for prevent irq when reboot
Beomho Seo [Tue, 14 Apr 2015 08:07:15 +0000 (17:07 +0900)]
LOCAL / input: keyboard: add disable_irq for prevent irq when reboot

For prevent irq when reboot, This patch add disable_irq() in cypress
shutdown function.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoLOCAL / arm64: dts: remove regulator-always-on property
Beomho Seo [Tue, 14 Apr 2015 08:04:40 +0000 (17:04 +0900)]
LOCAL / arm64: dts: remove regulator-always-on property

This patch remove regulator-always-on property at LDO33.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoclk: samsung: exynos5433: add DIV_CPIF to store it when the board is being suspended
Hyungwon Hwang [Thu, 9 Apr 2015 08:30:02 +0000 (17:30 +0900)]
clk: samsung: exynos5433: add DIV_CPIF to store it when the board is being suspended

This register must be stored when the device is suspended, and must be restored
when it is back. This patch adds the register to the list of storing registers.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
7 years agoLOCAL / clk: s2mps11: Avoid deadlock issue between regmap and CCF
Chanwoo Choi [Mon, 13 Apr 2015 12:19:31 +0000 (21:19 +0900)]
LOCAL / clk: s2mps11: Avoid deadlock issue between regmap and CCF

This patch avoids the deadlock issue between regmap framework and common clock
framework by remaining the always on state for S2MPS11 clocks without any i2c
operation. It is workaround solution to avoid the deadlock issue.

[ 2833.400071] INFO: task swapper/0:1 blocked for more than 120 seconds.
[ 2833.400211]       Not tainted 4.0.0-00337-gee47844-dirty #4
[ 2833.400328] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this
message.
[ 2833.400489] swapper/0       D ffffffc000086e0c     0     1      0 0x00000000
[ 2833.404602] Call trace:
[ 2833.407042] [<ffffffc000086e0c>] __switch_to+0x74/0x8c
[ 2833.412251] [<ffffffc00089842c>] __schedule+0x21c/0x6d0
[ 2833.417363] [<ffffffc000898910>] schedule+0x30/0x8c
[ 2833.422253] [<ffffffc00089c234>] schedule_timeout+0x14c/0x204
[ 2833.427953] [<ffffffc0008993ec>] wait_for_common+0xa0/0x148
[ 2833.433533] [<ffffffc0008994a4>] wait_for_completion+0x10/0x1c
[ 2833.439324] [<ffffffc0000ae90c>] flush_workqueue+0x108/0x568
[ 2833.444992] [<ffffffc000447fc4>] deferred_probe_initcall+0x54/0x88
[ 2833.451151] [<ffffffc0000828d4>] do_one_initcall+0x88/0x1a0
[ 2833.456685] [<ffffffc000d62b34>] kernel_init_freeable+0x1bc/0x260
[ 2833.462783] [<ffffffc000893350>] kernel_init+0xc/0xd8
[ 2833.467793] INFO: task kworker/u16:0:6 blocked for more than 120 seconds.
[ 2833.474586]       Not tainted 4.0.0-00337-gee47844-dirty #4
[ 2833.480138] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this
message.
[ 2833.487928] kworker/u16:0   D ffffffc000086e0c     0     6      2 0x00000000
[ 2833.494967] Workqueue: deferwq deferred_probe_work_func
[ 2833.500166] Call trace:
[ 2833.502602] [<ffffffc000086e0c>] __switch_to+0x74/0x8c
[ 2833.507721] [<ffffffc00089842c>] __schedule+0x21c/0x6d0
[ 2833.512950] [<ffffffc000898910>] schedule+0x30/0x8c
[ 2833.517791] [<ffffffc000898cd8>] schedule_preempt_disabled+0x10/0x24
[ 2833.524151] [<ffffffc00089b0f4>] __mutex_lock_slowpath+0x148/0x368
[ 2833.530310] [<ffffffc00089b324>] mutex_lock+0x10/0x30
[ 2833.535328] [<ffffffc00045bd14>] regmap_lock_mutex+0x8/0x14
[ 2833.540906] [<ffffffc00045e844>] regmap_update_bits+0x24/0x60
[ 2833.546611] [<ffffffc0005c6800>] s2mps11_clk_prepare+0x20/0x2c
[ 2833.552450] [<ffffffc0005c21bc>] clk_core_prepare+0x50/0x84
[ 2833.557979] [<ffffffc0005c220c>] clk_prepare+0x1c/0x48
[ 2833.563125] [<ffffffc000633084>] tm2_late_probe+0x54/0xc0
[ 2833.568658] [<ffffffc00061ae50>] snd_soc_register_card+0xe48/0xf3c
[ 2833.574844] [<ffffffc000627644>] devm_snd_soc_register_card+0x38/0x8c
[ 2833.581262] [<ffffffc0006332a8>] tm2_wm5110_probe+0x1b8/0x28c
[ 2833.587147] [<ffffffc000449f6c>] platform_drv_probe+0x48/0xb8
[ 2833.592897] [<ffffffc000448290>] driver_probe_device+0x8c/0x244
[ 2833.598776] [<ffffffc00044848c>] __device_attach+0x44/0x54
[ 2856.015428] [<ffffffc0004466c4>] bus_for_each_drv+0x50/0x94
[ 2856.020961] [<ffffffc0004481b8>] device_attach+0x9c/0xcc
[ 2856.026213] [<ffffffc0004477c8>] bus_probe_device+0x8c/0xb4
[ 2856.031786] [<ffffffc000447c28>] deferred_probe_work_func+0x70/0xa8
[ 2856.038019] [<ffffffc0000b0b78>] process_one_work+0x158/0x424
[ 2856.043761] [<ffffffc0000b16ec>] worker_thread+0x140/0x474
[ 2856.049216] [<ffffffc0000b5f44>] kthread+0xd8/0xf0

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: dts: enable ehci dt node for tm2 board
Jaewon Kim [Mon, 13 Apr 2015 12:27:21 +0000 (21:27 +0900)]
LOCAL / arm64: dts: enable ehci dt node for tm2 board

This patch enables ehci and related PHY to use
HSIC(High-Speed Interchip) function for modem.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agousb: ehci-exynos: fix clock disble order after usb_put_hcd()
Jaewon Kim [Mon, 13 Apr 2015 13:14:42 +0000 (22:14 +0900)]
usb: ehci-exynos: fix clock disble order after usb_put_hcd()

This patch fixes clock disable order to prevent kernel panic.
If driver turn off ehci clock entering reboot state,
sometime kernel panic occured.

[<ffffffc00050715c>] ehci_halt+0x4c/0xac
[<ffffffc0005071d0>] ehci_silence_controller+0x14/0xcc
[<ffffffc000507b8c>] ehci_shutdown+0x48/0x64
[<ffffffc0004e6b54>] usb_hcd_platform_shutdown+0x18/0x24
[<ffffffc00044ab88>] platform_drv_shutdown+0x1c/0x38
[<ffffffc000446f1c>] device_shutdown+0xd8/0x1ec
[<ffffffc0000b85d0>] kernel_restart_prepare+0x30/0x3c
[<ffffffc0000b86ac>] kernel_restart+0x10/0x74
[<ffffffc0000b8984>] SyS_reboot+0x10c/0x214

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL / phy: Kconfig: Add description for Exynos SoCs
Jaewon Kim [Mon, 13 Apr 2015 13:32:40 +0000 (22:32 +0900)]
LOCAL / phy: Kconfig: Add description for Exynos SoCs

This patch adds desciptions to choose USB phy.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agophy: exynos5250-usb2: add USB2.0 PHY for Exynos5433 SoC
Jaewon Kim [Mon, 13 Apr 2015 13:30:37 +0000 (22:30 +0900)]
phy: exynos5250-usb2: add USB2.0 PHY for Exynos5433 SoC

Exynos5433 USB2.0 PHY register layout similar as Exynos5250.
But Exynos5433 has only one USB2.0 Host and one HSIC.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL / dts: add extcon property in charger
Jaewon Kim [Fri, 10 Apr 2015 13:23:49 +0000 (22:23 +0900)]
LOCAL / dts: add extcon property in charger

This patch adds extcon property to support reverse boost capability
to use USB OTG function.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agopower: max77843_charger: update to support OTG VBUS control
Jaewon Kim [Fri, 10 Apr 2015 13:24:46 +0000 (22:24 +0900)]
power: max77843_charger: update to support OTG VBUS control

This patch adds OTG VBUS control function via extcon framwork.
If OTG accessories attached to MUIC(Micro USB Inter), current direction
should change to reverse(Battary -> USB VBUS).

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL: arm64: dts: fix video clock frequency
Inki Dae [Mon, 13 Apr 2015 13:01:54 +0000 (22:01 +0900)]
LOCAL: arm64: dts: fix video clock frequency

Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 years agoLOCAL / arm64: dts: Fix wrong x-size of touchscreen
Beomho Seo [Mon, 13 Apr 2015 09:53:06 +0000 (18:53 +0900)]
LOCAL / arm64: dts: Fix wrong x-size of touchscreen

This patch fix wrong x-size of touchscreen.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agolocal / mmc: dw_mmc: exynos: fix the bit rotation operation for sampling clock
Jaehoon Chung [Fri, 10 Apr 2015 11:11:28 +0000 (20:11 +0900)]
local / mmc: dw_mmc: exynos: fix the bit rotation operation for sampling clock

This used the workaround code instead of ror8().
With ror8,
    __c =  ror8(0x7f, 1) -> __c is 0x3f. (Expected value is 0xbf)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/mmc: dw_mmc: exynos: Add codes to change the clk_drv
Jaehoon Chung [Thu, 9 Apr 2015 11:44:01 +0000 (20:44 +0900)]
local/mmc: dw_mmc: exynos: Add codes to change the clk_drv

Add the clk_drv values.
If it doesn't find the best clk_sample value, then try again after increasing the
clk_drv value.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoLOCAL / arm64: dts: Add sound property to support Ear Jack and External Accessory
Inha Song [Wed, 4 Mar 2015 11:14:42 +0000 (20:14 +0900)]
LOCAL / arm64: dts: Add sound property to support Ear Jack and External Accessory

This patch add sound property to support Ear Jack and External Accessory in TM2 board.

- wlf,micd-detect-debounce is additional software microphone detection
debounce time. That is specified in milliseconds.

- wlf,micd-bias-start-time is mic detect bias startup delay. That is
specified as per the MICD_BIAS_STARTTIME bits in the register MIC_DETECT_1.
The MICD_BIAS_STARTTIME register should be set to 0.25 or more if MICBn_REATE
is 0. For example, If value is 0x1, then Mic Detect Bias startup delay is 0.25ms.

- wlf,micd-rate is delay between successive microphone detection measurements.
That is specified as per the MICD_RATE bits in the register MIC_DTECT_1.
For example, If value is 0x7, then Mic Detect rate is 16ms.

- wlf,micd-dbtime is microphone detection hardware debounce level. That is
specified as per the MICD bits in the register MIC_DTECT_1. It is only
vaild when ACCDET_MODE to MICDETn discreate mode. For example, If value is
0x1, then Mic Detect debounce is 4 measurements.

- wlf,micd-force-micbias is for force MICBIAS continuously on during microphone
detection.

- wlf,micd-ranges is microphone detection level and key configuration
in arizona-extcon. According to this property, Mic detect level select
was set to 1 for enable Mic/Accessory Detection impedance ranges.

- wlf,micd-configs is headset polarity configurations in arzona-extcon.
According to this properyt, accesory detect feadback pin and accesory
detect bias reference was set to value.

- wlf,gpsw is for general purpose switch control (SW1_MODE register).

- wlf,hpdet-channel is for headphone detect channel change to HPDETR.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoLOCAL / ASoC: samsung: Add audio interface support for Voice call, BT, and external...
Inha Song [Wed, 4 Mar 2015 11:13:21 +0000 (20:13 +0900)]
LOCAL / ASoC: samsung: Add audio interface support for Voice call, BT, and external accessory

This patch add audio interface support for BT and Voice call and external accessory.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoLOCAL / extcon: arizona: Add support for change headphone detection mode
Inha Song [Tue, 7 Apr 2015 10:53:11 +0000 (19:53 +0900)]
LOCAL / extcon: arizona: Add support for change headphone detection mode

This patch add support for change headphone detection mode to HPDETL or HPDETR.
Depending on board design, headphone detect mode can change to HPDETR.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoextcon: arizona: Add simple microphone detection device tree bindings
Charles Keepax [Thu, 19 Sep 2013 16:57:15 +0000 (17:57 +0100)]
extcon: arizona: Add simple microphone detection device tree bindings

Add device tree bindings for several of simpler microphone detection
pdata fields.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agomfd: arizona: Add micdet ranges and polarity device tree bindings
Charles Keepax [Thu, 19 Sep 2013 17:01:37 +0000 (18:01 +0100)]
mfd: arizona: Add micdet ranges and polarity device tree bindings

Add device tree bindings for the pdata that configures the microphone
button detection and microphone detection polarity configurations.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agoextcon: arizona: Add support for general purpose switch
Charles Keepax [Wed, 23 Oct 2013 15:43:38 +0000 (16:43 +0100)]
extcon: arizona: Add support for general purpose switch

The switch is typically used in conjunction with the MICDET clamp in
order to suppress pops and clicks associated with jack insertion.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
7 years agoextcon: arizona: Add processing of mic det DT into extcon driver
Charles Keepax [Tue, 22 Oct 2013 15:13:40 +0000 (16:13 +0100)]
extcon: arizona: Add processing of mic det DT into extcon driver

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
7 years agoLOCAL / arm64: dts: Change sound node clock names to mclk1 and add mclk2 clock for...
Inha Song [Thu, 26 Feb 2015 08:39:18 +0000 (17:39 +0900)]
LOCAL / arm64: dts: Change sound node clock names to mclk1 and add mclk2 clock for jack detect

This patch change sound node clock names that for WM5110 mclk1 source to mclk1 and
add mclk2 clock for jack detect.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoLOCAL / ASoC: samsung: Enable mclk2 for jack detect
Inha Song [Thu, 26 Feb 2015 10:32:43 +0000 (19:32 +0900)]
LOCAL / ASoC: samsung: Enable mclk2 for jack detect

This patch enable mclk2 for jack detect in TM2 board.
The internal 32kHz clock must be present and enabed when
using the jack insertion or accessory detection.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoLOCAL / ASoC: samsung: Change variable names to codec_mclk1
Inha Song [Thu, 26 Feb 2015 08:34:48 +0000 (17:34 +0900)]
LOCAL / ASoC: samsung: Change variable names to codec_mclk1

This patch chagne variable names to codec_mclk1 from codec_mclk.
WM5110 codec have two mclk for FLL1 and FLL2 source.

So we should distinguish variable name for that two mclk.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoregulator: arizona-ldo1: Increase enable time
Charles Keepax [Thu, 12 Jun 2014 08:20:47 +0000 (09:20 +0100)]
regulator: arizona-ldo1: Increase enable time

Recent evaluation of the device suggests that some systems might need an
increased enable time, increase this to be safe.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
7 years agolocal / arm64: dts: add more opp steps for mali devfreq
Joonyoung Shim [Wed, 8 Apr 2015 05:00:20 +0000 (14:00 +0900)]
local / arm64: dts: add more opp steps for mali devfreq

Mali can support 700MHz and 600MHz, so add opp steps for them.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 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>
7 years agogpu: arm: midgard: remove regulator from exynos5433 driver
Joonyoung Shim [Wed, 8 Apr 2015 04:24:20 +0000 (13:24 +0900)]
gpu: arm: midgard: remove regulator from exynos5433 driver

Regulator for mali will be controlled from mali code codes.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 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>
7 years agoclk: samsung: exynos5433: Remove CLK_DIVIDER_READ_ONLY flag from div_aclk_g3d
Chanwoo Choi [Tue, 7 Apr 2015 10:40:31 +0000 (19:40 +0900)]
clk: samsung: exynos5433: Remove CLK_DIVIDER_READ_ONLY flag from div_aclk_g3d

This patch removes the CLK_DIVIDER_READ_ONLY flag from div_aclk_g3d clock
because of supporting the propagation of the G3D clocks.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agolocal / arm64: configs: enable MALI_DEVFREQ config
Joonyoung Shim [Tue, 7 Apr 2015 08:29:37 +0000 (17:29 +0900)]
local / arm64: configs: enable MALI_DEVFREQ config

Enable MALI_DEVFREQ for mali devfreq feature.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agolocal / arm64: dts: support mali devfreq
Joonyoung Shim [Tue, 7 Apr 2015 08:28:12 +0000 (17:28 +0900)]
local / arm64: dts: support mali devfreq

Add OPP and fix clk configurations.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agogpu: arm: midgard: register opp table for mali devfreq
Joonyoung Shim [Mon, 6 Apr 2015 10:09:37 +0000 (19:09 +0900)]
gpu: arm: midgard: register opp table for mali devfreq

This needs to support mali devfreq.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agogpu: arm: midgard: remove clk codes from exynos5433 platform file
Joonyoung Shim [Mon, 6 Apr 2015 10:06:46 +0000 (19:06 +0900)]
gpu: arm: midgard: remove clk codes from exynos5433 platform file

The gpu clk will be controlled from mali core.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 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>
7 years agoclk: samsung: exynos5433: add flags for g3d clock
Joonyoung Shim [Mon, 6 Apr 2015 10:00:44 +0000 (19:00 +0900)]
clk: samsung: exynos5433: add flags for g3d clock

Need missing CLK_SET_RATE_PARENT and CLK_DIVIDER_READ_ONLY for devfreq
of g3d clock.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agoclk: divider: fix to set parent rate from CLK_DIVIDER_READ_ONLY flag
Joonyoung Shim [Mon, 6 Apr 2015 08:41:24 +0000 (17:41 +0900)]
clk: divider: fix to set parent rate from CLK_DIVIDER_READ_ONLY flag

The round_rate callback function will returns alway same parent clk rate
of divider with CLK_DIVIDER_READ_ONLY flag. If be used
CLK_SET_RATE_PARENT flag with CLK_DIVIDER_READ_ONLY flag, then never
change parent clk rate anymore.

From this case, this patch allows to change parent clk rate.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agoclk: divider: don't set_rate with CLK_DIVIDER_READ_ONLY flag
Joonyoung Shim [Mon, 6 Apr 2015 08:40:51 +0000 (17:40 +0900)]
clk: divider: don't set_rate with CLK_DIVIDER_READ_ONLY flag

Even if use CLK_DIVIDER_READ_ONLY flag, divider setting can be changed
by set_rate callback. Don't change divider setting from set_rate
callback of divider with CLK_DIVIDER_READ_ONLY flag.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agoLOCAL / arm: configs: Update odroidu3 defconfig
Marek Szyprowski [Fri, 3 Apr 2015 10:56:43 +0000 (12:56 +0200)]
LOCAL / arm: configs: Update odroidu3 defconfig

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM: dts: exynos4: add nodes for jpeg codec
Marek Szyprowski [Thu, 5 Mar 2015 12:44:57 +0000 (13:44 +0100)]
ARM: dts: exynos4: add nodes for jpeg codec

This patch adds nodes for hardware JPEG codec found in Exynos 4210 and
4x12 SoCs.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>

7 years agoARM: dts: Add pwm-fan node to the Odroid-U3 board
Kamil Debski [Thu, 18 Dec 2014 10:13:05 +0000 (11:13 +0100)]
ARM: dts: Add pwm-fan node to the Odroid-U3 board

Add pwm-fan node to the Odroid-U3 board file to enable PWM control of the
cooling fan. In addition, add the "pwm" label to the pwm@139D0000 node
in the exynos4412.dtsi.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
[Rebased on the newest mainline by l.majewski@samsung.com]

7 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>
7 years agoLOCAL / arm64: dts: exynos: Update the voltage according memory bus frequency
Chanwoo Choi [Fri, 3 Apr 2015 09:51:50 +0000 (18:51 +0900)]
LOCAL / arm64: dts: exynos: Update the voltage according memory bus frequency

This patch updates the voltage according to memory bus frequency
because low voltage causes the kernel booting fail.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: dts: exynos: Update the default voltage for big.LITTLE core
Chanwoo Choi [Fri, 3 Apr 2015 09:41:45 +0000 (18:41 +0900)]
LOCAL / arm64: dts: exynos: Update the default voltage for big.LITTLE core

This patch updates the default volage for big.LITTLE core to guarantee
the stability when changing cpu frequency.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: dts: exynos: Extend the range of CPUFREQ for big.LITTLE core
Chanwoo Choi [Fri, 3 Apr 2015 09:39:44 +0000 (18:39 +0900)]
LOCAL / arm64: dts: exynos: Extend the range of CPUFREQ for big.LITTLE core

big core
- 700MHz ~ 1500MHz --> 700MHz ~ 1900MHz
LITTLE core
- 400MHz ~ 1200MHz --> 400MHz ~ 1300MHz

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: configs: Update defconfig to enable CONFIG_ARM_EXYNOS_BUS_DEVFREQ
Chanwoo Choi [Thu, 2 Apr 2015 10:33:11 +0000 (19:33 +0900)]
LOCAL / arm64: configs: Update defconfig to enable CONFIG_ARM_EXYNOS_BUS_DEVFREQ

This patch enables CONFIG_ARM_EXYNOS_BUS_DEVFREQ to support memory bus
frequency for Exynos5433 SoC.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: dts: Add the support for memory busfreq on Exynos5433-based tm2 board
Chanwoo Choi [Mon, 2 Feb 2015 08:04:24 +0000 (17:04 +0900)]
LOCAL / arm64: dts: Add the support for memory busfreq on Exynos5433-based tm2 board

This patch adds the memory and PPMU dt node to support the generic exynos
memory bus frequency driver by using DEVFREQ / DEVFREQ-Event framework.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos: Add memory bus node for Exynos5433 SoC
Chanwoo Choi [Tue, 31 Mar 2015 05:05:05 +0000 (14:05 +0900)]
arm64: dts: exynos: Add memory bus node for Exynos5433 SoC

This patch adds the memory bus node for Exynos5433 SoC. Exynos5433 SoC has
four memory buses to translate data between DRAM and MIF/INT/ISP/DISPLAY IPs.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos: Add PPMU dt node for Exynos5433 SoC
Chanwoo Choi [Tue, 31 Mar 2015 05:04:27 +0000 (14:04 +0900)]
arm64: dts: exynos: Add PPMU dt node for Exynos5433 SoC

This patch adds PPMU (Platform Performance Monitoring Unit) dt node to get
current usage of sub-IPs in Exynos5433 SoC.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoARM: dts: Add the support for exynos busfreq on Exynos4412-based TRATS2 board
Chanwoo Choi [Wed, 31 Dec 2014 00:24:01 +0000 (09:24 +0900)]
ARM: dts: Add the support for exynos busfreq on Exynos4412-based TRATS2 board

This patch adds the Exynos4412 memory-bus node which includes the regulator
and devfreq-event phandle. The devfreq-event phandle is used for the
governor of devfreq device and provide the current usage state of
MIF (Memory Interface) / INT (Internal) memory bus group.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoARM: dts: Add the support for exynos busfreq on Exynos3250-based Rinato/Monk board
Chanwoo Choi [Wed, 17 Dec 2014 05:06:09 +0000 (14:06 +0900)]
ARM: dts: Add the support for exynos busfreq on Exynos3250-based Rinato/Monk board

This patch adds the Exynos3250 memory-bus node which includes the regulator
and devfreq-event phandle. The devfreq-event phandle is used for the
governor of devfreq device and provide the current usage state of
MIF (Memory Interface) / INT (Internal) memory bus group.

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Youngjun Cho <yj44.cho@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
7 years agoARM: dts: Add memory bus node for Exynos4210
Chanwoo Choi [Wed, 31 Dec 2014 02:08:40 +0000 (11:08 +0900)]
ARM: dts: Add memory bus node for Exynos4210

This patch adds the memory bus node for Exynos4210 SoC. Exynos4210 SoC has
one memory bus to translate data between DRAM and eMMC/sub-IPs because
Exynos4210 must need only one regulator for memory bus.

Following list specifies the detailed relation between memory bus clock and
sub-IPs:
- DMC/ACP clock : DMC (Dynamic Memory Controller)
- ACLK200 clock : LCD0
- ACLK100 clock : PERIL/PERIR/MFC(PCLK)
- ACLK160 clock : CAM/TV/LCD0/LCD1
- ACLK133 clock : FSYS/GPS
- GDL/GDR clock : leftbus/rightbus
- SCLK_MFC clock : MFC

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoARM: dts: Add memory bus node for Exynos4x12
Chanwoo Choi [Wed, 31 Dec 2014 02:06:34 +0000 (11:06 +0900)]
ARM: dts: Add memory bus node for Exynos4x12

This patch adds the memory bus node for Exynos4x12 SoC. Exynos4x12 SoC has
two memory bus to translate data between DRAM and eMMC/sub-IPs.

Following list specifies the detailed relation between memory bus clock and DMC
IP in MIF (Memory Interface) block:
- DMC/ACP clock : DMC (Dynamic Memory Controller)

Following list specifies the detailed relation between memory bus clock and
sub-IPs in INT (Internal) block:
- ACLK100 clock : PERIL/PERIR/MFC(PCLK)
- ACLK160 clock : CAM/TV/LCD
- ACLK133 clock : FSYS
- GDL/GDR clock : leftbus/rightbus
- SCLK_MFC clock : MFC

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoARM: dts: Add memory bus node for Exynos3250
Chanwoo Choi [Wed, 17 Dec 2014 05:05:02 +0000 (14:05 +0900)]
ARM: dts: Add memory bus node for Exynos3250

This patch adds the memory bus node for Exynos3250 SoC. Exynos3250 has
following memory buses to translate data between DRAM and eMMC/sub-IPs.

Following list specifies the detailed relation between memory bus clock and DMC
IP in MIF (Memory Interface) block:
- DMC clock : DMC (Dynamic Memory Controller)

Following list specifies the detailed relation between memory bus clock and
sub-IPs in INT (Internal) block:
- ACLK100 clock : PERIL
- ACLK160 clock : LCD0
- ACLK200 clock : FSYS
- ACLK266 clock : ISP
- GDL/GDR clock : leftbus/rightbus
- SCLK_MFC clock : MFC

Cc: Kukjin Kim <kgene@kernel.org>
Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
7 years agoPM / devfreq: event: exynos-ppmu: Add the support of PPMU 2.0 for Exynos5433
Chanwoo Choi [Wed, 14 Jan 2015 05:22:31 +0000 (14:22 +0900)]
PM / devfreq: event: exynos-ppmu: Add the support of PPMU 2.0 for Exynos5433

This patch adds the support for PPMU (Platform Performance Monitoring Unit)
version 2.0 for Exynos5433 SoC. Exynos5433 SoC must need PPMU v2 which is
quite different from PPMUv1.1. The exynos-ppmu.c driver supports both PPMUv1.1
and PPMUv2.

Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoPM / devfreq: exynos: Remove unused exynos4 memory busfreq driver
Chanwoo Choi [Mon, 12 Jan 2015 10:22:15 +0000 (19:22 +0900)]
PM / devfreq: exynos: Remove unused exynos4 memory busfreq driver

This patch removes the unused exynos4 memory busfreq driver by adding generic
exynos memory bus frequency driver.

Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoPM / devfreq: exynos: Add documentation for generic exynos memory bus frequency driver
Chanwoo Choi [Tue, 23 Dec 2014 11:36:13 +0000 (20:36 +0900)]
PM / devfreq: exynos: Add documentation for generic exynos memory bus frequency driver

This patch adds the documentation for generic exynos memory bus frequency
driver.

Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Kukjin Kim <kgene@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoPM / devfreq: exynos: Add generic exynos memory bus frequency driver
Chanwoo Choi [Mon, 23 Feb 2015 05:51:00 +0000 (14:51 +0900)]
PM / devfreq: exynos: Add generic exynos memory bus frequency driver

This patch adds the generic exynos bus frequency driver for memory bus
with DEVFREQ framework. The Samsung Exynos SoCs have the common architecture
for memory bus between DRAM memory and MMC/sub IP in SoC. This driver can
support the memory bus frequency driver for Exynos SoCs.

Each memory bus block has a clock for memory bus speed and frequency
table which is changed according to the utilization of memory bus on runtime.
And then each memory bus group has the one more memory bus blocks and
OPP table (including frequency and voltage), regulator, devfreq-event
devices.

There are a little difference about the number of memory bus because each Exynos
SoC have the different sub-IP and different memory bus speed. In spite of this
difference among Exynos SoCs, we can support almost Exynos SoC by adding
unique data of memory bus to devicetree file.

Cc: Myungjoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Kukjin Kim <kgene@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoclk: samsung: exynos5433: Add CLK_SET_RATE_PARENT to support DVFS for Cortex-A57...
Chanwoo Choi [Thu, 2 Apr 2015 09:30:04 +0000 (18:30 +0900)]
clk: samsung: exynos5433: Add CLK_SET_RATE_PARENT to support DVFS for Cortex-A57 core

This patch adds CLK_SET_RATE_PARENT flag to support DVFS feature of Cortex-A57
Core (big core) because 'sclk_atlas' leaf clock is used to change the CPU
frequency of Cortex-A57 core in arm_big_little.c driver.
- 'atlas' word means the big core (Cortex-A57 core) in Exynos5433 TRM.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>