* [PATCH linux dev-4.18] ARM: dts: aspeed: wspoon: Enable iio-hwmon battery
@ 2018-10-12 15:29 Matt Spinler
2018-10-15 2:15 ` Lei YU
0 siblings, 1 reply; 3+ messages in thread
From: Matt Spinler @ 2018-10-12 15:29 UTC (permalink / raw)
To: openbmc, joel; +Cc: Matt Spinler, Matt Spinler
The BMC can read the RTC battery voltage via ADC
channel 12.
Signed-off-by: Matt Spinler <spinler@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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH linux dev-4.18] ARM: dts: aspeed: wspoon: Enable iio-hwmon battery
2018-10-12 15:29 [PATCH linux dev-4.18] ARM: dts: aspeed: wspoon: Enable iio-hwmon battery Matt Spinler
@ 2018-10-15 2:15 ` Lei YU
2018-10-21 22:21 ` Joel Stanley
0 siblings, 1 reply; 3+ messages in thread
From: Lei YU @ 2018-10-15 2:15 UTC (permalink / raw)
To: mspinler; +Cc: OpenBMC Maillist, Joel Stanley, spinler
On Fri, Oct 12, 2018 at 11:29 PM Matt Spinler
<mspinler@linux.vnet.ibm.com> wrote:
>
> The BMC can read the RTC battery voltage via ADC
> channel 12.
>
> Signed-off-by: Matt Spinler <spinler@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@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH linux dev-4.18] ARM: dts: aspeed: wspoon: Enable iio-hwmon battery
2018-10-15 2:15 ` Lei YU
@ 2018-10-21 22:21 ` Joel Stanley
0 siblings, 0 replies; 3+ messages in thread
From: Joel Stanley @ 2018-10-21 22:21 UTC (permalink / raw)
To: Lei YU; +Cc: Matt Spinler, OpenBMC Maillist, spinler
On Mon, 15 Oct 2018 at 12:46, Lei YU <mine260309@gmail.com> wrote:
>
> On Fri, Oct 12, 2018 at 11:29 PM Matt Spinler
> <mspinler@linux.vnet.ibm.com> wrote:
> >
> > 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>
Applied to dev-4.18.
Please submit upstream to linux-aspeed as well.
Cheers,
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-21 22:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-12 15:29 [PATCH linux dev-4.18] ARM: dts: aspeed: wspoon: Enable iio-hwmon battery Matt Spinler
2018-10-15 2:15 ` Lei YU
2018-10-21 22:21 ` Joel Stanley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.