All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/6] hwmon: pmbus: adm1266: add support
@ 2020-08-12 14:20 alexandru.tachici
  2020-08-12 14:20 ` [PATCH v8 1/6] " alexandru.tachici
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: alexandru.tachici @ 2020-08-12 14:20 UTC (permalink / raw)
  To: linux-hwmon, linux-kernel, devicetree; +Cc: robh+dt, linux, Alexandru Tachici

From: Alexandru Tachici <alexandru.tachici@analog.com>

Add PMBus probing driver for the adm1266 Cascadable
Super Sequencer with Margin Control and Fault Recording.
Driver is using the pmbus_core, creating sysfs files
under hwmon for inputs: vh1->vh4 and vp1->vp13.

1. Add PMBus probing driver for inputs vh1->vh4
and vp1->vp13.

2. Add Block Write-Read Process Call command.
A PMBus specific implementation was required because
block write with I2C_SMBUS_PROC_CALL flag allows a
maximum of 32 bytes to be received.

3. This makes adm1266 driver expose GPIOs
to user-space. Currently are read only. Future
developments on the firmware will allow
them to be writable.

4. Allow the current sate of the sequencer to be read
through debugfs.

5. Blackboxes are 64 bytes of chip state related data
that is generated on faults. Use the nvmem kernel api
to expose the blackbox chip functionality to userspace.

6. DT bindings for ADM1266.

Alexandru Tachici (6):
  hwmon: pmbus: adm1266: add support
  hwmon: pmbus: adm1266: Add Block process call
  hwmon: pmbus: adm1266: Add support for GPIOs
  hwmon: pmbus: adm1266: add debugfs for states
  hwmon: pmbus: adm1266: read blackbox
  dt-bindings: hwmon: Add bindings for ADM1266

Changelog v7 -> v8:
  - removed firmware/config programming
  - in adm1266_pmbus_block_xfer unlock buf mutex on error paths
  - added "depends on GPIOLIB" in kconfig ("select GPIOLIB" triggers a
  recursive dependency error)
  - removed cell access check (only blackbox cell will be used)
  - removed #if IS_ENABLED(CONFIG_NVMEM)
  - dt-bindings: removed adi,master-adm1266 property

 .../bindings/hwmon/adi,adm1266.yaml           |  51 ++
 Documentation/hwmon/adm1266.rst               |  37 ++
 Documentation/hwmon/index.rst                 |   1 +
 drivers/hwmon/pmbus/Kconfig                   |  11 +
 drivers/hwmon/pmbus/Makefile                  |   1 +
 drivers/hwmon/pmbus/adm1266.c                 | 513 ++++++++++++++++++
 6 files changed, 614 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/adi,adm1266.yaml
 create mode 100644 Documentation/hwmon/adm1266.rst
 create mode 100644 drivers/hwmon/pmbus/adm1266.c

-- 
2.20.1


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

end of thread, other threads:[~2020-08-22 16:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 14:20 [PATCH v8 0/6] hwmon: pmbus: adm1266: add support alexandru.tachici
2020-08-12 14:20 ` [PATCH v8 1/6] " alexandru.tachici
2020-08-12 14:20 ` [PATCH v8 2/6] hwmon: pmbus: adm1266: Add Block process call alexandru.tachici
2020-08-12 14:20 ` [PATCH v8 3/6] hwmon: pmbus: adm1266: Add support for GPIOs alexandru.tachici
2020-08-12 14:20 ` [PATCH v8 4/6] hwmon: pmbus: adm1266: add debugfs for states alexandru.tachici
2020-08-12 14:20 ` [PATCH v8 5/6] hwmon: pmbus: adm1266: read blackbox alexandru.tachici
2020-08-12 14:20 ` [PATCH v8 6/6] dt-bindings: hwmon: Add bindings for ADM1266 alexandru.tachici
2020-08-12 16:44   ` Rob Herring
2020-08-22 16:21 ` [PATCH v8 0/6] hwmon: pmbus: adm1266: add support Guenter Roeck

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.