forked from Ivasoft/openwrt
mpc85xx: HiveAP-330: add tmp125 temperature sensor
the Aerohive HiveAP-330 and HiveAP-350 come equipped with an TI TMP125 temperature chip. This patch wires up the necessary support for this sensor and exposes it through hwmon / thermal sensor framework. Upstream support is coming, but it has to go through hwmon-next first. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
led-running = &led_power_green;
|
||||
led-upgrade = &led_fault_red;
|
||||
label-mac-device = &enet0;
|
||||
spi0 = &spi0;
|
||||
};
|
||||
|
||||
memory {
|
||||
@@ -113,6 +114,14 @@
|
||||
board_soc: soc: soc@ffe00000 {
|
||||
ranges = <0x0 0x0 0xffe00000 0x100000>;
|
||||
|
||||
spi0: spi@7000 {
|
||||
temperature-sensor@1 {
|
||||
compatible = "ti,tmp125";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <5000000>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c@3100 {
|
||||
tpm@29 {
|
||||
compatible = "atmel,at97sc3204t";
|
||||
|
||||
Reference in New Issue
Block a user