This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MIPI-DSI Interface - Known Good Display not working with Tinkerboard - repost
#1
Sorry for repost, wanted to clean up the thread because of comments from an angsty user.

Hey all,

I am a veteran Pi/Beaglebone user and have been working on embedded Linux systems for over a decade.  I develop Ubuntu and Debian distros for robotics and 3D printer applications.

I have a 7" Pi Touch Screen which I just pulled from a working Octoprint Console I constructed.  I read and have observed Arran Short's video of the display working.

Arran's video suggests that nothing needs to be configured in order for the display to work.  I have used both the usual images for the tinkerboard and also the image baking process documented here:
https://github.com/rockchip-linux/rk-rootfs-build

I have not gotten the hassle free experience Arran's video suggests.  I have searched high and low for documentation about how to get the MIPI-DSI interface up and running for the Tinkerboard but I don't see this documented anywhere.

I have searched for the syntax of various commands for hw_intf.conf and this is the best I've found:
https://tinkerboarding.co.uk/forum/thread-85.html

I tried setting 'intf:i2c3=on' but that didn't wake up the screen.

Without the screen, I have no way in to the machine until I get one of my FTDI adapters.  What should I do next?

What should I do, next?
Reply
#2
Hi Coreyfro,

Do you have checked the UART log? To see if the DSI-1 is connected.
And you can check if the HW connected is right? Power pin and DSI connected pin.

BTW. Do you have this touch screen's spec?

Thanks
Reply
#3
Specs for Screen
https://www.raspberrypi.org/documentatio...e/display/

I design solutions with this screen so assume proper operation with regard to cabling. In fact, i have the tinkerboard an an RPI assembled such. that i can easily test between the two.

With regards to DSI devices in the kernel log, what data should I expect? The DSI usage for RPI devices are,well documented, but for the Tinkerboard, they are not. We need documents and demos for basic use cases for such devices with some troubleshooting procedures.
Reply
#4
You can check the log in kernel.

there is the logs as below if your device is registered successful.
[ 3.995182] tinker-mcu: send_cmds: 80
[ 4.045694] tinker-mcu: init_cmd_check: recv_cmds: 0xC3
...
[ 4.465882] panel enable
[ 4.465902] tinker_mcu_screen_power_up
[ 4.465904] tinker-mcu: tinker_mcu_screen_power_up:

if your device is not registered.
[ 3.995394] tinker-mcu: send_cmds: send command failed, ret = -6
[ 4.001468] tinker-mcu: tinker_mcu_probe: init_cmd_check failed, -6
...
[ 7.226425] panel doesn't be connected
Reply
#5
Hi,
I don't have the RPi 7' inch touch screen.
But, here is the user did I found on YouTube.
https://www.youtube.com/watch?v=1xE36LdxciE
Reply
#6
(08-09-2017, 02:03 AM)frankwu Wrote: Hi,
I don't have the RPi 7' inch touch screen.
But, here is the user did I found on YouTube.
https://www.youtube.com/watch?v=1xE36LdxciE

Please make sure you read the OP before responding.  I mentioned this video.  Let's not clutter up development forums.

(08-09-2017, 01:55 AM)ashinlin Wrote: You can check the log in kernel.

there is the logs as below if your device is registered successful.
[    3.995182] tinker-mcu: send_cmds: 80
[    4.045694] tinker-mcu: init_cmd_check: recv_cmds: 0xC3
...
[    4.465882] panel enable
[    4.465902] tinker_mcu_screen_power_up
[    4.465904] tinker-mcu: tinker_mcu_screen_power_up:

if your device is not registered.
[    3.995394] tinker-mcu: send_cmds: send command failed, ret = -6
[    4.001468] tinker-mcu: tinker_mcu_probe: init_cmd_check failed, -6
...
[    7.226425] panel doesn't be connected

Hello!

Thank you for your help.  I took a while to test this out, but I now have my serial console and tinkerboard in the same place.


Here's is what I've seen:

1.8

[    3.803093] tinker-mcu: tinker_mcu_probe: address = 0x45
[    3.808450] tinker-mcu: send_cmds: 80
[    3.866457] tinker-mcu: init_cmd_check: recv_cmds: 0xDE
[    3.871685] tinker-mcu: init_cmd_check: read wrong info
[    3.876937] tinker-mcu: tinker_mcu_probe: init_cmd_check failed, -22
[    3.883306] tinker_mcu: probe of 3-0045 failed with error -22


1.9

[    3.964341] tinker-mcu: tinker_mcu_probe: address = 0x45
[    3.964357] tinker-mcu: send_cmds: 80
[    4.014883] tinker-mcu: init_cmd_check: recv_cmds: 0xDE
[    4.014896] tinker-mcu: init_cmd_check: read wrong infoocal[575]: ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
[    4.020123] tinker-mcu: tinker_mcu_probe: init_cmd_check failed, -22
[    4.026523] tinker_mcu: probe of 3-0045 failed with error -22


I've looked on line for these codes and came up empty.

Thank you!
Reply
#7
Hi coreyfro
We just found that RPI has 2 H/W version of the 7 inch panel. (V1.0, V1.1)
please see the following link.
http://www.raspberry-projects.com/pi/pi-...ht-control
Now we only support V1.1 H/W in the tinker board kernel driver.
And from the log you provide, I think your H/W is V1.0, you can check the H/W version from the PCB just as the link show.

Currently we have no this V1.0 panel, we will try to get the panel and enable it.
Reply
#8
Indeed I do! I figured it was something like that. Glad to be of help! I look forward to a new driver! I am sure it's something simple.
Reply
#9
(08-15-2017, 08:53 AM)jamess Wrote: Hi coreyfro
   We just found that RPI has 2 H/W version of the 7 inch panel. (V1.0, V1.1)
   please see the following link.
   http://www.raspberry-projects.com/pi/pi-...ht-control
   Now we only support V1.1 H/W in the tinker board kernel driver.
   And from the log you provide, I think your H/W is V1.0, you can check the H/W version from the PCB just as the link show.
   
   Currently we have no this V1.0 panel, we will try to get the panel and enable it.

Hey!  Where in the kernel driver is the code?  I can take a look at it.  Won't be the first kernel hacking I've done.
Reply
#10
You can check the following paths of the tinker board source code.

mcu driver:
drivers/misc/tinker_mcu.c

dsi driver:
drivers/gpu/drm/rockchip/dw-mipi-dsi.c

panel driver:
drivers/gpu/drm/panel/panel-toshiba-tc358762.c


You also can check the Rpi open source code as below.
https://github.com/raspberrypi/linux/com...7e33388952
You will find that there are two version panels as below. And maybe you can find out some information about ver.1.0 panel.

+ switch (ver) {
+ case 0xde:
+ ts->atmel_ver = 1;
+ break;

+ case 0xc3:
+ ts->atmel_ver = 2;
+ break;

+ default:
+ dev_err(dev, "Unknown Atmel firmware revision: 0x%02x\n", ver);
+ return -ENODEV;
+ }


Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)