• Linus Walleij's avatar
    ARM: dts: add XOADC and IIO HWMON to APQ8064 · c4b70883
    Linus Walleij authored
    This adds the PM8921 XOADC node to the PM8921 PMIC node,
    defines the channels and further also define an IIO HWMON
    node for the channels that are used for housekeeping of
    voltages and die temperature for the PMIC chip die.
    
    Tested on the Nexus 7 tablet:
    lsiio
    Device 000: PM8921-XOADC
    cd /sys/bus/iio/devices/iio:device0
    cat in_voltage10_input
    616461  (0.625V reference voltage)
    cat in_voltage11_input
     (1.25V reference voltage)
    cat temp1_input
    35852 (die temperature)
    
    Cc: John Stultz <john.stultz@linaro.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
    c4b70883
qcom-apq8064.dtsi 38.9 KB