touch screen ads7846/7843 devicetree support
Hi Mike,
We need devicetree support on ads7846/7843 touch screen driver. Do you have plan on it? We are moving to devicetree on nios2, so do arm/mips/x86.
Best regards,
Thomas
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Thomas Chou
We need devicetree support on ads7846/7843 touch screen driver. Do you have plan on it? We are moving to devicetree on nios2, so do arm/mips/x86.
what part are you using exactly ?
-mike
A message that is not in the archive (sent off-list or not yet received): AANLkTinJheHYyjUUAK7guNXqepp9KJ3xk6u-4JrmAbee-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 7 lines · Mike Frysinger
Quoted 2 lines · Thomas Chou
We need devicetree support on ads7846/7843 touch screen driver. Do you have plan on it? We are moving to devicetree on nios2, so do arm/mips/x86.
what part are you using exactly ?
-mike
ad7843 is used in a popular nios2 dev kit, NEEK.
- Thomas
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thomas Chou wrote on 2011-01-27:
Quoted 11 lines · Mike Frysinger
Quoted 3 lines · Thomas Chou
Quoted 2 lines
We need devicetree support on ads7846/7843 touch screen driver. Do you have plan on it? We are moving to devicetree on nios2, so do
arm/mips/x86.
Quoted 4 lines
what part are you using exactly ?
-mikead7843 is used in a popular nios2 dev kit, NEEK.
This driver is a SPI bus client driver. PPC is using devicetree for ages now, and they don't have problems instantiating this or any other SPI bus driver.
What special needs do you have?
Greetings,
Michael
--
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368; Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif
A message that is not in the archive (sent off-list or not yet received): 544AC56F16B56944AEC3BD4E3D591771324C105D75-gpnycfiEEVR7xzP2fcxY8GoKb0G9Rp+C@public.gmane.org
Dear Michael,
Quoted 2 lines · Michael
This driver is a SPI bus client driver. PPC is using devicetree for ages now, and they don't have problems instantiating this or any other SPI bus driver..
Thanks for the pointer. I looked in powerpc dir and found one usage in
linux-2.6/arch/powerpc/platforms/512x/pdm360ng.c
I will try to follow it.
Best regards,
Thomas
Quoted 7 lines · Michael
Thomas Chou wrote on 2011-01-27:
Quoted 6 lines · Mike Frysinger
Quoted 3 lines · Thomas Chou
Quoted 2 lines
We need devicetree support on ads7846/7843 touch screen driver. Do you have plan on it? We are moving to devicetree on nios2, so do
arm/mips/x86.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
what part are you using exactly ?
-mikead7843 is used in a popular nios2 dev kit, NEEK.
This driver is a SPI bus client driver. PPC is using devicetree for ages now, and they don't have problems instantiating this or any other SPI bus driver.
However, the method used is by applying a heuristic (of_modalias_node) which tries to name the device in a way that will match an existing device driver. It works for a lot of spi drivers, but it isn't always reliable.
Alternatively, if of_match_table is populated in the spi_driver, then the normal device tree match behaviour will always work.
g.
A message that is not in the archive (sent off-list or not yet received): 20110202160355.GE20275-MrY2KI0G/OVr83L8+7iqerDks+cytr/[email protected]
Quoted 17 lines · Grant Likely
Quoted 7 lines · Michael
Thomas Chou wrote on 2011-01-27:
Quoted 6 lines · Mike Frysinger
Quoted 3 lines · Thomas Chou
Quoted 2 lines
We need devicetree support on ads7846/7843 touch screen driver. Do you have plan on it? We are moving to devicetree on nios2, so do
arm/mips/x86.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
what part are you using exactly ?
-mikead7843 is used in a popular nios2 dev kit, NEEK.
This driver is a SPI bus client driver. PPC is using devicetree for ages now, and they don't have problems instantiating this or any other SPI bus driver.
Quoted 7 lines
However, the method used is by applying a heuristic (
of_modalias_node) which tries to name the device in a way that will match an existing device driver. It works for a lot of spi drivers, but it isn't always reliable.Alternatively, if
of_match_tableis populated in thespi_driver, then the normal device tree match behaviour will always work.
Thanks. The driver did match with the heuristic. But it needs to determine pen state. I will try to bind a gpio node in dts.
linux/spi/ads7846.h
int gpio_pendown; /* the GPIO used to decide the pendown
* state if get_pendown_state == NULL */
- Thomas
2011/2/3 Grant Likely <[email protected]>:
Quoted 17 lines · Michael
Quoted 7 lines
Thomas Chou wrote on 2011-01-27:
Quoted 6 lines · Mike Frysinger
Quoted 3 lines · Thomas Chou
Quoted 2 lines
We need devicetree support on ads7846/7843 touch screen driver. Do you have plan on it? We are moving to devicetree on nios2, so do
arm/mips/x86.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
what part are you using exactly ?
-mikead7843 is used in a popular nios2 dev kit, NEEK.
This driver is a SPI bus client driver. PPC is using devicetree for ages now, and they don't have problems instantiating this or any other SPI bus driver.
Quoted 7 lines
However, the method used is by applying a heuristic (
of_modalias_node) which tries to name the device in a way that will match an existing device driver. It works for a lot of spi drivers, but it isn't always reliable.Alternatively, if
of_match_tableis populated in thespi_driver, then the normal device tree match behaviour will always work.
not like i2c_driver and platform_driver, it is really difficult to find many spi client drivers using device tree fo the moment. most spi boards still use spi_board_info to register spi client. these spi client drivers do work well with spi host based on device tree at most cases. the ideal spi client should be a child node of spi host in device tree, then use of_match_table to get probed.
i am working on ads7846 as an example for our team to use device tree in spi client drivers and will send a patch.
BTW, is ads7846 from TI? or am i wrong? why is this question posted in ADI' maillist?
Quoted 8 lines
g.
_______________________________________________
Uclinux-dist-devel mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/uclinux-dist-devel
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss
A message that is not in the archive (sent off-list or not yet received): BANLkTik5BfiUeNFn-dXah86h+nhK6hU6vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 2 lines · Barry Song
BTW, is ads7846 from TI? or am i wrong? why is this question posted in ADI' maillist?
ads7846 is a TI part, but the driver supports more than just that part -mike