mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
163d88c4bf
commit
6d2e46885f
|
@ -56,6 +56,11 @@ ps1-presence {
|
|||
};
|
||||
};
|
||||
|
||||
iio-hwmon-battery {
|
||||
compatible = "iio-hwmon";
|
||||
io-channels = <&adc 12>;
|
||||
};
|
||||
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
|
@ -583,3 +588,7 @@ &wdt2 {
|
|||
&ibt {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue