Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1273888 > unrolled thread

[PATCH] extcon: arizona: Update naming for second jack detection DT binding

Started byCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
First post2015-11-20 10:20 +0100
Last post2015-11-20 17:10 +0100
Articles 6 — 4 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] extcon: arizona: Update naming for second jack detection DT binding Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-11-20 10:20 +0100
    Re: [PATCH] extcon: arizona: Update naming for second jack detection  DT binding Chanwoo Choi <cwchoi00@gmail.com> - 2015-11-20 15:20 +0100
    Re: [PATCH] extcon: arizona: Update naming for second jack detection  DT binding Rob Herring <robh@kernel.org> - 2015-11-20 15:40 +0100
      Re: [PATCH] extcon: arizona: Update naming for second jack detection  DT binding Chanwoo Choi <cwchoi00@gmail.com> - 2015-11-20 16:00 +0100
      Re: [PATCH] extcon: arizona: Update naming for second jack  detection DT binding Richard Fitzgerald <rf@opensource.wolfsonmicro.com> - 2015-11-20 16:10 +0100
        Re: [PATCH] extcon: arizona: Update naming for second jack detection  DT binding Rob Herring <robh@kernel.org> - 2015-11-20 17:10 +0100

#1273888 — [PATCH] extcon: arizona: Update naming for second jack detection DT binding

FromCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Date2015-11-20 10:20 +0100
Subject[PATCH] extcon: arizona: Update naming for second jack detection DT binding
Message-ID<qwQ1k-5gs-7@gated-at.bofh.it>
Update the name for the second jack detection pin binding to be a little
less confusing.

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 linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1274091 — Re: [PATCH] extcon: arizona: Update naming for second jack detection DT binding

FromChanwoo Choi <cwchoi00@gmail.com>
Date2015-11-20 15:20 +0100
SubjectRe: [PATCH] extcon: arizona: Update naming for second jack detection DT binding
Message-ID<qwUHE-8jx-21@gated-at.bofh.it>
In reply to#1273888
Hi,

On Fri, Nov 20, 2015 at 5:53 PM, Charles Keepax
<ckeepax@opensource.wolfsonmicro.com> wrote:
> Update the name for the second jack detection pin binding to be a little
> less confusing.
>
> 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(-)

Applied it.

Thanks,
Chanwoo Choi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1274112 — Re: [PATCH] extcon: arizona: Update naming for second jack detection DT binding

FromRob Herring <robh@kernel.org>
Date2015-11-20 15:40 +0100
SubjectRe: [PATCH] extcon: arizona: Update naming for second jack detection DT binding
Message-ID<qwV0Z-8qz-3@gated-at.bofh.it>
In reply to#1273888
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.

> 
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1274136 — Re: [PATCH] extcon: arizona: Update naming for second jack detection DT binding

FromChanwoo Choi <cwchoi00@gmail.com>
Date2015-11-20 16:00 +0100
SubjectRe: [PATCH] extcon: arizona: Update naming for second jack detection DT binding
Message-ID<qwVkm-6h-21@gated-at.bofh.it>
In reply to#1274112
Hi Rob,

On Fri, Nov 20, 2015 at 11:39 PM, Rob Herring <robh@kernel.org> 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 property has not been yet in all dtbs on Linux 4.4-rc1.

[snip]

Thanks,
Chanwoo Choi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1274161 — Re: [PATCH] extcon: arizona: Update naming for second jack detection DT binding

FromRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Date2015-11-20 16:10 +0100
SubjectRe: [PATCH] extcon: arizona: Update naming for second jack detection DT binding
Message-ID<qwVu2-q6-27@gated-at.bofh.it>
In reply to#1274112
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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1274212 — Re: [PATCH] extcon: arizona: Update naming for second jack detection DT binding

FromRob Herring <robh@kernel.org>
Date2015-11-20 17:10 +0100
SubjectRe: [PATCH] extcon: arizona: Update naming for second jack detection DT binding
Message-ID<qwWq6-11X-3@gated-at.bofh.it>
In reply to#1274161
On Fri, Nov 20, 2015 at 8:55 AM, Richard Fitzgerald
<rf@opensource.wolfsonmicro.com> wrote:
> 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.

I see the thread now. The commit message should make that clear.

Acked-by: Rob Herring <robh@kernel.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web