APF51 PMIC
From ArmadeusWiki
Page under construction... Informations on this page are not guaranteed !!
APF51 has a Wolfson WM8311 Power Management IC (PMIC), which adds to the i.MX51 some useful functionalities. This page explain how to use them.
Contents
RTC
Voltage supervisor / Battery charger
- Load driver:
# modprobe wm831x_power wm831x 1-0034: No battery charger configuration
- If power supplied with Wall (main power supply):
# cat /sys/class/power_supply/wm831x-wall/online 1 # cat /sys/class/power_supply/wm831x-wall/voltage_now 4550290 (? micro volts ?)
- others:
# ls /sys/class/power_supply/ wm831x-battery wm831x-usb wm831x-wall
ADC / Temperature
- Load driver:
# modprobe wm831x-hwmon
- Show what we can do:
# ls /sys/class/hwmon/hwmon0/device/ driver in3_input in6_input in8_label temp1_input hwmon in4_input in6_label modalias temp1_label in0_input in4_label in7_input name temp2_input in1_input in5_input in7_label power temp2_label in2_input in5_label in8_input subsystem uevent
- temperatures:
# cat /sys/class/hwmon/hwmon0/device/temp1_label PMIC # cat /sys/class/hwmon/hwmon0/device/temp1_input 65720 # cat /sys/class/hwmon/hwmon0/device/temp2_label Battery # cat /sys/class/hwmon/hwmon0/device/temp2_input 1327
- analog values: only
Touchscreen
- load driver:
# modprobe wm831x-ts
- then everything else is generic and driven by Tslib
GPIO
TBDL
Links
- WM8311 Datasheet: