17ebd8b66SMauro Carvalho ChehabKernel driver wm831x-hwmon 27ebd8b66SMauro Carvalho Chehab========================== 37ebd8b66SMauro Carvalho Chehab 47ebd8b66SMauro Carvalho ChehabSupported chips: 57ebd8b66SMauro Carvalho Chehab * Wolfson Microelectronics WM831x PMICs 67ebd8b66SMauro Carvalho Chehab 77ebd8b66SMauro Carvalho Chehab Prefix: 'wm831x' 87ebd8b66SMauro Carvalho Chehab 97ebd8b66SMauro Carvalho Chehab Datasheet: 107ebd8b66SMauro Carvalho Chehab 117ebd8b66SMauro Carvalho Chehab - http://www.wolfsonmicro.com/products/WM8310 127ebd8b66SMauro Carvalho Chehab - http://www.wolfsonmicro.com/products/WM8311 137ebd8b66SMauro Carvalho Chehab - http://www.wolfsonmicro.com/products/WM8312 147ebd8b66SMauro Carvalho Chehab 157ebd8b66SMauro Carvalho ChehabAuthors: Mark Brown <broonie@opensource.wolfsonmicro.com> 167ebd8b66SMauro Carvalho Chehab 177ebd8b66SMauro Carvalho ChehabDescription 187ebd8b66SMauro Carvalho Chehab----------- 197ebd8b66SMauro Carvalho Chehab 207ebd8b66SMauro Carvalho ChehabThe WM831x series of PMICs include an AUXADC which can be used to 217ebd8b66SMauro Carvalho Chehabmonitor a range of system operating parameters, including the voltages 227ebd8b66SMauro Carvalho Chehabof the major supplies within the system. Currently the driver provides 237ebd8b66SMauro Carvalho Chehabreporting of all the input values but does not provide any alarms. 247ebd8b66SMauro Carvalho Chehab 257ebd8b66SMauro Carvalho ChehabVoltage Monitoring 267ebd8b66SMauro Carvalho Chehab------------------ 277ebd8b66SMauro Carvalho Chehab 287ebd8b66SMauro Carvalho ChehabVoltages are sampled by a 12 bit ADC. Voltages in millivolts are 1.465 297ebd8b66SMauro Carvalho Chehabtimes the ADC value. 307ebd8b66SMauro Carvalho Chehab 317ebd8b66SMauro Carvalho ChehabTemperature Monitoring 327ebd8b66SMauro Carvalho Chehab---------------------- 337ebd8b66SMauro Carvalho Chehab 347ebd8b66SMauro Carvalho ChehabTemperatures are sampled by a 12 bit ADC. Chip and battery temperatures 357ebd8b66SMauro Carvalho Chehabare available. The chip temperature is calculated as: 367ebd8b66SMauro Carvalho Chehab 377ebd8b66SMauro Carvalho Chehab Degrees celsius = (512.18 - data) / 1.0983 387ebd8b66SMauro Carvalho Chehab 397ebd8b66SMauro Carvalho Chehabwhile the battery temperature calculation will depend on the NTC 407ebd8b66SMauro Carvalho Chehabthermistor component. 41