[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 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

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

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-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 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-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

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 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 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 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 --- .../devicetree/bindings/thermal/tegra-soctherm.txt | 32 ++ include/dt-bindings/thermal/tegra124-soctherm.h| 15 ++ 2 files changed, 47

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

2014-06-27 Thread Mikko Perttunen
-by: Mikko Perttunen --- 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..bfccea5 100644

[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 --- Peter, one more zero for TSENSOR, please :) drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2 insertions(+) diff

[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 --- arch/arm/boot/dts/tegra124-jetson-tk1.dts | 32 +++ 1

[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 --- drivers/thermal/Kconfig | 7 + drivers

[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 --- arch/arm/boot/dts/tegra124.dtsi | 48 + 1 file changed, 48 insertions(+) diff --git

[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 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 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. At a quick gla

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 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 --- arch/arm/boot/dts/tegra124.dtsi | 47 + 1 file changed, 47 insertions(+) diff --git

[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 --- drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/tegra/clk-tegra124.c b

[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 --- drivers/thermal/Kconfig | 6 + drivers/thermal

[RFC 0/5] Tegra124 thermal management

2014-06-19 Thread Mikko Perttunen
ler shutdown. Should 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

[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 --- arch/arm/boot

[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 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 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 --- v2: - added target-5v-supply and target-12v-supply - changed wording to be similar with other Tegra drivers .../devicetree/bindings/ata/tegra-sata.txt

[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 Acked-by: Stephen Warren --- drivers/clk/tegra/clk-pll.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/clk/tegra/clk-pll.c b

[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 --- v2: - added clock-names property - changed 0 -> GIC_SPI arch/arm/boot/dts/tegra124.dtsi | 25 + 1 f

[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 --- 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-tk1.dts b/arch/arm

[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 --- arch/arm/configs/tegra_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm

[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 --- drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/tegra/clk-tegra124.c b

[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 --- v2: - removed redundant of_match_device - fixed fuse offsets - added newlines to dev_err calls - get 5v/12v supplies - mask calibration fuse

[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

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 =

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 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

[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

[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 =

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

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 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

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: [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: [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 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

[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

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

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

2014-06-06 Thread Mikko Perttunen
submitted xusb 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 syste

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 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 wrote: This adds support for the integrated AHCI-compliant Serial ATA controller present on the NVIDIA Tegra124 system-on-chip. Signed-off-by: Mikko Perttunen

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

[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 --- drivers/clk/tegra/clk-tegra124.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/tegra/clk-tegra124.c b

[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 Cc: devicet...@vger.kernel.org --- arch/arm/boot/dts/tegra124.dtsi | 24 1 file changed, 24 insertions(+) diff

[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 --- drivers/ata/ahci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 05882e4

[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 Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/ata/tegra-sata.txt | 29 ++ 1 file changed, 29 insertions(+) create mode

[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 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 index 38d3087

[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 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 --- arch/arm/mach-tegra/powergate.c | 1 + 1

[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 --- arch/arm/configs/tegra_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm

[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 --- drivers/ata/Kconfig | 9 ++ drivers/ata/Makefile | 1 + drivers/ata/ahci_tegra.c | 386

[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 --- drivers/clk/tegra/clk-pll.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c

[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

<    7   8   9   10   11   12   13   >