From: Song Qiang <songqiang1304521@gmail.com>
To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de,
pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com,
preid@electromag.com.au, himanshujha199640@gmail.com
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Song Qiang <songqiang1304521@gmail.com>
Subject: [PATCH v4 0/3] Add support for PNI RM3100 magnetometer
Date: Fri, 12 Oct 2018 15:35:33 +0800 [thread overview]
Message-ID: <20181012073536.20339-1-songqiang1304521@gmail.com> (raw)
In-Reply-To: <20181002143812.3661-1-songqiang1304521@gmail.com>
Hi,
The next 3 patches do the following:
- The first patch adds PNI Sensor Corporation to the vendor prefix list.
- The second patch adds devicetree binding for RM3100 magnetometer.
- The third patch adds the driver for RM3100 magnetometer.
-- Song Qiang
Changes in v4:
- Fix a bug about regmap_range configurations.
- Add DRDY trigger support.
- Change DRDY interrupt trigger source from RISING to HIGH.
- Add a thread function to clear the interrupt.
- Change the logic of one-shot read from waiting next continuous ends to
writing to POLL register and waiting conversion ends.
- Add iio_buffer_setup_ops to enable continuous conversion only when
buffer is enabled.
- Add active_scan_mask check in continuous conversions.
- Remove *wait_measurement() in *trigger_handler().
Changes in v3:
- Change PNI to PNI Sensor Corporation in vendor-prefix.txt.
- Sort header files in alpabetical order.
- Add more specific doc for the mutex.
- Fix the bug in the rm3100_set_cycle_count() where we always set the
cycle count value to 100 no matter what val is.
- Change some multiple else if to switch.
- Remove iio_device_release_direct_mode() in the case claim direct mode
fails.
- Use the same buffer in rm3100_trigger_handler().
- Add space around some operators.
- Add manually unwind functions in case devm_add_action() fails.
- Move devm_add_action before the devm_iio_device_register().
- Move register defines and rm3100_data struct to *-core.c.
- Change some storage variable type of regmap from int to unsigned int.
- Change 10e4 to 10^4.
- Remove explicit cast of data pointer in rm3100_remove().
- Remve dev in rm3100_data and use regmap_get_device() to obtain device
pointer instead.
- Change register bits alignment in defines.
- Move RM3100_SCAN_BYTES to the top.
- Change Channel endieness from LE to BE.
- Adjust the place of comment about the 3 second wait time.
- Some spell check.
Changes in v2:
- Add scale channel.
- Add EXPORT_SYMBOL_GPL() to export regmap confuguration structures.
- Add sampling frequency available attribute.
- Clean up headers and License declarations.
- Change axis number to 3.
- Remove bus specific part in compatible string.
- Remove le32_to_cpu().
- Check cycle count registers at *_probe().
- Format comments.
- Spell check.
- Change prefix from RM_* to RM3100_*.
- Check all error return paths.
- Add devm_add_action() to avoid race condition when remove.
Song Qiang (3):
dt-bindings: Add PNI to the vendor prefixes.
iio: magnetometer: Add DT support for PNI RM3100
iio: magnetometer: Add driver support for PNI RM3100
.../bindings/iio/magnetometer/pni,rm3100.txt | 20 +
.../devicetree/bindings/vendor-prefixes.txt | 1 +
MAINTAINERS | 7 +
drivers/iio/magnetometer/Kconfig | 29 +
drivers/iio/magnetometer/Makefile | 4 +
drivers/iio/magnetometer/rm3100-core.c | 627 ++++++++++++++++++
drivers/iio/magnetometer/rm3100-i2c.c | 58 ++
drivers/iio/magnetometer/rm3100-spi.c | 64 ++
drivers/iio/magnetometer/rm3100.h | 17 +
9 files changed, 827 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt
create mode 100644 drivers/iio/magnetometer/rm3100-core.c
create mode 100644 drivers/iio/magnetometer/rm3100-i2c.c
create mode 100644 drivers/iio/magnetometer/rm3100-spi.c
create mode 100644 drivers/iio/magnetometer/rm3100.h
--
2.17.1
next prev parent reply other threads:[~2018-10-12 7:36 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-25 3:17 [PATCH 1/2] iio: magnetometer: Add DT support for PNI RM3100 Song Qiang
2018-09-25 3:17 ` [PATCH 2/2] iio: magnetometer: Add driver " Song Qiang
2018-09-25 13:30 ` Jonathan Cameron
2018-09-25 14:36 ` Phil Reid
2018-09-26 1:49 ` Song Qiang
2018-09-26 2:30 ` Phil Reid
2018-09-26 8:09 ` Song Qiang
2018-09-27 1:57 ` Phil Reid
2018-09-29 11:37 ` Jonathan Cameron
2018-09-26 1:33 ` Song Qiang
2018-09-29 11:45 ` Jonathan Cameron
2018-09-25 17:50 ` Himanshu Jha
2018-09-26 2:24 ` Song Qiang
2018-09-25 13:05 ` [PATCH 1/2] iio: magnetometer: Add DT " Jonathan Cameron
2018-10-02 14:38 ` [PATCH v3 0/3] Add support for PNI RM3100 magnetometer Song Qiang
2018-10-02 14:38 ` [PATCH v3 1/3] dt-bindings: Add PNI to the vendor prefixes Song Qiang
2018-10-02 14:38 ` [PATCH v3 2/3] dt-bindings: Add PNI RM3100 device tree binding Song Qiang
2018-10-07 15:18 ` Jonathan Cameron
2018-10-07 15:20 ` Jonathan Cameron
2018-10-02 14:38 ` [PATCH v3 3/3] iio: magnetometer: Add driver support for PNI RM3100 Song Qiang
2018-10-03 1:42 ` Phil Reid
2018-10-07 15:07 ` Jonathan Cameron
2018-10-07 15:44 ` Jonathan Cameron
2018-10-11 4:35 ` Song Qiang
2018-10-13 9:24 ` Jonathan Cameron
2018-10-12 7:35 ` Song Qiang [this message]
2018-10-12 7:35 ` [PATCH v4 1/3] dt-bindings: Add PNI to the vendor prefixes Song Qiang
2018-10-12 11:36 ` Rob Herring
2018-10-12 7:35 ` [PATCH v4 2/3] iio: magnetometer: Add DT support for PNI RM3100 Song Qiang
2018-10-12 11:37 ` Rob Herring
2018-10-12 7:35 ` [PATCH v4 3/3] iio: magnetometer: Add driver " Song Qiang
2018-10-12 8:36 ` Song Qiang
2018-10-12 12:53 ` Himanshu Jha
2018-10-17 8:00 ` Song Qiang
2018-10-21 14:08 ` Jonathan Cameron
2018-10-13 10:19 ` Jonathan Cameron
2018-10-18 8:24 ` Song Qiang
2018-10-21 14:14 ` Jonathan Cameron
2018-11-02 7:55 ` Song Qiang
2018-11-02 9:24 ` Jonathan Cameron
2018-11-05 0:39 ` Song Qiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181012073536.20339-1-songqiang1304521@gmail.com \
--to=songqiang1304521@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=himanshujha199640@gmail.com \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pmeerw@pmeerw.net \
--cc=preid@electromag.com.au \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).