[PATCH linux dev-5.15 RESEND 0/2] hwmon: (adm1275) Add sample averaging binding support

Potin Lai potin.lai at quantatw.com
Mon Apr 18 19:17:26 AEST 2022


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

Example:
	adm1278 at 11 {
		compatible = "adi,adm1278";
		......
		adi,volt-curr-sample-average = <128>;
		adi,power-sample-average = <128>;
	};

Link: https://lore.kernel.org/all/20220302123817.27025-1-potin.lai@quantatw.com/

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

 .../bindings/hwmon/adi,adm1275.yaml           | 68 +++++++++++++++++++
 drivers/hwmon/pmbus/adm1275.c                 | 40 ++++++++++-
 2 files changed, 107 insertions(+), 1 deletion(-)

-- 
2.17.1



More information about the openbmc mailing list