devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] wmon: (adm1275) Add sample averaging binding support
@ 2022-02-24 15:43 Potin Lai
  2022-02-24 15:43 ` [PATCH v2 1/2] hwmon: (adm1275) Allow setting sample averaging Potin Lai
  2022-02-24 15:43 ` [PATCH v2 2/2] dt-bindings: hwmon: Add sample averaging property for ADM1275 Potin Lai
  0 siblings, 2 replies; 7+ messages in thread
From: Potin Lai @ 2022-02-24 15:43 UTC (permalink / raw)
  To: Guenter Roeck, Jean Delvare, Rob Herring, Krzysztof Kozlowski
  Cc: Patrick Williams, linux-hwmon, linux-kernel, devicetree,
	Potin Lai

This patch series allow user config PWR_AVG and VI_AVG in PMON_CONF
register by adding properties in device tree.

Example:
	adm1278@11 {
		compatible = "adi,adm1278";
		......
		adi,volt-curr-sample-average = /bits/ 8 <0x07>;
		adi,power-sample-average = /bits/ 8 <0x07>;
	};

LINK: [v1] https://lore.kernel.org/all/20220223163817.30583-1-potin.lai@quantatw.com/

Changes v1 --> v2:
- use more descriptive property name
- change property type from u32 to u8 
- add property value check, valid range between 1 and 7

Potin Lai (2):
  hwmon: (adm1275) Allow setting sample averaging
  dt-bindings: hwmon: Add sample averaging property for ADM1275

 .../bindings/hwmon/adi,adm1275.yaml           | 44 +++++++++++++++++++
 drivers/hwmon/pmbus/adm1275.c                 | 33 ++++++++++++++
 2 files changed, 77 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-25  8:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-24 15:43 [PATCH v2 0/2] wmon: (adm1275) Add sample averaging binding support Potin Lai
2022-02-24 15:43 ` [PATCH v2 1/2] hwmon: (adm1275) Allow setting sample averaging Potin Lai
2022-02-24 15:43 ` [PATCH v2 2/2] dt-bindings: hwmon: Add sample averaging property for ADM1275 Potin Lai
2022-02-25  7:06   ` Krzysztof Kozlowski
2022-02-25  7:31     ` Krzysztof Kozlowski
2022-02-25  8:41       ` Guenter Roeck
2022-02-25  8:56         ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).