From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ezequiel Garcia Subject: [PATCH 00/16] Marvell EBU thermal sensor consolidation Date: Wed, 20 Mar 2013 19:36:21 -0300 Message-ID: <1363818997-23137-1-git-send-email-ezequiel.garcia@free-electrons.com> Return-path: Received: from mail.free-electrons.com ([94.23.35.102]:50521 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753846Ab3CTWgm (ORCPT ); Wed, 20 Mar 2013 18:36:42 -0400 Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: linux-arm-kernel@lists.infradead.org Cc: Zhang Rui , linux-pm@vger.kernel.org, Thomas Petazzoni , Gregory Clement , Nobuhiro Iwamatsu , Andrew Lunn , Jason Cooper , Florian Fainelli , Sebastian Hesselbarth , Lior Amsalem , Ezequiel Garcia This patchset is my first attempt at adding basic thermal sensor support on Armada 370 and Armada XP. Given Armada 370/XP and the other Marvell SoC with thermal support, namely Kirkwood and Dove, have fairly similar thermal devices it made sense to integrate all of them into a single driver: mvebu-thermal. The patches have been carefully splitted to make the changeset as less invasive as possible. These changes can be divided in five stages: 1. Rename 'kirkwood' driver to 'mvebu' 2. Some fixes inherited from kirkwood driver applied to new mvebu driver 3. Prepare mvebu driver to support multiple SoC 4. Add thermal support for each Marvell SoC on top of mvebu driver 5. Add device tree nodes for Armada 370 and Armada XP 6. Fix defconfigs for all the platforms involved Testing have been done on the following boards: Kirkwood: Plat'home Openblocks A6 Armada 370: Globalscale Mirabox and Marvell Armada 370 RD Armada XP: Plat'home Openblocks AX3 and Marvell Armada XP DB-MV784MP-GP Dove is *not* tested due to lack of hardware. Also, please note that the defconfigs for involved platforms have been fixed deliberately in a single patch, to ease maintainer's job as the defconfigs file goes through one tree and the thermal driver should go through another. Since I'm merging two existing drivers into a new driver, I retained authorship and copyright of the merged drivers and added my own. For this reason, I'd like to have Andrew and Nobuhiro Acked (or Nacked, of course). Any feedback or comments are welcome! Ezequiel Garcia (16): thermal: Rename driver 'kirkwood' -> 'mvebu' thermal: mvebu: Rename symbols 'kirkwood' -> 'mvebu' thermal: mvebu: Move MODULE_DEVICE_TABLE upwards thermal: mvebu: Remove unneeded variable initialization thermal: mvebu: Fix valid check for thermal register thermal: mvebu: Convert to devm_ioremap_resource() thermal: mvebu: Fix license declaration thermal: mvebu: Fix temperature output formula for kirkwood thermal: mvebu: Rename kirkwood definitions to mvebu thermal: mvebu: Add infrastructure to support more multiple SoC variants thermal: mvebu: Add support for Armada XP thermal sensor thermal: mvebu: Add support for Armada 370 thermal sensor thermal: mvebu: Add support for Marvell Dove SoC family ARM: mvebu: Add thermal support to Armada XP device tree ARM: mvebu: Add thermal support to Armada 370 device tree ARM: configs: Update mvebu, dove and kirkwood defconfigs for thermal .../devicetree/bindings/thermal/dove-thermal.txt | 18 - .../bindings/thermal/kirkwood-thermal.txt | 15 - .../devicetree/bindings/thermal/mvebu-thermal.txt | 31 ++ arch/arm/boot/dts/armada-370.dtsi | 6 + arch/arm/boot/dts/armada-xp.dtsi | 6 + arch/arm/configs/dove_defconfig | 2 +- arch/arm/configs/kirkwood_defconfig | 2 +- arch/arm/configs/mvebu_defconfig | 2 + drivers/thermal/Kconfig | 18 +- drivers/thermal/Makefile | 3 +- drivers/thermal/dove_thermal.c | 209 ------------ drivers/thermal/kirkwood_thermal.c | 134 -------- drivers/thermal/mvebu_thermal.c | 342 ++++++++++++++++++++ 13 files changed, 395 insertions(+), 393 deletions(-) delete mode 100644 Documentation/devicetree/bindings/thermal/dove-thermal.txt delete mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt create mode 100644 Documentation/devicetree/bindings/thermal/mvebu-thermal.txt delete mode 100644 drivers/thermal/dove_thermal.c delete mode 100644 drivers/thermal/kirkwood_thermal.c create mode 100644 drivers/thermal/mvebu_thermal.c -- 1.7.8.6 From mboxrd@z Thu Jan 1 00:00:00 1970 From: ezequiel.garcia@free-electrons.com (Ezequiel Garcia) Date: Wed, 20 Mar 2013 19:36:21 -0300 Subject: [PATCH 00/16] Marvell EBU thermal sensor consolidation Message-ID: <1363818997-23137-1-git-send-email-ezequiel.garcia@free-electrons.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This patchset is my first attempt at adding basic thermal sensor support on Armada 370 and Armada XP. Given Armada 370/XP and the other Marvell SoC with thermal support, namely Kirkwood and Dove, have fairly similar thermal devices it made sense to integrate all of them into a single driver: mvebu-thermal. The patches have been carefully splitted to make the changeset as less invasive as possible. These changes can be divided in five stages: 1. Rename 'kirkwood' driver to 'mvebu' 2. Some fixes inherited from kirkwood driver applied to new mvebu driver 3. Prepare mvebu driver to support multiple SoC 4. Add thermal support for each Marvell SoC on top of mvebu driver 5. Add device tree nodes for Armada 370 and Armada XP 6. Fix defconfigs for all the platforms involved Testing have been done on the following boards: Kirkwood: Plat'home Openblocks A6 Armada 370: Globalscale Mirabox and Marvell Armada 370 RD Armada XP: Plat'home Openblocks AX3 and Marvell Armada XP DB-MV784MP-GP Dove is *not* tested due to lack of hardware. Also, please note that the defconfigs for involved platforms have been fixed deliberately in a single patch, to ease maintainer's job as the defconfigs file goes through one tree and the thermal driver should go through another. Since I'm merging two existing drivers into a new driver, I retained authorship and copyright of the merged drivers and added my own. For this reason, I'd like to have Andrew and Nobuhiro Acked (or Nacked, of course). Any feedback or comments are welcome! Ezequiel Garcia (16): thermal: Rename driver 'kirkwood' -> 'mvebu' thermal: mvebu: Rename symbols 'kirkwood' -> 'mvebu' thermal: mvebu: Move MODULE_DEVICE_TABLE upwards thermal: mvebu: Remove unneeded variable initialization thermal: mvebu: Fix valid check for thermal register thermal: mvebu: Convert to devm_ioremap_resource() thermal: mvebu: Fix license declaration thermal: mvebu: Fix temperature output formula for kirkwood thermal: mvebu: Rename kirkwood definitions to mvebu thermal: mvebu: Add infrastructure to support more multiple SoC variants thermal: mvebu: Add support for Armada XP thermal sensor thermal: mvebu: Add support for Armada 370 thermal sensor thermal: mvebu: Add support for Marvell Dove SoC family ARM: mvebu: Add thermal support to Armada XP device tree ARM: mvebu: Add thermal support to Armada 370 device tree ARM: configs: Update mvebu, dove and kirkwood defconfigs for thermal .../devicetree/bindings/thermal/dove-thermal.txt | 18 - .../bindings/thermal/kirkwood-thermal.txt | 15 - .../devicetree/bindings/thermal/mvebu-thermal.txt | 31 ++ arch/arm/boot/dts/armada-370.dtsi | 6 + arch/arm/boot/dts/armada-xp.dtsi | 6 + arch/arm/configs/dove_defconfig | 2 +- arch/arm/configs/kirkwood_defconfig | 2 +- arch/arm/configs/mvebu_defconfig | 2 + drivers/thermal/Kconfig | 18 +- drivers/thermal/Makefile | 3 +- drivers/thermal/dove_thermal.c | 209 ------------ drivers/thermal/kirkwood_thermal.c | 134 -------- drivers/thermal/mvebu_thermal.c | 342 ++++++++++++++++++++ 13 files changed, 395 insertions(+), 393 deletions(-) delete mode 100644 Documentation/devicetree/bindings/thermal/dove-thermal.txt delete mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt create mode 100644 Documentation/devicetree/bindings/thermal/mvebu-thermal.txt delete mode 100644 drivers/thermal/dove_thermal.c delete mode 100644 drivers/thermal/kirkwood_thermal.c create mode 100644 drivers/thermal/mvebu_thermal.c -- 1.7.8.6