]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: Kirkwood: Add support thermal sensor for 88F6282 and 88F6283
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 6 Feb 2013 06:35:25 +0000 (07:35 +0100)
committerJason Cooper <jason@lakedaemon.net>
Tue, 12 Mar 2013 11:33:13 +0000 (11:33 +0000)
Kirkwood 88F6282 and 88F6283 have a thermal sensor.
This patch adds a DT node and enables the driver in the kernel config.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood-6282.dtsi
arch/arm/configs/kirkwood_defconfig

index 192cf76fbf93ca92914a76df62b9fd45bf892249..23991e45bc55f946609e84cc319c81aeed6d0122 100644 (file)
                        };
                };
 
+               thermal@10078 {
+                       compatible = "marvell,kirkwood-thermal";
+                       reg = <0x10078 0x4>;
+                       status = "okay";
+               };
+
                i2c@11100 {
                        compatible = "marvell,mv64xxx-i2c";
                        reg = <0x11100 0x20>;
index 13482ea58b09e2007e140b87b66ac151938b036c..8f0065bb6f3934e042aaee26ce33e558f5ec7994 100644 (file)
@@ -119,6 +119,8 @@ CONFIG_SPI=y
 CONFIG_SPI_ORION=y
 CONFIG_GPIO_SYSFS=y
 # CONFIG_HWMON is not set
+CONFIG_THERMAL=y
+CONFIG_KIRKWOOD_THERMAL=y
 CONFIG_WATCHDOG=y
 CONFIG_ORION_WATCHDOG=y
 CONFIG_HID_DRAGONRISE=y