[PATCH V3] regulator: add device tree support for s5m8767

2013-02-03 Thread Amit Daniel Kachhap
Amit Daniel Kachhap --- Changes since V2: * Remove un-necessary inclusion of platform file as pointed by Rahul Sharma Changes since V1: * Added description of pmic-buck-ds-gpios and op_mode in the device tree documentation as suggested by Thomas Abraham. * Incorporated coding guidelines r

[PATCH V3 1/2] thermal: sysfs: Add a new sysfs node emul_temp for thermal emulation

2013-02-03 Thread Amit Daniel Kachhap
software emulation if no platform handler defined. This is useful in debugging different temperature threshold and its associated cooling action. Critical threshold's cannot be emulated. Writing 0 on this node should disable emulation. Signed-off-by: Amit Daniel Kachhap Acked-by: Kukji

Re: [PATCH] Thermal: fix iteration over CPU frequency list

2013-02-04 Thread amit daniel kachhap
On Thu, Jan 31, 2013 at 11:59 PM, Zhang Rui wrote: > On Thu, 2013-01-24 at 16:24 +0100, Gu1 wrote: >> In different places in the Thermal code, the CPU frequency list is iterated >> in an incorrect way, leading to endless loops when the frequency list >> contains >> a CPUFREQ_TABLE_INVALID entry,

Re: [PATCH] Thermal: fix iteration over CPU frequency list

2013-02-05 Thread amit daniel kachhap
On Tue, Feb 5, 2013 at 1:59 AM, Zhang Rui wrote: > On Mon, 2013-02-04 at 11:49 -0800, amit daniel kachhap wrote: >> On Thu, Jan 31, 2013 at 11:59 PM, Zhang Rui wrote: >> > On Thu, 2013-01-24 at 16:24 +0100, Gu1 wrote: >> >> In different places in the Thermal c

[PATCH V3 1/2] Thermal: exynos: Add support for temperature falling interrupt.

2013-02-07 Thread Amit Daniel Kachhap
is not supported in exynos4210. Acked-by: Kukjin Kim Signed-off-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- Hi, Submitting these patches again as they got lost somewhere and was not merged. Changes since V2: * Rebased against Rui Zhang next tree. * Added Kukjin Kim acked by

[PATCH V3 2/2] thermal: exynos: Use the new thermal trend type for quick cooling action.

2013-02-07 Thread Amit Daniel Kachhap
This patch uses the quick thermal cooling trend type macros. This is needed as exynos5 and other thermal sensors now supports only interrupt method for thresold temperature check. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- Hi, Submitting these patches again as they got lost

[PATCH V3] thermal: exynos: Adapt to temperature emulation core thermal framework

2013-02-10 Thread Amit Daniel Kachhap
read_temperature also follows the same execution method. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- Changes in V3: * Added an invalid return from function when CONFIG_THERMAL_EMULATION is not defined. * Added more details in the patch description. Changes in V2: * Added config

[PATCH V2] regulator: add device tree support for s5m8767

2013-01-30 Thread Amit Daniel Kachhap
Amit Daniel Kachhap --- Change since V1: * Added description of pmic-buck-ds-gpios and op_mode in the device tree documentation as suggested by Thomas Abraham. * Incorporated coding guidelines review comments. This patch is based on Mark Brown's tree next branch. git://git.kernel.org/pub

Re: [PATCH V2] regulator: add device tree support for s5m8767

2013-01-31 Thread amit daniel kachhap
On Thu, Jan 31, 2013 at 1:56 AM, Rahul Sharma wrote: > On Thu, Jan 31, 2013 at 3:10 AM, Amit Daniel Kachhap > wrote: >> This device tree support is added for PMIC block of S5m8767 multi >> function driver. The usage detail is added in the device tree >> documentation

[PATCH V2 2/2] thermal: exynos: Use the framework for temperature emulation support

2013-01-27 Thread Amit Daniel Kachhap
This removes the driver specific sysfs support of the temperature emulation and uses the newly added core thermal framework for thermal emulation. A platform specific handler is added to support this. Signed-off-by: Amit Daniel Kachhap Acked-by: Kukjin Kim --- Changes in V2: * Added config

[PATCH V2 1/2] thermal: sysfs: Add a new sysfs node emul_temp for thermal emulation

2013-01-27 Thread Amit Daniel Kachhap
software emulation if no platform handler defined. This is useful in debugging different temperature threshold and its associated cooling action. Critical threshold's cannot be emulated. Writing 0 on this node should disable emulation. Signed-off-by: Amit Daniel Kachhap Acked-by: Kukji

Re: [PATCH 1/3] thermal: samsung: correct the fall interrupt en, status bit fields

2013-08-27 Thread amit daniel kachhap
> > Signed-off-by: Naveen Krishna Chatradhi The changes looks fine. Acked-by: Amit Daniel Kachhap Thanks, Amit > --- > drivers/thermal/samsung/exynos_tmu.c |2 +- > drivers/thermal/samsung/exynos_tmu.h |2 ++ > drivers/thermal/samsung/exynos_tmu_data.c |

Re: [PATCH 2/3] thermal: samsung: Add TMU support for Exynos5420 SoCs

2013-08-27 Thread amit daniel kachhap
Acked-by: Amit Daniel Kachhap Thanks, Amit > --- > drivers/thermal/samsung/exynos_tmu.c |4 ++ > drivers/thermal/samsung/exynos_tmu.h |1 + > drivers/thermal/samsung/exynos_tmu_data.c | 90 > + > drivers/thermal/samsung/exynos

Re: [PATCH 3/3] thermal: exynos: Handle the misplaced TRIMINFO register

2013-08-27 Thread amit daniel kachhap
Hi Naveen On Wed, Aug 28, 2013 at 11:15 AM, Naveen Krishna Chatradhi wrote: > This patch adds code to handle the misplaced TRIMINFO register > incase of Exynos5420. > > On Exynos5420 we have a TRIMINFO register being misplaced for > TMU channels 2, 3 and 4 > > TRIMINFO at 0x1006c000 contains data

Re: [PATCH 3/3] thermal: exynos: Handle the misplaced TRIMINFO register

2013-08-28 Thread amit daniel kachhap
Hi Naveen, On Wed, Aug 28, 2013 at 11:49 AM, Naveen Krishna Ch wrote: > On 28 August 2013 11:33, amit daniel kachhap wrote: >> Hi Naveen >> >> On Wed, Aug 28, 2013 at 11:15 AM, Naveen Krishna Chatradhi >> wrote: >>> This patch adds code to handle the mispl

Re: [PATCH 3/3] thermal: exynos: Handle the misplaced TRIMINFO register

2013-08-28 Thread amit daniel kachhap
On Wed, Aug 28, 2013 at 2:27 PM, Naveen Krishna Ch wrote: > On 28 August 2013 14:13, amit daniel kachhap wrote: >> Hi Naveen, >> >> On Wed, Aug 28, 2013 at 11:49 AM, Naveen Krishna Ch >> wrote: >>> On 28 August 2013 11:33, amit daniel kachhap >>> w

Re: [PATCH 2/3] thermal: samsung: Add TMU support for Exynos5420 SoCs

2013-08-28 Thread amit daniel kachhap
For all patch in this series, Acked-by: Amit Daniel Kachhap . A minor comment, please rename the flag SHARED_MEMORY to MULTIPLE_MEMORY as this is more consistent. Thanks, Amit Daniel > --- > drivers/thermal/samsung/exynos_tmu.c |4 ++ > drivers/thermal/samsung/exynos_tmu.h

Re: [PATCH 2/3] thermal: samsung: change base_common to more meaningful base_second

2013-09-05 Thread amit daniel kachhap
d > in the "reg" property of the node. > > As per Amit's suggestion, this patch changes the base_common > to base_second and SHARED_MEMORY to ADDRESS_MULTIPLE. > > Signed-off-by: Naveen Krishna Chatradhi The changes look good. For all the 3 patches in the series,

Re: [PATCH 1/6] thermal: exynos: fix: Return from exynos_report_trigger() when therm_dev is NULL

2013-09-30 Thread amit daniel kachhap
eport_trigger(struct thermal_sensor_conf > *conf) > } > > th_zone = conf->pzone_data; > - if (th_zone->therm_dev) > + if (!th_zone->therm_dev) > return; Changes looks fine. Reviewed-by: Amit Daniel Kachhap Thanks, Amit Daniel

Re: [PATCH 2/6] thermal: exynos: Provide separate TMU data for Exynos4412

2013-09-30 Thread amit daniel kachhap
ally first, the corresponding name for > TMU registers and default data was renamed. > > Additionally, new SOC_ARCH_EXYNOS4412 type has been defined. > > Signed-off-by: Lukasz Majewski > Reviewed-by: Bartlomiej Zolnierkiewicz > Reviewed-by: Tomasz Figa Reviewed-by: Amit Daniel Kachhap

