public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] adding support for Microchip PAC194X Power Monitor
@ 2025-03-17  9:08 marius.cristea
  2025-03-17  9:08 ` [PATCH v2 1/2] dt-bindings: iio: adc: adding support for PAC194X marius.cristea
  2025-03-17  9:08 ` [PATCH v2 2/2] " marius.cristea
  0 siblings, 2 replies; 10+ messages in thread
From: marius.cristea @ 2025-03-17  9:08 UTC (permalink / raw)
  To: jic23, lars, robh
  Cc: krzk+dt, conor+dt, oskar.andero, linux-iio, devicetree,
	linux-kernel, marius.cristea

From: Marius Cristea <marius.cristea@microchip.com>

Adding support for Microchip PAC194X and PAC195X series of Power Monitor with
Accumulator chip family. This driver covers the following part numbers:
 - PAC1941, PAC1941_2, PAC1942, PAC1942_2, PAC1943, PAC1944
 - PAC1951, PAC1951_2, PAC1952, PAC1952_2, PAC1953, PAC1954

The PAC194X family supports 9V Full-Scale Range and the PAC195X supports 32V
Full-Scale Range.
There are two versions of the PAC194X/5X: the PAC194X/5X-1 devices are for
high-side current sensing and the PAC194X/5X-2 devices are for low-side current
sensing or floating VBUS applications.
The PAC194X/5X-1 is named shortly PAC194X/5X.

Differences related to previous patch:
v2:
- fix review comments device tree binding:
    remove underscore from names
    add names to the interrupts and list them
    add a better description for new properties
- fix review comments driver:
    fix coding style issues
    use bitmap for checking the active channels
    keep the "pac1944_get_unaligned_be56" here because the change wasn't acceted
      into the asm-generic.
    document new added attributes
    remove the "scan" part till we support buffered capture
    remove "unlikely" marking
    add masks up in some array of const structures to avoid some case statements
    remove pac1944_mutex_destroy function
    replace some functions with a macro (just for testing)
    replace dev_err with dev_err_probe in functions used in pac1944_probe
    
v1:
- first version committed to review

Marius Cristea (2):
  dt-bindings: iio: adc: adding support for PAC194X
  iio: adc: adding support for PAC194X

 .../ABI/testing/sysfs-bus-iio-adc-pac1944     |  118 +
 .../bindings/iio/adc/microchip,pac1944.yaml   |  195 +
 MAINTAINERS                                   |    7 +
 drivers/iio/adc/Kconfig                       |   12 +
 drivers/iio/adc/Makefile                      |    1 +
 drivers/iio/adc/pac1944.c                     | 3314 +++++++++++++++++
 6 files changed, 3647 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-pac1944
 create mode 100644 Documentation/devicetree/bindings/iio/adc/microchip,pac1944.yaml
 create mode 100644 drivers/iio/adc/pac1944.c


base-commit: 577a66e2e634f712384c57a98f504c44ea4b47da
-- 
2.45.2


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

end of thread, other threads:[~2025-03-24  5:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17  9:08 [PATCH v2 0/2] adding support for Microchip PAC194X Power Monitor marius.cristea
2025-03-17  9:08 ` [PATCH v2 1/2] dt-bindings: iio: adc: adding support for PAC194X marius.cristea
2025-03-17 10:20   ` Rob Herring (Arm)
2025-03-17 12:32   ` Jonathan Cameron
2025-03-17  9:08 ` [PATCH v2 2/2] " marius.cristea
2025-03-17 18:47   ` Jonathan Cameron
2025-03-18  7:05   ` kernel test robot
2025-03-18  7:53   ` kernel test robot
2025-03-19  7:30   ` kernel test robot
2025-03-24  5:57   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox