diff options
author | Matt Spinler <[email protected]> | 2018-10-12 10:29:15 -0500 |
---|---|---|
committer | Joel Stanley <[email protected]> | 2018-12-03 09:14:10 +1030 |
commit | 6d2e46885f3dfc8b32560f88c5f10cb1c93a3996 (patch) | |
tree | 6bb9eb03bcd8cecf7fab7d9dc1fd831613f39160 | |
parent | 163d88c4bf92721c297ce828c96f4d85367208d9 (diff) |
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 <[email protected]>
Reviewed-by: Lei YU <[email protected]>
Signed-off-by: Joel Stanley <[email protected]>
-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"; +}; |