devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/10] thermal: Armada 375/380 SoC support
@ 2014-04-24 20:23 Ezequiel Garcia
  2014-04-24 20:23 ` [PATCH v2 01/10] thermal: armada: Rename armada_thermal_ops struct Ezequiel Garcia
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Ezequiel Garcia @ 2014-04-24 20:23 UTC (permalink / raw)
  To: linux-pm, linux-arm-kernel
  Cc: Jason Cooper, Zhang Rui, Sebastian Hesselbarth, Andrew Lunn,
	Thomas Petazzoni, Gregory Clement, Lior Amsalem, Tawfik Bayouk,
	devicetree, Ezequiel Garcia

This patchset adds the support for the thermal sensor in the recently
introduced Armada 375 and 38x SoC. Compared to the previous patchset
version, this v2 introduces the A380 SoC support.

The first five patches are preparation work. They add a generic
infrastructure that allows to support similar thermal sensors in
a non-intrusive way.

Patches six and seven uses this infrastructure to support the 
Armada 375 and 380 SoC thermal sensor.

Since there are some issues in the Armada 375 Z1 SoC thermal sensor,
patch eight adds a quirk to workaround such issues. The Z1 silicon stepping
is detected and the compatible string is updated, so the driver can apply
sensor initialization workarounds.

In addition, the quirk moves the offset of the thermal control register,
and allows to specifiy the correct (A0 stepping) offset in the devicetree.
This quirk is applied only for the A375-DB board, being the only board known
to have the problematic Z1 SoC.

Finally, the last two patches enables the thermal sensor in the devicetree.
for the Armada 375 A0 stepping SoC, and the Armada 380/385 SoCs.

The series applies on v3.15-rc1, and has been tested on A375-DB board
and A385-DB board.

Feedback and comments are welcome!

Changes from v1:

  * Introduced the Armada 380 support. In order to support this in a clean
    way, the 'inverted' field was added.

  * Cleaned the A375 workaround in the thermal driver, by detecting the
    device compatible string, as suggested by Jason Cooper.

  * Added details about the register offset in the Z1 stepping to the
    binding documentation as requested by Jason Cooper.

Ezequiel Garcia (10):
  thermal: armada: Rename armada_thermal_ops struct
  thermal: armada: Add infrastructure to support generic formulas
  thermal: armada: Add generic infrastructure to handle the sensor
  thermal: armada: Pass the platform_device to init_sensor()
  thermal: armada: Allow to specify an 'inverted readout' sensor
  thermal: armada: Support Armada 375 SoC
  thermal: armada: Support Armada 380 SoC
  ARM: mvebu: Add thermal quirk for the Armada 375 DB board
  ARM: mvebu: Enable the thermal sensor in Armada 375 SoC
  ARM: mvebu: Enable the thermal sensor in Armada 380/385 SoC

 .../devicetree/bindings/thermal/armada-thermal.txt |  12 +-
 arch/arm/boot/dts/armada-375.dtsi                  |   6 +
 arch/arm/boot/dts/armada-38x.dtsi                  |   6 +
 arch/arm/mach-mvebu/board-v7.c                     |  57 ++++++++
 arch/arm/mach-mvebu/mvebu-soc-id.h                 |   3 +
 drivers/thermal/armada_thermal.c                   | 158 ++++++++++++++++++---
 6 files changed, 222 insertions(+), 20 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-04-28 18:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24 20:23 [PATCH v2 00/10] thermal: Armada 375/380 SoC support Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 01/10] thermal: armada: Rename armada_thermal_ops struct Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 02/10] thermal: armada: Add infrastructure to support generic formulas Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 03/10] thermal: armada: Add generic infrastructure to handle the sensor Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 04/10] thermal: armada: Pass the platform_device to init_sensor() Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 05/10] thermal: armada: Allow to specify an 'inverted readout' sensor Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 06/10] thermal: armada: Support Armada 375 SoC Ezequiel Garcia
     [not found] ` <1398371004-15807-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-04-24 20:23   ` [PATCH v2 07/10] thermal: armada: Support Armada 380 SoC Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 08/10] ARM: mvebu: Add thermal quirk for the Armada 375 DB board Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 09/10] ARM: mvebu: Enable the thermal sensor in Armada 375 SoC Ezequiel Garcia
2014-04-24 20:23 ` [PATCH v2 10/10] ARM: mvebu: Enable the thermal sensor in Armada 380/385 SoC Ezequiel Garcia
2014-04-28 16:44   ` Ezequiel Garcia
2014-04-28 18:33     ` Jason Cooper
2014-04-26  0:55 ` [PATCH v2 00/10] thermal: Armada 375/380 SoC support Jason Cooper
2014-04-26  1:45   ` Ezequiel Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).