[linux,dev-4.10] ARM: dts: aspeed: zaius: move coin battery sensor

Message ID 20171206020008.2562-1-venture@google.com
State Accepted, archived
Headers show
Series
  • [linux,dev-4.10] ARM: dts: aspeed: zaius: move coin battery sensor
Related show

Commit Message

Patrick Venture Dec. 6, 2017, 2 a.m.
Moved the coin battery sensor into a separate iio-hwmon
instance to facilitate reading it as a separate hwmon instance.

Naming of ADC inputs in follow-on patchset.

Signed-off-by: Patrick Venture <venture@google.com>
---
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Joel Stanley Dec. 8, 2017, 6:27 a.m. | #1
On Wed, Dec 6, 2017 at 12:30 PM, Patrick Venture <venture@google.com> wrote:
> Moved the coin battery sensor into a separate iio-hwmon
> instance to facilitate reading it as a separate hwmon instance.
>
> Naming of ADC inputs in follow-on patchset.
>
> Signed-off-by: Patrick Venture <venture@google.com>

Applied to dev-4.10.

Cheers,

Joel

> ---
>  arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> index 5f6a11ad93d4..17f2000d5cd5 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> @@ -102,7 +102,12 @@
>                 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
>                         <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
>                         <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
> -                       <&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>;
> +                       <&adc 13>, <&adc 14>, <&adc 15>;
> +       };
> +
> +       iio-hwmon-battery {
> +               compatible = "iio-hwmon";
> +               io-channels = <&adc 12>;
>         };
>  };
>
> --
> 2.15.0.531.g2ccb3012c9-goog
>

Patch

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
index 5f6a11ad93d4..17f2000d5cd5 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
@@ -102,7 +102,12 @@ 
 		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
 			<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
 			<&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
-			<&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>;
+			<&adc 13>, <&adc 14>, <&adc 15>;
+	};
+
+	iio-hwmon-battery {
+		compatible = "iio-hwmon";
+		io-channels = <&adc 12>;
 	};
 };