Re: [PATCH 3/6] thermal: exynos: Provide initial setting for TMU's test MUX address at Exynos4412

2013-09-30 Thread amit daniel kachhap
Hi, On Tue, Sep 24, 2013 at 1:38 PM, Lukasz Majewski wrote: > The commit d0a0ce3e77c795258d47f9163e92d5031d0c5221 ("thermal: exynos: Add > missing definations and code cleanup") has removed setting of test MUX address > value at TMU configuration setting. > > This field is not present on Exynos42

Re: [PATCH 4/6] thermal: exynos: Replace SOC_ARCH_EXYNOS with SOC_ARCH_EXYNOS5250

2013-09-30 Thread amit daniel kachhap
Majewski Changes looks fine. Reviewed-by: Amit Daniel Kachhap Thanks, Amit > --- > drivers/thermal/samsung/exynos_tmu.c |4 ++-- > drivers/thermal/samsung/exynos_tmu.h |2 +- > drivers/thermal/samsung/exynos_tmu_data.c |2 +- > 3 files changed, 4 insertions(

[PATCH 0/4] regulator: s5m8767: Small fixes and device support

2012-12-10 Thread Amit Daniel Kachhap
These patch series contains 3 small fixes and device tree support for pmic component of s5m8767 regulator driver. Amit Daniel Kachhap (4): regulator: s5m8767: Fix to work when platform registers less regulators regulator: s5m8767: Fix to read the first DVS register. regulator: s5m8767

[PATCH 2/4] regulator: s5m8767: Fix to read the first DVS register.

2012-12-10 Thread Amit Daniel Kachhap
This patch modifies the DVS register read function to select correct DVS1 register. This change is required because the GPIO select pin is 000 in unintialized state and hence selects the DVS1 register. Signed-off-by: Amit Daniel Kachhap --- drivers/regulator/s5m8767.c |6 +++--- 1 files

[PATCH 3/4] regulator: s5m8767: Fix to work even if no DVS gpio present

2012-12-10 Thread Amit Daniel Kachhap
Signed-off-by: Amit Daniel Kachhap --- drivers/regulator/s5m8767.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 7ed7591..9f991f2 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers

[PATCH 4/4] regulator: add device tree support for s5m8767

2012-12-10 Thread Amit Daniel Kachhap
Add device tree based discovery support for pmic block of s5m8767 Signed-off-by: Amit Daniel Kachhap --- .../bindings/regulator/s5m8767-regulator.txt | 133 ++ drivers/mfd/sec-core.c | 75 - drivers/regulator/s5m8767.c

[PATCH 1/4] regulator: s5m8767: Fix to work when platform registers less regulators

2012-12-10 Thread Amit Daniel Kachhap
Signed-off-by: Amit Daniel Kachhap --- drivers/regulator/s5m8767.c | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 2b822be..df0b094 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers

[PATCH 0/4] thermal: Add support for interrupt based notification to thermal layer

2012-11-07 Thread Amit Daniel Kachhap
trend type to implement this feature. All these patches are based on thermal maintainer next tree. git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next Amit Daniel Kachhap (3): thermal: Add new thermal trend type to support quick cooling thermal: exynos: Miscellaneous fixes to

[PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-07 Thread Amit Daniel Kachhap
threshold interrupts and polling can be totally avoided. Signed-off-by: Amit Daniel Kachhap Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/step_wise.c | 19 +++ include/linux/thermal.h |2 ++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a

[PATCH 2/4] Thermal: exynos: Add support for temperature falling interrupt.

2012-11-07 Thread Amit Daniel Kachhap
is not supported in exynos4210. Signed-off-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/exynos_thermal.c | 81 +++--- include/linux/platform_data/exynos_thermal.h |3 + 2 files changed, 49 insertions(+), 35 deletions(-) diff --git

[PATCH 3/4] thermal: exynos: Miscellaneous fixes to support falling threshold interrupt

2012-11-07 Thread Amit Daniel Kachhap
event that caused the interrupt. Signed-off-by: Amit Daniel Kachhap Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/exynos_thermal.c | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c

[PATCH 4/4] thermal: exynos: Use the new thermal trend type for quick cooling action.

2012-11-08 Thread Amit Daniel Kachhap
This patch uses the quick thermal cooling trend type macros. This is needed as exynos5 and other thermal sensors now supports only interrupt method for thresold temperature check. Signed-off-by: Amit Daniel Kachhap Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/exynos_thermal.c |6

Re: [PATCH] [RFC] cpufreq: can't raise max frequency with cpu_thermal

2012-12-26 Thread amit daniel kachhap
On Tue, Dec 18, 2012 at 9:45 PM, Doug Anderson wrote: > Amit, > > On Tue, Dec 18, 2012 at 8:17 PM, amit daniel kachhap > wrote: >> On Tue, Dec 18, 2012 at 12:29 AM, Sonny Rao wrote: >>> The cpu_thermal generic thermal management code has a bug where once >>>

[PATCH] cpufreq: exynos: Add the missing cpufreq_cpu_put function

2012-12-26 Thread Amit Daniel Kachhap
This patch adds the missing cpufreq_cpu_put function needed for returning the cpufreq policy instance. Signed-off-by: Amit Daniel Kachhap --- drivers/cpufreq/exynos-cpufreq.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers

Re: [PATCH] [RFC] cpufreq: can't raise max frequency with cpu_thermal

2012-12-18 Thread amit daniel kachhap
On Tue, Dec 18, 2012 at 12:29 AM, Sonny Rao wrote: > The cpu_thermal generic thermal management code has a bug where once > max cpu frequency has been lowered in sysfs (scaling_max_freq) it is > not possible to raise the max back up later. The bug is that the > notifer gets called by __cpufreq_se

Re: [PATCH 01/30] thermal: cpu_cooling: remove unused headers

2013-04-21 Thread amit daniel kachhap
-by: Eduardo Valentin Reviewed-by: Amit Daniel Kachhap Thanks, Amit Daniel > --- > drivers/thermal/cpu_cooling.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c > index 5f5c780..778c43d 100644 > --- a/dri

Re: [PATCH 00/30] thermal: cpu_cooling: code improvements

2013-04-21 Thread amit daniel kachhap
Hi Eduardo, I looked at your whole series and they certainly looks useful, so for the entire series, Acked-by: Amit Daniel Kachhap Thanks, Amit Daniel Kachhap On Thu, Apr 18, 2013 at 2:02 AM, Eduardo Valentin wrote: > On 17-04-2013 13:11, Eduardo Valentin wrote: >> >> Rui, >

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

2013-06-13 Thread amit daniel kachhap
Hi Rob, On Tue, Jun 11, 2013 at 10:52 PM, Rob Landley wrote: > On 06/11/2013 07:53:37 AM, Amit Daniel Kachhap wrote: >> >> This patch updates the documentation to explain the driver model >> and file layout. >> >> Acked-by: Kukjin Kim >

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

2013-06-16 Thread amit daniel kachhap
Hi Eduardo, On Mon, Jun 17, 2013 at 8:35 AM, Eduardo Valentin wrote: > Hey Amit, > > On 11-06-2013 08:53, Amit Daniel Kachhap wrote: >> This patch adds config sybmol ARCH_HAS_TMU to enable the TMU driver. >> This will allow adding support for new soc easily as now

[PATCH V6 00/30] thermal: exynos: Re-structure driver and add support for exynos5440

2013-06-16 Thread Amit Daniel Kachhap
er 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: exynos: Moving exynos thermal files into samsung directory thermal: exynos: Use ARCH_HAS_BA

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 62

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig |3 +- drivers

[PATCH V6 02/30] thermal: exynos: Use ARCH_HAS_BANDGAP config to know the supported soc's

2013-06-16 Thread Amit Daniel Kachhap
: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/samsung/Kconfig b/drivers/thermal/samsung/Kconfig index 2d3d9dc..883a8a8 100644 --- a/drivers/thermal/samsung/Kconfig +++ b/drivers/thermal/samsung/Kconfig

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

2013-06-16 Thread Amit Daniel Kachhap
Signed-off-by: Amit 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%)

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

2013-06-16 Thread Amit Daniel Kachhap
: Kukjin Kim Acked-by: Jonghwa Lee 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

[PATCH V6 03/30] thermal: exynos: Remove un-necessary CPU_THERMAL dependency

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig

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

2013-06-16 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: Jonghwa Lee Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 13 + 1 files changed, 9 insertions(+), 4 deletions

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung

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

2013-06-16 Thread Amit Daniel Kachhap
core driver thermal framework for shutdown. Acked-by: Jonghwa Lee 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

[PATCH V6 16/30] thermal: exynos: Make the zone handling use trip information

2013-06-16 Thread Amit Daniel Kachhap
This code simplifies the zone handling to use the trip information passed by the TMU driver and not the hardcoded macros. This also helps in adding more zone support. Acked-by: Kukjin Kim Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Dani

[PATCH V6 20/30] thermal: exynos: use device resource management infrastructure

2013-06-16 Thread Amit Daniel Kachhap
This patch uses the device pointer stored in the configuration structure and converts to dev_* prints and devm API's. Acked-by: Kukjin Kim Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c | 39 ++ 1

[PATCH V6 11/30] thermal: exynos: Support thermal tripping

2013-06-16 Thread Amit Daniel Kachhap
: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 45 +--- drivers/thermal/samsung/exynos_tmu_data.c |2 + drivers/thermal/samsung/exynos_tmu_data.h |2 + 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/samsung

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

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

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

2013-06-16 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. Acked-by: Jonghwa Lee Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap

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

2013-06-16 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: Jonghwa Lee Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- arch/arm/boot/dts/exynos5440.dtsi | 30 ++ 1 files changed, 30

[PATCH V6 30/30] arm: exynos: enable ARCH_HAS_BANDGAP

2013-06-16 Thread Amit Daniel Kachhap
This patch enables ARCH_HAS_BANDGAP config for exynos4210, 4212, 4412, 5250 and 5440 SOC. This config symbol is recently added to allow the platforms to enable bandgap based temperature sensor. Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/Kconfig |5

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

2013-06-16 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: Jonghwa Lee Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal/exynos

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

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

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

2013-06-16 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: Jonghwa Lee Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 15 +++ drivers/thermal/sa

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

2013-06-16 Thread Amit Daniel Kachhap
identifier of the TMU controller is extracted from device tree alias. Acked-by: Kukjin Kim Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.h |1 + drivers/thermal/samsung/exynos_tmu.c| 147

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers

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

2013-06-16 Thread Amit Daniel Kachhap
From: Lukasz Majewski Proper description for Exynos4 bindings added to Documentation/devicetree/ bindings Acked-by: Jonghwa Lee Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Signed-off-by: Amit Daniel Kachhap --- .../devicetree/bindings/thermal/exynos-thermal.txt | 25

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

2013-06-16 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. Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 17 + 1 files changed, 1

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c |4 ++-- 1 files changed, 2

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.h |7 +++ drivers/thermal/samsung/exynos_tmu.c

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 11 +-- drivers/thermal/samsung

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Ka

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

2013-06-16 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 Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- dr

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

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

2013-06-20 Thread amit daniel kachhap
On Thu, Jun 20, 2013 at 12:15 AM, Eduardo Valentin wrote: > Amit, > > On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >> This code bifurcates exynos thermal implementation into common and sensor >> specific parts. The common thermal code interacts with core thermal laye

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

2013-06-20 Thread amit daniel kachhap
Hi Eduardo, On Thu, Jun 20, 2013 at 1:25 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, 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 >>

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

2013-06-20 Thread amit daniel kachhap
On Thu, Jun 20, 2013 at 12:31 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, 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 >> core

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

2013-06-20 Thread amit daniel kachhap
On Thu, Jun 20, 2013 at 1:33 AM, Eduardo Valentin wrote: > On 02-05-2013 06:18, 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 >> this regulator defined

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

2013-06-20 Thread amit daniel kachhap
Hi On Thu, Jun 20, 2013 at 12:48 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, 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 needed as exynos &

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

2013-06-20 Thread amit daniel kachhap
On Thu, Jun 20, 2013 at 12:50 AM, Eduardo Valentin wrote: > On 19-06-2013 15:18, Eduardo Valentin wrote: >> On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >>> This patch renames and moves include/linux/platform_data/exynos_thermal.h to >>> drivers/thermal/samsung/exyno

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

2013-06-20 Thread amit daniel kachhap
On Thu, Jun 20, 2013 at 1:13 AM, Eduardo Valentin wrote: > On 19-06-2013 15:35, Eduardo Valentin wrote: >> Rui, >> >> On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >>> This code splits the exynos tmu driver code into SOC specific data parts. >>> This wil

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

2013-06-20 Thread amit daniel kachhap
Hi Eduardo, On Thu, Jun 20, 2013 at 1:49 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >> This patch adds entries min_efuse_value, max_efuse_value, >> default_temp_offset, >> trigger_type, cal_type, trim_first_point, trim_second_point,

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

2013-06-21 Thread amit daniel kachhap
Hi, On Thu, Jun 20, 2013 at 2:22 AM, Eduardo Valentin wrote: > On 19-06-2013 16:19, Eduardo Valentin wrote: >> On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >>> This patch adds entries min_efuse_value, max_efuse_value, >>> default_temp_offset, >>> trig

Re: [PATCH V6 16/30] thermal: exynos: Make the zone handling use trip information

2013-06-21 Thread amit daniel kachhap
Hi On Thu, Jun 20, 2013 at 4:33 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >> This code simplifies the zone handling to use the trip information passed >> by the TMU driver and not the hardcoded macros. This also helps in adding >&

Re: [PATCH V6 18/30] thermal: exynos: Add support to handle many instances of TMU

2013-06-21 Thread amit daniel kachhap
Hi Eduardo, On Thu, Jun 20, 2013 at 4:57 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, 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 &g

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

2013-06-21 Thread amit daniel kachhap
On Thu, Jun 20, 2013 at 5:15 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >> From: Lukasz Majewski >> >> Proper description for Exynos4 bindings added to Documentation/devicetree/ >> bindings >> >> Acked-by: Jonghwa

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

2013-06-21 Thread amit daniel kachhap
Hi Eduardo, On Thu, Jun 20, 2013 at 7:36 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >> This patch modifies TMU controller to add changes needed to work with >> exynos5440 platform. This sensor registers 3 instance of the tmu controller >>

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

2013-06-21 Thread amit daniel kachhap
Hi, On Thu, Jun 20, 2013 at 7:48 AM, Eduardo Valentin wrote: > On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >> This patch adds configuration data for exynos5440 soc. Also register >> definations for the controller are added. >> >> Acked-by: Jonghwa Lee >> Ac

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

2013-06-21 Thread amit daniel kachhap
On Fri, Jun 21, 2013 at 8:49 PM, amit daniel kachhap wrote: > Hi, > > On Thu, Jun 20, 2013 at 7:48 AM, Eduardo Valentin > wrote: >> On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >>> This patch adds configuration data for exynos5440 soc. Also register >>>

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

2013-06-23 Thread amit daniel kachhap
On Fri, Jun 21, 2013 at 8:01 PM, Eduardo Valentin wrote: > On 20-06-2013 22:01, amit daniel kachhap wrote: >> Hi Eduardo, >> >> On Thu, Jun 20, 2013 at 1:25 AM, Eduardo Valentin >> wrote: >>> On 17-06-2013 02:46, Amit Daniel Kachhap wrote: >>>&

[PATCH V7 03/30] thermal: exynos: Remove un-necessary CPU_THERMAL dependency

2013-06-24 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 Acked-by: Jonghwa Lee Acked-by: Eduardo Valentin Signed-off-by: Amit Daniel Kachhap

[PATCH V7 00/30] thermal: exynos: Re-structure driver and add support for exynos5440

2013-06-24 Thread Amit Daniel Kachhap
, git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next. Amit Daniel Kachhap (30): thermal: exynos: Moving exynos thermal files into samsung directory thermal: exynos: Use ARCH_HAS_BANDGAP config to know the supported soc's thermal: exynos: Remove un-necessary CPU_T

[PATCH V7 28/30] Documentation: thermal: Explain the exynos thermal driver model

2013-06-24 Thread Amit Daniel Kachhap
This patch updates the documentation to explain the driver model and file layout. Acked-by: Jonghwa Lee Acked-by: Kukjin Kim Acked-by: Eduardo Valentin Signed-off-by: Amit Daniel Kachhap --- Documentation/thermal/exynos_thermal | 43 ++--- 1 files changed, 34

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

2013-06-24 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 Acked-by: Jonghwa Lee Acked-by: Eduardo Valentin Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig

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

2013-06-24 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 Acked-by: Jonghwa Lee Acked-by: Eduardo Valentin Signed-off-by: Amit Daniel Kachhap --- drivers

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

2013-06-24 Thread Amit Daniel Kachhap
Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 62 +- 1 files changed, 46 insertions(+), 16 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 5df04a1

[PATCH V7 30/30] arm: exynos: enable ARCH_HAS_BANDGAP

2013-06-24 Thread Amit Daniel Kachhap
This patch enables ARCH_HAS_BANDGAP config for exynos4210, 4212, 4412, 5250 and 5440 SOC. This config symbol is recently added to allow the platforms to enable bandgap based temperature sensor. Acked-by: Jonghwa Lee Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/Kconfig |5

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

2013-06-24 Thread Amit Daniel Kachhap
Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 172 +--- drivers/thermal/samsung/exynos_tmu.h | 133 ++ drivers/thermal/samsung/exynos_tmu_data.c | 59 ++ drivers/thermal/samsung/exynos_tmu_dat

  1   2   3   4   5   6   >