All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Add Richtek RTQ6056 support
@ 2022-07-06 14:11 cy_huang
  2022-07-06 14:11 ` [PATCH v5 1/2] dt-bindings: iio: adc: Add rtq6056 adc support cy_huang
  2022-07-06 14:11 ` [PATCH v5 2/2] iio: adc: Add rtq6056 support cy_huang
  0 siblings, 2 replies; 10+ messages in thread
From: cy_huang @ 2022-07-06 14:11 UTC (permalink / raw)
  To: jic23, robh+dt, krzysztof.kozlowski+dt
  Cc: lars, cy_huang, linux-iio, linux-kernel, devicetree

From: ChiYuan Huang <cy_huang@richtek.com>

This patch series is to enable Richtek RTQ6056 support.

The RTQ6056 is a high accuracy current-sense monitor with I2C interface, and
the device provides full information for system by reading out the load current
and power.

Since v5
- Fix kernel version text for ABI.

Since v4
- Add '__aligned(8)' for timestamp member.
- Declare timestamp from 'int64_t' to more unified 's64'.

Since v3
- change the node name to be generic 'adc' in binding example.
- Refine pm_runtime API calling order in 'read_channel' API.
- Fix vshunt wrong scale for divider.
- Refine the comment text.
- Use 'devm_add_action_or_reset' to decrease the code usage in probe
  function.
- Use RUNTIME_PM_OPS to replace SET_RUNTIME_PM_OPS.
- minor fix for the comma.
- Use pm_ptr to replace the direct assigned pm_ops.

Since v2
- Change the resistor property name to be generic 'shunt-resistor-micro-ohms'.
- Rename file from 'rtq6056-adc' to 'rtq6056'.
- Refine the ABI, if generic already defined it, remove it and check the channel
  report unit.
- Add copyright text.
- include the correct header.
- change the property parsing name.
- To use iio_chan_spec address field.
- Refine each channel separate and shared_by_all.
- Use pm_runtime and pm_runtime_autosuspend.
- Remove the shutdown callback. From the HW suggestion, it's not recommended to
  use battery as the power supply.
- Check all scale unit (voltage->mV, current->mA, power->milliWatt).
- Use the read_avail to provide the interface for attribute value list.
- Add comma for the last element in the const integer array.
- Refine each ADC label text.
- In read_label callback, replace snprintf to sysfs_emit.

ChiYuan Huang (2):
  dt-bindings: iio: adc: Add rtq6056 adc support
  iio: adc: Add rtq6056 support

 .../ABI/testing/sysfs-bus-iio-adc-rtq6056          |   6 +
 .../bindings/iio/adc/richtek,rtq6056.yaml          |  56 ++
 drivers/iio/adc/Kconfig                            |  15 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/iio/adc/rtq6056.c                          | 651 +++++++++++++++++++++
 5 files changed, 729 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-rtq6056
 create mode 100644 Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.yaml
 create mode 100644 drivers/iio/adc/rtq6056.c

-- 
2.7.4


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

end of thread, other threads:[~2022-07-18  5:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06 14:11 [PATCH v5 0/2] Add Richtek RTQ6056 support cy_huang
2022-07-06 14:11 ` [PATCH v5 1/2] dt-bindings: iio: adc: Add rtq6056 adc support cy_huang
2022-07-06 14:11 ` [PATCH v5 2/2] iio: adc: Add rtq6056 support cy_huang
2022-07-07 17:30   ` Jonathan Cameron
2022-07-11  2:48     ` ChiYuan Huang
2022-07-11  3:16       ` ChiYuan Huang
2022-07-16 17:39         ` Jonathan Cameron
2022-07-18  5:44           ` ChiYuan Huang
2022-07-16 17:37       ` Jonathan Cameron
2022-07-18  3:24         ` ChiYuan Huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.