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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:29 +0000 (09:57 +0200)
commit794f7da40d652607f190fac73488ba4c835fa732
tree0f4912a9ac9f4dd186652994de50776708b8809b
parent75e9562bb4bf81a7943679add020fca161c1cfac
ARM: dts: aspeed: Add ADC for AST2600 and enable for Rainier and Everest

[ Upstream commit eaad40466bd715c4b342ac9f7c889f5281714feb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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