Commit 163d88c4 authored by Lei YU's avatar Lei YU Committed by Joel Stanley

ARM: dts: aspeed: romulus: Enable iio-hwmon-battery

Add iio-hwmon-battery using adc channel 12 and enable adc to make
adc running. This channel is used to read RTC battery voltage.

Note with Romulus hardware design, it requires GPIOR3 to be pulled
high to read the voltage, otherwise the reading is 0.
When GPIOR3 is high, it consumes battery and impacts the battery life.
So it is left for user space to toggle the GPIO when trying to read the
voltage.
Signed-off-by: default avatarLei YU <mine260309@gmail.com>
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
parent 89b32a47
...@@ -85,6 +85,11 @@ id-button { ...@@ -85,6 +85,11 @@ id-button {
linux,code = <ASPEED_GPIO(Q, 7)>; linux,code = <ASPEED_GPIO(Q, 7)>;
}; };
}; };
iio-hwmon-battery {
compatible = "iio-hwmon";
io-channels = <&adc 12>;
};
}; };
&fmc { &fmc {
...@@ -287,3 +292,7 @@ &ibt { ...@@ -287,3 +292,7 @@ &ibt {
&vhub { &vhub {
status = "okay"; status = "okay";
}; };
&adc {
status = "okay";
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment