[PATCH v3 3/6] hwmon: exynos4: Move thermal sensor driver to driver/thermal directory

2012-05-08 Thread Amit Daniel Kachhap
This movement is needed because the hwmon entries and corresponding sysfs interface is a duplicate of utilities already provided by driver/thermal/thermal_sys.c. The goal is to place it in thermal folder and add necessary functions to use the in-kernel thermal interfaces. Signed-off-by: Amit

[PATCH v3 4/6] thermal: exynos5: Add exynos5 thermal sensor driver support

2012-05-08 Thread Amit Daniel Kachhap
This patch inserts exynos5 TMU sensor changes in the thermal driver. Some exynos4 changes are made generic for exynos series. Signed-off-by: SangWook Ju sw...@samsung.com Signed-off-by: Amit Daniel Kachhap amit.kach...@linaro.org --- drivers/thermal/Kconfig |6 +-

[PATCH v2 0/4] ARM: S3C24XX: move some code from plat to mach directory

2012-05-08 Thread Heiko Stübner
Again the series of small moves of common code from the plat-s3c24xx to the mach-s3c24xx directory. This time without the wrong handled irq.c . Hopefully I'll get time to do it properly later. As the dev-uart.c move breaks the resource patch by Tushar Behera, I updated the patch to fix the

[PATCH 1/4] ARM: S3C24XX: move plat-s3c24xx/cpu.c

2012-05-08 Thread Heiko Stübner
Following the model of s3c64xx cpu.c becomes common.c in mach-s3c24xx, to got more common code added later on. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 ++ .../{plat-s3c24xx/cpu.c = mach-s3c24xx/common.c} |2 +-

[PATCH 2/4] ARM: S3C24XX: move plat-s3c24xx/dev-uart.c into common.c

2012-05-08 Thread Heiko Stübner
The uart devices are used on all s3c24xx machines, so they can reside in the common code for all machines. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/common.c | 73 +++ arch/arm/plat-s3c24xx/Makefile |1 -

[PATCH 3/4] ARM: S3C24XX: move common power-management code to mach-s3c24xx

2012-05-08 Thread Heiko Stübner
This is the basic power-management code used by all s3c24xx machines. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |4 arch/arm/{plat-s3c24xx = mach-s3c24xx}/irq-pm.c |0 arch/arm/{plat-s3c24xx = mach-s3c24xx}/pm.c |0

[PATCH 4/4] ARM: S3C24XX: move common clock init into common.c

2012-05-08 Thread Heiko Stübner
Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/common.c | 18 arch/arm/plat-s3c24xx/Makefile |1 - arch/arm/plat-s3c24xx/clock.c | 59 3 files changed, 18 insertions(+), 60 deletions(-) delete mode 100644

[PATCH v2 06/33] ARM: S3C24XX: dev-uart: Use common macro to define resources

2012-05-08 Thread Heiko Stübner
From: Tushar Behera tushar.beh...@linaro.org CC: Ben Dooks ben-li...@fluff.org CC: Kukjin Kim kgene@samsung.com Signed-off-by: Tushar Behera tushar.beh...@linaro.org Signed-off-by: Heiko Stuebner he...@sntech.de --- changes since v1: update the patch to apply against the moved dev-uart

RE: [PATCH v3 0/6] thermal: exynos: Add kernel thermal support for exynos platform

2012-05-08 Thread Zhang, Rui
Hi, Amit, Sorry for the late response as I'm in a travel recently. I think the generic cpufreq cooling patches are good. But about the THERMAL_TRIP_STATE_INSTANCE patch, what I'd like to see is that 1. from thermal zone point of view, when the temperature is higher than a trip point, either

Re: [PATCH v3 0/6] thermal: exynos: Add kernel thermal support for exynos platform

2012-05-08 Thread Andrew Morton
On Tue, 8 May 2012 21:48:12 +0530 Amit Daniel Kachhap amit.kach...@linaro.org wrote: This patchset introduces a new generic cooling device based on cpufreq that can be used on non-ACPI platforms. As a proof of concept, we have drivers for the following platforms using this mechanism now:

