platform/kernel/linux-exynos.git
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>
7 years agoLOCAL / arm64: dts: exynos: Use sclk_{atlas|apollo} clock to change cpu frequency
Chanwoo Choi [Thu, 2 Apr 2015 08:54:11 +0000 (17:54 +0900)]
LOCAL / arm64: dts: exynos: Use sclk_{atlas|apollo} clock to change cpu frequency

This patch uses the sclk_{atlas|}apollo leak clock to change cpu frequency
of big.LITTLE core on arm_big_little.c dirver.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: dts: exynos: Set the maximum rate of G3D clock for Exynos5433 SoC
Chanwoo Choi [Wed, 1 Apr 2015 06:26:12 +0000 (15:26 +0900)]
LOCAL / arm64: dts: exynos: Set the maximum rate of G3D clock for Exynos5433 SoC

This patch set the maximum rate of G3D clock on Exynos5433 SoC.
- Maximum rate of G3D_PLL is 550MHz

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoclk: samsung: exynos5433: Add CLK_SET_RATE_PARENT flag for aclk_g3d to support GPU...
Chanwoo Choi [Wed, 1 Apr 2015 06:27:58 +0000 (15:27 +0900)]
clk: samsung: exynos5433: Add CLK_SET_RATE_PARENT flag for aclk_g3d to support GPU DVFS

This patch adds the CLK_SET_RATE_PARENT flag for 'aclk_g3d' clock to support
GPU DVFS feature. The MALI driver uses the 'aclk_g3d' clock for DVFS feature.

Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoclk: samsung: exynos5433: Add CLK_SET_RATE_PARENT to support DVFS for Cortex-A53...
Chanwoo Choi [Thu, 2 Apr 2015 07:30:52 +0000 (16:30 +0900)]
clk: samsung: exynos5433: Add CLK_SET_RATE_PARENT to support DVFS for Cortex-A53 core

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

Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoclk: Show clock rate instead of return value
Chanwoo Choi [Thu, 2 Apr 2015 06:33:02 +0000 (15:33 +0900)]
clk: Show clock rate instead of return value

This patch shows the current clock rate instead of return value
when clk_set_rate() return fail because log message means the clock rate.

Cc: Mike Turquette <mturquette@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: dts: exynos5433-tm2: Change WRSTB_IN GPIO pin function to OUTPUT from...
Inha Song [Wed, 1 Apr 2015 06:01:20 +0000 (15:01 +0900)]
LOCAL / arm64: dts: exynos5433-tm2: Change WRSTB_IN GPIO pin function to OUTPUT from INPUT

This patch Change WRSTB_IN GPIO pin function to OUT from INPUT.
WRSTB (Warm reset information from AP) is used to detect input
of AP's warm reset. If falling edge is detected, Buck 1/2/3/4/5/6
Voltage are changed its default voltage.

It's buck voltate changes can cause the boot problem. We can prevent
these problems by the changing WRSTB GPIO pin function to OUTPUT.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoLOCAL / arm64: configs: Update defconfig to enable GATOR_MALI_MIDGARD
Chanwoo Choi [Wed, 1 Apr 2015 04:29:59 +0000 (13:29 +0900)]
LOCAL / arm64: configs: Update defconfig to enable GATOR_MALI_MIDGARD

This patch enables the CONFIG_GATOR_MALI_MIDGARD to debug GPU operation.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: configs: Enable xhci to support drd on tm2 board
Jaewon Kim [Mon, 23 Mar 2015 12:34:49 +0000 (21:34 +0900)]
LOCAL / arm64: configs: Enable xhci to support drd on tm2 board

This patch enables xhci(USB 3.0 Host driver) to support
drd(Dual Role Device) on tm2 board.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLCOAL / arm64: dts: exynos5433-tm2: change dwc3 mode to OTG
Robert Baldyga [Tue, 31 Mar 2015 07:38:05 +0000 (16:38 +0900)]
LCOAL / arm64: dts: exynos5433-tm2: change dwc3 mode to OTG

