* [Buildroot] How to use the ft6236 touchscreen driver ?
@ 2016-07-13 17:07 David Picard
2016-07-13 17:16 ` Baruch Siach
0 siblings, 1 reply; 6+ messages in thread
From: David Picard @ 2016-07-13 17:07 UTC (permalink / raw)
To: buildroot
Hi,
I am trying to use the touch capability of Adafruit's PiTFT 2.8" on a
RPi2, BR 2016.05. When I modprobe ft6236, nothing happens : no message
in dmesg, no device created in /dev/input. i2cdetect detects it at
address 38h.
I did load i2c_bcm2708, i2c-dev. I2C works (tested with a RTCC).
I tried :
# echo ft6236 0x38 > /sys/class/i2c-adapter/i2c-1/new_device
and I got something in dmesg :
ft6236 1-0038: irq is missing
ft6236: probe of 1-0038 failed with error -22
i2c i2c-1: new_device: Instantiated device ft6236 at 0x38
But still no entry in /dev/input.
Any idea ?
David.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] How to use the ft6236 touchscreen driver ?
2016-07-13 17:07 [Buildroot] How to use the ft6236 touchscreen driver ? David Picard
@ 2016-07-13 17:16 ` Baruch Siach
2016-07-14 9:26 ` David Picard
0 siblings, 1 reply; 6+ messages in thread
From: Baruch Siach @ 2016-07-13 17:16 UTC (permalink / raw)
To: buildroot
Hi David,
On Wed, Jul 13, 2016 at 07:07:43PM +0200, David Picard wrote:
> I am trying to use the touch capability of Adafruit's PiTFT 2.8" on a RPi2,
> BR 2016.05. When I modprobe ft6236, nothing happens : no message in dmesg,
> no device created in /dev/input. i2cdetect detects it at address 38h.
>
> I did load i2c_bcm2708, i2c-dev. I2C works (tested with a RTCC).
>
> I tried :
> # echo ft6236 0x38 > /sys/class/i2c-adapter/i2c-1/new_device
>
> and I got something in dmesg :
> ft6236 1-0038: irq is missing
> ft6236: probe of 1-0038 failed with error -22
> i2c i2c-1: new_device: Instantiated device ft6236 at 0x38
>
> But still no entry in /dev/input.
>
> Any idea ?
You most likely need to update your device tree file (.dts), and add your
PiTFT device as a sub-node of the i2c master.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] How to use the ft6236 touchscreen driver ?
2016-07-13 17:16 ` Baruch Siach
@ 2016-07-14 9:26 ` David Picard
2016-07-14 10:21 ` Thomas Petazzoni
2016-07-14 22:15 ` Peter Seiderer
0 siblings, 2 replies; 6+ messages in thread
From: David Picard @ 2016-07-14 9:26 UTC (permalink / raw)
To: buildroot
Well, could you please give me some directions ? Like where the dts file
is, how do I compile it, some reference documentation...
Thanks.
Le 13/07/2016 19:16, Baruch Siach a ?crit :
> Hi David,
>
> On Wed, Jul 13, 2016 at 07:07:43PM +0200, David Picard wrote:
>> I am trying to use the touch capability of Adafruit's PiTFT 2.8" on a RPi2,
>> BR 2016.05. When I modprobe ft6236, nothing happens : no message in dmesg,
>> no device created in /dev/input. i2cdetect detects it at address 38h.
>>
>> I did load i2c_bcm2708, i2c-dev. I2C works (tested with a RTCC).
>>
>> I tried :
>> # echo ft6236 0x38 > /sys/class/i2c-adapter/i2c-1/new_device
>>
>> and I got something in dmesg :
>> ft6236 1-0038: irq is missing
>> ft6236: probe of 1-0038 failed with error -22
>> i2c i2c-1: new_device: Instantiated device ft6236 at 0x38
>>
>> But still no entry in /dev/input.
>>
>> Any idea ?
>
> You most likely need to update your device tree file (.dts), and add your
> PiTFT device as a sub-node of the i2c master.
>
> baruch
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] How to use the ft6236 touchscreen driver ?
2016-07-14 9:26 ` David Picard
@ 2016-07-14 10:21 ` Thomas Petazzoni
2016-07-14 22:15 ` Peter Seiderer
1 sibling, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2016-07-14 10:21 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 14 Jul 2016 11:26:58 +0200, David Picard wrote:
> Well, could you please give me some directions ? Like where the dts file
> is, how do I compile it, some reference documentation...
This is really unrelated to Buildroot, so this mailing list is probably
not the best place. You can Google for some Device Tree introduction
material, for example.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] How to use the ft6236 touchscreen driver ?
2016-07-14 9:26 ` David Picard
2016-07-14 10:21 ` Thomas Petazzoni
@ 2016-07-14 22:15 ` Peter Seiderer
2016-07-18 20:24 ` David PICARD
1 sibling, 1 reply; 6+ messages in thread
From: Peter Seiderer @ 2016-07-14 22:15 UTC (permalink / raw)
To: buildroot
Hello David,
On Thu, 14 Jul 2016 11:26:58 +0200, David Picard <davepiq@yahoo.fr> wrote:
> Well, could you please give me some directions ? Like where the dts file
> is, how do I compile it, some reference documentation...
>
Maybe try the following additions at the config.txt file (on the boot/vfat partition of the SD card):
# for adafruit 2.8 tft
dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=pitft28-capacitive.dtbo
Enable the following at the buildroot .config file:
BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS=y
And copy images/rpi-firmware/overlays/pitft28-capacitive.dtbo to overlays/pitft28-capacitive.dtbo
on the boot/vfat partition of the SD card...
Regards,
Peter
> Thanks.
>
> Le 13/07/2016 19:16, Baruch Siach a ?crit :
> > Hi David,
> >
> > On Wed, Jul 13, 2016 at 07:07:43PM +0200, David Picard wrote:
> >> I am trying to use the touch capability of Adafruit's PiTFT 2.8" on a RPi2,
> >> BR 2016.05. When I modprobe ft6236, nothing happens : no message in dmesg,
> >> no device created in /dev/input. i2cdetect detects it at address 38h.
> >>
> >> I did load i2c_bcm2708, i2c-dev. I2C works (tested with a RTCC).
> >>
> >> I tried :
> >> # echo ft6236 0x38 > /sys/class/i2c-adapter/i2c-1/new_device
> >>
> >> and I got something in dmesg :
> >> ft6236 1-0038: irq is missing
> >> ft6236: probe of 1-0038 failed with error -22
> >> i2c i2c-1: new_device: Instantiated device ft6236 at 0x38
> >>
> >> But still no entry in /dev/input.
> >>
> >> Any idea ?
> >
> > You most likely need to update your device tree file (.dts), and add your
> > PiTFT device as a sub-node of the i2c master.
> >
> > baruch
> >
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] How to use the ft6236 touchscreen driver ?
2016-07-14 22:15 ` Peter Seiderer
@ 2016-07-18 20:24 ` David PICARD
0 siblings, 0 replies; 6+ messages in thread
From: David PICARD @ 2016-07-18 20:24 UTC (permalink / raw)
To: buildroot
Hi Peter,
It works perfectly. Thank you very much.
David.
Le Vendredi 15 juillet 2016 0h16, Peter Seiderer <ps.report@gmx.net> a ?crit :
Hello David,
On Thu, 14 Jul 2016 11:26:58 +0200, David Picard <davepiq@yahoo.fr> wrote:
> Well, could you please give me some directions ? Like where the dts file
> is, how do I compile it, some reference documentation...
>
Maybe try the following additions at the config.txt file (on the boot/vfat partition of the SD card):
# for adafruit 2.8 tft? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
dtparam=spi=on? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=pitft28-capacitive.dtbo
Enable the following at the buildroot .config file:
BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS=y
And copy images/rpi-firmware/overlays/pitft28-capacitive.dtbo to overlays/pitft28-capacitive.dtbo
on the boot/vfat partition of the SD card...
Regards,
Peter
> Thanks.
>
> Le 13/07/2016 19:16, Baruch Siach a ?crit :
> > Hi David,
> >
> > On Wed, Jul 13, 2016 at 07:07:43PM +0200, David Picard wrote:
> >> I am trying to use the touch capability of Adafruit's PiTFT 2.8" on a RPi2,
> >> BR 2016.05. When I modprobe ft6236, nothing happens : no message in dmesg,
> >> no device created in /dev/input. i2cdetect detects it at address 38h.
> >>
> >> I did load i2c_bcm2708, i2c-dev. I2C works (tested with a RTCC).
> >>
> >> I tried :
> >> # echo ft6236 0x38 > /sys/class/i2c-adapter/i2c-1/new_device
> >>
> >> and I got something in dmesg :
> >> ft6236 1-0038: irq is missing
> >> ft6236: probe of 1-0038 failed with error -22
> >> i2c i2c-1: new_device: Instantiated device ft6236 at 0x38
> >>
> >> But still no entry in /dev/input.
> >>
> >> Any idea ?
> >
> > You most likely need to update your device tree file (.dts), and add your
> > PiTFT device as a sub-node of the i2c master.
> >
> > baruch
> >
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160718/c400f268/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-07-18 20:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-13 17:07 [Buildroot] How to use the ft6236 touchscreen driver ? David Picard
2016-07-13 17:16 ` Baruch Siach
2016-07-14 9:26 ` David Picard
2016-07-14 10:21 ` Thomas Petazzoni
2016-07-14 22:15 ` Peter Seiderer
2016-07-18 20:24 ` David PICARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox