{"action":"created","issue":{"url":"https://api.github.com/repos/notro/fbtft/issues/254","labels_url":"https://api.github.com/repos/notro/fbtft/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/notro/fbtft/issues/254/comments","events_url":"https://api.github.com/repos/notro/fbtft/issues/254/events","html_url":"https://github.com/notro/fbtft/issues/254","id":59680869,"number":254,"title":"Support for tft 3.6\" ili9325","user":{"login":"ont","id":350218,"avatar_url":"https://avatars.githubusercontent.com/u/350218?v=3","gravatar_id":"","url":"https://api.github.com/users/ont","html_url":"https://github.com/ont","followers_url":"https://api.github.com/users/ont/followers","following_url":"https://api.github.com/users/ont/following{/other_user}","gists_url":"https://api.github.com/users/ont/gists{/gist_id}","starred_url":"https://api.github.com/users/ont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ont/subscriptions","organizations_url":"https://api.github.com/users/ont/orgs","repos_url":"https://api.github.com/users/ont/repos","events_url":"https://api.github.com/users/ont/events{/privacy}","received_events_url":"https://api.github.com/users/ont/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-03-03T18:05:13Z","updated_at":"2015-05-29T16:01:24Z","closed_at":null,"body":"I recently bought 3.6 \" lcd screen for my raspberry b+ but I can't figure out how to use it with one of your drivers. \r\n![front](https://cloud.githubusercontent.com/assets/350218/6468073/d9b8c922-c1fc-11e4-9fc6-0cb1d454c3c0.jpg)\r\n![back](https://cloud.githubusercontent.com/assets/350218/6468079/e0d67966-c1fc-11e4-8f3a-9fa1f41d9712.jpg)\r\n\r\n\r\nI successfully install custom image with precompiled kernel from [win32_screem.rar](https://drive.google.com/uc?export=download&confirm=FO_M&id=0BxpI8ASCfaeBbUF6SEJzSm9zU2M). Custom image is raspbian with 3.6.11 linux kernel:\r\n```\r\nroot@raspberrypi:/# uname -a\r\nLinux raspberrypi 3.6.11 #5 PREEMPT Sun Nov 9 19:00:34 CST 2014 armv6l GNU/Linux\r\n```\r\nThere is some magical tft driver which is compiled into the kernel (no **.ko** files on device).\r\nBy searching in **/sys** dir I found this references\r\n```\r\nroot@raspberrypi:/# find -name '*932*'\r\n./sys/bus/platform/devices/ili9325.0\r\n./sys/bus/platform/drivers/ili9325\r\n./sys/bus/platform/drivers/ili9325/ili9325.0\r\n./sys/devices/platform/ili9325.0\r\n\r\nroot@raspberrypi:/sys/bus/platform/devices/ili9325.0/graphics/fb0# ls -la\r\ntotal 0\r\ndrwxr-xr-x 3 root root    0 Nov  9 08:37 .\r\ndrwxr-xr-x 3 root root    0 Nov  9 08:37 ..\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 bits_per_pixel\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 blank\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 console\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 cursor\r\n-r--r--r-- 1 root root 4096 Nov  9 10:20 dev\r\nlrwxrwxrwx 1 root root    0 Nov  9 10:20 device -> ../../../ili9325.0\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 mode\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 modes\r\n-r--r--r-- 1 root root 4096 Nov  9 10:20 name\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 pan\r\ndrwxr-xr-x 2 root root    0 Nov  9 08:37 power\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 rotate\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 state\r\n-r--r--r-- 1 root root 4096 Nov  9 10:20 stride\r\nlrwxrwxrwx 1 root root    0 Nov  9 10:20 subsystem -> ../../../../../class/graphics\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 uevent\r\n-rw-r--r-- 1 root root 4096 Nov  9 10:20 virtual_size\r\n```\r\nSome info from this frame buffer:\r\n```\r\nname --> ILI9325\r\nbits_per_pixel -->  16\r\nmodes --> U:400x240p-0\r\nvirtual_size --> 400,240\r\n```\r\n\r\n```\r\nroot@raspberrypi:/# fbset -i -fb /dev/fb0 \r\n\r\nmode \"400x240\"\r\n    geometry 400 240 400 240 16\r\n    timings 0 0 0 0 0 0 0\r\n    rgba 5/11,6/5,5/0,0/0\r\nendmode\r\n\r\nFrame buffer device information:\r\n    Name        : ILI9325\r\n    Address     : 0xdc804000\r\n    Size        : 192512\r\n    Type        : PACKED PIXELS\r\n    Visual      : TRUECOLOR\r\n    XPanStep    : 0\r\n    YPanStep    : 0\r\n    YWrapStep   : 0\r\n    LineLength  : 800\r\n    Accelerator : No\r\n```\r\n\r\nThe problem is that I have no success with your fb_ili9325 driver. It results with errors in dmesg and white screen. I try this commands:\r\n```\r\nmodprobe fbtft_device name=ili9325\r\nmodprobe fbtft_device name=fb_ili9325\r\n```\r\n\r\nI figure out wich pins is used by this lcd (# is in use):\r\n```\r\n   3.3v  1 # . 2\r\n         3 . . 4\r\n         5 . # 6   ground\r\n GPCLK   7 # . 8\r\n         9 . . 10\r\n GPIO0  11 # # 12  PCM_CLK / PCM0\r\n        13 . . 14\r\n GPIO3  15 # # 16  GPIO4\r\n        17 . # 18  GPIO5\r\n  MOSI  19 # . 20\r\n  MISO  21 # # 22  GPIO6\r\n  SCLK  23 # # 24  CS0\r\n        25 . # 26  CS1\r\n```\r\nAbsence of one of this pins results (in most cases) in white flashing screen. \r\nHow to detect purposes of each of this pins? Can you help me with correcting your ili9325 diver?"},"comment":{"url":"https://api.github.com/repos/notro/fbtft/issues/comments/106856953","html_url":"https://github.com/notro/fbtft/issues/254#issuecomment-106856953","issue_url":"https://api.github.com/repos/notro/fbtft/issues/254","id":106856953,"user":{"login":"MDM63","id":12661736,"avatar_url":"https://avatars.githubusercontent.com/u/12661736?v=3","gravatar_id":"","url":"https://api.github.com/users/MDM63","html_url":"https://github.com/MDM63","followers_url":"https://api.github.com/users/MDM63/followers","following_url":"https://api.github.com/users/MDM63/following{/other_user}","gists_url":"https://api.github.com/users/MDM63/gists{/gist_id}","starred_url":"https://api.github.com/users/MDM63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDM63/subscriptions","organizations_url":"https://api.github.com/users/MDM63/orgs","repos_url":"https://api.github.com/users/MDM63/repos","events_url":"https://api.github.com/users/MDM63/events{/privacy}","received_events_url":"https://api.github.com/users/MDM63/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T16:01:24Z","updated_at":"2015-05-29T16:01:24Z","body":"Hello. I have the same display. keerttttt could you be so kind and tell us how exactly you got your display to work with the standard kernel image? What fbtft_device name you used and/or how did you connect the display? This would be very much appreciated. "}}