Skip to content

drivers:iio:dac: Add AD3552R driver support

Mihail Chindris linux-devicetree linux-iio lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 3 repliesIn review
  2. v6 posting 2/21 of 2 patches 3 repliesSuperseded
  3. v6 posting 1/22 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v52 patches4 repliesSuperseded
v42 patches1 replySuperseded
v32 patches2 repliesSuperseded
v22 patches6 repliesSuperseded

Changes in v7 from the cover letter

- https://lore.kernel.org/all/[email protected]/
- Fix yaml errors
- Fix yaml styling (blank lines and indentation)
- set adi,output-range-microvolt: true

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: iio: dac: Add adi,ad3552r.yamlDocumentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml+217 -02 replies
2/2drivers:iio:dac: Add AD3552R driver supportdrivers/iio/dac/Kconfig drivers/iio/dac/Makefile drivers/iio/dac/ad3552r.c+1149 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/2] drivers:iio:dac: Add AD3552R driver support

Changelog v6 -> v7:
- https://lore.kernel.org/all/[email protected]/
- Fix yaml errors
- Fix yaml styling (blank lines and indentation)
- set adi,output-range-microvolt: true

Changelog v5 -> v6:
- https://lore.kernel.org/all/[email protected]/
- Add dt maintainers (forgotten on previous emails)
- (1 << 7) -> BIT(7)
- Remove buf_data from ad3552r_desc to use spi_write_then_read and update lock comment
- Remove useless comments
- Remove unused mask from ad3552r_configure_custom_gain
- In ad3552r_configure_device refactor regulator code, add regulator_enable and add ad3552r_reg_disable
- Remove unused code like:

      AD3552R_CH_TRIGGER_SOFTWARE_LDAC and AD3552R_CH_HW_LDAC_MASK

Changelog v4 -> v5:
- https://lore.kernel.org/all/[email protected]
- Add changelog for previous version
- Extend lock comment
- Remove unused variable is_custom

Changelog v3 -> v4:
- https://lore.kernel.org/all/[email protected]
- Remove trigger.h
- Use dev_err_probe only where needed
- Add comment about buff size
- Fix mutex order
- Return from all switch cases
- Return int in ad3552r_read_reg_wrapper
- Add goto put_child where missing
- Restructure ad3552r_write_codes
- Move ad3552r_write_codes nex to ad3552r_trigger_handler
- Use memcpy and memcmp in ad3552r_write_codes
- Remove endieness functions in ad3552r_write_codes

Changelog v2 -> v3:
- https://lore.kernel.org/all/[email protected]
- Order compatilbe in alphabetic order
- Fix comments in yaml
- Grup struct by types
- Drop usless "if (err)"
- Handle error in ad3552r_read_reg_wrapper
- ad3552r_find_range: u32 -> s32
- Add fwnode_handle_put(custom_gain_child); in good path too
- Vals[0] -> val
- Fix: fwnode_handle_put in ad3552r_configure_device
- Fix indio_dev->name
- Rename custom_gain_child -> gain_child
- Remove intermediary functions and write code inline where possible
- Add ad3552r_field_prep helper function
- Dev_err -> dev_warn for vref supply check
- Replace dev_err with dev_err_probe
- Remove channel for simultaneous update and do update mask register if both channels values are the same.

Changelog v0 -> v2:
- Split https://lore.kernel.org/all/[email protected]
and move ad3552r driver to this serie.
- Remove precision_mode abi
- Remove adi,synch_channels dt property
- Use vref-supply instead of adi,vref-select
- Remove unimplemented spi modes
- Change output-range format and use enums
- Update description for custom-output-range-config to be more clear
- Add datasheet tag
- Use GENMASK for defines
- Remove tomicro define
- Use get_unaligned_be16 and put_unaligned_be16
- Remove unnecessary checks
- Add comment for AD3552R_CH_DAC_PAGE channel
- Fix indent
- Remove irq trigger
- Remove irelevant checks
- Rename ad3552r_read_reg_pool to ad3552r_read_reg_wrapper.
- Add support for ad3542r

V0:
* Add ad3552r example to https://lore.kernel.org/linux-iio/[email protected]

Mihail Chindris (2):
dt-bindings: iio: dac: Add adi,ad3552r.yaml
drivers:iio:dac: Add AD3552R driver support

 .../bindings/iio/dac/adi,ad3552r.yaml         |  217 ++++
 drivers/iio/dac/Kconfig                       |   10 +
 drivers/iio/dac/Makefile                      |    1 +
 drivers/iio/dac/ad3552r.c                     | 1138 +++++++++++++++++
 4 files changed, 1366 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml
 create mode 100644 drivers/iio/dac/ad3552r.c

base-commit: 29adf99733e95621dfbebaf9ae548b4da8316aaf

Signature · 1 line
2.27.0