Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

Need driver source in linux for Adafruit 5" display with tou
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Need driver source in linux for Adafruit 5" display with tou

by ayyappan05 on Sun Jan 16, 2022 6:34 am

Hi,

I am having ADAFRUIT 5" 800 x 480 touch display.
My AdaFruit has AR1100 Touch controller, pwm-able backlight.
And in the package it is mentioned “C3975-001” and “P2260B” below the bar code.
I need the Linux device driver source for that.
Please provide me the source or if there is any link to download post it here.

Thanks.

ayyappan05
 
Posts: 6
Joined: Sun Jan 16, 2022 6:24 am

Re: Need driver source in linux for Adafruit 5" display with

by mikeysklar on Mon Jan 17, 2022 8:10 pm

We have a few 5" displays. What is the Adafruit part#?

This guide has the Raspberry Pi configuration for one four 5" 800x480 models which might be yours.

https://learn.adafruit.com/adafruit-5-8 ... -pi-config

mikeysklar
 
Posts: 7483
Joined: Mon Aug 01, 2016 8:10 pm

Re: Need driver source in linux for Adafruit 5" display with

by ayyappan05 on Thu Jan 20, 2022 2:39 am

I am not using this display for Raspberry Pi.
The actual part number is 2260.
Please provide any source code files to interface this display and touchscreen, if Linux device driver source files not available.
The link you have given is for Raspberry Pi board configuration.
That configuration alone will not help me.

Thanks.

ayyappan05
 
Posts: 6
Joined: Sun Jan 16, 2022 6:24 am

Re: Need driver source in linux for Adafruit 5" display with

by mikeysklar on Thu Jan 20, 2022 3:47 pm

The AR1100 driver should be baked right into whatever linux distribution you are running as a USB mouse driver. We don’t maintain any special drivers for it. Are you seeing the AR1100 detected by the OS when you scan for USB devices or check in dmesg?

mikeysklar
 
Posts: 7483
Joined: Mon Aug 01, 2016 8:10 pm

Re: Need driver source in linux for Adafruit 5" display with

by ayyappan05 on Sun Jan 23, 2022 7:24 am

Hi,
I got output the same as below, before and after connecting the display through HDMI port of my Ubuntu 18.04 Laptop.
No difference in the output before and after connecting.

Code: Select all | TOGGLE FULL SIZE
lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:07dc Intel Corp.
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 0c45:6712 Microdia
Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Code: Select all | TOGGLE FULL SIZE
dmesg | grep USB
[    0.169603] ACPI: bus type USB registered
[    1.047431] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.047449] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.047464] uhci_hcd: USB Universal Host Controller Interface driver
[    1.047857] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[    1.049171] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.049172] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.049434] hub 1-0:1.0: USB hub found
[    1.060832] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[    1.060904] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.060905] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.061149] hub 2-0:1.0: USB hub found
[    1.396065] usb 1-3: new full-speed USB device number 2 using xhci_hcd
[    1.546449] usb 1-3: New USB device found, idVendor=046d, idProduct=c52b
[    1.546451] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.546452] usb 1-3: Product: USB Receiver
[    1.553038] usbhid: USB HID core driver
[    1.555421] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-3/input2
[    1.672058] usb 1-5: new high-speed USB device number 3 using xhci_hcd
[    1.685916] logitech-hidpp-device 0003:046D:4055.0004: input,hidraw1: USB HID v1.11 Mouse [Logitech Wireless Mouse] on usb-0000:00:14.0-3:1
[    1.890115] usb 1-5: New USB device found, idVendor=0c45, idProduct=6712
[    1.890117] usb 1-5: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    2.024059] usb 1-6: new high-speed USB device number 4 using xhci_hcd
[    2.412377] usb 1-6: New USB device found, idVendor=0bda, idProduct=0129
[    2.412379] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.412381] usb 1-6: Product: USB2.0-CRW
[    2.540040] usb 1-8: new full-speed USB device number 5 using xhci_hcd
[    2.689493] usb 1-8: New USB device found, idVendor=8087, idProduct=07dc
[    2.689495] usb 1-8: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   16.922684] USB Video Class driver (1.1.1)


I am not sure that is it right as you say to check with USB scan commands to check HDMI display.

But I see the Laptop's wall paper displayed in the Adafruit display.

Now what I need to know is as you said this display should be baked right in any Linux Distros, is it enough to make work in Android 9/10/11, after understanding the semantics of config file given and transforming that parameters in that config file to adapt in Android? And no special drivers or Hardware Abstraction Layer for Android is needed?

