2022-03-04 07:08:02

by Potin Lai

[permalink] [raw]
Subject: [PATCH 1/1] ARM: dts: aspeed: bletchley: add sample averaging for ADM1278

set number of sample averaging to 128 for both PWR_AVG and VI_AVG

Signed-off-by: Potin Lai <[email protected]>
---
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
index eaf1bc261ee3..be76cd955129 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
@@ -732,6 +732,8 @@
compatible = "adi,adm1278";
reg = <0x11>;
shunt-resistor-micro-ohms = <300>;
+ adi,volt-curr-sample-average = <128>;
+ adi,power-sample-average = <128>;
};

tmp421@4c {
--
2.17.1


2022-03-04 20:36:17

by Patrick Williams

[permalink] [raw]
Subject: Re: [PATCH 1/1] ARM: dts: aspeed: bletchley: add sample averaging for ADM1278

On Fri, Mar 04, 2022 at 08:35:06AM +0800, Potin Lai wrote:
> set number of sample averaging to 128 for both PWR_AVG and VI_AVG
>
> Signed-off-by: Potin Lai <[email protected]>
> ---
> arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
> index eaf1bc261ee3..be76cd955129 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
> @@ -732,6 +732,8 @@
> compatible = "adi,adm1278";
> reg = <0x11>;
> shunt-resistor-micro-ohms = <300>;
> + adi,volt-curr-sample-average = <128>;
> + adi,power-sample-average = <128>;
> };
>
> tmp421@4c {
> --
> 2.17.1
>

Reviewed-by: Patrick Williams <[email protected]>

Note that this code depends on ADM1275 support pulled into groeck/linux-staging
already.

https://lore.kernel.org/all/[email protected]/

--
Patrick Williams


Attachments:
(No filename) (1.06 kB)
signature.asc (849.00 B)
Download all attachments