{"action":"closed","issue":{"url":"https://api.github.com/repos/notro/fbtft/issues/292","labels_url":"https://api.github.com/repos/notro/fbtft/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/notro/fbtft/issues/292/comments","events_url":"https://api.github.com/repos/notro/fbtft/issues/292/events","html_url":"https://github.com/notro/fbtft/issues/292","id":90440546,"number":292,"title":"Problems with Waveshare 3.5 inch TFT screen on Odroid C1","user":{"login":"ilpk","id":13020825,"avatar_url":"https://avatars.githubusercontent.com/u/13020825?v=3","gravatar_id":"","url":"https://api.github.com/users/ilpk","html_url":"https://github.com/ilpk","followers_url":"https://api.github.com/users/ilpk/followers","following_url":"https://api.github.com/users/ilpk/following{/other_user}","gists_url":"https://api.github.com/users/ilpk/gists{/gist_id}","starred_url":"https://api.github.com/users/ilpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilpk/subscriptions","organizations_url":"https://api.github.com/users/ilpk/orgs","repos_url":"https://api.github.com/users/ilpk/repos","events_url":"https://api.github.com/users/ilpk/events{/privacy}","received_events_url":"https://api.github.com/users/ilpk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-23T17:09:09Z","updated_at":"2015-09-06T19:03:55Z","closed_at":"2015-09-06T19:03:55Z","body":"Hi,\r\n\r\nI've been trying to get the Waveshare 3.5 inch screen to work on Odroid, and haven't been able to get any further than a white screen.\r\n\r\nIt's said to work on Raspberry PI, and I've adapted the gpio pins for odroid\r\nmodprobe flexfb  nobacklight width=320  height=480  regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3\r\nmodprobe fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:103,dc:102\r\n\r\nThe driver seems to load correctly ...\r\n\r\n[ 3304.843261@2] fbtft_device:  SPI devices registered:\r\n[ 3304.843301@2] fbtft_device:      ads7846 spi0.1 1000kHz 8 bits mode=0x00\r\n[ 3304.849309@2] fbtft_device:  'fb' Platform devices registered:\r\n[ 3304.855465@2] flexfb spi0.0: fbtft_request_gpios: 'reset' = GPIO103\r\n[ 3304.861389@2] flexfb spi0.0: fbtft_request_gpios: 'dc' = GPIO102\r\n[ 3304.867354@2] flexfb spi0.0: flexfb_verify_gpios_dc()\r\n[ 3304.872375@2] flexfb spi0.0: fbtft_init_display()\r\n[ 3304.877080@2] flexfb spi0.0: fbtft_reset()\r\n[ 3305.001051@2] flexfb spi0.0: init: write(0xB0) 0x00 \r\n[ 3305.001149@2] flexfb spi0.0: init: write(0x11) \r\n[ 3305.004916@2] flexfb spi0.0: init: mdelay(250)\r\n[ 3305.259093@2] flexfb spi0.0: init: write(0x3A) 0x55 \r\n[ 3305.259178@2] flexfb spi0.0: init: write(0xC2) 0x44 \r\n[ 3305.263418@2] flexfb spi0.0: init: write(0xC5) 0x00 0x00 0x00 0x00 \r\n[ 3305.269701@2] flexfb spi0.0: init: write(0xE0) 0x0F 0x1F 0x1C 0x0C 0x0F 0x08 0x48 0x98 0x37 0x0A 0x13 0x04 0x11 0x0D 0x00 \r\n[ 3305.280742@2] flexfb spi0.0: init: write(0xE1) 0x0F 0x32 0x2E 0x0B 0x0D 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 \r\n[ 3305.291767@2] flexfb spi0.0: init: write(0xE2) 0x0F 0x32 0x2E 0x0B 0x0D 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 \r\n[ 3305.302779@2] flexfb spi0.0: init: write(0x36) 0x28 \r\n[ 3305.307718@2] flexfb spi0.0: init: write(0x11) \r\n[ 3305.312192@2] flexfb spi0.0: init: write(0x29) \r\n[ 3305.473715@2] flexfb spi0.0: Display update: 1910 kB/s (156.979 ms), fps=0 (0.000 ms)\r\n[ 3305.476131@2] graphics fb0: flexfb frame buffer, 480x320, 300 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 16 MHz\r\n[ 3305.487604@2] fbtft_device:  GPIOS used by 'flexfb':\r\n[ 3305.492491@2] fbtft_device:    'reset' = GPIO103\r\n[ 3305.497110@2] fbtft_device:    'dc' = GPIO102\r\n[ 3305.501434@2] fbtft_device:  SPI devices registered:\r\n[ 3305.506406@2] fbtft_device:      ads7846 spi0.1 1000kHz 8 bits mode=0x00\r\n[ 3305.513073@2] fbtft_device:      flexfb spi0.0 16000kHz 8 bits mode=0x00\r\n\r\nbut the screen remains white. We've hung an oscilloscope on various lines, and the gpio pins seem to be functioning correctly - we can see that data is being sent to the screen and that the correct CS lines are being used. It seems to me that the init commands are not (correctly?) reaching the LCD screen. The init commands used are the same as for the ILI9486 chip. Expressly adding a 0x28 (screen off) command to the init string does not result in the screen turning off. I'm at a loss to know how to proceed. I realize that the Raspberry Pi has your focus - do you have a suggestion as to where I could further investigate? Are there any known differences between the Raspberry Pi and the Odroid that could cause problems? I note that they use different SPI chips, and that the fbtft drivers have special handling for the raspberry spi chip. I've compared the raspberry and odroid kernel source fbtft drivers, and can't find any obvious differences.\r\n\r\nGrateful for any pointers,\r\nPaul\r\n\r\n"}}