From: Doug Anderson <dianders@chromium.org>
To: Lee Jones <lee.jones@linaro.org>,
Wolfram Sang <wsa@the-dreams.de>, Mark Brown <broonie@kernel.org>
Cc: Vincent Palatin <vpalatin@chromium.org>,
Bill Richardson <wfrichar@chromium.org>,
Randall Spangler <rspangler@chromium.org>,
sjg@chromium.org, afaerber@suse.de, stephan@synkhronix.com,
olof@lixom.net, Doug Anderson <dianders@chromium.org>,
sameo@linux.intel.com, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org
Subject: [PATCH 0/3] Add support for limited i2c tunnel for exynos5250-spring
Date: Fri, 27 Jun 2014 12:56:10 -0700 [thread overview]
Message-ID: <1403898973-19571-1-git-send-email-dianders@chromium.org> (raw)
This patches series possibly adds support for getting to the battery
and tps65090 device on exynos5250-spring. I have simulated things on
exynos5420-peach-pit and found that this seems to work OK and I can
talk to both the battery and tps65090. I have simulated this on
exynos5250-snow and found that it properly detects that the full I2C
passhtrough isn't available. I don't have a Spring (or Skate) setup
for upstream testing right now but I figured possibly Andreas would be
interested in testing this.
As discussed in patch #3 this code path on the EC is not actually
exercised on production kernels but I think it should be solid and get
us up and running quickly. I think this is also a cleaner solution
than what's in production kernels but possibly folks will be able to
come up with benefits of and arguments for using the specialized
regulator and battery commands to talk to the EC.
Someone interested in using this should add the cros ec tunnel to
their spring device tree and see what happens. Note that this limited
tunnel doesn't actually export anything that's useful for i2cdetect to
use so to test you pretty much just need to add an sbs_battery and see
if it works.
I may not have tons of time for spinning this series so possibly
someone in the community who is interested in getting
exynos5250-spring supported would be interested in following up with
any needed review feedback. I certainly wouldn't be offended.
As is probably obvious this patch series is based atop all of the
existing posted (and ACKed) cros_ec cleanups that I've sent up.
Doug Anderson (3):
regmap: cache: regcache_hw_init() should use regmap_bulk_read()
mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c
result
i2c: cros_ec: Support a limited i2c tunnel for exynos5250-spring
drivers/base/regmap/regcache.c | 2 +-
drivers/i2c/busses/i2c-cros-ec-tunnel.c | 92 ++++++++++++++++++++++++++++++++-
drivers/mfd/cros_ec_i2c.c | 15 ++++--
3 files changed, 104 insertions(+), 5 deletions(-)
--
2.0.0.526.g5318336
next reply other threads:[~2014-06-27 19:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 19:56 Doug Anderson [this message]
2014-06-27 19:56 ` [PATCH 1/3] regmap: cache: regcache_hw_init() should use regmap_bulk_read() Doug Anderson
2014-07-03 14:55 ` Mark Brown
2014-06-27 19:56 ` [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result Doug Anderson
2014-06-30 19:36 ` Simon Glass
2014-07-02 7:23 ` Lee Jones
2014-07-02 15:51 ` Doug Anderson
2014-07-03 6:38 ` Lee Jones
2014-06-27 19:56 ` [PATCH 3/3] i2c: cros_ec: Support a limited i2c tunnel for exynos5250-spring Doug Anderson
2014-06-27 21:44 ` Doug Anderson
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=1403898973-19571-1-git-send-email-dianders@chromium.org \
--to=dianders@chromium.org \
--cc=afaerber@suse.de \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=lee.jones@linaro.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olof@lixom.net \
--cc=rspangler@chromium.org \
--cc=sameo@linux.intel.com \
--cc=sjg@chromium.org \
--cc=stephan@synkhronix.com \
--cc=vpalatin@chromium.org \
--cc=wfrichar@chromium.org \
--cc=wsa@the-dreams.de \
/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).