* [PATCH 0/2] arm: am335x: am335x evm sk: add touchscreen DT node @ 2013-10-21 20:13 Felipe Balbi 2013-10-21 20:13 ` [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding Felipe Balbi ` (2 more replies) 0 siblings, 3 replies; 16+ messages in thread From: Felipe Balbi @ 2013-10-21 20:13 UTC (permalink / raw) To: dmitry.torokhov Cc: rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, rob, bcousson, Tony Lindgren, Sebastian Andrzej Siewior, devicetree, Linux OMAP Mailing List, linux-input, Felipe Balbi Hi, the following patches fix a typo on TSC/ADC DT binding while maintaining backwards compatibility and add support for the touchscreen available on am335x-evm-sk. Patches have been tested with am335x-evm-sk with a couple patches (already floating around the mailing lists) to get that board booting in mainline. cheers Felipe Balbi (2): input: touchscreen: fix spelling mistake in TSC/ADC DT binding arm: dts: am335x sk: add touchscreen support .../devicetree/bindings/input/touchscreen/ti-tsc-adc.txt | 2 +- arch/arm/boot/dts/am335x-evm.dts | 2 +- arch/arm/boot/dts/am335x-evmsk.dts | 10 ++++++++++ drivers/input/touchscreen/ti_am335x_tsc.c | 9 ++++++++- 4 files changed, 20 insertions(+), 3 deletions(-) -- 1.8.4.GIT ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-10-21 20:13 [PATCH 0/2] arm: am335x: am335x evm sk: add touchscreen DT node Felipe Balbi @ 2013-10-21 20:13 ` Felipe Balbi 2013-10-22 8:42 ` Sebastian Andrzej Siewior 2013-10-21 20:13 ` [PATCH 2/2] arm: dts: am335x sk: add touchscreen support Felipe Balbi [not found] ` <1382386404-6659-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org> 2 siblings, 1 reply; 16+ messages in thread From: Felipe Balbi @ 2013-10-21 20:13 UTC (permalink / raw) To: dmitry.torokhov Cc: rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, rob, bcousson, Tony Lindgren, Sebastian Andrzej Siewior, devicetree, Linux OMAP Mailing List, linux-input, Felipe Balbi There was a spelling mistake on TSC/ADC binding where "coordinate" was spelled as "coordiante". We can't simply fix the error due to DT being an ABI, the approach taken was to first use correct spelling and if that fails, fallback to miss-spelled version. It's unfortunate that has creeped into the tree. Signed-off-by: Felipe Balbi <balbi@ti.com> --- .../devicetree/bindings/input/touchscreen/ti-tsc-adc.txt | 2 +- arch/arm/boot/dts/am335x-evm.dts | 2 +- drivers/input/touchscreen/ti_am335x_tsc.c | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt b/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt index 491c97b..878549b 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt @@ -6,7 +6,7 @@ Required properties: ti,wires: Wires refer to application modes i.e. 4/5/8 wire touchscreen support on the platform. ti,x-plate-resistance: X plate resistance - ti,coordiante-readouts: The sequencer supports a total of 16 + ti,coordinate-readouts: The sequencer supports a total of 16 programmable steps each step is used to read a single coordinate. A single readout is enough but multiple reads can diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index e8ec875..c5b73bc 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts @@ -509,7 +509,7 @@ tsc { ti,wires = <4>; ti,x-plate-resistance = <200>; - ti,coordiante-readouts = <5>; + ti,coordinate-readouts = <5>; ti,wire-config = <0x00 0x11 0x22 0x33>; }; diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c index e1c5300..b61df9d 100644 --- a/drivers/input/touchscreen/ti_am335x_tsc.c +++ b/drivers/input/touchscreen/ti_am335x_tsc.c @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, if (err < 0) return err; - err = of_property_read_u32(node, "ti,coordiante-readouts", + /* + * try with new binding first. If it fails, still try with + * bogus, miss-spelled version. + */ + err = of_property_read_u32(node, "ti,coordinate-readouts", &ts_dev->coordinate_readouts); if (err < 0) + err = of_property_read_u32(node, "ti,coordiante-readouts", + &ts_dev->coordinate_readouts); + if (err < 0) return err; return of_property_read_u32_array(node, "ti,wire-config", -- 1.8.4.GIT ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-10-21 20:13 ` [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding Felipe Balbi @ 2013-10-22 8:42 ` Sebastian Andrzej Siewior 2013-10-22 12:02 ` Felipe Balbi 0 siblings, 1 reply; 16+ messages in thread From: Sebastian Andrzej Siewior @ 2013-10-22 8:42 UTC (permalink / raw) To: Felipe Balbi Cc: dmitry.torokhov, rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, rob, bcousson, Tony Lindgren, devicetree, Linux OMAP Mailing List, linux-input On 10/21/2013 10:13 PM, Felipe Balbi wrote: > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > index e1c5300..b61df9d 100644 > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, > if (err < 0) > return err; > > - err = of_property_read_u32(node, "ti,coordiante-readouts", > + /* > + * try with new binding first. If it fails, still try with > + * bogus, miss-spelled version. > + */ > + err = of_property_read_u32(node, "ti,coordinate-readouts", > &ts_dev->coordinate_readouts); > if (err < 0) > + err = of_property_read_u32(node, "ti,coordiante-readouts", > + &ts_dev->coordinate_readouts); > + if (err < 0) > return err; Thanks, very good. Do we keep this fallback for ever or just for a year or two? > > return of_property_read_u32_array(node, "ti,wire-config", Sebastian ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-10-22 8:42 ` Sebastian Andrzej Siewior @ 2013-10-22 12:02 ` Felipe Balbi 2013-11-14 11:19 ` Mark Rutland 0 siblings, 1 reply; 16+ messages in thread From: Felipe Balbi @ 2013-10-22 12:02 UTC (permalink / raw) To: Sebastian Andrzej Siewior Cc: Felipe Balbi, dmitry.torokhov, rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, rob, bcousson, Tony Lindgren, devicetree, Linux OMAP Mailing List, linux-input [-- Attachment #1: Type: text/plain, Size: 1191 bytes --] Hi, On Tue, Oct 22, 2013 at 10:42:00AM +0200, Sebastian Andrzej Siewior wrote: > On 10/21/2013 10:13 PM, Felipe Balbi wrote: > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > > index e1c5300..b61df9d 100644 > > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > > @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, > > if (err < 0) > > return err; > > > > - err = of_property_read_u32(node, "ti,coordiante-readouts", > > + /* > > + * try with new binding first. If it fails, still try with > > + * bogus, miss-spelled version. > > + */ > > + err = of_property_read_u32(node, "ti,coordinate-readouts", > > &ts_dev->coordinate_readouts); > > if (err < 0) > > + err = of_property_read_u32(node, "ti,coordiante-readouts", > > + &ts_dev->coordinate_readouts); > > + if (err < 0) > > return err; > > Thanks, very good. Do we keep this fallback for ever or just for a year > or two? That's for DT maintainers to decide but considering DT is an ABI, I guess we need to keep for 30 years or so :-p -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-10-22 12:02 ` Felipe Balbi @ 2013-11-14 11:19 ` Mark Rutland 2013-11-14 15:54 ` Felipe Balbi 0 siblings, 1 reply; 16+ messages in thread From: Mark Rutland @ 2013-11-14 11:19 UTC (permalink / raw) To: Felipe Balbi Cc: Sebastian Andrzej Siewior, dmitry.torokhov@gmail.com, rob.herring@calxeda.com, Pawel Moll, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, rob@landley.net, bcousson@baylibre.com, Tony Lindgren, devicetree@vger.kernel.org, Linux OMAP Mailing List, linux-input@vger.kernel.org On Tue, Oct 22, 2013 at 01:02:53PM +0100, Felipe Balbi wrote: > Hi, > > On Tue, Oct 22, 2013 at 10:42:00AM +0200, Sebastian Andrzej Siewior wrote: > > On 10/21/2013 10:13 PM, Felipe Balbi wrote: > > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > > > index e1c5300..b61df9d 100644 > > > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > > > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > > > @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, > > > if (err < 0) > > > return err; > > > > > > - err = of_property_read_u32(node, "ti,coordiante-readouts", > > > + /* > > > + * try with new binding first. If it fails, still try with > > > + * bogus, miss-spelled version. > > > + */ > > > + err = of_property_read_u32(node, "ti,coordinate-readouts", > > > &ts_dev->coordinate_readouts); > > > if (err < 0) > > > + err = of_property_read_u32(node, "ti,coordiante-readouts", > > > + &ts_dev->coordinate_readouts); > > > + if (err < 0) > > > return err; > > > > Thanks, very good. Do we keep this fallback for ever or just for a year > > or two? > > That's for DT maintainers to decide but considering DT is an ABI, I > guess we need to keep for 30 years or so :-p We keep it as long as we have to. If no-one's relying on the typo by the next merge window, I see no reason we'd have to keep support for the typo beyond that. If someone's shipped a device with a dtb with the typo hard-coded into some ROM, that's another matter... It might be worth printing a warning in the case of the typo'd version, suggesting correcting the DT. That will encourage anyone with a broken dt to get a fixed one. Mark. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-11-14 11:19 ` Mark Rutland @ 2013-11-14 15:54 ` Felipe Balbi 2013-11-15 15:55 ` Mark Rutland 0 siblings, 1 reply; 16+ messages in thread From: Felipe Balbi @ 2013-11-14 15:54 UTC (permalink / raw) To: Mark Rutland Cc: Felipe Balbi, Sebastian Andrzej Siewior, dmitry.torokhov@gmail.com, rob.herring@calxeda.com, Pawel Moll, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, rob@landley.net, bcousson@baylibre.com, Tony Lindgren, devicetree@vger.kernel.org, Linux OMAP Mailing List, linux-input@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 1608 bytes --] HI, On Thu, Nov 14, 2013 at 11:19:59AM +0000, Mark Rutland wrote: > > On Tue, Oct 22, 2013 at 10:42:00AM +0200, Sebastian Andrzej Siewior wrote: > > > On 10/21/2013 10:13 PM, Felipe Balbi wrote: > > > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > index e1c5300..b61df9d 100644 > > > > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > > > > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, > > > > if (err < 0) > > > > return err; > > > > > > > > - err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > + /* > > > > + * try with new binding first. If it fails, still try with > > > > + * bogus, miss-spelled version. > > > > + */ > > > > + err = of_property_read_u32(node, "ti,coordinate-readouts", > > > > &ts_dev->coordinate_readouts); > > > > if (err < 0) > > > > + err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > + &ts_dev->coordinate_readouts); > > > > + if (err < 0) > > > > return err; > > > > > > Thanks, very good. Do we keep this fallback for ever or just for a year > > > or two? > > > > That's for DT maintainers to decide but considering DT is an ABI, I > > guess we need to keep for 30 years or so :-p > > We keep it as long as we have to. If no-one's relying on the typo by the > next merge window, I see no reason we'd have to keep support for the and how could you know that ? considering it's an ABI, how could you ever know that ? -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-11-14 15:54 ` Felipe Balbi @ 2013-11-15 15:55 ` Mark Rutland 2013-11-15 17:53 ` Felipe Balbi 0 siblings, 1 reply; 16+ messages in thread From: Mark Rutland @ 2013-11-15 15:55 UTC (permalink / raw) To: Felipe Balbi Cc: Sebastian Andrzej Siewior, dmitry.torokhov@gmail.com, rob.herring@calxeda.com, Pawel Moll, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, rob@landley.net, bcousson@baylibre.com, Tony Lindgren, devicetree@vger.kernel.org, Linux OMAP Mailing List, linux-input@vger.kernel.org On Thu, Nov 14, 2013 at 03:54:04PM +0000, Felipe Balbi wrote: > HI, > > On Thu, Nov 14, 2013 at 11:19:59AM +0000, Mark Rutland wrote: > > > On Tue, Oct 22, 2013 at 10:42:00AM +0200, Sebastian Andrzej Siewior wrote: > > > > On 10/21/2013 10:13 PM, Felipe Balbi wrote: > > > > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > index e1c5300..b61df9d 100644 > > > > > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, > > > > > if (err < 0) > > > > > return err; > > > > > > > > > > - err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > > + /* > > > > > + * try with new binding first. If it fails, still try with > > > > > + * bogus, miss-spelled version. > > > > > + */ > > > > > + err = of_property_read_u32(node, "ti,coordinate-readouts", > > > > > &ts_dev->coordinate_readouts); > > > > > if (err < 0) > > > > > + err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > > + &ts_dev->coordinate_readouts); > > > > > + if (err < 0) > > > > > return err; > > > > > > > > Thanks, very good. Do we keep this fallback for ever or just for a year > > > > or two? > > > > > > That's for DT maintainers to decide but considering DT is an ABI, I > > > guess we need to keep for 30 years or so :-p > > > > We keep it as long as we have to. If no-one's relying on the typo by the > > next merge window, I see no reason we'd have to keep support for the > > and how could you know that ? considering it's an ABI, how could you > ever know that ? If you know that the only user of a binding is a dts for a particular product that you're in charge of, then you'd know the set of kernel + dtb combinations out there, and can judge. If a bug is found in a driver such that it hasn't worked for a number of releases, and no-one's complained, the binding is clearly not in use and thus support for it can be removed. If maintaining compatibility becomes too hard, and all users are happy to migrate to a newer dtb, then it's not necessary to maintain compatiblity for the old binding. While we can't always remove existing bindings, there are cases where it's possible and appropriate. However, we should strive for compatibility for as long a term as possible. Thanks, Mark. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-11-15 15:55 ` Mark Rutland @ 2013-11-15 17:53 ` Felipe Balbi 2013-11-18 11:40 ` Mark Rutland 0 siblings, 1 reply; 16+ messages in thread From: Felipe Balbi @ 2013-11-15 17:53 UTC (permalink / raw) To: Mark Rutland Cc: Felipe Balbi, Sebastian Andrzej Siewior, dmitry.torokhov@gmail.com, rob.herring@calxeda.com, Pawel Moll, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, rob@landley.net, bcousson@baylibre.com, Tony Lindgren, devicetree@vger.kernel.org, Linux OMAP Mailing List, linux-input@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 2156 bytes --] Hi, On Fri, Nov 15, 2013 at 03:55:40PM +0000, Mark Rutland wrote: > > > > > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > > index e1c5300..b61df9d 100644 > > > > > > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > > @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, > > > > > > if (err < 0) > > > > > > return err; > > > > > > > > > > > > - err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > > > + /* > > > > > > + * try with new binding first. If it fails, still try with > > > > > > + * bogus, miss-spelled version. > > > > > > + */ > > > > > > + err = of_property_read_u32(node, "ti,coordinate-readouts", > > > > > > &ts_dev->coordinate_readouts); > > > > > > if (err < 0) > > > > > > + err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > > > + &ts_dev->coordinate_readouts); > > > > > > + if (err < 0) > > > > > > return err; > > > > > > > > > > Thanks, very good. Do we keep this fallback for ever or just for a year > > > > > or two? > > > > > > > > That's for DT maintainers to decide but considering DT is an ABI, I > > > > guess we need to keep for 30 years or so :-p > > > > > > We keep it as long as we have to. If no-one's relying on the typo by the > > > next merge window, I see no reason we'd have to keep support for the > > > > and how could you know that ? considering it's an ABI, how could you > > ever know that ? > > If you know that the only user of a binding is a dts for a particular > product that you're in charge of, then you'd know the set of kernel + > dtb combinations out there, and can judge. once the binding has made into mainline, it's next to impossible to figure out who has downloaded a tarball containing that driver and made a product out of it. Besides keeping that check in the driver won't hurt at all in the long run. I would give it at least until 4.0 before thinking about removing, and that might still not be enough time. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding 2013-11-15 17:53 ` Felipe Balbi @ 2013-11-18 11:40 ` Mark Rutland 2013-11-18 15:29 ` [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling Felipe Balbi 0 siblings, 1 reply; 16+ messages in thread From: Mark Rutland @ 2013-11-18 11:40 UTC (permalink / raw) To: Felipe Balbi Cc: Sebastian Andrzej Siewior, dmitry.torokhov@gmail.com, rob.herring@calxeda.com, Pawel Moll, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, rob@landley.net, bcousson@baylibre.com, Tony Lindgren, devicetree@vger.kernel.org, Linux OMAP Mailing List, linux-input@vger.kernel.org On Fri, Nov 15, 2013 at 05:53:56PM +0000, Felipe Balbi wrote: > Hi, > > On Fri, Nov 15, 2013 at 03:55:40PM +0000, Mark Rutland wrote: > > > > > > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > > > index e1c5300..b61df9d 100644 > > > > > > > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > > > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > > > > > > > @@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev, > > > > > > > if (err < 0) > > > > > > > return err; > > > > > > > > > > > > > > - err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > > > > + /* > > > > > > > + * try with new binding first. If it fails, still try with > > > > > > > + * bogus, miss-spelled version. > > > > > > > + */ > > > > > > > + err = of_property_read_u32(node, "ti,coordinate-readouts", > > > > > > > &ts_dev->coordinate_readouts); > > > > > > > if (err < 0) > > > > > > > + err = of_property_read_u32(node, "ti,coordiante-readouts", > > > > > > > + &ts_dev->coordinate_readouts); > > > > > > > + if (err < 0) > > > > > > > return err; > > > > > > > > > > > > Thanks, very good. Do we keep this fallback for ever or just for a year > > > > > > or two? > > > > > > > > > > That's for DT maintainers to decide but considering DT is an ABI, I > > > > > guess we need to keep for 30 years or so :-p > > > > > > > > We keep it as long as we have to. If no-one's relying on the typo by the > > > > next merge window, I see no reason we'd have to keep support for the > > > > > > and how could you know that ? considering it's an ABI, how could you > > > ever know that ? > > > > If you know that the only user of a binding is a dts for a particular > > product that you're in charge of, then you'd know the set of kernel + > > dtb combinations out there, and can judge. > > once the binding has made into mainline, it's next to impossible to > figure out who has downloaded a tarball containing that driver and made > a product out of it. > > Besides keeping that check in the driver won't hurt at all in the long > run. I would give it at least until 4.0 before thinking about removing, > and that might still not be enough time. That sounds sensible to me. As mentioned before I'd recommend adding a warning for the typo now in the (possibly naïve) hope that it will encourage people to fix up their dts early. Thanks, Mark. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling 2013-11-18 11:40 ` Mark Rutland @ 2013-11-18 15:29 ` Felipe Balbi 2013-11-18 15:35 ` Mark Rutland 2014-06-14 0:23 ` Felipe Balbi 0 siblings, 2 replies; 16+ messages in thread From: Felipe Balbi @ 2013-11-18 15:29 UTC (permalink / raw) To: Mark Rutland Cc: Sebastian Andrzej Siewior, dmitry.torokhov, rob.herring, Pawel.Moll, swarren, ijc+devicetree, bcousson, Tony Lindgren, devicetree, Linux OMAP Mailing List, linux-input, Felipe Balbi In the hopes that people run new kernels on their devices, let's add a warning message asking users to have their DTS file fixed. The goal is that by Linux 4.0 we will be able to remove support for the bogus version of our touchscreen's DTS. Suggested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Felipe Balbi <balbi@ti.com> --- Here you go, I've added your Suggested-by Mark, if you wish I can remove or change to something else. cheers drivers/input/touchscreen/ti_am335x_tsc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c index b61df9d..91302cd 100644 --- a/drivers/input/touchscreen/ti_am335x_tsc.c +++ b/drivers/input/touchscreen/ti_am335x_tsc.c @@ -354,9 +354,12 @@ static int titsc_parse_dt(struct platform_device *pdev, */ err = of_property_read_u32(node, "ti,coordinate-readouts", &ts_dev->coordinate_readouts); - if (err < 0) + if (err < 0) { + dev_warn(&pdev->dev, "please use 'ti,coordinate-readouts' instead\n"); err = of_property_read_u32(node, "ti,coordiante-readouts", &ts_dev->coordinate_readouts); + } + if (err < 0) return err; -- 1.8.4.GIT ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling 2013-11-18 15:29 ` [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling Felipe Balbi @ 2013-11-18 15:35 ` Mark Rutland 2014-06-14 0:23 ` Felipe Balbi 1 sibling, 0 replies; 16+ messages in thread From: Mark Rutland @ 2013-11-18 15:35 UTC (permalink / raw) To: Felipe Balbi Cc: Sebastian Andrzej Siewior, dmitry.torokhov@gmail.com, rob.herring@calxeda.com, Pawel Moll, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, bcousson@baylibre.com, Tony Lindgren, devicetree@vger.kernel.org, Linux OMAP Mailing List, linux-input@vger.kernel.org On Mon, Nov 18, 2013 at 03:29:01PM +0000, Felipe Balbi wrote: > In the hopes that people run new kernels on > their devices, let's add a warning message > asking users to have their DTS file fixed. > > The goal is that by Linux 4.0 we will be > able to remove support for the bogus version > of our touchscreen's DTS. > > Suggested-by: Mark Rutland <mark.rutland@arm.com> > Signed-off-by: Felipe Balbi <balbi@ti.com> > --- > > Here you go, I've added your Suggested-by Mark, > if you wish I can remove or change to something > else. > > cheers Looks fine to me, feel free to add my Ack. Thanks, Mark. > > drivers/input/touchscreen/ti_am335x_tsc.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > index b61df9d..91302cd 100644 > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > @@ -354,9 +354,12 @@ static int titsc_parse_dt(struct platform_device *pdev, > */ > err = of_property_read_u32(node, "ti,coordinate-readouts", > &ts_dev->coordinate_readouts); > - if (err < 0) > + if (err < 0) { > + dev_warn(&pdev->dev, "please use 'ti,coordinate-readouts' instead\n"); > err = of_property_read_u32(node, "ti,coordiante-readouts", > &ts_dev->coordinate_readouts); > + } > + > if (err < 0) > return err; > > -- > 1.8.4.GIT > > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling 2013-11-18 15:29 ` [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling Felipe Balbi 2013-11-18 15:35 ` Mark Rutland @ 2014-06-14 0:23 ` Felipe Balbi 2014-06-15 7:16 ` Dmitry Torokhov 1 sibling, 1 reply; 16+ messages in thread From: Felipe Balbi @ 2014-06-14 0:23 UTC (permalink / raw) To: Felipe Balbi, Andrew Morton Cc: Mark Rutland, Sebastian Andrzej Siewior, dmitry.torokhov, rob.herring, Pawel.Moll, swarren, ijc+devicetree, bcousson, Tony Lindgren, devicetree, Linux OMAP Mailing List, linux-input [-- Attachment #1: Type: text/plain, Size: 1485 bytes --] Hi, Here's another patch which has been pending for months. On Mon, Nov 18, 2013 at 09:29:01AM -0600, Felipe Balbi wrote: > In the hopes that people run new kernels on > their devices, let's add a warning message > asking users to have their DTS file fixed. > > The goal is that by Linux 4.0 we will be > able to remove support for the bogus version > of our touchscreen's DTS. > > Suggested-by: Mark Rutland <mark.rutland@arm.com> > Signed-off-by: Felipe Balbi <balbi@ti.com> > --- > > Here you go, I've added your Suggested-by Mark, > if you wish I can remove or change to something > else. > > cheers > > drivers/input/touchscreen/ti_am335x_tsc.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > index b61df9d..91302cd 100644 > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > @@ -354,9 +354,12 @@ static int titsc_parse_dt(struct platform_device *pdev, > */ > err = of_property_read_u32(node, "ti,coordinate-readouts", > &ts_dev->coordinate_readouts); > - if (err < 0) > + if (err < 0) { > + dev_warn(&pdev->dev, "please use 'ti,coordinate-readouts' instead\n"); > err = of_property_read_u32(node, "ti,coordiante-readouts", > &ts_dev->coordinate_readouts); > + } > + > if (err < 0) > return err; > > -- > 1.8.4.GIT > -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling 2014-06-14 0:23 ` Felipe Balbi @ 2014-06-15 7:16 ` Dmitry Torokhov 2014-06-15 15:55 ` Felipe Balbi 0 siblings, 1 reply; 16+ messages in thread From: Dmitry Torokhov @ 2014-06-15 7:16 UTC (permalink / raw) To: Felipe Balbi Cc: Andrew Morton, Mark Rutland, Sebastian Andrzej Siewior, rob.herring, Pawel.Moll, swarren, ijc+devicetree, bcousson, Tony Lindgren, devicetree, Linux OMAP Mailing List, linux-input On Fri, Jun 13, 2014 at 07:23:55PM -0500, Felipe Balbi wrote: > Hi, > > Here's another patch which has been pending for months. Sorry, lost track of this one, applied. > > On Mon, Nov 18, 2013 at 09:29:01AM -0600, Felipe Balbi wrote: > > In the hopes that people run new kernels on > > their devices, let's add a warning message > > asking users to have their DTS file fixed. > > > > The goal is that by Linux 4.0 we will be > > able to remove support for the bogus version > > of our touchscreen's DTS. > > > > Suggested-by: Mark Rutland <mark.rutland@arm.com> > > Signed-off-by: Felipe Balbi <balbi@ti.com> > > --- > > > > Here you go, I've added your Suggested-by Mark, > > if you wish I can remove or change to something > > else. > > > > cheers > > > > drivers/input/touchscreen/ti_am335x_tsc.c | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c > > index b61df9d..91302cd 100644 > > --- a/drivers/input/touchscreen/ti_am335x_tsc.c > > +++ b/drivers/input/touchscreen/ti_am335x_tsc.c > > @@ -354,9 +354,12 @@ static int titsc_parse_dt(struct platform_device *pdev, > > */ > > err = of_property_read_u32(node, "ti,coordinate-readouts", > > &ts_dev->coordinate_readouts); > > - if (err < 0) > > + if (err < 0) { > > + dev_warn(&pdev->dev, "please use 'ti,coordinate-readouts' instead\n"); > > err = of_property_read_u32(node, "ti,coordiante-readouts", > > &ts_dev->coordinate_readouts); > > + } > > + > > if (err < 0) > > return err; > > > > -- > > 1.8.4.GIT > > > > -- > balbi -- Dmitry ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling 2014-06-15 7:16 ` Dmitry Torokhov @ 2014-06-15 15:55 ` Felipe Balbi 0 siblings, 0 replies; 16+ messages in thread From: Felipe Balbi @ 2014-06-15 15:55 UTC (permalink / raw) To: Dmitry Torokhov Cc: Felipe Balbi, Andrew Morton, Mark Rutland, Sebastian Andrzej Siewior, rob.herring, Pawel.Moll, swarren, ijc+devicetree, bcousson, Tony Lindgren, devicetree, Linux OMAP Mailing List, linux-input [-- Attachment #1: Type: text/plain, Size: 281 bytes --] On Sun, Jun 15, 2014 at 12:16:36AM -0700, Dmitry Torokhov wrote: > On Fri, Jun 13, 2014 at 07:23:55PM -0500, Felipe Balbi wrote: > > Hi, > > > > Here's another patch which has been pending for months. > > Sorry, lost track of this one, applied. Thank you -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 2/2] arm: dts: am335x sk: add touchscreen support 2013-10-21 20:13 [PATCH 0/2] arm: am335x: am335x evm sk: add touchscreen DT node Felipe Balbi 2013-10-21 20:13 ` [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding Felipe Balbi @ 2013-10-21 20:13 ` Felipe Balbi [not found] ` <1382386404-6659-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org> 2 siblings, 0 replies; 16+ messages in thread From: Felipe Balbi @ 2013-10-21 20:13 UTC (permalink / raw) To: dmitry.torokhov Cc: rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, rob, bcousson, Tony Lindgren, Sebastian Andrzej Siewior, devicetree, Linux OMAP Mailing List, linux-input, Felipe Balbi Add missing nodes for the touchscreen available on AM335x EVM SK. Signed-off-by: Felipe Balbi <balbi@ti.com> --- arch/arm/boot/dts/am335x-evmsk.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index 4f339fa..d7c2c0c 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts +++ b/arch/arm/boot/dts/am335x-evmsk.dts @@ -419,3 +419,13 @@ phy_id = <&davinci_mdio>, <1>; phy-mode = "rgmii-txid"; }; + +&tscadc { + status = "okay"; + tsc { + ti,wires = <4>; + ti,x-plate-resistance = <200>; + ti,coordinate-readouts = <5>; + ti,wire-config = <0x00 0x11 0x22 0x33>; + }; +}; -- 1.8.4.GIT ^ permalink raw reply related [flat|nested] 16+ messages in thread
[parent not found: <1382386404-6659-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 0/2] arm: am335x: am335x evm sk: add touchscreen DT node [not found] ` <1382386404-6659-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org> @ 2013-11-11 7:59 ` Dmitry Torokhov 0 siblings, 0 replies; 16+ messages in thread From: Dmitry Torokhov @ 2013-11-11 7:59 UTC (permalink / raw) To: Felipe Balbi Cc: rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, swarren-3lzwWm7+Weoh9ZMKESR00Q, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, rob-VoJi6FS/r0vR7s880joybQ, bcousson-rdvid1DuHRBWk0Htik3J/w, Tony Lindgren, Sebastian Andrzej Siewior, devicetree-u79uwXL29TY76Z2rM5mHXA, Linux OMAP Mailing List, linux-input-u79uwXL29TY76Z2rM5mHXA On Mon, Oct 21, 2013 at 03:13:22PM -0500, Felipe Balbi wrote: > Hi, > > the following patches fix a typo on TSC/ADC DT binding while > maintaining backwards compatibility and add support for the > touchscreen available on am335x-evm-sk. > > Patches have been tested with am335x-evm-sk with a couple patches > (already floating around the mailing lists) to get that board > booting in mainline. > > cheers Applied, thank you. > > Felipe Balbi (2): > input: touchscreen: fix spelling mistake in TSC/ADC DT binding > arm: dts: am335x sk: add touchscreen support > > .../devicetree/bindings/input/touchscreen/ti-tsc-adc.txt | 2 +- > arch/arm/boot/dts/am335x-evm.dts | 2 +- > arch/arm/boot/dts/am335x-evmsk.dts | 10 ++++++++++ > drivers/input/touchscreen/ti_am335x_tsc.c | 9 ++++++++- > 4 files changed, 20 insertions(+), 3 deletions(-) > > -- > 1.8.4.GIT > -- Dmitry -- 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 ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2014-06-15 15:55 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-10-21 20:13 [PATCH 0/2] arm: am335x: am335x evm sk: add touchscreen DT node Felipe Balbi 2013-10-21 20:13 ` [PATCH 1/2] input: touchscreen: fix spelling mistake in TSC/ADC DT binding Felipe Balbi 2013-10-22 8:42 ` Sebastian Andrzej Siewior 2013-10-22 12:02 ` Felipe Balbi 2013-11-14 11:19 ` Mark Rutland 2013-11-14 15:54 ` Felipe Balbi 2013-11-15 15:55 ` Mark Rutland 2013-11-15 17:53 ` Felipe Balbi 2013-11-18 11:40 ` Mark Rutland 2013-11-18 15:29 ` [PATCH] input: touchscreen: ti_am335x_tsc: warn about incorrect spelling Felipe Balbi 2013-11-18 15:35 ` Mark Rutland 2014-06-14 0:23 ` Felipe Balbi 2014-06-15 7:16 ` Dmitry Torokhov 2014-06-15 15:55 ` Felipe Balbi 2013-10-21 20:13 ` [PATCH 2/2] arm: dts: am335x sk: add touchscreen support Felipe Balbi [not found] ` <1382386404-6659-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org> 2013-11-11 7:59 ` [PATCH 0/2] arm: am335x: am335x evm sk: add touchscreen DT node Dmitry Torokhov
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).