[PATCH 5/5] ARM: tegra: Add hdmi to Tegra114 Dalmore device tree

2013-08-28 Thread Mikko Perttunen
Add hdmi node to Dalmore device tree to supply Dalmore-specific data: VDD and PLL regulators for HDMI port, DDC bus and HDMI cable hotplug GPIO. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra114-dalmore.dts | 17 + 1 file changed, 17 insertions

[PATCH 0/5] HDMI support for Tegra114 Dalmore

2013-08-28 Thread Mikko Perttunen
This patchset adds HDMI support for the Tegra114 Dalmore board. Tested with 1080p DVI and HDMI monitors. Mikko Perttunen (5): host1x: hdmi: Add Tegra114 support host1x: hdmi: Detect whether display is connected with HDMI or DVI clk: tegra114: Initialize clocks needed for HDMI ARM: tegra

[PATCH 4/5] ARM: tegra: Add host1x, dc and hdmi to Tegra114 device tree

2013-08-28 Thread Mikko Perttunen
Add host1x, dc (display controller) and hdmi devices to Tegra114 device tree. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra114.dtsi | 43 + 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/tegra114.dtsi b

[PATCH 2/5] host1x: hdmi: Detect whether display is connected with HDMI or DVI

2013-08-28 Thread Mikko Perttunen
. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/gpu/host1x/drm/hdmi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/host1x/drm/hdmi.c b/drivers/gpu/host1x/drm/hdmi.c index d81fac8..140339b 100644 --- a/drivers/gpu/host1x/drm/hdmi.c +++ b/drivers/gpu/host1x/drm

[PATCH 3/5] clk: tegra114: Initialize clocks needed for HDMI

2013-08-28 Thread Mikko Perttunen
Add host1x, disp1 and disp2 clocks to the clock initialization table. These clocks are required for HDMI support. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-tegra114.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/tegra/clk-tegra114.c b

[PATCH 1/5] host1x: hdmi: Add Tegra114 support

2013-08-28 Thread Mikko Perttunen
Add Tegra114 TMDS configuration, add new peak_current field and use new place for drive current override bit on Tegra114 platform. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/gpu/host1x/drm/drm.c | 1 + drivers/gpu/host1x/drm/hdmi.c | 102

Re: [PATCH 2/5] host1x: hdmi: Detect whether display is connected with HDMI or DVI

2013-08-28 Thread Mikko Perttunen
On 08/28/2013 03:07 PM, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 28, 2013 at 01:40:56PM +0300, Mikko Perttunen wrote: Use EDID data to determine whether the display supports HDMI or just DVI. This used to be hardcoded to be HDMI, which broke support for DVI displays

Re: [PATCH 4/5] ARM: tegra: Add host1x, dc and hdmi to Tegra114 device tree

2013-08-28 Thread Mikko Perttunen
On 08/28/2013 03:25 PM, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 28, 2013 at 01:40:58PM +0300, Mikko Perttunen wrote: Add host1x, dc (display controller) and hdmi devices to Tegra114 device tree. DC and HDMI. Will fix. Signed-off-by: Mikko Perttunen mperttu

Re: [PATCH 5/5] ARM: tegra: Add hdmi to Tegra114 Dalmore device tree

2013-08-28 Thread Mikko Perttunen
On 08/28/2013 03:30 PM, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Aug 28, 2013 at 01:40:59PM +0300, Mikko Perttunen wrote: Add hdmi node to Dalmore device tree to supply Dalmore-specific s/hdmi/HDMI/ Will fix. diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b

[PATCH v2 4/6] clk: tegra114: Initialize clocks needed for HDMI

2013-08-28 Thread Mikko Perttunen
Add host1x, disp1 and disp2 clocks to the clock initialization table. These clocks are required for HDMI support. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-tegra114.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/tegra/clk-tegra114.c b

[PATCH v2 6/6] ARM: tegra: Add HDMI to Tegra114 Dalmore device tree

2013-08-28 Thread Mikko Perttunen
Add HDMI node to Dalmore device tree to supply Dalmore-specific data: VDD and PLL regulators for HDMI port, DDC bus and HDMI cable hotplug GPIO. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra114-dalmore.dts | 17 + 1 file changed, 17 insertions

[PATCH v2 5/6] ARM: tegra: Add host1x, DC and HDMI to Tegra114 device tree

2013-08-28 Thread Mikko Perttunen
Add host1x, DC (display controller) and HDMI devices to Tegra114 device tree. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra114.dtsi | 42 + 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/tegra114.dtsi b

