public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/5] iio: adc: xilinx-xadc: Add I2C interface support for System Management Wizard
@ 2026-02-20  5:39 Sai Krishna Potthuri
  2026-02-20  5:39 ` [PATCH 1/5] iio: adc: xilinx-xadc: Add helper functions for the device setup Sai Krishna Potthuri
                   ` (5 more replies)
  0 siblings, 6 replies; 27+ messages in thread
From: Sai Krishna Potthuri @ 2026-02-20  5:39 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sa, Andy Shevchenko,
	Michal Simek, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-iio, devicetree, linux-arm-kernel, linux-kernel,
	saikrishna12468, git, Sai Krishna Potthuri

The existing driver only supported AXI memory-mapped access to the System
Management Wizard IP. This series extends the driver to support I2C-based
access, which is particularly useful for System Controller usecases.

Key Changes:
- Extract common probe logic into xadc_device_setup() and
xadc_device_configure().
- Add setup_channels function pointer to ops structure to support
different ways to configure the channels.
- Replace module_platform_driver() macro with custom init and exit
functions to support multiple bus interfaces.
- I2C interface support.
- Convert binding file to YAML format.

Note: We are working on x86 platform support where fixed channel
configuration is used(no DT support). The setup_channels function
pointer introduced in patch 2/3 enables different channel configuration
approaches for various platforms.

Sai Krishna Potthuri (5):
  iio: adc: xilinx-xadc: Add helper functions for the device setup
  iio: adc: xilinx-xadc: Add setup_channels function pointer to ops
    structure
  iio: adc: xilinx-xadc: Replace module macro with custom init/exit
    functions
  iio: adc: xilinx-xadc: Add I2C interface support
  dt-bindings: iio: adc: xilinx-xadc: convert to YAML format

 .../bindings/iio/adc/xilinx-xadc.txt          | 141 ---------
 .../bindings/iio/adc/xilinx-xadc.yaml         | 194 ++++++++++++
 drivers/iio/adc/Kconfig                       |  11 +
 drivers/iio/adc/xilinx-xadc-core.c            | 283 ++++++++++++++++--
 drivers/iio/adc/xilinx-xadc.h                 |   8 +
 5 files changed, 475 insertions(+), 162 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/adc/xilinx-xadc.txt
 create mode 100644 Documentation/devicetree/bindings/iio/adc/xilinx-xadc.yaml

-- 
2.25.1



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

end of thread, other threads:[~2026-03-22  9:55 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20  5:39 [PATCH 0/5] iio: adc: xilinx-xadc: Add I2C interface support for System Management Wizard Sai Krishna Potthuri
2026-02-20  5:39 ` [PATCH 1/5] iio: adc: xilinx-xadc: Add helper functions for the device setup Sai Krishna Potthuri
2026-02-20  7:50   ` Andy Shevchenko
2026-02-20  5:39 ` [PATCH 2/5] iio: adc: xilinx-xadc: Add setup_channels function pointer to ops structure Sai Krishna Potthuri
2026-02-20  7:52   ` Andy Shevchenko
2026-02-20  5:39 ` [PATCH 3/5] iio: adc: xilinx-xadc: Replace module macro with custom init/exit functions Sai Krishna Potthuri
2026-02-20  7:52   ` Andy Shevchenko
2026-02-20  7:54     ` Michal Simek
2026-02-20  8:09       ` Andy Shevchenko
2026-03-18  9:13         ` Sai Krishna Potthuri
2026-03-18  9:46           ` Andy Shevchenko
2026-02-20  5:39 ` [PATCH 4/5] iio: adc: xilinx-xadc: Add I2C interface support Sai Krishna Potthuri
2026-02-20  7:58   ` Andy Shevchenko
2026-02-20  5:39 ` [PATCH 5/5] dt-bindings: iio: adc: xilinx-xadc: convert to YAML format Sai Krishna Potthuri
2026-02-21 10:38   ` Krzysztof Kozlowski
2026-03-19 13:52     ` Sai Krishna Potthuri
2026-03-19 14:23       ` David Lechner
2026-03-19 14:49         ` Sai Krishna Potthuri
2026-03-19 14:58           ` David Lechner
2026-03-19 15:10             ` Sai Krishna Potthuri
2026-03-19 15:35               ` David Lechner
2026-03-19 15:49                 ` Sai Krishna Potthuri
2026-03-19 16:49                   ` Krzysztof Kozlowski
2026-03-19 19:07                     ` David Lechner
2026-03-22  9:55                       ` Krzysztof Kozlowski
2026-02-21 10:39   ` Krzysztof Kozlowski
2026-02-20  8:00 ` [PATCH 0/5] iio: adc: xilinx-xadc: Add I2C interface support for System Management Wizard Andy Shevchenko

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