Re: [PATCH v3 3/6] hwmon: exynos4: Move thermal sensor driver to driver/thermal directory

2012-05-08 Thread Andrew Morton
On Tue, 8 May 2012 21:48:15 +0530 Amit Daniel Kachhap amit.kach...@linaro.org wrote: This movement is needed because the hwmon entries and corresponding sysfs interface is a duplicate of utilities already provided by driver/thermal/thermal_sys.c. The goal is to place it in thermal folder and

Re: [PATCH v3 5/6] thermal: exynos: Register the tmu sensor with the kernel thermal layer

2012-05-08 Thread Andrew Morton
On Tue, 8 May 2012 21:48:17 +0530 Amit Daniel Kachhap amit.kach...@linaro.org wrote: This code added creates a link between temperature sensors, linux thermal framework and cooling devices for samsung exynos platform. This layer monitors the temperature from the sensor and informs the generic

Re: [PATCH v3 6/6] ARM: exynos: Add thermal sensor driver platform data support

2012-05-08 Thread Andrew Morton
On Tue, 8 May 2012 21:48:18 +0530 Amit Daniel Kachhap amit.kach...@linaro.org wrote: This patch adds necessary default platform data support needed for TMU driver. This dt/non-dt values are tested for origen exynos4210 and smdk exynos5250 platforms. ... ---

[PATCH 00/10] spi: s3c64xx: add support for device tree

2012-05-08 Thread Thomas Abraham
This patch series adds device tree based discovery support for Samsung's s3c64xx compatible spi controller. This is mainly tested for Exynos4210 and Exynos5250 with onboard spi nor flash device. This patch series is based on Linux 3.4-rc5 with the following two patch series applied. [1]

[PATCH 01/10] spi: s3c64xx: remove unused S3C64XX_SPI_ST_TRLCNTZ macro

2012-05-08 Thread Thomas Abraham
The macro S3C64XX_SPI_ST_TRLCNTZ is not used and hence it is removed. Cc: Jaswinder Singh jaswinder.si...@linaro.org Signed-off-by: Thomas Abraham thomas.abra...@linaro.org --- drivers/spi/spi-s3c64xx.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git

[PATCH 02/10] spi: s3c64xx: move controller information into driver data

2012-05-08 Thread Thomas Abraham
Platform data is used to specify controller hardware specific information such as the tx/rx fifo level mask and bit offset of rx fifo level. Such information is not suitable to be supplied from device tree. Instead, it can be moved into the driver data and removed from platform data. Cc:

[PATCH 03/10] ARM: Samsung: Remove spi hardware controller information from platform data

2012-05-08 Thread Thomas Abraham
With the spi hardware controller information moved to spi driver data, this information can be removed from the spi platform data. Cc: Jaswinder Singh jaswinder.si...@linaro.org Signed-off-by: Thomas Abraham thomas.abra...@linaro.org --- arch/arm/mach-exynos/setup-spi.c | 25

[PATCH 04/10] ARM: Samsung: Remove pdev pointer paremeter from spi gpio setup functions

2012-05-08 Thread Thomas Abraham
The platform data pointer that is passed to the spi gpio setup functions is not used. Hence, this paremeter is removed from all the spi gpio setup functions. Cc: Jaswinder Singh jaswinder.si...@linaro.org Signed-off-by: Thomas Abraham thomas.abra...@linaro.org ---

[PATCH 05/10] ARM: Samsung: Update the device names for spi clock lookup

2012-05-08 Thread Thomas Abraham
With the addition of platform specific driver data in the spi-s3c64xx driver, the device name of spi controllers are changed. Accordingly, update the device name of spi clocks instances. Signed-off-by: Thomas Abraham thomas.abra...@linaro.org --- arch/arm/mach-exynos/clock-exynos4.c | 18

[PATCH 06/10] ARM: Samsung: Modify s3c64xx_spi{0|1|2}_set_platdata function

2012-05-08 Thread Thomas Abraham
With the spi controller hardware configuration moved into the driver data, there are no more default hardware configuration data that is passed through platform data. Accordingly, the s3c64xx_spi{0|1|2}_set_platdata functions are adapted to these changes. Cc: Jaswinder Singh

[PATCH 07/10] spi: s3c64xx: Remove the 'set_level' callback from controller data

2012-05-08 Thread Thomas Abraham
The set_level callback in the controller data, which is used to configure the slave select line, cannot be supported when migrating the driver to device tree based discovery. Since all the platforms currently use gpio as the slave select line, this callback can be removed from the controller data

[PATCH 08/10] ARM: Exynos4: Fix the incorrect hierarchy of spi controller bus clock

2012-05-08 Thread Thomas Abraham
The sclk_spi clock is derived currently from the first level divider (MMCx_RATIO) which is incorrect. The output of the first level clock is divided by a second level divider (MMCx_PRE_RATIO), the output of which is used as the spi bus clock (sclk_spi). Fix the clock hierarchy issues for the

[PATCH 09/10] ARM: Exynos5: Add spi clock support

2012-05-08 Thread Thomas Abraham
Add support for clock instances for each spi controller. Signed-off-by: Thomas Abraham thomas.abra...@linaro.org --- arch/arm/mach-exynos/clock-exynos5.c | 98 arch/arm/mach-exynos/include/mach/regs-clock.h |4 + 2 files changed, 102 insertions(+), 0

[PATCH 10/10] spi: s3c64xx: add device tree support

2012-05-08 Thread Thomas Abraham
Add support for device based discovery. Cc: Jaswinder Singh jaswinder.si...@linaro.org Signed-off-by: Thomas Abraham thomas.abra...@linaro.org --- .../devicetree/bindings/spi/spi-samsung.txt| 113 drivers/spi/spi-s3c64xx.c | 277 +--- 2

[PATCH] mtd: m25p80: Add support for Winbond W25Q80BW

2012-05-08 Thread Thomas Abraham
Winbond W25Q80BW is a 8Mbit serial flash memory device. Signed-off-by: Thomas Abraham thomas.abra...@linaro.org --- drivers/mtd/devices/m25p80.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index

Re: [PATCH] ARM: EXYNOS: Add platform resource definitions for FIMC-LITE

2012-05-08 Thread Sylwester Nawrocki
On 05/08/2012 07:42 AM, Kukjin Kim wrote: Sylwester Nawrocki wrote: Add the gate clocks and register region address definition for FIMC-LITE devices available in Exynos4x12 and Exynos5 SoCs. This is right description? I can't find your changes for EXYNOS4412 and EXYNOS5 here. Only this is

Re: [PATCH] ARM: EXYNOS: Add platform resource definitions for FIMC-LITE

2012-05-08 Thread Sylwester Nawrocki
On 05/08/2012 09:35 AM, Sylwester Nawrocki wrote: On 05/08/2012 07:42 AM, Kukjin Kim wrote: Sylwester Nawrocki wrote: Add the gate clocks and register region address definition for FIMC-LITE devices available in Exynos4x12 and Exynos5 SoCs. This is right description? I can't find your

[PATCH v3 5/6] thermal: exynos: Register the tmu sensor with the kernel thermal layer

2012-05-08 Thread Amit Daniel Kachhap
This code added creates a link between temperature sensors, linux thermal framework and cooling devices for samsung exynos platform. This layer monitors the temperature from the sensor and informs the generic thermal layer to take the necessary cooling action. Signed-off-by: Amit Daniel Kachhap

[PATCH v3 6/6] ARM: exynos: Add thermal sensor driver platform data support

2012-05-08 Thread Amit Daniel Kachhap
This patch adds necessary default platform data support needed for TMU driver. This dt/non-dt values are tested for origen exynos4210 and smdk exynos5250 platforms. Signed-off-by: Amit Daniel Kachhap amit.kach...@linaro.org --- drivers/thermal/exynos_thermal.c | 107

[PATCH v3 2/6] thermal: Add generic cpufreq cooling implementation

2012-05-08 Thread Amit Daniel Kachhap
This patch adds support for generic cpu thermal cooling low level implementations using frequency scaling up/down based on the registration parameters. Different cpu related cooling devices can be registered by the user and the binding of these cooling devices to the corresponding trip points can