[PATCH V2 06/20] thermal: exynos: Add missing definations and code cleanup

2013-04-26 Thread Amit Daniel Kachhap
This patch adds some extra register bitfield definations and cleans up the code to prepare for moving register macros and definations inside the TMU data section. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 62

[PATCH V2 07/20] thermal: exynos: Add extra entries in the tmu platform data

2013-04-26 Thread Amit Daniel Kachhap
constant macros. All these changes helps in separating the SOC specific data part from the TMU driver. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 43 +++ drivers/thermal/samsung/exynos_tmu.h | 52

[PATCH V2 04/20] thermal: exynos: Move exynos_thermal.h from include/* to driver/* folder

2013-04-26 Thread Amit Daniel Kachhap
lated definations. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c|1 - drivers/thermal/samsung/exynos_thermal_common.h| 15 +++ drivers/thermal/samsung/exynos_tmu.c |2 +- .../thermal/samsung/exynos_

Re: [PATCH v2 2/4] Thermal: exynos: Support for TMU regulator defined at device tree

2013-04-28 Thread amit daniel kachhap
Hi Lukasz/Eduardo, On Thu, Apr 25, 2013 at 9:14 PM, Eduardo Valentin wrote: > Amit, Lukasz, > > > On 25-04-2013 09:29, Lukasz Majewski wrote: >> >> Hi Amit, >> >>> Hi Lukasz Majewski, >>> >>> Sorry for late review but I am currently working on restructuring the >>> whole exynos thermal driver and

Re: [PATCH v2 2/4] Thermal: exynos: Support for TMU regulator defined at device tree

2013-04-28 Thread amit daniel kachhap
On Sat, Apr 27, 2013 at 6:20 AM, Zhang Rui wrote: > Hi, all, > > what is the status now? > which one is preferred, this one or the one from Amit's patch set? Hi Rui, I have still not submitted LDO support in the TMU driver. I will re-base Lukasz patches on top of my patch series and submit shortl

Re: [PATCH v2 1/4] ARM: dts: thermal: exynos4: TMU device tree support for Exynos4412 targets

2013-04-28 Thread amit daniel kachhap
atch looks good to me: > Acked-by: Eduardo Valentin This patch looks nice but I guess this patch should go via Kukjin Kim's samsung tree. Acked-by: Amit Daniel Kachhap Thanks, Amit Daniel > >> --- >> Changes for v2: >> - None >> --- >> arch/arm/boot/dts/exyno

Re: [PATCH v2 3/4] ARM: dts: thermal: exynos4: Add documentation for Exynos SoC thermal bindings

2013-04-28 Thread amit daniel kachhap
by: Kyungmin Park > > > I am fine with this one too. > > Reviewed-by: Eduardo Valentin This patch looks fine and can be merged. Acked-by: Amit Daniel Kachhap Thanks, Amit Daniel > > >> --- >> Changes for v2: >> - Documentation extension according to ML

[PATCH] thermal: exynos: Support for TMU regulator defined at device tree

2013-05-01 Thread Amit Daniel Kachhap
TMU probe function now checks for a device tree defined regulator. For compatibility reasons it is allowed to probe driver even without this regulator defined. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap --- This patch is repost of the patch

Re: [PATCH] thermal: exynos: Support for TMU regulator defined at device tree

2013-05-02 Thread amit daniel kachhap
Hi Sylwester, On Thu, May 2, 2013 at 2:57 PM, Sylwester Nawrocki wrote: > Hi, > > On 05/02/2013 07:37 AM, Amit Daniel Kachhap wrote: >> TMU probe function now checks for a device tree defined regulator. >> For compatibility reasons it is allowed to probe driver even with

[PATCH V2] thermal: exynos: Support for TMU regulator defined at device tree

2013-05-02 Thread Amit Daniel Kachhap
TMU probe function now checks for a device tree defined regulator. For compatibility reasons it is allowed to probe driver even without this regulator defined. Signed-off-by: Luk asz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap --- Changes in V2: * Added log

[PATCH V3 0/20] thermal: exynos: Add thermal driver for exynos5440

2013-05-07 Thread Amit Daniel Kachhap
oller) can be merged through exynos platform maintainer as this can cause merge conflict. All these patches are based on thermal maintainers git tree, git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next. Amit Daniel Kachhap (20): thermal: exynos: Moving exynos thermal files into sa

[PATCH V3 01/21] thermal: exynos: Moving exynos thermal files into samsung directory

2013-05-07 Thread Amit Daniel Kachhap
This movement of files is done for easy maintenance and adding more new sensor's support for exynos platform easily . This will also help in bifurcating exynos common, sensor driver and sensor data related parts. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/th

[PATCH V3 02/21] thermal: exynos: Bifurcate exynos thermal common and tmu controller code

2013-05-07 Thread Amit Daniel Kachhap
: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig | 20 +- drivers/thermal/samsung/Makefile|4 +- drivers/thermal/samsung/exynos_thermal.c| 421 +-- drivers/thermal/samsung/exynos_thermal_common.c

[PATCH V3 09/21] thermal: exynos: Move register definitions from driver file to data file

2013-05-07 Thread Amit Daniel Kachhap
This patch migrates the TMU register definition/bitfields to data file. This is needed to support SoC's which use the same TMU controller but register validity, offsets or bitfield may slightly vary across SOC's. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drive

[PATCH V3 11/21] thermal: exynos: Add support for instance based register/unregister

2013-05-07 Thread Amit Daniel Kachhap
This code modifies the thermal driver to have multiple thermal zone support by replacing the global thermal zone variable with device data member of thermal_zone_device. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c | 36

[PATCH V3 13/21] thermal: exynos: Return success even if no cooling data supplied

2013-05-07 Thread Amit Daniel Kachhap
This patch removes the error return in the bind/unbind routine as the platform may not register any cpufreq cooling data. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH V3 20/21] thermal: exynos: Support for TMU regulator defined at device tree

2013-05-07 Thread Amit Daniel Kachhap
TMU probe function now checks for a device tree defined regulator. For compatibility reasons it is allowed to probe driver even without this regulator defined. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal

[PATCH V3 21/21] ARM: dts: Add device tree node for exynos5440 TMU controller

2013-05-07 Thread Amit Daniel Kachhap
This patch adds device node for TMU controller. There are 3 instances of the controllers so 3 nodes are created. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- arch/arm/boot/dts/exynos5440.dtsi | 30 ++ 1 files changed, 30 insertions(+), 0 deletions

[PATCH V3 10/21] thermal: exynos: Fix to clear only the generated interrupts

2013-05-07 Thread Amit Daniel Kachhap
This patch uses the TMU status register to know the generated interrupts and only clear them in the interrupt handler. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 10 -- drivers/thermal/samsung/exynos_tmu_data.c |2 ++ 2

[PATCH V3 12/21] thermal: exynos: Modify private_data to appropriate name driver_data

2013-05-07 Thread Amit Daniel Kachhap
This patch renames member private_data to driver_data of the thermal zone registration structure as this item stores the driver related data and uses it to call the driver related callbacks. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung

[PATCH V3 14/21] thermal: exynos: Make the zone handling dependent on trip count

2013-05-07 Thread Amit Daniel Kachhap
This code simplifies the zone handling to use the trip count passed by the TMU driver. This also helps in adding more zone support. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c | 55 --- drivers/thermal

[PATCH V3 15/21] thermal: exynos: Add support to handle many instances of TMU

2013-05-07 Thread Amit Daniel Kachhap
. Also the identifier of the TMU controller is extracted from device tree alias. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 125 +++--- 1 files changed, 84 insertions(+), 41 deletions(-) diff --git a/drivers

[PATCH V3 16/21] thermal: exynos: Add features to check instead of using SOC type

2013-05-07 Thread Amit Daniel Kachhap
This patch adds several features supported by TMU as bitfields. This features varies across different SOC type and comparing the features present in the TMU is more logical than comparing the soc itself. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung

[PATCH V3 17/21] ARM: dts: thermal: exynos4: Add documentation for Exynos SoC thermal bindings

2013-05-07 Thread Amit Daniel Kachhap
From: Lukasz Majewski Proper description for Exynos4 bindings added to Documentation/devicetree/ bindings Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park --- .../devicetree/bindings/thermal/exynos-thermal.txt | 25 1 files changed, 25 insertions(+), 0 deleti

[PATCH V3 18/21] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-05-07 Thread Amit Daniel Kachhap
supports upto five trip points. For critical threshold the driver uses the core driver thermal framework for shutdown. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal/exynos-thermal.txt | 28 - drivers/thermal/samsung/Kconfig|4

[PATCH V3 19/21] Documentation: thermal: Explain the exynos thermal driver model

2013-05-07 Thread Amit Daniel Kachhap
This patch updates the documentation to explain the driver model and file layout. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- Documentation/thermal/exynos_thermal | 43 ++--- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git a

[PATCH V3 08/21] thermal: exynos: Support thermal tripping

2013-05-07 Thread Amit Daniel Kachhap
TMU urgently sends active-high signal (thermal trip) to PMU, and thermal tripping by hardware logic. Thermal tripping means that PMU cuts off the whole power of SoC by controlling external voltage regulator. Acked-by: Kukjin Kim Signed-off-by: Jonghwan Choi Signed-off-by: Amit Daniel Kachhap

[PATCH V3 03/21] thermal: exynos: Rename exynos_thermal.c to exynos_tmu.c

2013-05-07 Thread Amit Daniel Kachhap
This patch renames exynos_thermal.c to exynos_tmu.c. This change is needed as this file now just contains exynos tmu driver related codes and thermal zone or cpufreq cooling registration related changes are not there anymore. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers

[PATCH V3 04/21] thermal: exynos: Move exynos_thermal.h from include/* to driver/* folder

2013-05-07 Thread Amit Daniel Kachhap
lated definations. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c|1 - drivers/thermal/samsung/exynos_thermal_common.h| 15 +++ drivers/thermal/samsung/exynos_tmu.c |2 +- .../thermal/samsung/exynos_

[PATCH V3 05/21] thermal: exynos: Bifurcate exynos tmu driver and configuration data

2013-05-07 Thread Amit Daniel Kachhap
This code splits the exynos tmu driver code into SOC specific data parts. This will simplify adding new SOC specific data to the same TMU controller. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig | 13 - drivers/thermal

[PATCH V3 06/21] thermal: exynos: Add missing definations and code cleanup

2013-05-07 Thread Amit Daniel Kachhap
This patch adds some extra register bitfield definations and cleans up the code to prepare for moving register macros and definations inside the TMU data section. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 62

[PATCH V3 07/21] thermal: exynos: Add extra entries in the tmu platform data

2013-05-07 Thread Amit Daniel Kachhap
constant macros. All these changes helps in separating the SOC specific data part from the TMU driver. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 43 +++ drivers/thermal/samsung/exynos_tmu.h | 52

[RESEND PATCH V3 01/21] thermal: exynos: Moving exynos thermal files into samsung directory

2013-05-07 Thread Amit Daniel Kachhap
This movement of files is done for easy maintenance and adding more new sensor's support for exynos platform easily . This will also help in bifurcating exynos common, sensor driver and sensor data related parts. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/th

Re: [PATCH V2 01/20] thermal: exynos: Moving exynos thermal files into samsung directory

2013-05-07 Thread amit daniel kachhap
Hi Rui, On Mon, May 6, 2013 at 8:35 PM, Zhang Rui wrote: > On Fri, 2013-04-26 at 16:07 +0530, Amit Daniel Kachhap wrote: >> This movement of files is done for easy maintenance and adding more >> new sensor's support for exynos platform easily . This will also help in >>

Re: [PATCH V2 01/20] thermal: exynos: Moving exynos thermal files into samsung directory

2013-05-07 Thread amit daniel kachhap
Hi Tomasz Figa, On Tue, May 7, 2013 at 3:51 PM, Tomasz Figa wrote: > On Monday 06 of May 2013 23:05:06 Zhang Rui wrote: >> On Fri, 2013-04-26 at 16:07 +0530, Amit Daniel Kachhap wrote: >> > This movement of files is done for easy maintenance and adding more >> > new

Re: [PATCH V2 02/20] thermal: exynos: Bifurcate exynos thermal common and tmu controller code

2013-05-07 Thread amit daniel kachhap
Hi Rui, On Mon, May 6, 2013 at 8:46 PM, Zhang Rui wrote: > On Fri, 2013-04-26 at 16:07 +0530, Amit Daniel Kachhap wrote: >> This code bifurcates exynos thermal implementation into common and sensor >> specific parts. The common thermal code interacts with core thermal layer and

Re: [PATCH V3 02/21] thermal: exynos: Bifurcate exynos thermal common and tmu controller code

2013-05-07 Thread amit daniel kachhap
Hi Rui, On Tue, May 7, 2013 at 7:11 PM, Zhang Rui wrote: > On Tue, 2013-05-07 at 18:30 +0530, Amit Daniel Kachhap wrote: >> This code bifurcates exynos thermal implementation into common and sensor >> specific parts. The common thermal code interacts with core thermal layer and

Re: [RESEND PATCH V3 01/21] thermal: exynos: Moving exynos thermal files into samsung directory

2013-05-08 Thread amit daniel kachhap
Hi Eduardo, On Wed, May 8, 2013 at 9:19 PM, Eduardo Valentin wrote: > On 07-05-2013 09:07, Amit Daniel Kachhap wrote: >> This movement of files is done for easy maintenance and adding more >> new sensor's support for exynos platform easily . This will also help in >>

Re: [PATCH V3 02/21] thermal: exynos: Bifurcate exynos thermal common and tmu controller code

2013-05-08 Thread amit daniel kachhap
Hi Eduardo, Thanks for the review. On Wed, May 8, 2013 at 9:31 PM, Eduardo Valentin wrote: > On 07-05-2013 09:00, Amit Daniel Kachhap wrote: >> This code bifurcates exynos thermal implementation into common and sensor >> specific parts. The common thermal code interacts with cor

Re: [PATCH V3 04/21] thermal: exynos: Move exynos_thermal.h from include/* to driver/* folder

2013-05-09 Thread amit daniel kachhap
Hi, On Thu, May 9, 2013 at 6:58 PM, Eduardo Valentin wrote: > Hello Amit, > > On 07-05-2013 09:00, Amit Daniel Kachhap wrote: >> This patch renames and moves include/linux/platform_data/exynos_thermal.h to >> drivers/thermal/samsung/exynos_tmu.h. This file movement is need

Re: [PATCH V3 05/21] thermal: exynos: Bifurcate exynos tmu driver and configuration data

2013-05-09 Thread amit daniel kachhap
Hi Eduardo, On Thu, May 9, 2013 at 7:09 PM, Eduardo Valentin wrote: > Hey Amit, > > On 07-05-2013 09:00, Amit Daniel Kachhap wrote: >> This code splits the exynos tmu driver code into SOC specific data parts. >> This will simplify adding new SOC specific data to the same

Re: [PATCH V3 06/21] thermal: exynos: Add missing definations and code cleanup

2013-05-09 Thread amit daniel kachhap
Hi, On Thu, May 9, 2013 at 7:22 PM, Eduardo Valentin wrote: > Amit, > > On 07-05-2013 09:00, Amit Daniel Kachhap wrote: >> This patch adds some extra register bitfield definations and cleans >> up the code to prepare for moving register macros and definations inside &g

Re: [PATCH V3 09/21] thermal: exynos: Move register definitions from driver file to data file

2013-05-09 Thread amit daniel kachhap
Hi Eduardo, On Thu, May 9, 2013 at 8:02 PM, Eduardo Valentin wrote: > Hey Amit, > > On 07-05-2013 09:00, Amit Daniel Kachhap wrote: >> This patch migrates the TMU register definition/bitfields to data file. This >> is needed to support SoC's which use the same T

Re: [PATCH V3 10/21] thermal: exynos: Fix to clear only the generated interrupts

2013-05-09 Thread amit daniel kachhap
Hi, On Thu, May 9, 2013 at 8:03 PM, Eduardo Valentin wrote: > On 07-05-2013 09:01, Amit Daniel Kachhap wrote: >> This patch uses the TMU status register to know the generated interrupts >> and only clear them in the interrupt handler. >> >> Acked-by: Kukjin Kim &g

Re: [PATCH V3 20/21] thermal: exynos: Support for TMU regulator defined at device tree

2013-05-09 Thread amit daniel kachhap
Hi Eduardo, On Thu, May 9, 2013 at 8:14 PM, Eduardo Valentin wrote: > On 07-05-2013 09:01, Amit Daniel Kachhap wrote: >> TMU probe function now checks for a device tree defined regulator. >> For compatibility reasons it is allowed to probe driver even without >> t

Re: [PATCH V3 18/21] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-05-09 Thread amit daniel kachhap
Hi Eduardo, On Thu, May 9, 2013 at 8:17 PM, Eduardo Valentin wrote: > Hey Amit, > > On 07-05-2013 09:01, Amit Daniel Kachhap wrote: >> This patch modifies TMU controller to add changes needed to work with >> exynos5440 platform. Also register definitions and required c

Re: [PATCH V3 15/21] thermal: exynos: Add support to handle many instances of TMU

2013-05-09 Thread amit daniel kachhap
On Thu, May 9, 2013 at 8:23 PM, Eduardo Valentin wrote: > On 07-05-2013 09:01, Amit Daniel Kachhap wrote: >> This patch adds support to handle multiple instances of the TMU controllers. >> This is done by removing the static structure to register with the core >> therm

Re: [PATCH V3 09/21] thermal: exynos: Move register definitions from driver file to data file

2013-05-12 Thread amit daniel kachhap
On Fri, May 10, 2013 at 7:44 PM, Eduardo Valentin wrote: > On 09-05-2013 22:17, amit daniel kachhap wrote: >> Hi Eduardo, >> >> On Thu, May 9, 2013 at 8:02 PM, Eduardo Valentin >> wrote: >>> Hey Amit, >>> >>> On 07-05-2013 09:00, Amit

Re: [PATCH V3 10/21] thermal: exynos: Fix to clear only the generated interrupts

2013-05-12 Thread amit daniel kachhap
On Fri, May 10, 2013 at 9:10 PM, Eduardo Valentin wrote: > On 09-05-2013 22:22, amit daniel kachhap wrote: >> Hi, >> >> On Thu, May 9, 2013 at 8:03 PM, Eduardo Valentin >> wrote: >>> On 07-05-2013 09:01, Amit Daniel Kachhap wrote: >>>> Thi

[PATCH V4 07/30] thermal: exynos: Bifurcate exynos tmu driver and configuration data

2013-05-14 Thread Amit Daniel Kachhap
This code splits the exynos tmu driver code into SOC specific data parts. This will simplify adding new SOC specific data to the same TMU controller. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig |3 +- drivers/thermal/samsung

[PATCH V4 12/30] thermal: exynos: Fix to clear only the generated interrupts

2013-05-14 Thread Amit Daniel Kachhap
This patch uses the TMU status register to know the generated interrupts and only clear them in the interrupt handler. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 11 +-- drivers/thermal/samsung/exynos_tmu_data.c |2

[PATCH V4 16/30] thermal: exynos: Make the zone handling dependent on trip count

2013-05-14 Thread Amit Daniel Kachhap
This code simplifies the zone handling to use the trip count passed by the TMU driver. This also helps in adding more zone support. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c | 55 --- drivers/thermal

[PATCH V4 25/30] thermal: exynos: Add a compensation logic on swapped e-fuse values

2013-05-14 Thread Amit Daniel Kachhap
This patch adds compensation logic on swapped e-fuse values with boundary conditions. Currently, e-fused trim values for sensor0 is swapped with sensor2 so the logic in this patch is needed. sensor1 e-fused trim value is correct. Signed-off-by: Jungseok Lee Signed-off-by: Amit Daniel Kachhap

[PATCH V4 30/30] arm: exynos: enable ARCH_HAS_TMU

2013-05-14 Thread Amit Daniel Kachhap
This patch enables ARCH_HAS_TMU config for exynos4210, 4212, 4412, 5250 and 5440 SOC. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/Kconfig |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig

[PATCH V4 29/30] ARM: dts: Add device tree node for exynos5440 TMU controller

2013-05-14 Thread Amit Daniel Kachhap
This patch adds device node for TMU controller. There are 3 instances of the controllers so 3 nodes are created. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- arch/arm/boot/dts/exynos5440.dtsi | 30 ++ 1 files changed, 30 insertions(+), 0 deletions

[PATCH V4 14/30] thermal: exynos: Modify private_data to appropriate name driver_data

2013-05-14 Thread Amit Daniel Kachhap
This patch renames member private_data to driver_data of the thermal zone registration structure as this item stores the driver related data and uses it to call the driver related callbacks. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung

[PATCH V4 18/30] thermal: exynos: Add TMU features to check instead of using SOC type

2013-05-14 Thread Amit Daniel Kachhap
This patch adds several features supported by TMU as bitfields. This features varies across different SOC type and comparing the features present in the TMU is more logical than comparing the soc itself. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung

[PATCH V4 20/30] ARM: dts: thermal: exynos4: Add documentation for Exynos SoC thermal bindings

2013-05-14 Thread Amit Daniel Kachhap
From: Lukasz Majewski Proper description for Exynos4 bindings added to Documentation/devicetree/ bindings Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park --- .../devicetree/bindings/thermal/exynos-thermal.txt | 25 1 files changed, 25 insertions(+), 0 deleti

[PATCH V4 21/30] thermal: exynos: Add support to access common register for multistance

2013-05-14 Thread Amit Daniel Kachhap
This patch adds support to parse one more common set of TMU register. First set of register belongs to each instance of TMU and second set belongs to common TMU registers. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 24

[PATCH V4 23/30] thermal: exynos: Fix to set the second point correction value properly

2013-05-14 Thread Amit Daniel Kachhap
This patch sets the second point trimming value according to the platform data if the register value is 0. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a

[PATCH V4 24/30] thermal: exynos: Add thermal configuration data for exynos5440 TMU sensor

2013-05-14 Thread Amit Daniel Kachhap
This patch adds configuration data for exynos5440 soc. Also register definations for the controller are added. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c |4 ++ drivers/thermal/samsung/exynos_tmu_data.c | 61

[PATCH V4 27/30] Documentation: thermal: Explain the exynos thermal driver model

2013-05-14 Thread Amit Daniel Kachhap
This patch updates the documentation to explain the driver model and file layout. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- Documentation/thermal/exynos_thermal | 43 ++--- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git a

[PATCH V4 28/30] thermal: exynos: Support for TMU regulator defined at device tree

2013-05-14 Thread Amit Daniel Kachhap
TMU probe function now checks for a device tree defined regulator. For compatibility reasons it is allowed to probe driver even without this regulator defined. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal

[PATCH V4 26/30] thermal: exynos: Add hardware mode thermal calibration support

2013-05-14 Thread Amit Daniel Kachhap
This patch adds support for h/w mode calibration in the TMU controller. soc's like 5440 support this features. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 15 +++ drivers/thermal/samsung/exynos_tmu.h |

[PATCH V4 22/30] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-05-14 Thread Amit Daniel Kachhap
core driver thermal framework for shutdown. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal/exynos-thermal.txt | 28 - drivers/thermal/samsung/exynos_tmu.c | 43 +-- drivers/thermal/samsung/exynos_tmu.h

[PATCH V4 19/30] thermal: exynos: use device resource management infrastructure

2013-05-14 Thread Amit Daniel Kachhap
This patch stores the device pointer in the configuration structure and uses it for dev_* prints and devm API's. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c | 39 ++ drivers/thermal/sa

[PATCH V4 17/30] thermal: exynos: Add support to handle many instances of TMU

2013-05-14 Thread Amit Daniel Kachhap
. Also the identifier of the TMU controller is extracted from device tree alias. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 126 +++--- 1 files changed, 85 insertions(+), 41 deletions(-) diff --git a/drivers

[PATCH V4 15/30] thermal: exynos: Return success even if no cooling data supplied

2013-05-14 Thread Amit Daniel Kachhap
This patch removes the error return in the bind/unbind routine as the platform may not register any cpufreq cooling data. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH V4 13/30] thermal: exynos: Add support for instance based register/unregister

2013-05-14 Thread Amit Daniel Kachhap
This code modifies the thermal driver to have multiple thermal zone support by replacing the global thermal zone variable with device data member of thermal_zone_device. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c | 36

[PATCH V4 00/30] thermal: exynos: Add thermal driver for exynos5440

2013-05-14 Thread Amit Daniel Kachhap
l/git/rzhang/linux.git next. Amit Daniel Kachhap (29): thermal: exynos: Moving exynos thermal files into samsung directory thermal: exynos: Add ARCH_HAS_TMU config to know the supported soc's thermal: exynos: Remove CPU_THERMAL dependency for using TMU driver thermal: exynos: Bifurc

[PATCH V4 01/30] thermal: exynos: Moving exynos thermal files into samsung directory

2013-05-14 Thread Amit Daniel Kachhap
This movement of files is done for easy maintenance and adding more new sensor's support for exynos platform easily . This will also help in bifurcating exynos common, sensor driver and sensor data related parts. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/th

[PATCH V4 02/30] thermal: exynos: Add ARCH_HAS_TMU config to know the supported soc's

2013-05-14 Thread Amit Daniel Kachhap
This patch adds config sybmol ARCH_HAS_TMU to enable the TMU driver. This will allow adding support for new soc easily as now it is the platform responsibility to enable this config symbol. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig |5

[PATCH V4 03/30] thermal: exynos: Remove CPU_THERMAL dependency for using TMU driver

2013-05-14 Thread Amit Daniel Kachhap
This patch removes the dependency on CPU_THERMAL for compiling TMU driver. This is useful for cases when only TMU controller needs to be initialised without cpu cooling action. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig |1 - 1 files changed

[PATCH V4 04/30] thermal: exynos: Bifurcate exynos thermal common and tmu controller code

2013-05-14 Thread Amit Daniel Kachhap
: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig | 19 +- drivers/thermal/samsung/Makefile|4 +- drivers/thermal/samsung/exynos_thermal.c| 419 +-- drivers/thermal/samsung/exynos_thermal_common.c

[PATCH V4 05/30] thermal: exynos: Rename exynos_thermal.c to exynos_tmu.c

2013-05-14 Thread Amit Daniel Kachhap
Daniel Kachhap --- drivers/thermal/samsung/Makefile |6 +++--- .../samsung/{exynos_thermal.c => exynos_tmu.c} |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename drivers/thermal/samsung/{exynos_thermal.c => exynos_tmu.c} (99%) diff --git a/drivers/t

[PATCH V4 09/30] thermal: exynos: Add extra entries in the tmu platform data

2013-05-14 Thread Amit Daniel Kachhap
constant macros. All these changes helps in separating the SOC specific data part from the TMU driver. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 43 +++ drivers/thermal/samsung/exynos_tmu.h | 52

[PATCH V4 10/30] thermal: exynos: Support thermal tripping

2013-05-14 Thread Amit Daniel Kachhap
TMU urgently sends active-high signal (thermal trip) to PMU, and thermal tripping by hardware logic. Thermal tripping means that PMU cuts off the whole power of SoC by controlling external voltage regulator. Acked-by: Kukjin Kim Signed-off-by: Jonghwan Choi Signed-off-by: Amit Daniel Kachhap

[PATCH V4 11/30] thermal: exynos: Move register definitions from driver file to data file

2013-05-14 Thread Amit Daniel Kachhap
This patch migrates the TMU register definition/bitfields to data file. This is needed to support SoC's which use the same TMU controller but register validity, offsets or bitfield may slightly vary across SOC's. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drive

[PATCH V4 08/30] thermal: exynos: Add missing definations and code cleanup

2013-05-14 Thread Amit Daniel Kachhap
This patch adds some extra register bitfield definations and cleans up the code to prepare for moving register macros and definations inside the TMU data section. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 62

[PATCH V4 06/30] thermal: exynos: Move exynos_thermal.h from include/* to driver/* folder

2013-05-14 Thread Amit Daniel Kachhap
truct freq_clip_table is now moved to exynos_thermal_common.c as it fixes the compilation issue occuring because now this new tmu header file is included in tmu driver c file and not in the common thermal header file. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/sa

Re: [PATCH V4 22/30] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-06-03 Thread amit daniel kachhap
Hi Jonghwa, Sorry for the late reply as I was on leave. On Sat, May 18, 2013 at 10:53 AM, wrote: > On 2013년 05월 14일 18:58, Amit Daniel Kachhap wrote: > >> This patch modifies TMU controller to add changes needed to work with >> exynos5440 platform. This sensor registers 3 i

Re: [PATCH V4 10/30] thermal: exynos: Support thermal tripping

2013-06-03 Thread amit daniel kachhap
Hi . On Fri, May 17, 2013 at 5:26 PM, wrote: > Hi, Amit > On 2013년 05월 14일 18:58, Amit Daniel Kachhap wrote: > >> TMU urgently sends active-high signal (thermal trip) to PMU, and thermal >> tripping by hardware logic. Thermal tripping means that PMU cuts off the >

Re: [PATCH V4 00/30] thermal: exynos: Add thermal driver for exynos5440

2013-06-03 Thread amit daniel kachhap
Hi Eduardo, On Wed, May 15, 2013 at 8:14 PM, Eduardo Valentin wrote: > On 14-05-2013 05:58, Amit Daniel Kachhap wrote: >> Changes in V4: >> Almost all the changes in this version is as per suggestion from Eduardo.The >> major ones are listed below, >> * Added kconfi

Re: [PATCH V4 22/30] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-06-04 Thread amit daniel kachhap
Hi Eduardo, On Tue, Jun 4, 2013 at 6:25 PM, Eduardo Valentin wrote: > On 04-06-2013 00:44, amit daniel kachhap wrote: >> Hi Jonghwa, >> >> Sorry for the late reply as I was on leave. >> >> On Sat, May 18, 2013 at 10:53 AM, wrote: >>> On 2013

Re: [PATCH V4 00/30] thermal: exynos: Add thermal driver for exynos5440

2013-06-04 Thread amit daniel kachhap
On Tue, Jun 4, 2013 at 6:31 PM, Eduardo Valentin wrote: > > Hi, > > On 04-06-2013 08:57, Eduardo Valentin wrote: >> On 04-06-2013 00:55, amit daniel kachhap wrote: >>> Hi Eduardo, >>> >>> On Wed, May 15, 2013 at 8:14 PM, Eduardo Valentin >>>

Re: [PATCH V4 22/30] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-06-05 Thread amit daniel kachhap
Hi, On Wed, Jun 5, 2013 at 6:23 PM, Eduardo Valentin wrote: > On 04-06-2013 23:20, amit daniel kachhap wrote: >> Hi Eduardo, >> >> On Tue, Jun 4, 2013 at 6:25 PM, Eduardo Valentin >> wrote: >>> On 04-06-2013 00:44, amit daniel kachhap wrote: >>>> H

[RESEND PATCH 1/3] ARM: EXYNOS: Move arm core power down clock to exynos5250 common clock

2013-06-05 Thread Amit Daniel Kachhap
Now with common clock support added for exynos5250 it is necessary to move this code to exynos5250 common clock driver as clock registers should be handled there. This change is tested in exynos5250 based arndale platform. Cc: Abhilash Kesavan Cc: Thomas Abraham Signed-off-by: Amit Daniel

[PATCH V5 00/30] thermal: exynos: Add thermal driver for exynos5440

2013-06-11 Thread Amit Daniel Kachhap
ller) and patch (arm: exynos: enable ARCH_HAS_TMU) can be merged through exynos platform maintainer as this can cause merge conflict. All these patches are based on thermal maintainers git tree, git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next. Amit Daniel Kachhap (29): thermal: e

[PATCH V5 09/30] thermal: exynos: Add extra entries in the tmu platform data

2013-06-11 Thread Amit Daniel Kachhap
of the constant macros. All these changes helps in separating the SOC specific data part from the TMU driver. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.h |7 +++ drivers/thermal/samsung/exynos_tmu.c| 43

[PATCH V5 21/30] ARM: dts: thermal: exynos4: Add documentation for Exynos SoC thermal bindings

2013-06-11 Thread Amit Daniel Kachhap
From: Lukasz Majewski Proper description for Exynos4 bindings added to Documentation/devicetree/ bindings Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park --- .../devicetree/bindings/thermal/exynos-thermal.txt | 25 1 files changed, 25 insertions(+), 0 deleti

[PATCH V5 25/30] thermal: exynos: Fix to set the second point correction value

2013-06-11 Thread Amit Daniel Kachhap
This patch sets the second point trimming value according to the platform data if the register value is 0. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a

[PATCH V5 27/30] Documentation: thermal: Explain the exynos thermal driver model

2013-06-11 Thread Amit Daniel Kachhap
This patch updates the documentation to explain the driver model and file layout. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- Documentation/thermal/exynos_thermal | 43 ++--- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git a

[PATCH V5 29/30] ARM: dts: Add device tree node for exynos5440 TMU controller

2013-06-11 Thread Amit Daniel Kachhap
This patch adds device node for TMU controller. There are 3 instances of the controllers so 3 nodes are created. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- arch/arm/boot/dts/exynos5440.dtsi | 30 ++ 1 files changed, 30 insertions(+), 0 deletions

[PATCH V5 30/30] arm: exynos: enable ARCH_HAS_TMU

2013-06-11 Thread Amit Daniel Kachhap
This patch enables ARCH_HAS_TMU config for exynos4210, 4212, 4412, 5250 and 5440 SOC. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/Kconfig |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig

[PATCH V5 28/30] thermal: exynos: Support for TMU regulator defined at device tree

2013-06-11 Thread Amit Daniel Kachhap
TMU probe function now checks for a device tree defined regulator. For compatibility reasons it is allowed to probe driver even without this regulator defined. Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal

[PATCH V5 26/30] thermal: exynos: Add hardware mode thermal calibration support

2013-06-11 Thread Amit Daniel Kachhap
This patch adds support for h/w mode calibration in the TMU controller. soc's like 5440 support this features. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 15 +++ drivers/thermal/samsung/exynos_tmu.h |

[PATCH V5 23/30] thermal: exynos: Add driver support for exynos5440 TMU sensor

2013-06-11 Thread Amit Daniel Kachhap
core driver thermal framework for shutdown. Acked-by: Kukjin Kim Signed-off-by: Jungseok Lee Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal/exynos-thermal.txt | 24 - drivers/thermal/samsung/exynos_thermal_common.h|2 +- drivers/thermal/samsung

[PATCH V5 22/30] thermal: exynos: Add support to access common register for multistance

2013-06-11 Thread Amit Daniel Kachhap
This patch adds support to parse one more common set of TMU register. First set of register belongs to each instance of TMU and second set belongs to common TMU registers. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal/exynos-thermal.txt |6

[PATCH V5 24/30] thermal: exynos: Add thermal configuration data for exynos5440 TMU sensor

2013-06-11 Thread Amit Daniel Kachhap
This patch adds configuration data for exynos5440 soc. Also register definations for the controller are added. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c |4 ++ drivers/thermal/samsung/exynos_tmu_data.c | 71

[PATCH V5 17/30] thermal: exynos: Remove non DT based support

2013-06-11 Thread Amit Daniel Kachhap
Recently non DT support from Exynos platform is removed and hence removing non DT support from the driver also. This will help in easy maintainence. Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 17 + 1 files changed, 1 insertions(+), 16

<    1   2   3   4   5   6   >