[PATCH v2 0/3] MCP3911 fixes

Marcus Folkesson posted 3 patches 7 months, 3 weeks ago
.../bindings/iio/adc/microchip,mcp3911.yaml        |  5 ++
drivers/iio/adc/mcp3911.c                          | 58 ++++++++++++++++++++--
2 files changed, 58 insertions(+), 5 deletions(-)
[PATCH v2 0/3] MCP3911 fixes
Posted by Marcus Folkesson 7 months, 3 weeks ago
This series contain two fixes for the MCP3911 driver:
- Add support for reset signal
- Fix wrong mapping for the coversion result registers

The register map for the conversion result registers of the MCP3911
differs from the other variants so make sure we read from the right
register by introducing device-dependent .read_raw() callbacks.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
Changes in v2:
- Fix review comments from Andy Shevchenko (Thanks Andy!)
- Link to v1: https://lore.kernel.org/r/20250423-mcp3911-fixes-v1-0-5bd0b68ec481@gmail.com

---
Marcus Folkesson (3):
      iio: adc: mcp3911: fix device dependent mappings for conversion result registers
      dt-bindings: iio: adc: mcp3911: add reset-gpios
      iio: adc: mcp3911: add reset management

 .../bindings/iio/adc/microchip,mcp3911.yaml        |  5 ++
 drivers/iio/adc/mcp3911.c                          | 58 ++++++++++++++++++++--
 2 files changed, 58 insertions(+), 5 deletions(-)
---
base-commit: 1e26c5e28ca5821a824e90dd359556f5e9e7b89f
change-id: 20250423-mcp3911-fixes-ef3b2145577d

Best regards,
-- 
Marcus Folkesson <marcus.folkesson@gmail.com>
Re: [PATCH v2 0/3] MCP3911 fixes
Posted by Jonathan Cameron 7 months, 2 weeks ago
On Mon, 28 Apr 2025 08:54:10 +0200
Marcus Folkesson <marcus.folkesson@gmail.com> wrote:

> This series contain two fixes for the MCP3911 driver:
> - Add support for reset signal
> - Fix wrong mapping for the coversion result registers
> 
> The register map for the conversion result registers of the MCP3911
> differs from the other variants so make sure we read from the right
> register by introducing device-dependent .read_raw() callbacks.
Applied to the togreg branch of iio.git and initially pushed out as testing
for 0-day to take a look.

Thanks,

Jonathan

> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> ---
> Changes in v2:
> - Fix review comments from Andy Shevchenko (Thanks Andy!)
> - Link to v1: https://lore.kernel.org/r/20250423-mcp3911-fixes-v1-0-5bd0b68ec481@gmail.com
> 
> ---
> Marcus Folkesson (3):
>       iio: adc: mcp3911: fix device dependent mappings for conversion result registers
>       dt-bindings: iio: adc: mcp3911: add reset-gpios
>       iio: adc: mcp3911: add reset management
> 
>  .../bindings/iio/adc/microchip,mcp3911.yaml        |  5 ++
>  drivers/iio/adc/mcp3911.c                          | 58 ++++++++++++++++++++--
>  2 files changed, 58 insertions(+), 5 deletions(-)
> ---
> base-commit: 1e26c5e28ca5821a824e90dd359556f5e9e7b89f
> change-id: 20250423-mcp3911-fixes-ef3b2145577d
> 
> Best regards,