[PATCH linux dev-4.18] ARM: dts: aspeed: wspoon: Enable iio-hwmon battery
Lei YU
mine260309 at gmail.com
Mon Oct 15 13:15:53 AEDT 2018
On Fri, Oct 12, 2018 at 11:29 PM Matt Spinler
<mspinler at linux.vnet.ibm.com> wrote:
>
> The BMC can read the RTC battery voltage via ADC
> channel 12.
>
> Signed-off-by: Matt Spinler <spinler at linux.vnet.ibm.com>
> ---
> arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> index f4739ec..b933ced 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> @@ -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"
> --
> 1.8.3.1
Reviewed-by: Lei YU <mine260309 at gmail.com>
More information about the openbmc
mailing list