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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html