From: "Pollak, Leonard" <pollak@tr-host.de>
To: linux-iio@vger.kernel.org, jic23@kernel.org
Subject: Add ADE9000 driver to staging:iio:meter?
Date: Tue, 13 Aug 2019 11:25:14 +0200 [thread overview]
Message-ID: <60e09b1c93eb54a6f8042ece9d34da80@tr-host.de> (raw)
Hi,
I have written a driver for the ADE9000. It has enough functionality to
calibrate the device
and use it for energy metering. This was tested on a Raspberry Pi 3
which i also have
a dts for if anyone is interested.
There are some quirks though since the ABI doesn't really make it easy
on this kind of device.
For example: my driver (ab)uses the iio modifiers x and y to distinguish
between Wh and VAh.
There are other issues with the driver I can think of (especially the
channel definitions).
I think if you would want a more complete implementation of this IC as
an iio device one would
need to start adding modifiers/types to the iio chan spec which would
probably need a lot
of discussion. Since this is the first driver I have written for the
linux kernel don't
expect too much, but I am commited to learn and happy to implement any
suggestions for
making this a nice driver in the future :)
For now, I have forked the kernel tree from GKH made a patch and cleaned
it up with checkpatch.pl
should I just send the driver as a patch is there anything else I need
to do beforehand?
Regards,
Leo
next reply other threads:[~2019-08-13 9:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-13 9:25 Pollak, Leonard [this message]
2019-08-26 9:44 ` Add ADE9000 driver to staging:iio:meter? Jonathan Cameron
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=60e09b1c93eb54a6f8042ece9d34da80@tr-host.de \
--to=pollak@tr-host.de \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.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 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.