]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffc2e7136033db052691d01b00c710ec33ead59e
treed37542ca16877dc97c12bcbf1119a3556c7165ea
parent1cd4353be68d0b92cb7af2920d69659555858b02
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