It enables OTG mode in dwc3 controller.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
7 years agoLOCAL / arm64: dts: exynos5433-tm2: make usbdrd3 extcon client
Robert Baldyga [Tue, 31 Mar 2015 07:33:15 +0000 (16:33 +0900)]
LOCAL / arm64: dts: exynos5433-tm2: make usbdrd3 extcon client

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
7 years agoLOCAL / arm64: dts: exynos5433: add snps,dis_u3_susphy_quirk to dwc3 controllers
Robert Baldyga [Tue, 31 Mar 2015 07:32:09 +0000 (16:32 +0900)]
LOCAL / arm64: dts: exynos5433: 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>
7 years agoLOCAL / arm64: dts: exynos5433: set usb3_lpm_capable in dwc3
Robert Baldyga [Tue, 31 Mar 2015 07:31:01 +0000 (16:31 +0900)]
LOCAL / arm64: dts: exynos5433: set usb3_lpm_capable in dwc3

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>
7 years agoLOCAL / dwc3: exynos: add software role switching code
Robert Baldyga [Mon, 9 Mar 2015 12:28:18 +0000 (13:28 +0100)]
LOCAL / 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>
7 years agoLOCAL / dwc3: core: fix SUSPHY problem
Robert Baldyga [Mon, 23 Feb 2015 14:58:30 +0000 (15:58 +0100)]
LOCAL / 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>
7 years agoLOCAL / dwc3: core: add OTG support
Robert Baldyga [Mon, 23 Feb 2015 14:44:04 +0000 (15:44 +0100)]
LOCAL / dwc3: core: add OTG support

Initialize OTG core if hardware runs in OTG mode.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
7 years agoLOCAL / dwc3: gadget: reinitialize core after each role change
Robert Baldyga [Mon, 23 Feb 2015 15:20:48 +0000 (16:20 +0100)]
LOCAL / 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>
7 years agoLOCAL / dwc3: host: don't add xhci device only if in OTG mode
Robert Baldyga [Mon, 23 Feb 2015 11:32:19 +0000 (12:32 +0100)]
LOCAL / 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>
7 years agoLOCAL / dwc3: gadget: register gadget in OTG core
Robert Baldyga [Mon, 23 Feb 2015 12:57:14 +0000 (13:57 +0100)]
LOCAL / 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>
7 years agoLOCAL / dwc3: add otg handling code
Robert Baldyga [Mon, 23 Feb 2015 11:01:54 +0000 (12:01 +0100)]
LOCAL / 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>
7 years agoLOCAL / dwc3: core: cleanup suspend/resume code
Robert Baldyga [Mon, 9 Mar 2015 08:41:24 +0000 (09:41 +0100)]
LOCAL / 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>
7 years agoLOCAL / usb: gadget: change gadget connect order
Jaewon Kim [Thu, 26 Feb 2015 07:38:13 +0000 (16:38 +0900)]
LOCAL / usb: gadget: change gadget connect order

This patch changes usb_gadget_connect() order before add config.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL / arm64: dts: fix usb handle for Exynos5433 tm2 borad.
Jaewon Kim [Tue, 31 Mar 2015 05:25:08 +0000 (14:25 +0900)]
LOCAL / arm64: dts: fix usb handle for Exynos5433 tm2 borad.

This patch fixes usb handle name for Exynos5433 tm2 board.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL / arm64: dts: fix usb3.0 host dt handle
Jaewon Kim [Tue, 31 Mar 2015 05:22:03 +0000 (14:22 +0900)]
LOCAL / arm64: dts: fix usb3.0 host dt handle

This patch fixes USB3.0 host dt handle to usbhost30.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL / arm64: dts: fix usbdrd handle name
Jaewon Kim [Tue, 31 Mar 2015 05:18:21 +0000 (14:18 +0900)]
LOCAL / arm64: dts: fix usbdrd handle name

This patch fixes usbdrd handle name

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoLOCAL / arm64: dts: exynos: Remove high-frequency of big core to remove kernel lockup
Chanwoo Choi [Tue, 31 Mar 2015 04:34:09 +0000 (13:34 +0900)]
LOCAL / arm64: dts: exynos: Remove high-frequency of big core to remove kernel lockup

This patch removes the high-frequency of big core from frequency table
to remove kernel lockup issue. This is work-around method to resolve lockup.
Firstly, after making the stable kernel, I'll debug this isuse.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agolocal / arm64: configs: update defconfig for syscon-reboot
Joonyoung Shim [Tue, 31 Mar 2015 01:50:18 +0000 (10:50 +0900)]
local / arm64: configs: update defconfig for syscon-reboot

Exynos5433 SoC can support to reboot using syscon-reboot driver.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agolocal / arm64: dts: add reboot node for exynos5433
Joonyoung Shim [Tue, 31 Mar 2015 01:47:51 +0000 (10:47 +0900)]
local / arm64: dts: add reboot node for exynos5433

This reboot node uses syscon-reboot driver.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agolocal / arm64: configs: update defconfig for mali
Joonyoung Shim [Fri, 23 Jan 2015 09:08:10 +0000 (18:08 +0900)]
local / arm64: configs: update defconfig for mali

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

We should check more clock and regulator for DVFS.

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