[PATCH v2 3/6] host1x: hdmi: Enable Vdd earlier for hotplug/DDC

2013-08-28 Thread Mikko Perttunen
regulator was set to be always on. This patch moves the enable to the tegra_hdmi_drm_init function to make sure the regulator will get enabled. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/gpu/host1x/drm/hdmi.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions

[PATCH v2 0/6] HDMI support for Tegra114 Dalmore

2013-08-28 Thread Mikko Perttunen
This patchset adds HDMI support for the Tegra114 Dalmore board. Tested with 1080p DVI and HDMI monitors. Mikko Perttunen (6): host1x: hdmi: Add Tegra114 support host1x: hdmi: Detect whether display is connected with HDMI or DVI host1x: hdmi: Enable Vdd earlier for hotplug/DDC clk

[PATCH v2 2/6] host1x: hdmi: Detect whether display is connected with HDMI or DVI

2013-08-28 Thread Mikko Perttunen
. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/gpu/host1x/drm/hdmi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/host1x/drm/hdmi.c b/drivers/gpu/host1x/drm/hdmi.c index d81fac8..140339b 100644 --- a/drivers/gpu/host1x/drm/hdmi.c +++ b/drivers/gpu/host1x/drm

[PATCH v2 1/6] host1x: hdmi: Add Tegra114 support

2013-08-28 Thread Mikko Perttunen
Add Tegra114 TMDS configuration, add new peak_current field and use new place for drive current override bit on Tegra114 platform. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/gpu/host1x/dev.c | 1 + drivers/gpu/host1x/drm/drm.c | 1 + drivers/gpu/host1x/drm/hdmi.c

[PATCH] regulator: tps51632: Get regulator name from i2c_client

2013-06-18 Thread Mikko Perttunen
-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/regulator/tps51632-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c index 6e67be7..87c37f8 100644 --- a/drivers/regulator/tps51632

Re: [PATCH V2] ARM: tegra: enable palmas device for dalmore

2013-07-16 Thread Mikko Perttunen
On 07/10/2013 10:37 AM, Laxman Dewangan wrote: Make the entry of Dalmore Power Management Unit device TPS65913 in dalmore DTS file. The Palma driver support this device. Enable following submodule of the TPS65913: - GPIO driver - RTC driver. - Power regulator driver. Signed-off-by: Laxman

Re: [PATCH v3 0/2] Enable lm90 in Tegra30 and Tegra114.

2013-07-17 Thread Mikko Perttunen
On 07/17/2013 11:17 AM, Wei Ni wrote: On 07/16/2013 07:14 PM, Wei Ni wrote: On 07/16/2013 01:13 AM, Stephen Warren wrote: On 07/15/2013 10:48 AM, Stephen Warren wrote: On 07/12/2013 01:49 AM, Wei Ni wrote: Enable thermal sensor lm90 for Tegra30 Cardhu and Tegra114 Dalmore. I have applied

Re: [PATCH V2] ARM: tegra: enable palmas device for dalmore

