ARM: dts: add XOADC and IIO HWMON to APQ8064
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Feb 2018 10:16:58 +0000 (11:16 +0100)
committerAndy Gross <andy.gross@linaro.org>
Fri, 9 Mar 2018 00:30:06 +0000 (18:30 -0600)
commitc4b70883ee336645bc9841b99322f76efb3de1c4
tree932b8c3ffbe69ac86025f801b11b5edb3ca84d89
parentee2137ad99293eb892d70db9d2486b6b15e99ac0
ARM: dts: add XOADC and IIO HWMON to APQ8064

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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8064.dtsi