[PATCH] ARM: multi_v7_defconfig: Enable Tegra AHCI driver

2014-08-26 Thread Mikko Perttunen
This enables AHCI_TEGRA by default. This driver is required for Serial ATA support on Tegra124-based boards. Signed-off-by: Mikko Perttunen --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs

Re: [PATCH v5 0/4] Tegra124 soctherm driver

2014-08-27 Thread Mikko Perttunen
Moi Eduardo, can you ack this series or is there still something to do? Thanks, Mikko On 21/08/14 19:01, Eduardo Valentin wrote: Hello Juha-Matti, On Thu, Aug 21, 2014 at 03:20:11PM +0300, Juha-Matti Tilli wrote: On Thu, Aug 21, 2014 at 01:17:18PM +0300, Mikko Perttunen wrote: this series

Re: [PATCH v4 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-19 Thread Mikko Perttunen
On 19/08/14 17:09, Juha-Matti Tilli wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports temperature polling for four thermal zones. I have several comments about this patch. Overall, the code lo

Re: [PATCH v4 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-19 Thread Mikko Perttunen
On 08/19/2014 05:33 PM, edubez...@gmail.com wrote: Juha-Matti, moro, On Tue, Aug 19, 2014 at 10:09 AM, Juha-Matti Tilli wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports temperature polling f

Re: [PATCH v3 3/4] ARM: tegra: Add thermal trip points for Jetson TK1

2014-08-21 Thread Mikko Perttunen
On 20/08/14 22:44, Stephen Warren wrote: On 08/06/2014 04:25 AM, Mikko Perttunen wrote: This adds critical trip points to the Jetson TK1 device tree. The device will do a controlled shutdown when either the CPU, GPU or MEM thermal zone reaches 101 degrees Celsius. diff --git a/arch/arm/boot

Re: [PATCH v3 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-21 Thread Mikko Perttunen
On 20/08/14 22:50, Stephen Warren wrote: On 08/06/2014 04:25 AM, Mikko Perttunen wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports temperature polling for four thermal zones. Since both

[PATCH v5 3/4] ARM: tegra: Add thermal trip points for Jetson TK1

2014-08-21 Thread Mikko Perttunen
This adds critical trip points to the Jetson TK1 device tree. The device will do a controlled shutdown when either the CPU, GPU or MEM thermal zone reaches 101 degrees Celsius. Signed-off-by: Mikko Perttunen --- v5: added cooling-maps nodes arch/arm/boot/dts/tegra124-jetson-tk1.dts | 41

[PATCH v5 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-21 Thread Mikko Perttunen
This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports temperature polling for four thermal zones. Signed-off-by: Mikko Perttunen --- v5: - changed tsample_ate to 480 - constified structs - added missing

[PATCH v5 1/4] of: Add bindings for nvidia,tegra124-soctherm

2014-08-21 Thread Mikko Perttunen
This adds binding documentation and headers for the Tegra124 SOCTHERM device tree node. Signed-off-by: Mikko Perttunen Acked-by: Stephen Warren --- .../devicetree/bindings/thermal/tegra-soctherm.txt | 53 ++ include/dt-bindings/thermal/tegra124-soctherm.h| 13 ++ 2

[PATCH v5 2/4] ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree

2014-08-21 Thread Mikko Perttunen
This adds the soctherm thermal sensing and management unit to the Tegra124 device tree along with the four thermal zones corresponding to the four thermal sensors provided by soctherm. Signed-off-by: Mikko Perttunen --- v5: reordered nodes arch/arm/boot/dts/tegra124.dtsi | 47

[PATCH v5 0/4] Tegra124 soctherm driver

2014-08-21 Thread Mikko Perttunen
Hi, this series adds support for the thermal monitoring features of the soctherm unit on the Tegra124 SoC. The branch is also available in my github repo, git://github.com/cyndis/linux.git soctherm-v5 Thanks, Mikko Mikko Perttunen (4): of: Add bindings for nvidia,tegra124-soctherm ARM

[PATCH v2] i2c: i2c-tegra: Move clk_prepare/clk_set_rate to probe

2014-09-05 Thread Mikko Perttunen
From: Mikko Perttunen Currently the i2c-tegra bus driver prepares, enables and set_rates its clocks separately for each transfer. This causes locking problems when doing I2C transfers from clock notifiers; see http://lists.infradead.org/pipermail/linux-arm-kernel/2014-July/268653.html This

Re: [PATCH v2 1/5] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-09-05 Thread Mikko Perttunen
8/21/2014 08:54 PM, Stephen Warren wrote: On 08/21/2014 10:53 AM, Thierry Reding wrote: On Thu, Aug 21, 2014 at 09:38:29AM -0600, Stephen Warren wrote: On 08/21/2014 12:58 AM, Thierry Reding wrote: On Wed, Aug 20, 2014 at 02:16:49PM -0600, Stephen Warren wrote: On 08/13/2014 06:41 AM, Mikko

Re: [PATCH 0/8] Tegra124 EMC (external memory controller) support

2014-09-05 Thread Mikko Perttunen
:22 PM, Tomeu Vizoso wrote: On 26 August 2014 09:42, Mikko Perttunen wrote: On 25/08/14 20:40, Stephen Warren wrote: On 07/11/2014 08:18 AM, Mikko Perttunen wrote: Hi everyone, this series adds support for the EMC (external memory controller) clock in the Tegra124 system-on-chip. The serie

[PATCH v3 5/5] ARM: tegra: Add thermal reset (thermtrip) support to PMC

2014-09-06 Thread Mikko Perttunen
From: Mikko Perttunen This adds a device tree controlled option to enable PMC-based thermal reset in overheating situations. Thermtrip is supported on Tegra30, Tegra114 and Tegra124. The thermal reset only works when the thermal sensors are calibrated, so a soctherm driver is also required. The

[PATCH v3 2/5] of: Add nvidia,controller-id property to Tegra I2C bindings

2014-09-06 Thread Mikko Perttunen
From: Mikko Perttunen Sometimes, hardware blocks want to issue requests to devices connected to I2C buses by itself. In such case, the bus the target device resides on must be configured into a register. For this purpose, each I2C controller has a defined ID known by the hardware. Add a property

[PATCH v3 3/5] ARM: tegra124: Add I2C controller ids to device tree

2014-09-06 Thread Mikko Perttunen
From: Mikko Perttunen I2C controller ids are required when programming hardware blocks that send messages to devices connected to an I2C bus, such as when the PMC sends a poweroff message to the PMIC. Add ids to all I2C controllers in Tegra124. Signed-off-by: Mikko Perttunen Reviewed-by: Wei

[PATCH v3 0/5] Thermal reset support in PMC

2014-09-06 Thread Mikko Perttunen
e the sensors. Git repo at git://github.com/cyndis/linux.git pmc-thermtrip-v3 Mikko Perttunen (5): of: Add descriptions of thermtrip properties to Tegra PMC bindings of: Add nvidia,controller-id property to Tegra I2C bindings ARM: tegra124: Add I2C controller ids to device tree ARM: tegra

[PATCH v3 1/5] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-09-06 Thread Mikko Perttunen
From: Mikko Perttunen Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant properties in the binding documentation. Signed-off-by: Mikko Perttunen Reviewed-by: Wei Ni Tested-by: Wei Ni --- v3

[PATCH v3 4/5] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-09-06 Thread Mikko Perttunen
From: Mikko Perttunen This adds the required information to reset the board during an overheating situation to the Jetson TK1 device tree. The thermal reset is handled by the PMC by sending an I2C message to the PMIC. The entries specify the I2C message to be sent. Signed-off-by: Mikko

[PATCH v4 1/5] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-09-06 Thread Mikko Perttunen
From: Mikko Perttunen Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant properties in the binding documentation. Signed-off-by: Mikko Perttunen Reviewed-by: Wei Ni Tested-by: Wei Ni --- v4

Re: [PATCH v2 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-06 Thread Mikko Perttunen
On 05/08/14 16:53, Eduardo Valentin wrote: Hello Mikko, On Tue, Aug 05, 2014 at 03:18:57PM +0300, Mikko Perttunen wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports the four thermal zones

[PATCH v3 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-06 Thread Mikko Perttunen
This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports temperature polling for four thermal zones. Signed-off-by: Mikko Perttunen --- v3: - changed commit message - changed bool to tristate - added text to

[PATCH v3 3/4] ARM: tegra: Add thermal trip points for Jetson TK1

2014-08-06 Thread Mikko Perttunen
This adds critical trip points to the Jetson TK1 device tree. The device will do a controlled shutdown when either the CPU, GPU or MEM thermal zone reaches 101 degrees Celsius. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124-jetson-tk1.dts | 32 +++ 1

[PATCH v3 1/4] of: Add bindings for nvidia,tegra124-soctherm

2014-08-06 Thread Mikko Perttunen
This adds binding documentation and headers for the Tegra124 SOCTHERM device tree node. Signed-off-by: Mikko Perttunen --- v3: updated text slightly, added example using define .../devicetree/bindings/thermal/tegra-soctherm.txt | 53 ++ include/dt-bindings/thermal/tegra124

[PATCH v3 0/4] Tegra124 soctherm driver

2014-08-06 Thread Mikko Perttunen
branch is also available in my github repo, git://github.com/cyndis/linux.git soctherm-v3 Thanks, Mikko Mikko Perttunen (4): of: Add bindings for nvidia,tegra124-soctherm ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree ARM: tegra: Add thermal trip points for Jetson TK1

[PATCH v3 2/4] ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree

2014-08-06 Thread Mikko Perttunen
This adds the soctherm thermal sensing and management unit to the Tegra124 device tree along with the four thermal zones corresponding to the four thermal sensors provided by soctherm. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124.dtsi | 47

[PATCH] ata: ahci_tegra: Change include to fix compilation

2014-08-11 Thread Mikko Perttunen
Before this patch, the driver included , which was effectively renamed to at about the same time the ahci_tegra series landed. Fix the include path so that the driver compiles. Signed-off-by: Mikko Perttunen --- This would be for 3.17. drivers/ata/ahci_tegra.c | 2 +- 1 file changed, 1

[PATCH] ata: ahci_tegra: Read calibration fuse

2014-08-11 Thread Mikko Perttunen
: Mikko Perttunen --- drivers/ata/ahci_tegra.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c index f1fef74..ad99e0f5 100644 --- a/drivers/ata/ahci_tegra.c +++ b/drivers/ata/ahci_tegra.c @@ -26,6 +26,7 @@ #include

Re: [PATCH v3 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-12 Thread Mikko Perttunen
On 11/08/14 16:32, Eduardo Valentin wrote: Hello Mikko, It follows more small comments. On Wed, Aug 6, 2014 at 6:25 AM, Mikko Perttunen wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports

Re: [PATCH 1/3] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-08-13 Thread Mikko Perttunen
On 13/08/14 10:35, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:58AM +0300, Mikko Perttunen wrote: Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant

Re: [PATCH 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-13 Thread Mikko Perttunen
On 13/08/14 10:37, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:59AM +0300, Mikko Perttunen wrote: This adds the required information to reset the board during an overheating situation to the Jetson TK1 device tree. The thermal reset is handled by the PMC

Re: [PATCH 3/3] ARM: tegra: Add thermal reset (thermtrip) support to PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 10:53, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:13:00AM +0300, Mikko Perttunen wrote: This adds a device tree controlled option to enable PMC-based thermal reset in overheating situations. Thermtrip is supported on Tegra114 and Tegra124. The

Re: [PATCH 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-13 Thread Mikko Perttunen
On 13/08/14 11:03, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 13, 2014 at 10:52:18AM +0300, Mikko Perttunen wrote: On 13/08/14 10:37, Thierry Reding wrote: Old Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:59AM +0300, Mikko Perttunen wrote: This adds the

Re: [PATCH 0/3] Thermal reset support in PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 11:07, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:57AM +0300, Mikko Perttunen wrote: Hi, this series adds support for hardware-triggered thermal reset to the PMC driver. Namely, it adds device tree properties for specifying the I2C command

Re: [PATCH 0/3] Thermal reset support in PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 11:12, Mikko Perttunen wrote: On 13/08/14 11:07, Thierry Reding wrote: * PGP Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:57AM +0300, Mikko Perttunen wrote: Hi, this series adds support for hardware-triggered thermal reset to the PMC driver. Namely, it adds device

Re: [PATCH 0/3] Thermal reset support in PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 11:57, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 13, 2014 at 11:42:53AM +0300, Mikko Perttunen wrote: On 13/08/14 11:12, Mikko Perttunen wrote: On 13/08/14 11:07, Thierry Reding wrote: Old Signed by an unknown key On Tue, Aug 05, 2014 at 11:12:57AM

Re: [PATCH 0/3] Thermal reset support in PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 13:36, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 13, 2014 at 12:52:22PM +0300, Mikko Perttunen wrote: On 13/08/14 11:57, Thierry Reding wrote: Old Signed by an unknown key On Wed, Aug 13, 2014 at 11:42:53AM +0300, Mikko Perttunen wrote: On 13/08/14 11

Re: [PATCH 0/3] Thermal reset support in PMC

2014-08-13 Thread Mikko Perttunen
On 13/08/14 13:53, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 13, 2014 at 01:41:52PM +0300, Mikko Perttunen wrote: On 13/08/14 13:36, Thierry Reding wrote: Old Signed by an unknown key On Wed, Aug 13, 2014 at 12:52:22PM +0300, Mikko Perttunen wrote: On 13/08/14 11

[PATCH v2 3/5] ARM: tegra124: Add I2C controller ids to device tree

2014-08-13 Thread Mikko Perttunen
I2C controller ids are required when programming hardware blocks that send messages to devices connected to an I2C bus, such as when the PMC sends a poweroff message to the PMIC. Add ids to all I2C controllers in Tegra124. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124.dtsi | 6

[PATCH v2 1/5] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-08-13 Thread Mikko Perttunen
Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant properties in the binding documentation. Signed-off-by: Mikko Perttunen --- .../bindings/arm/tegra/nvidia,tegra20-pmc.txt | 21

[PATCH v2 5/5] ARM: tegra: Add thermal reset (thermtrip) support to PMC

2014-08-13 Thread Mikko Perttunen
This adds a device tree controlled option to enable PMC-based thermal reset in overheating situations. Thermtrip is supported on Tegra30, Tegra114 and Tegra124. The thermal reset only works when the thermal sensors are calibrated, so a soctherm driver is also required. Signed-off-by: Mikko

[PATCH v2 2/5] of: Add nvidia,controller-id property to Tegra I2C bindings

2014-08-13 Thread Mikko Perttunen
device tree bindings, so that drivers can know what ID to write to a hardware register when configuring a block that sends I2C messages autonomously. Signed-off-by: Mikko Perttunen --- Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt | 5 + 1 file changed, 5 insertions(+) diff

[PATCH v2 4/5] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-13 Thread Mikko Perttunen
This adds the required information to reset the board during an overheating situation to the Jetson TK1 device tree. The thermal reset is handled by the PMC by sending an I2C message to the PMIC. The entries specify the I2C message to be sent. Signed-off-by: Mikko Perttunen --- arch/arm/boot

[PATCH v2 0/5] Thermal reset support in PMC

2014-08-13 Thread Mikko Perttunen
e the sensors. Git repo at git://github.com/cyndis/linux.git pmc-thermtrip-v2 Testing script at https://gist.github.com/cyndis/66126c9c176b5f94a76f. If your fan stops it is working. Mikko Perttunen (5): of: Add descriptions of thermtrip properties to Tegra PMC bindings of: Add nvidia,controll

[PATCH] i2c: i2c-tegra: Move clk_prepare/clk_set_rate to probe

2014-08-15 Thread Mikko Perttunen
/unprepare and clk_set_rate calls to the probe function, leaving only clk_enable/disable to be done on each transfer. This solves the locking issue. Signed-off-by: Mikko Perttunen --- drivers/i2c/busses/i2c-tegra.c | 57 +- 1 file changed, 45 insertions(+), 12

[PATCH v4 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-15 Thread Mikko Perttunen
This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports temperature polling for four thermal zones. Signed-off-by: Mikko Perttunen --- v4: - constified struct - added bunch of defines for masks and shifts

Re: [PATCH 1/6] thermal: of: Add support for hardware-tracked trip points

2014-08-01 Thread Mikko Perttunen
Moi Eduardo :) On 30/07/14 17:16, Eduardo Valentin wrote: Terve Mikko, On Fri, Jun 27, 2014 at 11:11:34AM +0300, Mikko Perttunen wrote: This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number of trip points

Re: [PATCH] clk: tegra: Implement memory-controller clock

2014-08-03 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen Tested-by: Mikko Perttunen Cheers, Mikko On 01/08/14 15:09, Thierry Reding wrote: From: Thierry Reding The memory controller clock runs either at half or the same frequency as the EMC clock. Signed-off-by: Thierry Reding ... -- To unsubscribe from this

[PATCH 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-08-05 Thread Mikko Perttunen
This adds the required information to reset the board during an overheating situation to the Jetson TK1 device tree. The thermal reset is handled by the PMC by sending an I2C message to the PMIC. The entries specify the I2C message to be sent. Signed-off-by: Mikko Perttunen --- arch/arm/boot

[PATCH 0/3] Thermal reset support in PMC

2014-08-05 Thread Mikko Perttunen
-TK1. Should work on Tegra30 and Tegra114 too. Thanks, Mikko Mikko Perttunen (3): of: Add descriptions of thermtrip properties to Tegra PMC bindings ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree ARM: tegra: Add thermal reset (thermtrip) support to PMC .../bindings/arm/

[PATCH 3/3] ARM: tegra: Add thermal reset (thermtrip) support to PMC

2014-08-05 Thread Mikko Perttunen
This adds a device tree controlled option to enable PMC-based thermal reset in overheating situations. Thermtrip is supported on Tegra114 and Tegra124. The thermal reset only works when the thermal sensors are calibrated, so a soctherm driver is also required. Signed-off-by: Mikko Perttunen

[PATCH 1/3] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-08-05 Thread Mikko Perttunen
Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant properties in the binding documentation. Signed-off-by: Mikko Perttunen --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt| 13

[PATCH v2 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-05 Thread Mikko Perttunen
This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports the four thermal zones with hardware-tracked trip points. Signed-off-by: Mikko Perttunen --- drivers/thermal/Kconfig | 7 + drivers

[PATCH v2 3/4] ARM: tegra: Add thermal trip points for Jetson TK1

2014-08-05 Thread Mikko Perttunen
This adds critical trip points to the Jetson TK1 device tree. The device will do a controlled shutdown when either the CPU, GPU or MEM thermal zone reaches 101 degrees Celsius. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124-jetson-tk1.dts | 32 +++ 1

[PATCH v2 2/4] ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree

2014-08-05 Thread Mikko Perttunen
This adds the soctherm thermal sensing and management unit to the Tegra124 device tree along with the four thermal zones corresponding to the four thermal sensors provided by soctherm. Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124.dtsi | 47

[PATCH v2 0/4] Tegra124 soctherm driver

2014-08-05 Thread Mikko Perttunen
branch is also available in my github repo, git://github.com/cyndis/linux.git soctherm-v2 Thanks, Mikko Mikko Perttunen (4): of: Add bindings for nvidia,tegra124-soctherm ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree ARM: tegra: Add thermal trip points for Jetson TK1

[PATCH v2 1/4] of: Add bindings for nvidia,tegra124-soctherm

2014-08-05 Thread Mikko Perttunen
This adds binding documentation and headers for the Tegra124 SOCTHERM device tree node. Signed-off-by: Mikko Perttunen --- .../devicetree/bindings/thermal/tegra-soctherm.txt | 35 ++ include/dt-bindings/thermal/tegra124-soctherm.h| 13 2 files changed, 48

Re: [PATCH v2 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-08-05 Thread Mikko Perttunen
On 05/08/14 15:18, Mikko Perttunen wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports the four thermal zones with hardware-tracked trip points. .. does NOT support hardware-tracked trip points

Re: [PATCH v2 1/4] of: Add bindings for nvidia,tegra124-soctherm

2014-08-05 Thread Mikko Perttunen
On 05/08/14 16:34, Eduardo Valentin wrote: Mikko, On Tue, Aug 05, 2014 at 03:18:54PM +0300, Mikko Perttunen wrote: This adds binding documentation and headers for the Tegra124 SOCTHERM device tree node. Signed-off-by: Mikko Perttunen --- .../devicetree/bindings/thermal/tegra-soctherm.txt

Re: [PATCH v2 09/12] memory: tegra: Add API needed by the EMC driver

2014-10-21 Thread Mikko Perttunen
At least this and 11/12 have lost my Signed-off-by. Mikko On 10/21/2014 05:45 PM, Tomeu Vizoso wrote: From: Mikko Perttunen The EMC driver needs to know the number of external memory devices and also needs to update the EMEM configuration based on the new rate of the memory bus. To know how

Re: [PATCH v2 02/12] of: Document long-ram-code property in nvidia,tegra20-apbmisc

2014-10-22 Thread Mikko Perttunen
On 10/21/2014 05:45 PM, Tomeu Vizoso wrote: Needed to properly decode the ram code register. Signed-off-by: Tomeu Vizoso --- Documentation/devicetree/bindings/misc/nvidia,tegra20-apbmisc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/nvidia,

Re: [PATCH v3 10/13] memory: tegra: Add EMC (external memory controller) driver

2014-11-06 Thread Mikko Perttunen
On 11/06/2014 09:56 AM, Alexandre Courbot wrote: On 10/30/2014 01:22 AM, Tomeu Vizoso wrote: From: Mikko Perttunen Implements functionality needed to change the rate of the memory bus clock. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- v2:* Use subsys_initcall(), so

Re: [PATCH v3 11/13] clk: tegra: Add EMC clock driver

2014-11-06 Thread Mikko Perttunen
On 11/06/2014 10:04 AM, Alexandre Courbot wrote: On 10/30/2014 01:22 AM, Tomeu Vizoso wrote: From: Mikko Perttunen The driver is currently only tested on Tegra124 Jetson TK1, but should work with other Tegra124 boards, provided that correct EMC tables are provided through the device tree

[PATCH v6 02/16] clk: tegra: Add library for the DFLL clock source (open-loop mode)

2014-10-31 Thread Mikko Perttunen
-off-by: Paul Walmsley Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- v6: - disable clks if resume fails - cosmetic fix in error handling drivers/clk/tegra/Makefile |1 + drivers/clk/tegra/clk-dfll.c | 1090 ++ drivers/clk/tegra

[PATCH v6 03/16] clk: tegra: Add closed loop support for the DFLL

2014-10-31 Thread Mikko Perttunen
Signed-off-by: Mikko Perttunen --- v6: - return unrounded rates from clk_round_rate and clk_recalc_rate. The rounded rate doesn't make much sense for a voltage controlled oscillator and cpufreq freaks out if any rounding happens to the CPU clock rate. drivers/clk/tegra/clk-dfll.c

Re: [PATCH 04/10] of: Add Tegra124 EMC bindings

2014-10-14 Thread Mikko Perttunen
On 10/10/2014 04:14 PM, Mark Rutland wrote: On Fri, Oct 10, 2014 at 01:46:55PM +0100, Tomeu Vizoso wrote: From: Mikko Perttunen Add binding documentation for the nvidia,tegra124-emc device tree node. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- .../bindings/memory

Re: [PATCH v7 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-10-15 Thread Mikko Perttunen
Eduardo: ping Cheers, Mikko On 09/29/2014 05:17 PM, Mikko Perttunen wrote: From: Mikko Perttunen This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports temperature polling for four thermal zones

[PATCH v5 12/16] cpufreq: tegra: Rename tegra-cpufreq to tegra20-cpufreq

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen The Tegra124 will use a different driver for frequency scaling, so rename the old driver (which handles only Tegra20) appropriately. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- drivers/cpufreq/Kconfig.arm | 6 +- drivers/cpufreq/Makefile

[PATCH v5 00/16] Tegra124 CL-DVFS / DFLL clocksource + cpufreq

2014-10-24 Thread Mikko Perttunen
ce2 should be simple, though do note that it does not have active cooling. Thanks, Tuomas Mikko Perttunen (1): ARM: tegra: Add CPU regulator to the Jetson TK1 device tree Paul Walmsley (1): clk: tegra: Add DFLL DVCO reset control for Tegra124 Tuomas Tynkkynen (14): clk: tegra: Add binding f

[PATCH v5 15/16] ARM: tegra: Add CPU regulator to the Jetson TK1 device tree

2014-10-24 Thread Mikko Perttunen
Specify the CPU voltage regulator for the cpufreq driver. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- v5: - Duplicate the cpus/cpu@0 structure here instead of referring to a named 'cpu0' node. This fits in better with the style used by Tegra device trees.

[PATCH v5 13/16] cpufreq: Add cpufreq driver for Tegra124

2014-10-24 Thread Mikko Perttunen
driver for all the cpufreq operations. This driver also relies on the DFLL driver to fill the OPP table for the CPU0 device, so that the cpufreq-dt driver knows what frequencies to use. Signed-off-by: Tuomas Tynkkynen Acked-by: Viresh Kumar Signed-off-by: Mikko Perttunen --- v5: - Use

[PATCH v5 01/16] clk: tegra: Add binding for the Tegra124 DFLL clocksource

2014-10-24 Thread Mikko Perttunen
-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- .../bindings/clock/nvidia,tegra124-dfll.txt| 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/nvidia,tegra124-dfll.txt diff --git a/Documentation/devicetree

[PATCH v5 16/16] ARM: tegra: enable Tegra124 cpufreq driver by default

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen The Tegra124 cpufreq driver depends on CONFIG_CPUFREQ_DT, so enable it to get the Tegra driver to build by default. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH v5 14/16] ARM: tegra: Add entries for cpufreq on Tegra124

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen The Tegra124 cpufreq driver relies on certain clocks being present in the /cpus/cpu@0 node. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- v5: - Don't name cpu@0 'cpu0'. Instead, we will reference by path. arch/arm/boot/dts/te

[PATCH v5 11/16] cpufreq: tegra124: Add device tree bindings

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen The cpufreq driver for Tegra124 will be a different one than the old Tegra20 cpufreq driver (tegra-cpufreq), which does not use the device tree. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- .../bindings/cpufreq/tegra124-cpufreq.txt | 44

[PATCH v5 08/16] clk: tegra: Add the DFLL as a possible parent of the cclk_g clock

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen The DFLL clocksource was missing from the list of possible parents for the fast CPU cluster. Add it to the list. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- drivers/clk/tegra/clk-tegra-super-gen4.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH v5 10/16] ARM: tegra: Enable the DFLL on the Jetson TK1

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen Add the board-specific properties of the DFLL for the Jetson TK1 board. On this board, the DFLL will take control of the sd0 regulator on the on-board AS3722 PMIC. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124-jetson-tk1

[PATCH v5 09/16] ARM: tegra: Add the DFLL to Tegra124 device tree

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen The DFLL clocksource is a separate IP block from the usual clock-and-reset controller, so it gets its own device tree node. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- arch/arm/boot/dts/tegra124.dtsi | 22 ++ 1 file changed

[PATCH v5 07/16] clk: tegra: Save/restore CCLKG_BURST_POLICY on suspend

2014-10-24 Thread Mikko Perttunen
From: Tuomas Tynkkynen Save and restore this register since the LP1 restore assembly routines fiddle with it. Otherwise the CPU would keep running on PLLX after resume from suspend even when DFLL was the original clocksource. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen

[PATCH v5 05/16] clk: tegra: Add DFLL DVCO reset control for Tegra124

2014-10-24 Thread Mikko Perttunen
block will complete. Thanks to Aleksandr Frid for identifying this and saving hours of debugging time. Signed-off-by: Paul Walmsley [ttynkkynen: ported to tegra124 from tegra114] Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- drivers/clk/tegra/clk-tegra124.c | 47

[PATCH v5 04/16] clk: tegra: Add functions for parsing CVB tables

2014-10-24 Thread Mikko Perttunen
per-chip basis. Add utility functions to parse the Tegra-specific tables and export the voltage-frequency pairs to the generic OPP framework for other drivers to use. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- arch/arm/mach-tegra/Kconfig | 1 + drivers/clk/tegra/cvb.c

[PATCH v5 06/16] clk: tegra: Add Tegra124 DFLL clocksource platform driver

2014-10-24 Thread Mikko Perttunen
-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- drivers/clk/tegra/Makefile | 2 + drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 165 + 2 files changed, 167 insertions(+) create mode 100644 drivers/clk/tegra/clk-tegra124-dfll-fcpu.c diff

[PATCH v5 02/16] clk: tegra: Add library for the DFLL clock source (open-loop mode)

2014-10-24 Thread Mikko Perttunen
-off-by: Paul Walmsley Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- - Style fixes - Removed incorrect and unused DFLL_I2C_CFG_SLAVE_ADDR_MASK define - Documented that dfll_register_clk can return -ENOMEM - Harmonized clock operation order - Check !soc before allocating

[PATCH v5 03/16] clk: tegra: Add closed loop support for the DFLL

2014-10-24 Thread Mikko Perttunen
Signed-off-by: Mikko Perttunen --- drivers/clk/tegra/clk-dfll.c | 657 ++- 1 file changed, 654 insertions(+), 3 deletions(-) diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll.c index 358c5d4..e71f4fb 100644 --- a/drivers/clk/tegra/clk

Re: [PATCH v5 02/16] clk: tegra: Add library for the DFLL clock source (open-loop mode)

2014-10-27 Thread Mikko Perttunen
On 10/24/2014 06:08 PM, Vladimir Zapolskiy wrote: Hello Mikko, Hello Vladimir! On 24.10.2014 17:39, Mikko Perttunen wrote: From: Tuomas Tynkkynen Add shared code to support the Tegra DFLL clocksource in open-loop mode. This root clocksource is present on the Tegra124 SoCs. The DFLL is

Re: [PATCH v3 04/13] of: document new emc-timings subnode in nvidia,tegra124-car

2014-11-07 Thread Mikko Perttunen
To better facilitate discussion, here's an outline of how the driver works: emc_set_rate (CAR) gets called The current timing (= rate,parent pair) is checked along with the target timing. If the target timing has the same clock source (~parent, see emc_parent_clk_sources in the clk dr

Re: [PATCH v7 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-11-07 Thread Mikko Perttunen
On 11/07/2014 05:54 PM, Eduardo Valentin wrote: Terve Mikko, On Wed, Oct 15, 2014 at 01:05:19PM +0300, Mikko Perttunen wrote: Eduardo: ping I had no objections with the driver at this point. Neither with the DT part. I decided to include it in my -linus queue, which means, it will

[PATCH v5 12/16] cpufreq: tegra: Rename tegra-cpufreq to tegra20-cpufreq

2014-11-10 Thread Mikko Perttunen
From: Tuomas Tynkkynen The Tegra124 will use a different driver for frequency scaling, so rename the old driver (which handles only Tegra20) appropriately. Signed-off-by: Tuomas Tynkkynen Signed-off-by: Mikko Perttunen --- Sorry, I was not aware of those options. drivers/cpufreq/Kconfig.arm

[PATCH v4 REPOST 1/5] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-11-10 Thread Mikko Perttunen
From: Mikko Perttunen Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant properties in the binding documentation. Signed-off-by: Mikko Perttunen Reviewed-by: Wei Ni Tested-by: Wei Ni

[PATCH v4 REPOST 4/5] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-11-10 Thread Mikko Perttunen
From: Mikko Perttunen This adds the required information to reset the board during an overheating situation to the Jetson TK1 device tree. The thermal reset is handled by the PMC by sending an I2C message to the PMIC. The entries specify the I2C message to be sent. Signed-off-by: Mikko

[PATCH v4 REPOST 3/5] ARM: tegra124: Add I2C controller ids to device tree

2014-11-10 Thread Mikko Perttunen
From: Mikko Perttunen I2C controller ids are required when programming hardware blocks that send messages to devices connected to an I2C bus, such as when the PMC sends a poweroff message to the PMIC. Add ids to all I2C controllers in Tegra124. Signed-off-by: Mikko Perttunen Reviewed-by: Wei

[PATCH v4 REPOST 0/5] Thermal reset support in PMC

2014-11-10 Thread Mikko Perttunen
. Note that there are no compile time dependencies between the two series; it's just that this series is no-op without the soctherm driver being present. Mikko Perttunen (5): of: Add descriptions of thermtrip properties to Tegra PMC bindings of: Add nvidia,controller-id property to Tegr

[PATCH v4 REPOST 2/5] of: Add nvidia,controller-id property to Tegra I2C bindings

2014-11-10 Thread Mikko Perttunen
From: Mikko Perttunen Sometimes, hardware blocks want to issue requests to devices connected to I2C buses by itself. In such case, the bus the target device resides on must be configured into a register. For this purpose, each I2C controller has a defined ID known by the hardware. Add a property

[PATCH v4 REPOST 5/5] ARM: tegra: Add thermal reset (thermtrip) support to PMC

2014-11-10 Thread Mikko Perttunen
From: Mikko Perttunen This adds a device tree controlled option to enable PMC-based thermal reset in overheating situations. Thermtrip is supported on Tegra30, Tegra114 and Tegra124. The thermal reset only works when the thermal sensors are calibrated, so a soctherm driver is also required. The

[PATCH] regulator: max8973: Set VSEL regmap ops if DVS GPIO is not set

2015-07-28 Thread Mikko Perttunen
*hardware_vsel* regulator APIs. Signed-off-by: Mikko Perttunen --- This was just compile-tested as I don't have a board with this regulator. drivers/regulator/max8973-regulator.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/ma

Re: [PATCHv4 1/1] thermal: of: improve of-thermal sensor registration API

2014-11-19 Thread Mikko Perttunen
of thermal zones described in device * tree and look for the zone that refer to the sensor device pointed by With that minor one fixed, Tested-by: Mikko Perttunen Reviewed-by: Mikko Perttunen Cheers, Mikko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [PATCHv4 1/1] thermal: of: improve of-thermal sensor registration API

2014-11-19 Thread Mikko Perttunen
On 11/19/2014 05:41 PM, Mikko Perttunen wrote: On 11/18/2014 04:39 PM, Eduardo Valentin wrote: Different drivers request API extensions in of-thermal. For this reason, additional callbacks are required to fit the new drivers needs. The current API implementation expects the registering sensor

Re: [PATCH v4 REPOST 1/5] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-11-12 Thread Mikko Perttunen
On 11/11/2014 08:37 AM, Alexandre Courbot wrote: On 11/10/2014 10:12 PM, Mikko Perttunen wrote: From: Mikko Perttunen Hardware-triggered thermal reset requires configuring the I2C reset procedure. This configuration is read from the device tree, so document the relevant properties in the

Re: [PATCH v4 REPOST 1/5] of: Add descriptions of thermtrip properties to Tegra PMC bindings

2014-11-12 Thread Mikko Perttunen
On 11/12/2014 02:29 PM, Thierry Reding wrote: On Wed, Nov 12, 2014 at 02:07:51PM +0200, Mikko Perttunen wrote: On 11/11/2014 08:37 AM, Alexandre Courbot wrote: On 11/10/2014 10:12 PM, Mikko Perttunen wrote: From: Mikko Perttunen Hardware-triggered thermal reset requires configuring the I2C

<    1   2   3   4   5   6   7   >