ARM: dts: aspeed: wspoon: Enable iio-hwmon battery
Subsystems (2)
PATCH 1/1 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]>
--- arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +9 -0
@@ -63,6 +63,11 @@ }; }; + iio-hwmon-battery { + compatible = "iio-hwmon"; + io-channels = <&adc 12>; + }; + gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>;
@@ -651,4 +656,8 @@ status = "okay"; }; +&adc { + status = "okay"; +}; + #include "ibm-power9-dual.dtsi"
Signature · 1 line
1.8.3.1
Quoted 35 lines · Matt Spinler
The BMC can read the RTC battery voltage via ADC
channel 12.Signed-off-by Matt Spinler <[email protected]>--- arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +9
-1@@ -63,6 +63,11 @@ }; }; + iio-hwmon-battery { + compatible = "iio-hwmon"; + io-channels = <&adc 12>; + }; + gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>;@@ -651,4 +656,8 @@ status = "okay"; }; +&adc { + status = "okay"; +}; + #include "ibm-power9-dual.dtsi" --
Quoted 1 line
1.8.3.1
Reviewed-by Lei YU <[email protected]>
Quoted 10 lines · Lei YU
Quoted 5 lines · Matt Spinler
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]>
Applied to dev-4.18.
Please submit upstream to linux-aspeed as well.
Cheers,
Joel