From: Richard Fitzgerald <rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
To: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Charles Keepax
<ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>,
cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
patches-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org
Subject: Re: [PATCH] extcon: arizona: Update naming for second jack detection DT binding
Date: Fri, 20 Nov 2015 14:55:58 +0000 [thread overview]
Message-ID: <1448031358.3536.39.camel@rf-debian.wolfsonmicro.main> (raw)
In-Reply-To: <20151120143925.GA11632@rob-hp-laptop>
On Fri, 2015-11-20 at 08:39 -0600, Rob Herring wrote:
> On Fri, Nov 20, 2015 at 08:53:59AM +0000, Charles Keepax wrote:
> > Update the name for the second jack detection pin binding to be a little
> > less confusing.
>
> This breaks compatibility with old dtbs. Either the driver needs to
> support both names or you just have to live with the old name.
>
This is a new DT option, it's never gone into a release kernel so there
can't be any dtbs using it.
> >
> > Signed-off-by: Charles Keepax <ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
> > ---
> > .../devicetree/bindings/extcon/extcon-arizona.txt | 4 ++--
> > drivers/extcon/extcon-arizona.c | 4 ++--
> > 2 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/extcon/extcon-arizona.txt b/Documentation/devicetree/bindings/extcon/extcon-arizona.txt
> > index 03fa7b7..da9813b 100644
> > --- a/Documentation/devicetree/bindings/extcon/extcon-arizona.txt
> > +++ b/Documentation/devicetree/bindings/extcon/extcon-arizona.txt
> > @@ -14,9 +14,9 @@ Optional properties:
> > If this node is not mentioned or if the value is unknown, then
> > headphone detection mode is set to HPDETL.
> >
> > - - wlf,use-jd-gpio : Use GPIO input along with JD1 for dual pin jack
> > + - wlf,use-jd2 : Use the additional JD input along with JD1 for dual pin jack
> > detection.
> > - - wlf,use-jd-gpio-nopull : Internal pull on GPIO is disabled when used for
> > + - wlf,use-jd2-nopull : Internal pull on JD2 is disabled when used for
> > jack detection.
> > - wlf,jd-invert : Invert the polarity of the jack detection switch
> >
> > diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
> > index 7c9598d..c377030 100644
> > --- a/drivers/extcon/extcon-arizona.c
> > +++ b/drivers/extcon/extcon-arizona.c
> > @@ -1245,9 +1245,9 @@ static int arizona_extcon_device_get_pdata(struct arizona *arizona)
> > device_property_read_u32(arizona->dev, "wlf,gpsw", &pdata->gpsw);
> >
> > pdata->jd_gpio5 = device_property_read_bool(arizona->dev,
> > - "wlf,use-jd-gpio");
> > + "wlf,use-jd2");
> > pdata->jd_gpio5_nopull = device_property_read_bool(arizona->dev,
> > - "wlf,use-jd-gpio-nopull");
> > + "wlf,use-jd2-nopull");
> >
> > return 0;
> > }
> > --
> > 1.7.2.5
> >
> > --
> > 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
--
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: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
To: Rob Herring <robh@kernel.org>
Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>,
<cw00.choi@samsung.com>, <myungjoo.ham@samsung.com>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<patches@opensource.wolfsonmicro.com>
Subject: Re: [PATCH] extcon: arizona: Update naming for second jack detection DT binding
Date: Fri, 20 Nov 2015 14:55:58 +0000 [thread overview]
Message-ID: <1448031358.3536.39.camel@rf-debian.wolfsonmicro.main> (raw)
In-Reply-To: <20151120143925.GA11632@rob-hp-laptop>
On Fri, 2015-11-20 at 08:39 -0600, Rob Herring wrote:
> On Fri, Nov 20, 2015 at 08:53:59AM +0000, Charles Keepax wrote:
> > Update the name for the second jack detection pin binding to be a little
> > less confusing.
>
> This breaks compatibility with old dtbs. Either the driver needs to
> support both names or you just have to live with the old name.
>
This is a new DT option, it's never gone into a release kernel so there
can't be any dtbs using it.
> >
> > Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> > ---
> > .../devicetree/bindings/extcon/extcon-arizona.txt | 4 ++--
> > drivers/extcon/extcon-arizona.c | 4 ++--
> > 2 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/extcon/extcon-arizona.txt b/Documentation/devicetree/bindings/extcon/extcon-arizona.txt
> > index 03fa7b7..da9813b 100644
> > --- a/Documentation/devicetree/bindings/extcon/extcon-arizona.txt
> > +++ b/Documentation/devicetree/bindings/extcon/extcon-arizona.txt
> > @@ -14,9 +14,9 @@ Optional properties:
> > If this node is not mentioned or if the value is unknown, then
> > headphone detection mode is set to HPDETL.
> >
> > - - wlf,use-jd-gpio : Use GPIO input along with JD1 for dual pin jack
> > + - wlf,use-jd2 : Use the additional JD input along with JD1 for dual pin jack
> > detection.
> > - - wlf,use-jd-gpio-nopull : Internal pull on GPIO is disabled when used for
> > + - wlf,use-jd2-nopull : Internal pull on JD2 is disabled when used for
> > jack detection.
> > - wlf,jd-invert : Invert the polarity of the jack detection switch
> >
> > diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
> > index 7c9598d..c377030 100644
> > --- a/drivers/extcon/extcon-arizona.c
> > +++ b/drivers/extcon/extcon-arizona.c
> > @@ -1245,9 +1245,9 @@ static int arizona_extcon_device_get_pdata(struct arizona *arizona)
> > device_property_read_u32(arizona->dev, "wlf,gpsw", &pdata->gpsw);
> >
> > pdata->jd_gpio5 = device_property_read_bool(arizona->dev,
> > - "wlf,use-jd-gpio");
> > + "wlf,use-jd2");
> > pdata->jd_gpio5_nopull = device_property_read_bool(arizona->dev,
> > - "wlf,use-jd-gpio-nopull");
> > + "wlf,use-jd2-nopull");
> >
> > return 0;
> > }
> > --
> > 1.7.2.5
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe devicetree" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-11-20 14:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 8:53 [PATCH] extcon: arizona: Update naming for second jack detection DT binding Charles Keepax
2015-11-20 8:53 ` Charles Keepax
[not found] ` <1448009639-5331-1-git-send-email-ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2015-11-20 14:13 ` Chanwoo Choi
2015-11-20 14:13 ` Chanwoo Choi
2015-11-20 14:39 ` Rob Herring
2015-11-20 14:51 ` Chanwoo Choi
2015-11-20 14:51 ` Chanwoo Choi
2015-11-20 14:55 ` Richard Fitzgerald [this message]
2015-11-20 14:55 ` Richard Fitzgerald
[not found] ` <1448031358.3536.39.camel-WeElTRBN8n0bEPBeyYQi64iQ8/zYDDdY1BehtkLrGTY@public.gmane.org>
2015-11-20 16:00 ` Rob Herring
2015-11-20 16:00 ` Rob Herring
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=1448031358.3536.39.camel@rf-debian.wolfsonmicro.main \
--to=rf-yzvpicuk2aatku/dhu1wvuem+bqzidxxqq4iyu8u01e@public.gmane.org \
--cc=ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=patches-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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.