Re: [PATCH v3 06/16] arm: dts: Adding CPU cooling binding for Exynos SoCs

2015-01-14 Thread Eduardo Valentin
On Wed, Jan 14, 2015 at 02:41:04PM +0100, Lukasz Majewski wrote: Presented patch aims to move data necessary for correct CPU cooling device configuration from exynos_tmu_data.c to device tree. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3:

Re: [PATCH v3 13/16] thermal: exynos: dts: Provide device tree bindings identical to the one in exynos_tmu_data.c

2015-01-14 Thread Eduardo Valentin
On Wed, Jan 14, 2015 at 02:41:11PM +0100, Lukasz Majewski wrote: Presented device tree bindings provide data already hardcoded in the exynos_tmu_data.c file. After this commit, it should be possible to reuse common thermal core framework in Exynos SoCs. Signed-off-by: Lukasz Majewski

Re: [PATCH v3 14/16] thermal: samsung: core: Exynos TMU rework to use device tree for configuration

2015-01-14 Thread Eduardo Valentin
On Wed, Jan 14, 2015 at 02:41:12PM +0100, Lukasz Majewski wrote: This patch brings support for providing configuration via device tree. Previously this data has been hardcoded in the exynos_tmu_data.c file. Such approach was not scalable and very often required copying the whole data.

Re: [PATCH v3 09/16] dts: Documentation: Extending documentation entry for exynos-thermal

2015-01-14 Thread Eduardo Valentin
On Wed, Jan 14, 2015 at 02:41:07PM +0100, Lukasz Majewski wrote: Properties necessary for providing Exynos thermal configuration via device tree. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v3: - New patch ---

Re: [PATCH v3 09/16] dts: Documentation: Extending documentation entry for exynos-thermal

2015-01-14 Thread Eduardo Valentin
On Wed, Jan 14, 2015 at 02:52:25PM -0400, Eduardo Valentin wrote: On Wed, Jan 14, 2015 at 02:41:07PM +0100, Lukasz Majewski wrote: Properties necessary for providing Exynos thermal configuration via device tree. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for

Re: [PATCH V3 00/15] ASoC: samsung: Add clk provider for I2S internal clocks

2015-01-14 Thread Mark Brown
On Wed, Jan 14, 2015 at 07:42:27PM +0100, Sylwester Nawrocki wrote: This series is an attempt to resolve the CDCLK clock gating issue on Odroid X2/U3 as reported by Daniel Drake [1], by exposing the CDCLK gate clock (and the two other clocks) through clk API. The upside is we can switch Odroid

Re: [PATCH] ARM: dts: exynos5422-odroidxu3: add INA2xx sensors

2015-01-14 Thread Sjoerd Simons
Hey kevin, On Tue, 2015-01-13 at 16:03 -0800, Kevin Hilman wrote: From: Kevin Hilman khil...@linaro.org The odroid-xu3 has 4 INA231 current sensors on board which can be accessed from the Linux via the hwmon interface. There is one sensor for each of these power rails: - A15 cluster:

Re: [PATCH v3 05/16] thermal: dts: Enable TMU at Exynos4412 based Odroid U3 device

2015-01-14 Thread Eduardo Valentin
On Wed, Jan 14, 2015 at 02:41:03PM +0100, Lukasz Majewski wrote: This commit enables TMU IP block on the Exynos4412 Odroid U3 device. The comment about the patch subject applies here too. I would use arm: dts: ... instead of thermal: dts Signed-off-by: Lukasz Majewski

Re: [PATCH V3 13/15] ARM: dts: Exynos4 and Odroid X2/U3 sound device nodes update

2015-01-14 Thread Mark Brown
On Wed, Jan 14, 2015 at 07:42:40PM +0100, Sylwester Nawrocki wrote: Clock related properties are added to the Exynos4 I2S device nodes so they can be referred to as clock providers. Missing i2s_opclk1 clock is added to the I2S0 node and clock properties are added to the MAX98090 codec node to

Re: [PATCH] ARM: dts: exynos5422-odroidxu3: add INA2xx sensors

2015-01-14 Thread Kevin Hilman
Kukjin Kim kg...@kernel.org writes: On 01/14/15 09:03, Kevin Hilman wrote: From: Kevin Hilman khil...@linaro.org The odroid-xu3 has 4 INA231 current sensors on board which can be accessed from the Linux via the hwmon interface. There is one sensor for each of these power rails: - A15

Re: [PATCH] hwmon: (ina2xx) Add ina231 compatible string

2015-01-14 Thread Kevin Hilman
Guenter Roeck li...@roeck-us.net writes: On Wed, Jan 14, 2015 at 03:57:32PM -0800, Kevin Hilman wrote: From: Kevin Hilman khil...@linaro.org Add support for ina231 as compatible string. Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors. Signed-off-by:

Re: [PATCH v3 13/21] ARM: omap: convert wakeupgen to stacked domains

2015-01-14 Thread Tony Lindgren
* Marc Zyngier marc.zyng...@arm.com [150112 10:30]: OMAP4/5 has been (ab)using the gic_arch_extn to provide wakeup from suspend, and it makes a lot of sense to convert this code to use stacked domains instead. This patch does just this, updating the DT files to actually reflect what the HW

[PATCH v2] hwmon: (ina2xx) Add ina231 compatible string

2015-01-14 Thread Kevin Hilman
From: Kevin Hilman khil...@linaro.org Add support for ina231 as compatible string, and update Documentation and Kconfig accordingly. Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors. Signed-off-by: Kevin Hilman khil...@linaro.org ---

Re: [PATCH] ARM: dts: exynos5422-odroidxu3: add INA2xx sensors

2015-01-14 Thread Kevin Hilman
Sjoerd Simons sjoerd.sim...@collabora.co.uk writes: Hey kevin, On Tue, 2015-01-13 at 16:03 -0800, Kevin Hilman wrote: From: Kevin Hilman khil...@linaro.org The odroid-xu3 has 4 INA231 current sensors on board which can be accessed from the Linux via the hwmon interface. There is one

Re: [RESEND PATCH v3] clocksource: exynos_mct: Add the support for Exynos 64bit SoC

2015-01-14 Thread Chanwoo Choi
Hi Kukjin, On 01/15/2015 01:02 AM, Daniel Lezcano wrote: On 01/14/2015 04:51 PM, Kukjin Kim wrote: On 01/14/15 14:33, Chanwoo Choi wrote: Hi, + Doug, Olof This patch adds the support for Exynos 64bit SoC. The delay_timer is only used for Exynos 32bit SoC. Yes, the Exynos

[PATCH] hwmon: (ina2xx) Add ina231 compatible string

2015-01-14 Thread Kevin Hilman
From: Kevin Hilman khil...@linaro.org Add support for ina231 as compatible string. Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors. Signed-off-by: Kevin Hilman khil...@linaro.org --- drivers/hwmon/ina2xx.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] hwmon: (ina2xx) Add ina231 compatible string

2015-01-14 Thread Guenter Roeck
On Wed, Jan 14, 2015 at 03:57:32PM -0800, Kevin Hilman wrote: From: Kevin Hilman khil...@linaro.org Add support for ina231 as compatible string. Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors. Signed-off-by: Kevin Hilman khil...@linaro.org Hi Kevin,

[PATCH v2] ARM: dts: exynos5422-odroidxu3: add on-board INA231 sensors

2015-01-14 Thread Kevin Hilman
From: Kevin Hilman khil...@linaro.org The odroid-xu3 has 4 INA231 current sensors on board which can be accessed from the Linux via the hwmon interface. There is one sensor for each of these power rails: - A15 cluster: VDD_ARM - A7 cluster: VDD_KFC - GPU: VDD_G3D - memory: VDD_MEM In addition

Re: [PATCH 2/2] clk: exynos-audss: Fix memory leak on driver unbind or probe failure

2015-01-14 Thread Mike Turquette
Quoting Stephen Boyd (2015-01-08 13:23:13) On 01/05/2015 01:52 AM, Krzysztof Kozlowski wrote: The memory allocated by basic clock divider/gate/mux (struct clk_gate, clk_divider and clk_mux) was leaking. During driver unbind or probe failure the driver only unregistered the clocks. Use

[PATCH v4 1/9] devfreq: exynos: Add generic exynos memory bus frequency driver

2015-01-14 Thread Chanwoo Choi
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

[PATCH v4 3/9] ARM: dts: Add memory bus node for Exynos3250

2015-01-14 Thread Chanwoo Choi
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

[PATCH v4 6/9] ARM: dts: Add memory bus node for Exynos4210

2015-01-14 Thread Chanwoo Choi
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

[PATCH v4 0/9] devfreq: Add generic exynos memory-bus frequency driver

2015-01-14 Thread Chanwoo Choi
This patch-set 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

[PATCH v4 4/9] clk: samsung: exynos4: Add divider clock id for memory bus frequency

2015-01-14 Thread Chanwoo Choi
This patch adds the divider clock id for Exynos4 memory bus frequency. The clock id is used fo DVFS (Dynamic Voltage/Frequency Scaling) feature of exynos memory bus frequency. Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Tomasz Figa tomasz.f...@gmail.com Signed-off-by: Chanwoo Choi

[PATCH v4 5/9] ARM: dts: Add memory bus node for Exynos4x12

2015-01-14 Thread Chanwoo Choi
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

[PATCH v4 9/9] devfreq: exynos: Remove unused exynos4 memory busfreq driver

2015-01-14 Thread Chanwoo Choi
This patch removes the unused exynos4 memory busfreq driver by adding generic exynos memory bus frequency driver. Cc: Myungjoo Ham myungjoo@samsung.com Cc: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Chanwoo Choi cw00.c...@samsung.com --- drivers/devfreq/Kconfig |

[PATCH v4 2/9] devfreq: exynos: Add documentation for generic exynos memory bus frequency driver

2015-01-14 Thread Chanwoo Choi
This patch adds the documentation for generic exynos memory bus frequency driver. Cc: MyungJoo Ham myungjoo@samsung.com Cc: Kyungmin Park kyungmin.p...@samsung.com Cc: Kukjin Kim kg...@kernel.org Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Acked-by: MyungJoo Ham myungjoo@samsung.com

[PATCH v4 7/9] ARM: dts: Add the support for exynos busfreq on Exynos3250-based Rinato/Monk board

2015-01-14 Thread Chanwoo Choi
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

Re: [PATCH 3/4] clk: samsung: exynos7: add clocks for audio block

2015-01-14 Thread Padma Venkat
Hi Vivek, On 1/13/15, Vivek Gautam gautamvivek1...@gmail.com wrote: Hi Padma, On Fri, Dec 19, 2014 at 6:53 PM, Padmavathi Venna padm...@samsung.com wrote: Add required clk support for I2S,PCM amd SPDIF Signed-off-by: Padmavathi Venna padm...@samsung.com --- verified from Exynos7

Re: [PATCH RESEND 0/4] Small updates to Snow and Peach Pit/Pi DTS

2015-01-14 Thread Kukjin Kim
On 01/12/15 19:41, Javier Martinez Canillas wrote: Hello Kukjin, Hi, On 01/02/2015 04:24 PM, Javier Martinez Canillas wrote: This series adds some DTS snippets that were missing in the mainline Snow and Peach Pit/Pi Device Trees but are present in the downstream ChromeOS kernel. The

Re: [PATCH RESEND 1/4] ARM: dts: Add power and lid GPIO keys pinctrl for exynos5250-snow

2015-01-14 Thread Javier Martinez Canillas
Hello Kukjin, On 01/14/2015 04:17 PM, Kukjin Kim wrote: pinctrl_0 { +power_key_irq: power-key-irq { +samsung,pins = gpx1-3; +samsung,pin-function = 0xf; I think, this setting should be same with exynos5250-spring but different. from:

Re: [PATCH RESEND 0/4] Small updates to Snow and Peach Pit/Pi DTS

2015-01-14 Thread Javier Martinez Canillas
Hello Kukjin, On 01/14/2015 04:28 PM, Kukjin Kim wrote: I saw that you collected some DTS patches for 3.20 but these are not included. Any comments about this series? Yeah, but I don't think I checked all of submitted patches including this at that time and I'll have a look at this series

Re: [PATCH v4 0/2] mmc: dw_mmc: exynos: Add HS400 support

2015-01-14 Thread Kukjin Kim
On 01/14/15 22:32, Jaehoon Chung wrote: Hi, Alim. On 01/14/2015 07:30 PM, Alim Akhtar wrote: This adds HS400 mode support for exynos dw_mmc host controller. Currently tested on Exynos5800-peach-pi platform for HS400 mode. Tested HS200 mode with this series applied, HS200 still works.

Re: [PATCH v2 2/8] thermal: Provide stub for thermal_cdev_update() function

2015-01-14 Thread Lukasz Majewski
Hi Eduardo, On Mon, Dec 22, 2014 at 05:27:42PM +0100, Lukasz Majewski wrote: Odroid U3 fan can work without being registered as OF cooling device (with CONFIG_THERMAL_OF disabled). In this situation it can be controlled via PWM entry at /sys/class/hwmon/hwmon0/pwm1. Therefore, the

Re: [PATCH RESEND 1/4] ARM: dts: Add power and lid GPIO keys pinctrl for exynos5250-snow

2015-01-14 Thread Kukjin Kim
On 01/03/15 00:24, Javier Martinez Canillas wrote: The Exynos5250 Snow Chromebook has GPIO keys for power and lid so the SoC I/O pins have to be configured in external interrupt mode. Currently, this is working without setting the pinctrl lines but is better to set it explicitly instead of

Re: [PATCH v3 1/7 RESEND] PM / Domains: Add a note about power domain subdomains

2015-01-14 Thread Geert Uytterhoeven
On Wed, Jan 14, 2015 at 3:12 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Signed-off-by: Marek Szyprowski

Re: [PATCH v3 1/7 RESEND] PM / Domains: Add a note about power domain subdomains

2015-01-14 Thread Ulf Hansson
On 14 January 2015 at 15:12, Marek Szyprowski m.szyprow...@samsung.com wrote: This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Signed-off-by: Marek Szyprowski

Re: power: reset: add driver for Hardkernel's Odroid boards

2015-01-14 Thread Tobias Jakobi
Hello, I've applied the two patches of this set onto torvalds/master (together with some other patches), but I now encounter an 'internal error' when doing a system reboot. Here's the corresponding part of the kernel log: http://www.math.uni-bielefeld.de/~tjakobi/archive/odroid_power_reset.txt

Re: [PATCH RESEND 0/4] Small updates to Snow and Peach Pit/Pi DTS

2015-01-14 Thread Kukjin Kim
On 01/15/15 00:12, Kukjin Kim wrote: On 01/12/15 19:41, Javier Martinez Canillas wrote: Hello Kukjin, Hi, On 01/02/2015 04:24 PM, Javier Martinez Canillas wrote: This series adds some DTS snippets that were missing in the mainline Snow and Peach Pit/Pi Device Trees but are present in the

[GIT PULL RE-SEND] Samsung fixes for v3.19

2015-01-14 Thread Kukjin Kim
Hi, Oops, it's totally my fault and mistake. Actually my git command for pull-request was correct but the git tool was old version :-( because there are two git in my laptop, anyway sorry for that and I'm resending with signed tag has been created before. Please pull if you're OK with my

[GIT PULL RE-SEND] Samsung exynos7 updates for v3.20

2015-01-14 Thread Kukjin Kim
Hi, Sorry, I'm resending this pull-request because of missing signed-tag. Please pull. If any problems, please let me know. Thanks, Kukjin The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) are available in the git

Re: [v3,15/21] ARM: exynos4/5: convert pmu wakeup to stacked domains

2015-01-14 Thread Pankaj Dubey
on Exynos5250, using kgene/for-next and linux-next/next-20150114, but S2R failed on Exynos5250 based SMDK board. Following is the log I got on SMDK5250 board, (note I have added some debugging log to know what is happening) I can see is S3C-RTC's enable_irq_wake is failing with error -6. I also observed

Re: power: reset: add driver for Hardkernel's Odroid boards

2015-01-14 Thread Marek Szyprowski
Hello, On 2015-01-14 16:17, Tobias Jakobi wrote: Hello, I've applied the two patches of this set onto torvalds/master (together with some other patches), but I now encounter an 'internal error' when doing a system reboot. Here's the corresponding part of the kernel log:

Re: [PATCH v5 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2015-01-14 Thread Alexandre Belloni
Hi, This patch set hasn't moved since while. We actually need patch 4 to properly configure prefetch on sama5d4. What would be needed to come to an agreement ? On 24/09/2014 at 13:05:34 +0200, Marek Szyprowski wrote : This is an updated patchset, which intends to add support for L2 cache on

Re: [PATCH] ARM: dts: exynos5422-odroidxu3: add INA2xx sensors

2015-01-14 Thread Kukjin Kim
On 01/14/15 09:03, Kevin Hilman wrote: From: Kevin Hilman khil...@linaro.org The odroid-xu3 has 4 INA231 current sensors on board which can be accessed from the Linux via the hwmon interface. There is one sensor for each of these power rails: - A15 cluster: VDD_ARM - A7 cluster:

Re: [PATCH] ARM: DTS: Exynos: convert to generic power domain bindings

2015-01-14 Thread Kukjin Kim
On 01/13/15 01:50, Javier Martinez Canillas wrote: Hello Marek, On Fri, Jan 2, 2015 at 10:36 AM, Marek Szyprowski m.szyprow...@samsung.com wrote: This patch replaces all custom samsung,power-domain device tree properties with generic power domain bindings and updates documentation Samsung's

Re: [PATCH v5 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2015-01-14 Thread Russell King - ARM Linux
On Wed, Jan 14, 2015 at 04:46:03PM +0100, Alexandre Belloni wrote: Hi, This patch set hasn't moved since while. We actually need patch 4 to properly configure prefetch on sama5d4. What would be needed to come to an agreement ? What do you mean hasn't moved since a while - there has been

Re: [PATCH v4 0/2] mmc: dw_mmc: exynos: Add HS400 support

2015-01-14 Thread Ulf Hansson
On 14 January 2015 at 16:35, Kukjin Kim kg...@kernel.org wrote: On 01/14/15 22:32, Jaehoon Chung wrote: Hi, Alim. On 01/14/2015 07:30 PM, Alim Akhtar wrote: This adds HS400 mode support for exynos dw_mmc host controller. Currently tested on Exynos5800-peach-pi platform for HS400 mode.

Re: [RESEND PATCH v3] clocksource: exynos_mct: Add the support for Exynos 64bit SoC

2015-01-14 Thread Daniel Lezcano
On 01/14/2015 04:51 PM, Kukjin Kim wrote: On 01/14/15 14:33, Chanwoo Choi wrote: Hi, + Doug, Olof This patch adds the support for Exynos 64bit SoC. The delay_timer is only used for Exynos 32bit SoC. Yes, the Exynos MCT(Multi-Core Timer) is 64bit timer and it is available on 64bit exynos

Re: [RESEND PATCH v3] clocksource: exynos_mct: Add the support for Exynos 64bit SoC

2015-01-14 Thread Kukjin Kim
On 01/14/15 14:33, Chanwoo Choi wrote: Hi, + Doug, Olof This patch adds the support for Exynos 64bit SoC. The delay_timer is only used for Exynos 32bit SoC. Yes, the Exynos MCT(Multi-Core Timer) is 64bit timer and it is available on 64bit exynos SoC such as exynos7. But basically ARMv8

Re: [PATCH] ARM: EXYNOS: enable 4 cores secondary cpu up for exynos5440

2015-01-14 Thread Kukjin Kim
On 01/07/15 11:31, Ming Lei wrote: Hi Kukjin, Hi Ming Lei, Sorry for late response. On Tue, Jan 1, 2013 at 3:09 AM, Kukjin Kim kgene@samsung.com wrote: No need to check power on/off with pmu control to support hotplug in/out on exynos5440. And this patch enables 4 cores on exynos5440.

Re: [PATCH v5 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2015-01-14 Thread Alexandre Belloni
Hi, On 14/01/2015 at 16:21:50 +, Russell King - ARM Linux wrote : On Wed, Jan 14, 2015 at 04:46:03PM +0100, Alexandre Belloni wrote: Hi, This patch set hasn't moved since while. We actually need patch 4 to properly configure prefetch on sama5d4. What would be needed to come to an

Re: [PATCH v2 1/8] thermal: Provide stub for thermal_of_cooling_device_register() function

2015-01-14 Thread Eduardo Valentin
On Wed, Jan 14, 2015 at 04:01:06PM +0100, Lukasz Majewski wrote: Hi Eduardo, On Fri, Jan 02, 2015 at 02:54:28PM -0400, Eduardo Valentin wrote: On Mon, Dec 22, 2014 at 05:27:41PM +0100, Lukasz Majewski wrote: Odroid U3 fan can work without being registered as OF cooling device (with

[PATCH V3 01/15] ASoC: samsung: i2s: samsung_i2s_get_driver_data() cleanup

2015-01-14 Thread Sylwester Nawrocki
Tidy up the samsung_i2s_get_driver_data() function by using IS_ENABLE() instead of #ifdef and add missing braces for the 'else' part. Also ensure we are not dereferencing NULL 'match' pointer. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com --- sound/soc/samsung/i2s.c |9 -

[PATCH V3 02/15] ASoC: samsung: i2s: Add return value checks in probe()

2015-01-14 Thread Sylwester Nawrocki
These functions may fail so let's properly report any errors. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com --- sound/soc/samsung/i2s.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index

[PATCH V3 03/15] ASoC: samsung: i2s: Request memory region in driver probe()

2015-01-14 Thread Sylwester Nawrocki
The memory mapped registers region is common for both DAIs so request it in the I2S platform device driver's probe for the platform device corresponding to the primary DAI, rather than in the ASoC DAI's probe callback. While at it switch to devm_ioremap_resource(). This also drops the hard coded

[PATCH V3 06/15] ASoC: samsung: i2s: Add get_other_dai helper function

2015-01-14 Thread Sylwester Nawrocki
The code to get pointer to the other DAI is repeated multiple times. Add a helper function and use it instead. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com --- sound/soc/samsung/i2s.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git

[PATCH V3 05/15] ASoC: samsung: i2s: Move clk enable to the platform driver probe()

2015-01-14 Thread Sylwester Nawrocki
The clk_prepare_enable() call on the iis clock is moved to happen earlier in the DAI platform device driver's probe() callback, so the I2S registers can be safely accessed through the clk API, after the clk supplier is registered in the platform device probe(). After this patch the iis clock is

[PATCH V3 04/15] ASoC: samsung: i2s: Move clk_get() to platform driver probe()

2015-01-14 Thread Sylwester Nawrocki
Acquire the I2S interface clock in driver probe() callback as it's a per-device not a per-DAI clock. While at it switch to the resource managed clk_get(). Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com --- sound/soc/samsung/i2s.c | 19 +++ 1 file changed, 7

[PATCH V3 00/15] ASoC: samsung: Add clk provider for I2S internal clocks

2015-01-14 Thread Sylwester Nawrocki
This series is an attempt to resolve the CDCLK clock gating issue on Odroid X2/U3 as reported by Daniel Drake [1], by exposing the CDCLK gate clock (and the two other clocks) through clk API. The upside is we can switch Odroid X2/U3 to the simple-card, once the CDCLK clock is taken care of by the

[PATCH V3 07/15] ASoC: samsung: i2s: Remove an unneeded goto usage

2015-01-14 Thread Sylwester Nawrocki
The usage of this goto seems unjustified, use if/else statement instead. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com --- sound/soc/samsung/i2s.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c

[PATCH V3 08/15] ASoC: samsung: i2s: Add spinlock in place of local_irq_* calls

2015-01-14 Thread Sylwester Nawrocki
It seems this driver hasn't been updated for SMP, as local_irq_save/ local_irq_restore don't provide proper protection of read/modify/write of the device's registers on such systems. Introduce a spinlock serializing access to the register region, it will be helpful later when I2SMOD, I2SPSR

[PATCH V3 09/15] ASoC: samsung: i2s: Protect more registers with a spinlock

2015-01-14 Thread Sylwester Nawrocki
Ensure the I2SMOD, I2SPSR registers, which are also exposed through clk API are only accessed with the i2s-spinlock spinlock held. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com --- sound/soc/samsung/i2s.c | 81 +-- 1 file changed, 51

[PATCH V3 12/15] ASoC: samsung: i2s: Add clock provider for the I2S internal clocks

2015-01-14 Thread Sylwester Nawrocki
This patch adds clock provider (currently only for DT platforms) for the CODECLKO (CDCLK) gate, RCLKSRC mux and RCLK pre-scaler divider divider clock. Those all tree clock are only available in the IIS Multi Audio Interface (I2S0), the regular IIS Bus Interface has only CDCLK gate clock. The

[PATCH V3 10/15] ASoC: samsung: odroidx2: Handle I2S CDCLK clock conditionally

2015-01-14 Thread Sylwester Nawrocki
In order to support old DTs we check the codec device node if it contains clocks property and only if it doesn't (which indicates an old DT) we proceed with enabling the CDCLK clock by means of the set_sysclk() callback. For new DTs which use the common clock bindings for CDCLK that clock is

[PATCH V3 14/15] ARM: dts: Switch Odroid X2/U2 to simple-audio-card

2015-01-14 Thread Sylwester Nawrocki
Now when the CDCLK I2S output clock can be handled through the clock API the Odroid X2/U3 can be switched to the simple-audio-card DT binding. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi |3 +++

Re: [PATCH 2/9] hwmon: dts: Doc: Add DTS doc to explain how to use PWM FAN as a cooling device

2015-01-14 Thread Lukasz Majewski
Hi Sjoerd, Hey Lukasz, Blame the holiday season for my late reply ;) On Fri, 2014-12-19 at 17:13 +0100, Lukasz Majewski wrote: Hi Guenter, On Fri, Dec 19, 2014 at 04:32:24PM +0100, Lukasz Majewski wrote: Hi Sjoerd, Thanks for your feedback and sorry for a late reply.

Re: [PATCH 1/2] pinctrl: exynos: Add AUDIO pin controller for exynos7

2015-01-14 Thread Linus Walleij
On Fri, Dec 19, 2014 at 2:10 PM, Padmavathi Venna padm...@samsung.com wrote: Audio IPs on Exynos7 require gpios available in AUDIO pin controller block. So adding the AUDIO pinctrl support. Signed-off-by: Padmavathi Venna padm...@samsung.com (...) ---

[PATCH v3 00/16] thermal: exynos: Thermal code rework to use device tree

2015-01-14 Thread Lukasz Majewski
1. Introduction Following patches aim to clean up the current implementation of the thermal framework on Exynos devices. The main goal was to use a generic code for reading thermal configuration (of-thermal.c). Due to that redundant exynos_thermal_common.[h|c] files were removed. Around 400

[PATCH v3 02/16] thermal: exynos: Provide thermal_exynos.h file to be included in device tree files

2015-01-14 Thread Lukasz Majewski
This patch is a preparatory patch to be able to read Exynos thermal configuration from the device tree. It turned out that DTC is not able to interpret enums properly and hence it is necessary to #define those values explicitly. For this reason the ./include/dt-bindings/thermal/thermal_exynos.h

[PATCH v3 01/16] thermal: exynos: cosmetic: Correct comment format

2015-01-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - None --- drivers/thermal/samsung/exynos_tmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index

[PATCH v3 03/16] arm: dts: trats: Enable TMU on the Exynos4210 trats device

2015-01-14 Thread Lukasz Majewski
The thermal IP block (Thermal Management Unit) called TMU has been enabled in this device. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - Patch title has been changed from thermal: dts: arm to arm: dts: trats ---

[PATCH v3 04/16] arm: dts: odroid: Add LD010 regulator node necessary for TMU on Odroid

2015-01-14 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - Patch title has been changed from thermal: dts: exynos to arm: dts: Odroid --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v3 06/16] arm: dts: Adding CPU cooling binding for Exynos SoCs

2015-01-14 Thread Lukasz Majewski
Presented patch aims to move data necessary for correct CPU cooling device configuration from exynos_tmu_data.c to device tree. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - Adjust CPU's DT nodes to work with newest ti-soc-thermal/next branch -

[PATCH v3 6/7] ARM: dts: exynos4210-universal_c210: enable hdmi support

2015-01-14 Thread Marek Szyprowski
From: Tomasz Stanislawski t.stanisl...@samsung.com This patch adds configuration of hw modules required to enable HDMI support on Universal C210 board. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com ---

[PATCH v3 1/7] PM / Domains: Add a note about power domain subdomains

2015-01-14 Thread Marek Szyprowski
This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- .../devicetree/bindings/power/power_domain.txt | 29

[PATCH v3 4/7] ARM: dts: exynos4: add dependency between TV and LCD0 power domains

2015-01-14 Thread Marek Szyprowski
TV Mixer needs both TV and LCD0 domains enabled to be fully operational. This dependency is modelled by making TV power domains a sub-domain of LCD0 power domain. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi | 1 + 1 file changed, 1 insertion(+)

[PATCH v3 07/16] thermal: exynos: Modify exynos thermal code to use device tree for cpu cooling configuration

2015-01-14 Thread Lukasz Majewski
Up till now exynos_tmu_data.c was used for storing CPU cooling configuration data. Now the Exynos thermal core code uses device tree to get this data. For this purpose generic thermal code for configuring CPU cooling was used. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for

[PATCH v3 2/7] ARM: Exynos: add support for sub-power domains

2015-01-14 Thread Marek Szyprowski
This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences for devices like TV Mixer or Camera ISP, which needs to have more than one power domain enabled to be operational. Based on previous work by Amit Daniel Kachhap

[PATCH v3 7/7] ARM: dts: exynos5250: add display power domain

2015-01-14 Thread Marek Szyprowski
From: Andrzej Hajda a.ha...@samsung.com The patch adds domain definition and references to it in appropriate devices. Signed-off-by: Andrzej Hajda a.ha...@samsung.com [mszyprow: rebased onto generic power domains dt bindings] Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com ---

[PATCH v3 05/16] thermal: dts: Enable TMU at Exynos4412 based Odroid U3 device

2015-01-14 Thread Lukasz Majewski
This commit enables TMU IP block on the Exynos4412 Odroid U3 device. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - None --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v3 3/7] ARM: dts: exynos4: add hdmi related nodes

2015-01-14 Thread Marek Szyprowski
This patch adds entries for HDMI, Mixer and i2c with hdmi-phy modules found in Exynos 4210 and 4x12 SoCs. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi| 40 +++ arch/arm/boot/dts/exynos4210.dtsi | 8

[PATCH v3 0/7] Enable HDMI support on Exynos platforms

2015-01-14 Thread Marek Szyprowski
Hi all, This is yet another approach to submit patches, which enables HDMI support for two Exynos based platforms: UniversalC210 and Odroid X2/U3. Beside DTS changes, this patchset adds parent domain support for Exynos PM domains. This was the most controversial patch in the previous attempts,

[PATCH v3 5/7] ARM: dts: exynos4412-odroid: enable hdmi support

2015-01-14 Thread Marek Szyprowski
This patch adds nodes specific to Exynos4412 based Odroid X/X2/U2/U3 boards required for enabling HDMI display. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 44 + 1 file changed, 44 insertions(+) diff

[PATCH v3 08/16] thermal: exynos: dts: Add default definition of the TMU sensor parameter

2015-01-14 Thread Lukasz Majewski
Exynos 4 and 5 family of SoCs uses almost identical TMU sensor to measure the on chip temperature. For this reason it is possible to group TMU configuration parameters in one dts file. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - samsung,tmu_

[PATCH v3 11/16] thermal: exynos: dts: Define default thermal-zones for Exynos4

2015-01-14 Thread Lukasz Majewski
Trip points corresponding to the one defined in the exynos_tmu_data.c for Exynos4 have been included. This thermal-zones attribute is afterwards reused for Exynos4210, Exynos4412 and Exynos5250. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: -

[PATCH v3 15/16] thermal: exynos: Remove exynos_thermal_common.[c|h] files

2015-01-14 Thread Lukasz Majewski
After defining all necessary Exynos data in the device tree and heavy reusage of the of-thermal.c those files can be removed. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - None --- drivers/thermal/samsung/exynos_thermal_common.c | 445

[PATCH v3 14/16] thermal: samsung: core: Exynos TMU rework to use device tree for configuration

2015-01-14 Thread Lukasz Majewski
This patch brings support for providing configuration via device tree. Previously this data has been hardcoded in the exynos_tmu_data.c file. Such approach was not scalable and very often required copying the whole data. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: -

[PATCH v3 13/16] thermal: exynos: dts: Provide device tree bindings identical to the one in exynos_tmu_data.c

2015-01-14 Thread Lukasz Majewski
Presented device tree bindings provide data already hardcoded in the exynos_tmu_data.c file. After this commit, it should be possible to reuse common thermal core framework in Exynos SoCs. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - Add proper TMU entries for

[PATCH v3 16/16] thermal: exynos: Remove exynos_tmu_data.c file

2015-01-14 Thread Lukasz Majewski
Data already present in the exynos_tmu_data.c file has been moved to the appropriate device tree files. Signed-off-by: Lukasz Majewski l.majew...@samsung.com --- Changes for v2: - None Changes for v3: - None --- drivers/thermal/samsung/exynos_tmu_data.c | 228 -- 1

Re: [PATCH v3 1/7] PM / Domains: Add a note about power domain subdomains

2015-01-14 Thread Geert Uytterhoeven
Hi Marek, On Wed, Jan 14, 2015 at 2:44 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Thanks! Signed-off-by:

Re: [PATCH v2 02/16] ASoC: samsung: i2s: samsung_i2s_get_driver_data() cleanup

2015-01-14 Thread Sylwester Nawrocki
On 06/01/15 19:14, Mark Brown wrote: On Fri, Dec 19, 2014 at 02:55:22PM +0100, Sylwester Nawrocki wrote: Tidy up the samsung_i2s_get_driver_data() function by using IS_ENABLE() instead of #ifdef and add missing braces for the 'else' part. Also ensure we are not dereferencing NULL 'match'

Re: [PATCH v2 16/16] ARM: dts: Fix I2S1, I2S2 compatible for exynos4 SoCs

2015-01-14 Thread Sylwester Nawrocki
On 06/01/15 19:15, Mark Brown wrote: On Fri, Dec 19, 2014 at 02:55:36PM +0100, Sylwester Nawrocki wrote: I2S1, I2S2 on Exynos4 SoC series have limited functionality compared to I2S0, samsung,s3c6410-i2s compatible should be used for them. Signed-off-by: Sylwester Nawrocki

[PATCH v4 2/2] ARM: dts: Add HS400 support for exynos5420 and exynos5800

2015-01-14 Thread Alim Akhtar
From: Seungwon Jeon tgih@samsung.com HS400 timing values are added for SMDK5420, exynos5420-peach-pit and exynos5800-peach-pi boards. This also adds RCLK GPIO line, this gpio should be in pull-down state. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Alim Akhtar

[PATCH v4 0/2] mmc: dw_mmc: exynos: Add HS400 support

2015-01-14 Thread Alim Akhtar
This adds HS400 mode support for exynos dw_mmc host controller. Currently tested on Exynos5800-peach-pi platform for HS400 mode. Tested HS200 mode with this series applied, HS200 still works. Appreciate testing on other exynos5/7 platform which supports emmc5.0 Changes in V4: * drop the

[PATCH v4 1/2] mmc: dw_mmc: exynos: Support eMMC's HS400 mode

2015-01-14 Thread Alim Akhtar
From: Seungwon Jeon tgih@samsung.com Implements HS400 mode support for exynos host driver. This also include some updates as new mode is added. Signed-off-by: Seungwon Jeon tgih@samsung.com Signed-off-by: Alim Akhtar alim.akh...@samsung.com [Alim: addressed review comments] ---

Re: [PATCH v2 06/16] ASoC: samsung: i2s: Move clk enable to the platform driver probe()

2015-01-14 Thread Sylwester Nawrocki
On 06/01/15 19:06, Mark Brown wrote: On Fri, Dec 19, 2014 at 02:55:26PM +0100, Sylwester Nawrocki wrote: Gating the I2S bus clock in the driver's runtime PM callbacks has currently really no effect since the clock is being enabled in the DAI's probe() and thus is permanently turned on. Now we

Re: [PATCH v4 0/2] mmc: dw_mmc: exynos: Add HS400 support

2015-01-14 Thread Jaehoon Chung
Hi, Alim. On 01/14/2015 07:30 PM, Alim Akhtar wrote: This adds HS400 mode support for exynos dw_mmc host controller. Currently tested on Exynos5800-peach-pi platform for HS400 mode. Tested HS200 mode with this series applied, HS200 still works. Appreciate testing on other exynos5/7

[PATCH v3 1/7 RESEND] PM / Domains: Add a note about power domain subdomains

2015-01-14 Thread Marek Szyprowski
This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- RESEND version: - fixed spelling mistakes, thanks go to