2013-07-17 Thread Mikko Perttunen
On 07/17/2013 11:57 AM, Laxman Dewangan wrote: On Tuesday 16 July 2013 07:21 PM, Mikko Perttunen wrote: On 07/10/2013 10:37 AM, Laxman Dewangan wrote: + + palmas_gpio: gpio { + compatible = ti,palmas-gpio; + gpio

[PATCH] host1x: hdmi: Make sure clock is enabled before dumping registers

2013-07-30 Thread Mikko Perttunen
The debugfs register dumping function did not enable the HDMI clock. This led to a possible system hang when reading the debugfs entry while no HDMI cable was connected to the system. This patch makes sure that the clock is enabled during the read. Signed-off-by: Mikko Perttunen mperttu

Re: [PATCH v2 3/6] host1x: hdmi: Enable Vdd earlier for hotplug/DDC

2013-09-04 Thread Mikko Perttunen
On 09/04/2013 09:44 PM, Stephen Warren wrote: On 08/28/2013 09:48 AM, Mikko Perttunen wrote: The Vdd regulator used to be enabled only at tegra_output_hdmi_enable, which is called after a sink is detected. However, the HDMI hotplug pin works by returning the voltage supplied by the Vdd pin, so

Re: [PATCH 8/9] ata: Add support for the Tegra124 SATA controller

2014-06-05 Thread Mikko Perttunen
Thanks, will remove. - Mikko On 05/06/14 15:18, Rob Herring wrote: On Wed, Jun 4, 2014 at 6:32 AM, Mikko Perttunen mperttu...@nvidia.com wrote: This adds support for the integrated AHCI-compliant Serial ATA controller present on the NVIDIA Tegra124 system-on-chip. Signed-off-by: Mikko

Re: [PATCH 0/9] Serial ATA support for NVIDIA Tegra124

2014-06-06 Thread Mikko Perttunen
series, the node isn't actually named, though. I will fix this in v2) - Mikko On 05/06/14 20:29, Stephen Warren wrote: On 06/04/2014 05:32 AM, Mikko Perttunen wrote: Hi, This series adds support for the onboard AHCI-compliant Serial ATA controller found on Tegra124 systems-on-chip

Re: [PATCH 0/9] Serial ATA support for NVIDIA Tegra124

2014-06-06 Thread Mikko Perttunen
Yes, that might be the easiest. If you go that way, you should probably also add an #include for the XUSB binding include file. - Mikko On 06/06/14 10:11, Thierry Reding wrote: * PGP Signed by an unknown key On Fri, Jun 06, 2014 at 09:27:07AM +0300, Mikko Perttunen wrote: The only compile

[PATCH] libahci_platform: Fail when PHY required but PHY support disabled

2014-06-06 Thread Mikko Perttunen
be returned even when a PHY is needed. This patch modifies the -ENOSYS case to check if a phys device tree node exists. If it exists, then clearly the PHY subsystem is mistakenly disabled and the driver cannot work, ahci_platform_get_resources will fail and propagate the error. Signed-off-by: Mikko

Re: [PATCH 0/9] Serial ATA support for NVIDIA Tegra124

2014-06-09 Thread Mikko Perttunen
On 06/09/2014 09:33 PM, Stephen Warren wrote: On 06/06/2014 12:27 AM, Mikko Perttunen wrote: The only compile-time dependencies here should be that: - patch 8 of 9 which contains the actual driver depends on patch 6 of 9 (though only when building as a module) and the efuse series - patch 2

Re: [PATCH v7 3/5] misc: fuse: Add efuse driver for Tegra

2014-06-11 Thread Mikko Perttunen
On 05/06/14 16:09, Peter De Schrijver wrote: ... +int tegra_fuse_readl(u32 offset, u32 *val) +{ + if (!fuse_readl) + return -ENXIO; + + *val = fuse_readl(offset); + + return 0; +} + -EPROBE_DEFER would be a better error value, so that drivers can work even if

Re: [RFC PATCH 1/4] memory: tegra124-emc: Add EMC driver

2014-06-16 Thread Mikko Perttunen
It should be mentioned that calling clk_set_rate on the EMC clock currently does absolutely nothing (except probably returning an error). The rate switching sequence is not implemented (nor is the clock tree entirely correct. For example, the kernel thinks that PLL_M is disabled). Another

Re: [RFC PATCH 4/4] cpufreq: tegra: Register a minimum EMC frequency based on the CPU clock

2014-06-16 Thread Mikko Perttunen
The tegra-cpufreq driver is only for Tegra20, an upcoming driver for Tegra124 will be separate, so this is not needed. Thanks, - Mikko On 06/16/2014 04:35 PM, Tomeu Vizoso wrote: Instead of setting a direct correlation to the CPU frequency. This allows for other devices to influence the final

[PATCH RESEND] libahci_platform: Fail when PHY required but PHY support disabled

2014-06-17 Thread Mikko Perttunen
be returned even when a PHY is needed. This patch modifies the -ENOSYS case to check if a phys device tree node exists. If it exists, then clearly the PHY subsystem is mistakenly disabled and the driver cannot work, ahci_platform_get_resources will fail and propagate the error. Signed-off-by: Mikko

Re: [PATCH 6/9] ARM: tegra: Export tegra_powergate_power_on

2014-06-17 Thread Mikko Perttunen
I'll try removing use of all libahci_platform stuff except ahci_platform_init_host for v2. On 17/06/14 15:13, Thierry Reding wrote: * PGP Signed by an unknown key On Mon, Jun 16, 2014 at 04:01:02PM -0600, Stephen Warren wrote: On 06/04/2014 05:32 AM, Mikko Perttunen wrote: This symbol needs

Re: [RFC PATCH 1/4] memory: tegra124-emc: Add EMC driver

2014-06-17 Thread Mikko Perttunen
On 06/17/2014 07:15 PM, Stephen Warren wrote: On 06/17/2014 06:16 AM, Tomeu Vizoso wrote: On 06/16/2014 10:02 PM, Stephen Warren wrote: On 06/16/2014 07:35 AM, Tomeu Vizoso wrote: This binding looks quite anaemic vs. Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt; I

Re: [PATCH 8/9] ata: Add support for the Tegra124 SATA controller

2014-06-17 Thread Mikko Perttunen
On 06/17/2014 08:04 PM, Bartlomiej Zolnierkiewicz wrote: Hi, On Tuesday, June 17, 2014 10:10:23 AM Stephen Warren wrote: On 06/17/2014 06:14 AM, Bartlomiej Zolnierkiewicz wrote: [...] +static struct platform_driver tegra_ahci_driver = { + .probe = tegra_ahci_probe, + .remove =

[PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-06-18 Thread Mikko Perttunen
This adds support for the integrated AHCI-compliant Serial ATA controller present on the NVIDIA Tegra124 system-on-chip. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- v2: - removed redundant of_match_device - fixed fuse offsets - added newlines to dev_err calls - get 5v/12v supplies

[PATCH v2 7/7] ARM: tegra: Add options for Tegra AHCI support to tegra_defconfig

2014-06-18 Thread Mikko Perttunen
This adds ATA, SATA_AHCI and AHCI_TEGRA support to tegra_defconfig so that the SATA support will be automatically enabled. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/configs/tegra_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs

[PATCH v2 5/7] clk: tegra: Add SATA clocks to Tegra124 initialization table

2014-06-18 Thread Mikko Perttunen
This adds two clocks, SATA and SATA_OOB, to the Tegra124 clock initialization table. The clocks are needed for working SATA support. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/tegra

[PATCH v2 3/7] ARM: tegra: Add SATA and SATA power to Jetson TK1 device tree

2014-06-18 Thread Mikko Perttunen
. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- v2: - added target-v5-supply and target-12v-supply - made sata power not always-on arch/arm/boot/dts/tegra124-jetson-tk1.dts | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/tegra124-jetson

[PATCH v2 2/7] ARM: tegra: Add SATA controller to Tegra124 device tree

2014-06-18 Thread Mikko Perttunen
This adds the integrated AHCI-compliant Serial ATA controller present in Tegra124 systems-on-chip to the Tegra124 device tree. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- v2: - added clock-names property - changed 0 - GIC_SPI arch/arm/boot/dts/tegra124.dtsi | 25

[PATCH v2 4/7] clk: tegra: Enable hardware control of SATA PLL

2014-06-18 Thread Mikko Perttunen
This makes the SATA PLL be controlled by hardware instead of software. This is required for working SATA support. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com Acked-by: Stephen Warren swar...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 8 1 file changed, 8 insertions(+) diff

[PATCH v2 1/7] of: Add NVIDIA Tegra SATA controller binding

2014-06-18 Thread Mikko Perttunen
This patch adds device tree binding documentation for the SATA controller found on NVIDIA Tegra SoCs. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- v2: - added target-5v-supply and target-12v-supply - changed wording to be similar with other Tegra drivers .../devicetree/bindings/ata

[PATCH v2 0/7] Serial ATA support for NVIDIA Tegra124

2014-06-18 Thread Mikko Perttunen
Hi, This series adds support for the onboard AHCI-compliant Serial ATA controller found on Tegra124 systems-on-chip. The series depends on Thierry's XUSB pinctrl driver. A branch containing the series is located at git://github.com/cyndis/linux.git branch ahci-rel-v2. Mikko Perttunen

[PATCH 4/9] clk: tegra: Enable hardware control of SATA PLL

2014-06-04 Thread Mikko Perttunen
This makes the SATA PLL be controlled by hardware instead of software. This is required for working SATA support. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/clk/tegra/clk-pll.c b/drivers

[PATCH 6/9] ARM: tegra: Export tegra_powergate_power_on

2014-06-04 Thread Mikko Perttunen
This symbol needs to be exported to power on rails without using tegra_powergate_sequence_power_up. tegra_powergate_sequence_power_up cannot be used in situations where the driver wants to handle clocking by itself. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/mach-tegra

[PATCH 9/9] ARM: tegra: Add options for Tegra AHCI support to tegra_defconfig

2014-06-04 Thread Mikko Perttunen
This adds ATA, SATA_AHCI and AHCI_TEGRA support to tegra_defconfig so that the SATA support will be automatically enabled. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/configs/tegra_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs

[PATCH 8/9] ata: Add support for the Tegra124 SATA controller

2014-06-04 Thread Mikko Perttunen
This adds support for the integrated AHCI-compliant Serial ATA controller present on the NVIDIA Tegra124 system-on-chip. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/ata/Kconfig | 9 ++ drivers/ata/Makefile | 1 + drivers/ata/ahci_tegra.c | 386

[PATCH 0/9] Serial ATA support for NVIDIA Tegra124

2014-06-04 Thread Mikko Perttunen
is located at git://github.com/cyndis/linux.git branch ahci-rel. Mikko Perttunen (9): of: Add NVIDIA Tegra SATA controller binding ARM: tegra: Add SATA controller to Tegra124 device tree ARM: tegra: Add SATA and SATA power to Jetson TK1 device tree clk: tegra: Enable hardware control

[PATCH 3/9] ARM: tegra: Add SATA and SATA power to Jetson TK1 device tree

2014-06-04 Thread Mikko Perttunen
. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com Cc: devicet...@vger.kernel.org --- arch/arm/boot/dts/tegra124-jetson-tk1.dts | 36 +++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/tegra124-jetson-tk1.dts b/arch/arm/boot/dts/tegra124-jetson-tk1.dts

[PATCH 7/9] ahci: Increase AHCI_MAX_CLKS to 4

2014-06-04 Thread Mikko Perttunen
The Tegra AHCI device requires four clocks, so increase the maximum amount of handled clocks from three to four. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/ata/ahci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h

[PATCH 1/9] of: Add NVIDIA Tegra SATA controller binding

2014-06-04 Thread Mikko Perttunen
This patch adds device tree binding documentation for the SATA controller found on NVIDIA Tegra SoCs. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/ata/tegra-sata.txt | 29 ++ 1 file changed, 29

[PATCH 2/9] ARM: tegra: Add SATA controller to Tegra124 device tree

2014-06-04 Thread Mikko Perttunen
This adds the integrated AHCI-compliant Serial ATA controller present in Tegra124 systems-on-chip to the Tegra124 device tree. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com Cc: devicet...@vger.kernel.org --- arch/arm/boot/dts/tegra124.dtsi | 24 1 file changed, 24

[PATCH 5/9] clk: tegra: Add SATA clocks to Tegra124 initialization table

2014-06-04 Thread Mikko Perttunen
This adds two clocks, SATA and SATA_OOB, to the Tegra124 clock initialization table. The clocks are needed for working SATA support. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/tegra

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-07-09 Thread Mikko Perttunen
Thanks, will fix these. Looks like I will have to change the fuse code to the old style as well. On 09/07/14 09:49, Thierry Reding wrote: * PGP Signed by an unknown key On Wed, Jun 18, 2014 at 05:23:25PM +0300, Mikko Perttunen wrote: [...] diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata

Re: [PATCH 0/3] drm/gk20a: support for reclocking

2014-07-10 Thread Mikko Perttunen
Does GK20A itself have any kind of thermal protection capabilities? Upstream SOCTHERM support is not yet available (though I have a driver in my tree), so we are thinking of disabling CPU DVFS on boards that don't have always-on active cooling for now. Same might be necessary for GPU as well.

Re: [PATCH 15/16] i2c: i2c-tegra: Drop class based scanning to improve bootup time

2014-07-10 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen mperttu...@nvidia.com Tested-by: Mikko Perttunen mperttu...@nvidia.com On 10/07/14 14:46, Wolfram Sang wrote: This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been

Re: [PATCH 10/13] ARM: tegra: Enable the DFLL on the Jetson TK1

2014-07-11 Thread Mikko Perttunen
It might look nicer if the voltage table was in a separate file. A bit of a border case, maybe. On 11/07/14 00:42, Tuomas Tynkkynen wrote: ... + nvidia,pmic-voltage-table = + 0x1e 70, + 0x1f 71, + 0x20

[PATCH 7/8] ARM: tegra: Add EMC timings to Jetson TK1 device tree

2014-07-11 Thread Mikko Perttunen
This adds a new file, tegra124-jetson-tk1-emc.dtsi that contains valid timings for the EMC memory clock. The file is included to the main Jetson TK1 device tree. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra124-jetson-tk1-emc.dtsi | 2323

[PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-11 Thread Mikko Perttunen
Add binding documentation for the nvidia,tegra124-emc device tree node. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- .../bindings/memory-controllers/tegra-emc.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 3/8] ARM: tegra: Add PLL_M_UD and PLL_C_UD to tegra124-car binding header

2014-07-11 Thread Mikko Perttunen
Add these clocks to the binding header so that EMC timings that have them as parent can refer to the clocks. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- include/dt-bindings/clock/tegra124-car.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/dt

[PATCH 6/8] ARM: tegra: Add EMC to Tegra124 device tree

2014-07-11 Thread Mikko Perttunen
This adds a node for the EMC memory controller. It is always enabled, but only provides read-only functionality without board-specific timing tables. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra124.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 4/8] clk: tegra124: Add PLL_M_UD and PLL_C_UD clocks

2014-07-11 Thread Mikko Perttunen
These clocks are used as parents for some EMC timings. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-tegra124.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c index 99cc5ea..a4f8150

[PATCH 1/8] clk: tegra124: Remove old emc_mux and emc clocks

2014-07-11 Thread Mikko Perttunen
These clocks have never been able to do anything. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-tegra124.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c index 80efe51..99cc5ea

[PATCH 2/8] ARM: tegra: Remove TEGRA124_CLK_EMC from tegra124-car.h

2014-07-11 Thread Mikko Perttunen
TEGRA124_CLK_EMC instead of emc or similar. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- include/dt-bindings/clock/tegra124-car.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/tegra124-car.h b/include/dt-bindings/clock/tegra124-car.h index

[PATCH 8/8] clk: tegra: Add EMC clock driver

2014-07-11 Thread Mikko Perttunen
000..008f9f3 --- /dev/null +++ b/drivers/clk/tegra/clk-emc.c @@ -0,0 +1,1508 @@ +/* + * drivers/clk/tegra/clk-emc.c + * + * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * + * Author: + * Mikko Perttunen mperttu...@nvidia.com + * + * This software is licensed under the terms

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

2014-07-11 Thread Mikko Perttunen
. Patch 7 has a DTC dependency on patch 3. Also available from git in git://github.com/cyndis/linux.git, branch emc-v1 Mikko Perttunen (8): clk: tegra124: Remove old emc_mux and emc clocks ARM: tegra: Remove TEGRA124_CLK_EMC from tegra124-car.h ARM: tegra: Add PLL_M_UD and PLL_C_UD to tegra124

Re: [PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-11 Thread Mikko Perttunen
On 07/11/2014 05:51 PM, Thierry Reding wrote: On Fri, Jul 11, 2014 at 05:18:30PM +0300, Mikko Perttunen wrote: Add binding documentation for the nvidia,tegra124-emc device tree node. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- .../bindings/memory-controllers/tegra-emc.txt

Re: [PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-11 Thread Mikko Perttunen
Sure, I'll do that for v2. On 07/11/2014 07:43 PM, Andrew Bresticker wrote: On Fri, Jul 11, 2014 at 7:18 AM, Mikko Perttunen mperttu...@nvidia.com wrote: Add binding documentation for the nvidia,tegra124-emc device tree node. diff --git a/Documentation/devicetree/bindings/memory-controllers

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-06-26 Thread Mikko Perttunen
FWIW, from IRC, the series Tested-by: Steev Klimaszewski st...@gentoo.org On 24/06/14 22:35, Stephen Warren wrote: On 06/18/2014 08:23 AM, Mikko Perttunen wrote: This adds support for the integrated AHCI-compliant Serial ATA controller present on the NVIDIA Tegra124 system-on-chip

[RFC 1/5] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree

2014-06-19 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 mperttu...@nvidia.com

[RFC 0/5] Tegra124 thermal management

2014-06-19 Thread Mikko Perttunen
there be a new trip level for an uncontrolled shutdown? Any thoughts would be appreciated. Thanks, Mikko Perttunen Mikko Perttunen (5): ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree ARM: tegra: Add thermal

[RFC 5/5] thermal: Add Tegra SOCTHERM thermal management driver

2014-06-19 Thread Mikko Perttunen
This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. Only polling-based thermal sensing and overheating reset are supported for now. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/thermal/Kconfig | 6

[RFC 4/5] clk: tegra: Add soctherm and tsensor clocks to T124 initialization table

2014-06-19 Thread Mikko Perttunen
This adds the two clocks, soctherm and tsensor, to the T124 initialization table. They are required for soctherm-based thermal sensing. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk

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

2014-06-19 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

[RFC 2/5] ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree

2014-06-19 Thread Mikko Perttunen
This adds the soctherm thermal sensing and management unit to the Tegra124 device tree along with the four thermal zones it exports. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra124.dtsi | 47 + 1 file changed, 47

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

2014-06-27 Thread Mikko Perttunen
This adds the soctherm thermal sensing and management unit to the Tegra124 device tree along with the four thermal zones it exports. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- arch/arm/boot/dts/tegra124.dtsi | 48 + 1 file changed, 48

[PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-06-27 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 mperttu...@nvidia.com --- drivers/thermal/Kconfig

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

2014-06-27 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 mperttu...@nvidia.com --- arch/arm/boot/dts/tegra124-jetson-tk1.dts | 32

[PATCH 5/6] clk: tegra: Add soctherm and tsensor clocks to Tegra124 init table

2014-06-27 Thread Mikko Perttunen
This adds the two clocks, soctherm and tsensor, to the T124 initialization table. They are required for soctherm-based thermal sensing. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- Peter, one more zero for TSENSOR, please :) drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2

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

2014-06-27 Thread Mikko Perttunen
-by: Mikko Perttunen mperttu...@nvidia.com --- drivers/thermal/of-thermal.c | 97 ++-- include/linux/thermal.h | 3 +- 2 files changed, 95 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 04b1be7

[PATCH 0/6] of-thermal hardware trip points + Tegra124 SOCTHERM driver

2014-06-27 Thread Mikko Perttunen
-tracked trip point support. While the hardware supports four tracked trip points, only one is used. Mikko Perttunen (6): thermal: of: Add support for hardware-tracked trip points of: Add bindings for nvidia,tegra124-soctherm ARM: tegra: Add thermal trip points for Jetson TK1 ARM: tegra: Add

[PATCH 2/6] of: Add bindings for nvidia,tegra124-soctherm

2014-06-27 Thread Mikko Perttunen
This adds binding documentation and headers for the Tegra124 SOCTHERM device tree node. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- .../devicetree/bindings/thermal/tegra-soctherm.txt | 32 ++ include/dt-bindings/thermal/tegra124-soctherm.h| 15 ++ 2

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

2014-07-01 Thread Mikko Perttunen
Inline. On 01/07/14 00:08, Stephen Warren wrote: On 06/27/2014 02:11 AM, 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. Whenever the current temperature

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

2014-07-01 Thread Mikko Perttunen
Inline. On 30/06/14 23:48, Stephen Warren wrote: On 06/27/2014 02:11 AM, Mikko Perttunen wrote: This adds the soctherm thermal sensing and management unit to the Tegra124 device tree along with the four thermal zones it exports. diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot

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

2014-07-01 Thread Mikko Perttunen
Inline. On 01/07/14 00:23, Stephen Warren wrote: On 06/27/2014 02:11 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 the four thermal zones with hardware-tracked trip

[PATCH] clk: tegra: Use XUSB-compatible SATA PLL sequence

2014-07-08 Thread Mikko Perttunen
Use a sequence for enabling hardware control of the SATA PLL that works both when using the SATA lane with SATA and when using it with XUSB. Signed-off-by: Mikko Perttunen mperttu...@nvidia.com --- Andrew: yes, it does :) Peter: Feel free to squash if that works for you. drivers/clk/tegra/clk

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-07-08 Thread Mikko Perttunen
Hey Tejun, the prerequisites for this series have now been acked and it would be nice to have it for 3.17. Could you take a look at it? Thanks, Mikko On 26/06/14 14:18, Mikko Perttunen wrote: FWIW, from IRC, the series Tested-by: Steev Klimaszewski st...@gentoo.org On 24/06/14 22:35

Re: [PATCH 0/9] Serial ATA support for NVIDIA Tegra124

2014-07-08 Thread Mikko Perttunen
On 08/07/14 16:08, Thierry Reding wrote: * PGP Signed by an unknown key On Mon, Jun 09, 2014 at 09:49:24PM +0300, Mikko Perttunen wrote: On 06/09/2014 09:33 PM, Stephen Warren wrote: On 06/06/2014 12:27 AM, Mikko Perttunen wrote: The only compile-time dependencies here should

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-07-08 Thread Mikko Perttunen
Thanks, I'll fix these. On 08/07/14 16:22, Tejun Heo wrote: (cc'ing Hans) Hans, can you please review this patch? On Wed, Jun 18, 2014 at 05:23:25PM +0300, Mikko Perttunen wrote: +#define SATA_CONFIGURATION_0 0x180 +#defineSATA_CONFIGURATION_EN_FPCI

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-07-14 Thread Mikko Perttunen
Hi Hans, have you been able to take a look at this? Thanks, Mikko On 08/07/14 16:22, Tejun Heo wrote: (cc'ing Hans) Hans, can you please review this patch? On Wed, Jun 18, 2014 at 05:23:25PM +0300, Mikko Perttunen wrote: +#define SATA_CONFIGURATION_0 0x180 +#define

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-07-14 Thread Mikko Perttunen
Ok, that's good, thanks. Mikko On 14/07/14 09:25, Hans de Goede wrote: Hi Miko, On 07/14/2014 08:21 AM, Mikko Perttunen wrote: Hi Hans, have you been able to take a look at this? Not yet, it is on my todo list I hope to get around to it today or tomorrow. Regards, Hans

Re: [PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-14 Thread Mikko Perttunen
On 11/07/14 19:01, Mikko Perttunen wrote: On 07/11/2014 05:51 PM, Thierry Reding wrote: On Fri, Jul 11, 2014 at 05:18:30PM +0300, Mikko Perttunen wrote: ... ... In this case, all the registers that will be written are such that the MC driver will never need to write them. They are shadowed

Re: [PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-14 Thread Mikko Perttunen
On 14/07/14 11:15, Thierry Reding wrote: * PGP Signed by an unknown key On Mon, Jul 14, 2014 at 10:55:51AM +0300, Mikko Perttunen wrote: On 11/07/14 19:01, Mikko Perttunen wrote: On 07/11/2014 05:51 PM, Thierry Reding wrote: On Fri, Jul 11, 2014 at 05:18:30PM +0300, Mikko Perttunen wrote

Re: [PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-14 Thread Mikko Perttunen
On 14/07/14 12:31, Thierry Reding wrote: * PGP Signed by an unknown key On Mon, Jul 14, 2014 at 12:06:32PM +0300, Mikko Perttunen wrote: On 14/07/14 11:15, Thierry Reding wrote: Old Signed by an unknown key On Mon, Jul 14, 2014 at 10:55:51AM +0300, Mikko Perttunen wrote: On 11/07/14 19:01

Re: [PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-14 Thread Mikko Perttunen
On 14/07/14 13:29, Thierry Reding wrote: * PGP Signed by an unknown key ... Yes, this sounds sensible. I'll make such a patch. I suppose having another timings table in the MC node with just the rate and mc-burst-data would separate the concerns best. It occurs to me that we could also write

Re: [PATCH 5/8] of: Add Tegra124 EMC bindings

2014-07-14 Thread Mikko Perttunen
On 14/07/14 14:10, Thierry Reding wrote: * PGP Signed by an unknown key On Mon, Jul 14, 2014 at 01:54:36PM +0300, Mikko Perttunen wrote: On 14/07/14 13:29, Thierry Reding wrote: Old Signed by an unknown key ... Yes, this sounds sensible. I'll make such a patch. I suppose having another

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-07-15 Thread Mikko Perttunen
Heh, what you are describing is the v1 of this series :) However, 17/06/14 Thierry Reding wrote: I would've preferred tegra_powergate_sequence_power_up() to be used consistently in all drivers. I'm still not convinced that using the platform AHCI driver this way is really the best option,

Re: [PATCH v2 6/7] ata: Add support for the Tegra124 SATA controller

2014-07-15 Thread Mikko Perttunen
On 15/07/14 11:55, Hans de Goede wrote: Hi, On 07/15/2014 09:12 AM, Mikko Perttunen wrote: Heh, what you are describing is the v1 of this series :) However, 17/06/14 Thierry Reding wrote: I would've preferred tegra_powergate_sequence_power_up() to be used consistently in all drivers. I'm

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

2014-07-03 Thread Mikko Perttunen
On 01/07/14 21:26, Stephen Warren wrote: Ah, so there's some manufacturing calibration process that sets some fuse value, and the HW uses a combination of that fuse value, and some parameters of the manufacturing process as represented by the SENSOR_CONFIG2 register, to apply the calibration?

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

2014-07-03 Thread Mikko Perttunen
On 01/07/14 21:15, Stephen Warren wrote: The thermal core only supports a fixed number of trip points for each driver and the core informs the driver of any changes to those, so drivers using the core framework can already have hardware trip points, but just a fixed number of them. The way

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

2014-07-04 Thread Mikko Perttunen
On 04/07/14 11:43, Wei Ni wrote: On 06/27/2014 04:11 PM, 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. diff

  1   2   3   4   5   6   7   8   9   10   >