phy: marvell: Add support for temperature sensor
authorAndrew Lunn <andrew@lunn.ch>
Fri, 20 Jan 2017 00:37:49 +0000 (01:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 19:42:51 +0000 (14:42 -0500)
commit0b04680fdae464ee51409b8cb36005f6ef8bd689
treed37542ca16877dc97c12bcbf1119a3556c7165ea
parent319554f284dda9f2737d09df82ba3610bd8ddea3
phy: marvell: Add support for temperature sensor

Some Marvell PHYs have an inbuilt temperature sensor. Add hwmon
support for this sensor.

There are two different variants. The simpler, older chips have a 5
degree accuracy. The newer devices have 1 degree accuracy.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c