ARM: dts: aspeed: Add ADC for AST2600 and enable for Rainier and Everest
authorEddie James <eajames@linux.ibm.com>
Thu, 16 Sep 2021 21:00:45 +0000 (16:00 -0500)
committerJoel Stanley <joel@jms.id.au>
Wed, 22 Sep 2021 03:31:04 +0000 (13:01 +0930)
commiteaad40466bd715c4b342ac9f7c889f5281714feb
treecb4f5ce15b205ff8867ae47b4ab91b10543057cf
parent1390293eac487166fc6a4b11060c6ac84ad5fc39
ARM: dts: aspeed: Add ADC for AST2600 and enable for Rainier and Everest

Add the ADC nodes to the AST2600 devicetree. Enable ADC1 for Rainier and
Everest systems and add an iio-hwmon node for the 7th channel to report
the battery voltage.

Tested on Rainier:
~# cat /sys/class/hwmon/hwmon11/in1_input
1347

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210916210045.31769-1-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
arch/arm/boot/dts/aspeed-g6.dtsi