From: Patrick Williams <patrick@stwcx.xyz>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH 1/1] ARM: dts: aspeed: bletchley: add sample averaging for ADM1278
Date: Fri, 4 Mar 2022 11:04:35 -0600 [thread overview]
Message-ID: <YiJGo7Tor3IKEToq@heinlein> (raw)
In-Reply-To: <20220304003506.4243-1-potin.lai@quantatw.com>
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 <potin.lai@quantatw.com>
> ---
> 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 at 4c {
> --
> 2.17.1
>
Reviewed-by: Patrick Williams <patrick@stwcx.xyz>
Note that this code depends on ADM1275 support pulled into groeck/linux-staging
already.
https://lore.kernel.org/all/20220222223610.23098-1-linux at roeck-us.net/
--
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20220304/6422146b/attachment-0001.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Patrick Williams <patrick@stwcx.xyz>
To: Potin Lai <potin.lai@quantatw.com>
Cc: Rob Herring <robh+dt@kernel.org>, Joel Stanley <joel@jms.id.au>,
Andrew Jeffery <andrew@aj.id.au>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] ARM: dts: aspeed: bletchley: add sample averaging for ADM1278
Date: Fri, 4 Mar 2022 11:04:35 -0600 [thread overview]
Message-ID: <YiJGo7Tor3IKEToq@heinlein> (raw)
In-Reply-To: <20220304003506.4243-1-potin.lai@quantatw.com>
[-- Attachment #1.1: Type: text/plain, Size: 1081 bytes --]
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 <potin.lai@quantatw.com>
> ---
> 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 <patrick@stwcx.xyz>
Note that this code depends on ADM1275 support pulled into groeck/linux-staging
already.
https://lore.kernel.org/all/20220222223610.23098-1-linux@roeck-us.net/
--
Patrick Williams
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Patrick Williams <patrick@stwcx.xyz>
To: Potin Lai <potin.lai@quantatw.com>
Cc: Rob Herring <robh+dt@kernel.org>, Joel Stanley <joel@jms.id.au>,
Andrew Jeffery <andrew@aj.id.au>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] ARM: dts: aspeed: bletchley: add sample averaging for ADM1278
Date: Fri, 4 Mar 2022 11:04:35 -0600 [thread overview]
Message-ID: <YiJGo7Tor3IKEToq@heinlein> (raw)
In-Reply-To: <20220304003506.4243-1-potin.lai@quantatw.com>
[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]
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 <potin.lai@quantatw.com>
> ---
> 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 <patrick@stwcx.xyz>
Note that this code depends on ADM1275 support pulled into groeck/linux-staging
already.
https://lore.kernel.org/all/20220222223610.23098-1-linux@roeck-us.net/
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-03-04 17:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-04 0:35 [PATCH 1/1] ARM: dts: aspeed: bletchley: add sample averaging for ADM1278 Potin Lai
2022-03-04 0:35 ` Potin Lai
2022-03-04 17:04 ` Patrick Williams [this message]
2022-03-04 17:04 ` Patrick Williams
2022-03-04 17:04 ` Patrick Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YiJGo7Tor3IKEToq@heinlein \
--to=patrick@stwcx.xyz \
--cc=linux-aspeed@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.