Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1265890
| From | "H. Nikolaus Schaller" <hns@goldelico.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/7] drivers:input:ads7846(+tsc2046): add new common binding names, pre-calibration and flipping |
| Date | 2015-11-09 18:40 +0100 |
| Message-ID | <qsYA9-123-5@gated-at.bofh.it> (permalink) |
| References | <qrQY1-6bv-9@gated-at.bofh.it> <qrQY2-6bv-15@gated-at.bofh.it> <qsYA9-123-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Am 09.11.2015 um 18:31 schrieb Rob Herring <robh@kernel.org>:
> On Fri, Nov 06, 2015 at 04:14:47PM +0100, H. Nikolaus Schaller wrote:
>> commit b98abe52fa8e ("Input: add common DT binding for touchscreens")
>> introduced common DT bindings for touchscreens [1] and a helper function to
>> parse the DT.
>>
>> This has been integrated and interpretation of the inversion (flipping)
>> properties for the x and y axis has been added to accommodate any
>> orientation of the touch in relation to the LCD.
>>
>> By scaling the min/max ADC values to the screen size it is now possible to
>> pre-calibrate the touch so that is (almost) exactly matches the LCD it is
>> glued onto. This allows to well enough operate the touch before a user
>> space calibration can improve the precision.
>>
>> [1]: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
>>
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>> ---
>> .../devicetree/bindings/input/ads7846.txt | 8 ++-
>
> The binding change looks okay, but...
>
>> @@ -1213,7 +1259,7 @@ static const struct ads7846_platform_data *ads7846_probe_dt(struct device *dev)
>> of_property_read_u16(node, "ti,vref-mv", &pdata->vref_mv);
>> pdata->keep_vref_on = of_property_read_bool(node, "ti,keep-vref-on");
>>
>> - pdata->swap_xy = of_property_read_bool(node, "ti,swap-xy");
>> + pdata->swap_xy = of_property_read_bool(node, "touchscreen-swapped-x-y");
>
> This will break with old dtb's.
We have a patch for all boards in tree (external dtbs must be modified by their maintainers).
> The driver should look for either
> property.
It is easy to recognize either one.
Noted for V2.
BR and thanks,
Nikolaus--
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/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 5/7] drivers:input:ads7846(+tsc2046): add new common binding names, pre-calibration and flipping "H. Nikolaus Schaller" <hns@goldelico.com> - 2015-11-06 16:20 +0100
Re: [PATCH 5/7] drivers:input:ads7846(+tsc2046): add new common binding names, pre-calibration and flipping Rob Herring <robh@kernel.org> - 2015-11-09 18:40 +0100
Re: [PATCH 5/7] drivers:input:ads7846(+tsc2046): add new common binding names, pre-calibration and flipping "H. Nikolaus Schaller" <hns@goldelico.com> - 2015-11-09 18:40 +0100
csiph-web