Please confirm.

ayyappan05
 
Posts: 6
Joined: Sun Jan 16, 2022 6:24 am

Re: Need driver source in linux for Adafruit 5" display with

by mikeysklar on Mon Jan 24, 2022 5:18 pm

I would not expect Android to have stables drivers for this. Especially with a kernel going back to 2011.

This might help a bit. Notice the 2012 date.

http://ww1.microchip.com/downloads/cn/D ... 557817.pdf

mikeysklar
 
Posts: 7483
Joined: Mon Aug 01, 2016 8:10 pm

Re: Need driver source in linux for Adafruit 5" display with

by ayyappan05 on Tue Jan 25, 2022 12:07 pm

Hi,

I have downloaded the Linux source code specified in the document you have given.
I shall give a try with that.

But it specifies only the touch controller and don't we need to write drivers for display
(mentioned in the data-sheet as KD50G21-40NT-A1 )?

If there is need for that in my case (i.e. to adapt to Android HAL) please provide that document or source code for display too.

Thanks.

ayyappan05
 
Posts: 6
Joined: Sun Jan 16, 2022 6:24 am

Re: Need driver source in linux for Adafruit 5" display with

by mikeysklar on Tue Jan 25, 2022 2:07 pm

There is no driver for the TFP401 specifically it is just run in HDMI mode in terms of kernel support.

I think some people have been looking into making DVI work, but that is not critical.

https://boundarydevices.com/dvi-support ... x6-boards/

mikeysklar
 
Posts: 7483
Joined: Mon Aug 01, 2016 8:10 pm

Re: Need driver source in linux for Adafruit 5" display with

by ayyappan05 on Fri Jan 28, 2022 11:05 am

Hi,

The AR1100 touch driver mentioned in the given document was written for UART mode(uses serio abstraction module).
But in Ada fruit circuit AR1100 was connected in USB data lines and will be detected as USB mouse.
Will the driver work as it is?
Or do we have to change for USB driver module? If so can you please provide the driver written for USB mode of AR1100?

Thanks.

ayyappan05
 
Posts: 6
Joined: Sun Jan 16, 2022 6:24 am

Re: Need driver source in linux for Adafruit 5" display with

by mikeysklar on Fri Jan 28, 2022 2:36 pm

@ayyappan05,

Good question about USB vs. UART driver. Since this driver has been baked into all the platforms we support for the last 10 years it is difficult to uncouple the USB source. We don't maintain a driver for it ourselves. You'll be on your own to determine how to make it work with older Android devices or obscure linux distros.

mikeysklar
 
Posts: 7483
Joined: Mon Aug 01, 2016 8:10 pm

Re: Need driver source in linux for Adafruit 5" display with

by ayyappan05 on Sat Jan 29, 2022 6:42 am

I agree AR1100 don't need special USB drivers as for the common Linux distros, intrinsic drivers itself supports that.
It was mentioned as such in the data-sheet of AR1100 that default HID_MOUSE will become active mode and it don't need any special drivers. If no USB was not detected by the host for 45 secs after power up it will set into UART module by default.

But when connected with my Ubuntu 18.04 laptop, only display is up but not the touch USB or UART module.

After 45 secs I checked with the following commands

Code: Select all | TOGGLE FULL SIZE
dmesg | grep tty

for checking UART module is active and

Code: Select all | TOGGLE FULL SIZE
dmesg | grep USB

for checking USB module is active.

In both cases it seems there are no entries corresponding to this module.(Am I using correct commands to check? Please correct if I am using wrong commands or I am missing anything)

I see red led blinking near the marker in board mentioned as touch.

Is it symptom that touch module is correctly functioning?

Or should I do any manipulation in the board to make it work? Or if a repair work is needed in the board?

From the date of purchase I have not tested the touch module.

Please reply.

ayyappan05
 
Posts: 6
Joined: Sun Jan 16, 2022 6:24 am

Re: Need driver source in linux for Adafruit 5" display with

by mikeysklar on Mon Jan 31, 2022 6:41 pm

You should see the red led when a touch is detected.

https://learn.adafruit.com/ar1100-resis ... e/overview

Are you using a good data cable? Have you tried plugging this USB device into other machines (Windows) to do the calibration?

https://learn.adafruit.com/ar1100-resis ... the-ar1100

mikeysklar
 
Posts: 7483
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.