From: mporter@linaro.org (Matt Porter)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] mfd: bcm590xx: add support for second i2c slave address space
Date: Thu, 17 Apr 2014 18:30:04 -0400 [thread overview]
Message-ID: <20140417223004.GL23695@beef> (raw)
In-Reply-To: <20140416110603.GA19671@lee--X1>
On Wed, Apr 16, 2014 at 12:06:03PM +0100, Lee Jones wrote:
> On Mon, 14 Apr 2014, Matt Porter wrote:
>
> > BCM590xx utilizes a second i2c slave address to access additional
>
> s/i2c/I2C
>
> > register space. Add support for the second address space by
> > instantiated a dummy i2c device with the appropriate secondary
>
> s/instantiated/instantiating
>
> > i2c slave address. Expose a second regmap register space so that
>
> s/i2c/I2C
>
> Exposing?
>
> s/regmap/Regmap
>
> > mfd drivers can access this secondary i2c slave address space.
>
> s/mfd/MFD
>
> s/i2c/I2C
Ok, I'll fix the capitalization and wording..except for regmap as
noted by Mark.
>
> > Signed-off-by: Matt Porter <mporter@linaro.org>
> > ---
> > drivers/mfd/bcm590xx.c | 60 +++++++++++++++++++++++++++++++++-----------
> > include/linux/mfd/bcm590xx.h | 9 ++++---
> > 2 files changed, 52 insertions(+), 17 deletions(-)
> >
> > diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c
> > index e9a33c7..b710ffa 100644
> > --- a/drivers/mfd/bcm590xx.c
> > +++ b/drivers/mfd/bcm590xx.c
> > @@ -28,39 +28,71 @@ static const struct mfd_cell bcm590xx_devs[] = {
> > },
> > };
> >
> > -static const struct regmap_config bcm590xx_regmap_config = {
> > +static const struct regmap_config bcm590xx_regmap_config_0 = {
>
> Not loving _0 and _1 appendages.
>
> Is one of them {primary|master} and the other {secondary|slave}?
I guess from a Linux I2C subsystem, we can view _1 as the
"secondary"...it does correspond the the i2c_new_dummy() device
that we create in the mfd probe. That device corresponds to the
ADDMAP=1 address on the PMU. This is why I used those appendages.
-Matt
WARNING: multiple messages have this Message-ID (diff)
From: Matt Porter <mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Devicetree List
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Tim Kryger <tim.kryger-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Markus Mayer
<markus.mayer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux ARM Kernel List
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: [PATCH 2/4] mfd: bcm590xx: add support for second i2c slave address space
Date: Thu, 17 Apr 2014 18:30:04 -0400 [thread overview]
Message-ID: <20140417223004.GL23695@beef> (raw)
In-Reply-To: <20140416110603.GA19671@lee--X1>
On Wed, Apr 16, 2014 at 12:06:03PM +0100, Lee Jones wrote:
> On Mon, 14 Apr 2014, Matt Porter wrote:
>
> > BCM590xx utilizes a second i2c slave address to access additional
>
> s/i2c/I2C
>
> > register space. Add support for the second address space by
> > instantiated a dummy i2c device with the appropriate secondary
>
> s/instantiated/instantiating
>
> > i2c slave address. Expose a second regmap register space so that
>
> s/i2c/I2C
>
> Exposing?
>
> s/regmap/Regmap
>
> > mfd drivers can access this secondary i2c slave address space.
>
> s/mfd/MFD
>
> s/i2c/I2C
Ok, I'll fix the capitalization and wording..except for regmap as
noted by Mark.
>
> > Signed-off-by: Matt Porter <mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> > ---
> > drivers/mfd/bcm590xx.c | 60 +++++++++++++++++++++++++++++++++-----------
> > include/linux/mfd/bcm590xx.h | 9 ++++---
> > 2 files changed, 52 insertions(+), 17 deletions(-)
> >
> > diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c
> > index e9a33c7..b710ffa 100644
> > --- a/drivers/mfd/bcm590xx.c
> > +++ b/drivers/mfd/bcm590xx.c
> > @@ -28,39 +28,71 @@ static const struct mfd_cell bcm590xx_devs[] = {
> > },
> > };
> >
> > -static const struct regmap_config bcm590xx_regmap_config = {
> > +static const struct regmap_config bcm590xx_regmap_config_0 = {
>
> Not loving _0 and _1 appendages.
>
> Is one of them {primary|master} and the other {secondary|slave}?
I guess from a Linux I2C subsystem, we can view _1 as the
"secondary"...it does correspond the the i2c_new_dummy() device
that we create in the mfd probe. That device corresponds to the
ADDMAP=1 address on the PMU. This is why I used those appendages.
-Matt
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Matt Porter <mporter@linaro.org>
To: Lee Jones <lee.jones@linaro.org>
Cc: Devicetree List <devicetree@vger.kernel.org>,
Samuel Ortiz <sameo@linux.intel.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Tim Kryger <tim.kryger@linaro.org>,
Markus Mayer <markus.mayer@linaro.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux ARM Kernel List <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 2/4] mfd: bcm590xx: add support for second i2c slave address space
Date: Thu, 17 Apr 2014 18:30:04 -0400 [thread overview]
Message-ID: <20140417223004.GL23695@beef> (raw)
In-Reply-To: <20140416110603.GA19671@lee--X1>
On Wed, Apr 16, 2014 at 12:06:03PM +0100, Lee Jones wrote:
> On Mon, 14 Apr 2014, Matt Porter wrote:
>
> > BCM590xx utilizes a second i2c slave address to access additional
>
> s/i2c/I2C
>
> > register space. Add support for the second address space by
> > instantiated a dummy i2c device with the appropriate secondary
>
> s/instantiated/instantiating
>
> > i2c slave address. Expose a second regmap register space so that
>
> s/i2c/I2C
>
> Exposing?
>
> s/regmap/Regmap
>
> > mfd drivers can access this secondary i2c slave address space.
>
> s/mfd/MFD
>
> s/i2c/I2C
Ok, I'll fix the capitalization and wording..except for regmap as
noted by Mark.
>
> > Signed-off-by: Matt Porter <mporter@linaro.org>
> > ---
> > drivers/mfd/bcm590xx.c | 60 +++++++++++++++++++++++++++++++++-----------
> > include/linux/mfd/bcm590xx.h | 9 ++++---
> > 2 files changed, 52 insertions(+), 17 deletions(-)
> >
> > diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c
> > index e9a33c7..b710ffa 100644
> > --- a/drivers/mfd/bcm590xx.c
> > +++ b/drivers/mfd/bcm590xx.c
> > @@ -28,39 +28,71 @@ static const struct mfd_cell bcm590xx_devs[] = {
> > },
> > };
> >
> > -static const struct regmap_config bcm590xx_regmap_config = {
> > +static const struct regmap_config bcm590xx_regmap_config_0 = {
>
> Not loving _0 and _1 appendages.
>
> Is one of them {primary|master} and the other {secondary|slave}?
I guess from a Linux I2C subsystem, we can view _1 as the
"secondary"...it does correspond the the i2c_new_dummy() device
that we create in the mfd probe. That device corresponds to the
ADDMAP=1 address on the PMU. This is why I used those appendages.
-Matt
next prev parent reply other threads:[~2014-04-17 22:30 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 18:50 [PATCH 0/4] Support additional regulators on BCM590xx Matt Porter
2014-04-14 18:50 ` Matt Porter
2014-04-14 18:50 ` Matt Porter
2014-04-14 18:50 ` [PATCH 1/4] mfd: bcm590xx: update binding with additional BCM59056 regulators Matt Porter
2014-04-14 18:50 ` Matt Porter
2014-04-14 18:50 ` Matt Porter
2014-04-14 18:50 ` [PATCH 2/4] mfd: bcm590xx: add support for second i2c slave address space Matt Porter
2014-04-14 18:50 ` Matt Porter
2014-04-16 11:06 ` Lee Jones
2014-04-16 11:06 ` Lee Jones
2014-04-16 11:06 ` Lee Jones
2014-04-16 21:31 ` Mark Brown
2014-04-16 21:31 ` Mark Brown
2014-04-16 21:31 ` Mark Brown
2014-04-17 6:57 ` Lee Jones
2014-04-17 6:57 ` Lee Jones
2014-04-17 6:57 ` Lee Jones
2014-04-17 22:26 ` Matt Porter
2014-04-17 22:26 ` Matt Porter
2014-04-17 22:26 ` Matt Porter
2014-04-22 8:21 ` Lee Jones
2014-04-22 8:21 ` Lee Jones
2014-04-23 22:01 ` Matt Porter
2014-04-23 22:01 ` Matt Porter
2014-04-23 22:05 ` Matt Porter
2014-04-23 22:05 ` Matt Porter
2014-04-28 9:29 ` Lee Jones
2014-04-28 9:29 ` Lee Jones
2014-04-28 9:29 ` Lee Jones
2014-04-17 22:30 ` Matt Porter [this message]
2014-04-17 22:30 ` Matt Porter
2014-04-17 22:30 ` Matt Porter
2014-04-14 18:50 ` [PATCH 3/4] regulator: bcm590xx: add support for regulators on secondary i2c slave Matt Porter
2014-04-14 18:50 ` Matt Porter
2014-04-14 19:59 ` Mark Brown
2014-04-14 19:59 ` Mark Brown
2014-04-14 18:50 ` [PATCH 4/4] ARM: dts: bcm590xx: add support for GPLDO and VBUS regulators Matt Porter
2014-04-14 18:50 ` Matt Porter
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=20140417223004.GL23695@beef \
--to=mporter@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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.