Commit 281b4318 authored by Olivier Moysan's avatar Olivier Moysan Committed by Jonathan Cameron
Browse files

dt-bindings: iio: add backend support to sd modulator



The legacy sd modulator driver registers the sigma delta modulator as
an IIO channel provider. This implementation is not convenient when the
SD modulator has to be cascaded with another IIO device. The scaling
information is distributed across devices, which makes it difficult to
report consistent scaling data on IIO devices.

The solution is to expose these cascaded IIO devices as an aggregate
device, which report global scaling information.
Add IIO backend support to SD modulator to allow scaling information
management.

Signed-off-by: default avatarOlivier Moysan <olivier.moysan@foss.st.com>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240730084640.1307938-6-olivier.moysan@foss.st.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent b8f31b1d
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -18,18 +18,32 @@ properties:
      - sd-modulator
      - ads1201

  '#io-backend-cells':
    const: 0

  '#io-channel-cells':
    const: 0

required:
  - compatible
  - '#io-channel-cells'

anyOf:
  - required: ['#io-backend-cells']
  - required: ['#io-channel-cells']

additionalProperties: false

examples:
  - |
    ads1202: adc {
    // Backend binding example. SD modulator configured as an IIO backend device
    ads1201_0: adc {
      compatible = "sd-modulator";
      #io-backend-cells = <0>;
    };

  - |
    // Legacy binding example. SD modulator configured as an IIO channel provider
    ads1201_1: adc {
      compatible = "sd-modulator";
      #io-channel-cells = <0>;
    };