All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] pmbus: extend configurability via sysfs
@ 2019-04-10 22:38 Adamski, Krzysztof (Nokia - PL/Wroclaw)
  2019-04-10 22:38 ` [PATCH 1/3] pmbus: support for custom sysfs attributes Adamski, Krzysztof (Nokia - PL/Wroclaw)
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Adamski, Krzysztof (Nokia - PL/Wroclaw) @ 2019-04-10 22:38 UTC (permalink / raw)
  To: Guenter Roeck, Jean Delvare
  Cc: linux-hwmon@vger.kernel.org, Sverdlin, Alexander (Nokia - DE/Ulm)

Hi,

This patch series extends pmbus core for two specific use cases we have:
- First two patches allows lm25066 driver to export custom sysfs entry
  for controlling manufacturer specific SAMPLES_FOR_AVG register. It is
  useful to be able to set this register when using any of the *_average
  registers, especially since the default value means we are averaging 1
  sample which isn't that useful.
- Third patch exports m, b, R coefficients so that they can be adjusted
  by user space. We can't use default coefficients values and in order
  to achieve high accuracy, we calibrate then per device so using
  device-tree or similar concepts to store them is not an option too.
  Thus, we export it so that the logic of loading proper coeffs can
  be implemented in user space instead.

Krzysztof Adamski (3):
  pmbus: support for custom sysfs attributes
  lm25066: export sysfs attribute for SAMPLES_FOR_AVG
  pmbus: export coefficients via sysfs

 drivers/hwmon/pmbus/lm25066.c    |  45 +++++++++++++
 drivers/hwmon/pmbus/pmbus.h      |   3 +
 drivers/hwmon/pmbus/pmbus_core.c | 109 ++++++++++++++++++++++++++++++-
 3 files changed, 155 insertions(+), 2 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-04-11 14:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-10 22:38 [PATCH 0/3] pmbus: extend configurability via sysfs Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-10 22:38 ` [PATCH 1/3] pmbus: support for custom sysfs attributes Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-11  0:35   ` Guenter Roeck
2019-04-11  7:53     ` Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-11 13:19       ` Guenter Roeck
2019-04-10 22:39 ` [PATCH 2/3] lm25066: export sysfs attribute for SAMPLES_FOR_AVG Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-11  0:55   ` Guenter Roeck
2019-04-11  4:24     ` Nicolin Chen
2019-04-11  8:09       ` Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-11 13:07         ` Guenter Roeck
2019-04-11 14:12           ` Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-10 22:39 ` [PATCH 3/3] pmbus: export coefficients via sysfs Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-11  0:30   ` Guenter Roeck
2019-04-11  7:45     ` Adamski, Krzysztof (Nokia - PL/Wroclaw)
2019-04-11 13:39       ` Guenter Roeck
2019-04-11 14:09         ` Adamski, Krzysztof (Nokia - PL/Wroclaw)

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.