diff options
author | Matt Spinler <mspinler@linux.vnet.ibm.com> | 2018-10-12 18:29:15 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2018-12-03 01:44:10 +0300 |
commit | 6d2e46885f3dfc8b32560f88c5f10cb1c93a3996 (patch) | |
tree | 6bb9eb03bcd8cecf7fab7d9dc1fd831613f39160 /arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | |
parent | 163d88c4bf92721c297ce828c96f4d85367208d9 (diff) | |
download | linux-6d2e46885f3dfc8b32560f88c5f10cb1c93a3996.tar.xz |
ARM: dts: aspeed: wspoon: Enable iio-hwmon battery
The BMC can read the RTC battery voltage via ADC
channel 12.
Signed-off-by: Matt Spinler <spinler@linux.vnet.ibm.com>
Reviewed-by: Lei YU <mine260309@gmail.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts')
-rw-r--r-- | arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts index 656036106001..ad54117c075e 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts @@ -56,6 +56,11 @@ }; }; + iio-hwmon-battery { + compatible = "iio-hwmon"; + io-channels = <&adc 12>; + }; + gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; @@ -583,3 +588,7 @@ &ibt { status = "okay"; }; + +&adc { + status = "okay"; +}; |