Closed bandibandi closed 9 years ago
If you change the chip select, you need to make your own overlay.
Copy this: https://github.com/notro/fbtft/blob/master/dts/overlays/rpi/pitft-overlay.dts
Then change to reg =<1>;
and remove the touch node.
See here for how to build the overlay: https://github.com/notro/fbtft/wiki/FBTFT-RPI-overlays
Closing issue since there has been no activity for more than 2 months. Reopen if needed.
Hello.
I wish to use PiTFT Mini Kit on Rpi 2.
I followed the instructions and did that: sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update reboot
This is my config.txt: dtparam=i2c_arm=on dtparam=spi=on dtoverlay=pitft
I try to use this way: sudo modprobe spi-bcm2708 sudo modprobe stmpe_ts sudo modprobe fbtft_device name=pitft cs=1 rotate=90
I wire the LCD to CS1 on Rpi and i don't use the touchscreen.
I've got only white screen.
Maybe i have to modify the dtoverlay somehow instead of use the following? sudo modprobe fbtft_device name=pitft cs=1 rotate=90
If yes, please, how can i do that?
This is my dmesg:
[ 0.000000] Booting Linux on physical CPU 0xf00 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.18.5-v7+ (pi@raspi2) (gcc version 4.8.3 20140106 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.01 - Linaro GCC 2013.11) ) #1 SMP PREEMPT Fri Feb 6 23:06:57 CET 2015 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine model: Raspberry Pi 2 Model B [ 0.000000] cma: Reserved 8 MiB at 0x3a800000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 241664 [ 0.000000] free_area_init_node: node 0, pgdat 8085ca00, node_mem_map ba093000 [ 0.000000] Normal zone: 1888 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 241664 pages, LIFO batch:31 [ 0.000000] [bcm2709_smp_init_cpus] enter (8620->f3003010) [ 0.000000] [bcm2709_smp_init_cpus] ncores=4 [ 0.000000] PERCPU: Embedded 11 pages/cpu @ba05c000 s12864 r8192 d24000 u45056 [ 0.000000] pcpu-alloc: s12864 r8192 d24000 u45056 alloc=11*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 239776 [ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0x67c6ce60 smsc95xx.macaddr=B8:27:EB:C6:CE:60 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait rwfs=tmpfs [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 940456K/966656K available (5902K kernel code, 404K rwdata, 1876K rodata, 404K init, 784K bss, 26200K reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xbb800000 - 0xff000000 (1080 MB) [ 0.000000] lowmem : 0x80000000 - 0xbb000000 ( 944 MB) [ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB) [ 0.000000] .text : 0x80008000 - 0x807a0b04 (7779 kB) [ 0.000000] .init : 0x807a1000 - 0x80806000 ( 404 kB) [ 0.000000] .data : 0x80806000 - 0x8086b06c ( 405 kB) [ 0.000000] .bss : 0x8086b06c - 0x8092f06c ( 784 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:480 [ 0.000000] Architected cp15 timer(s) running at 19.20MHz (virt). [ 0.000016] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 3579139424256ns [ 0.000038] Switching to timer-based delay loop, resolution 52ns [ 0.000332] Console: colour dummy device 80x30 [ 0.001777] console [tty1] enabled [ 0.001828] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000) [ 0.001909] pid_max: default: 32768 minimum: 301 [ 0.002328] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.002388] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.003675] Initializing cgroup subsys memory [ 0.003767] Initializing cgroup subsys devices [ 0.003824] Initializing cgroup subsys freezer [ 0.003875] Initializing cgroup subsys net_cls [ 0.003937] Initializing cgroup subsys blkio [ 0.004045] CPU: Testing write buffer coherency: ok [ 0.004159] ftrace: allocating 20192 entries in 60 pages [ 0.054098] CPU0: update cpu_capacity 1024 [ 0.054174] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00 [ 0.054212] [bcm2709_smp_prepare_cpus] enter [ 0.054380] Setting up static identity map for 0x552d78 - 0x552dd0 [ 0.114076] [bcm2709_boot_secondary] cpu:1 started (0) 17 [ 0.114380] CPU1: Booted secondary processor [ 0.114390] [bcm2709_secondary_init] enter cpu:1 [ 0.114443] CPU1: update cpu_capacity 1024 [ 0.114452] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01 [ 0.134021] [bcm2709_boot_secondary] cpu:2 started (0) 18 [ 0.134268] CPU2: Booted secondary processor [ 0.134275] [bcm2709_secondary_init] enter cpu:2 [ 0.134307] CPU2: update cpu_capacity 1024 [ 0.134315] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02 [ 0.154096] [bcm2709_boot_secondary] cpu:3 started (0) 18 [ 0.154321] CPU3: Booted secondary processor [ 0.154328] [bcm2709_secondary_init] enter cpu:3 [ 0.154358] CPU3: update cpu_capacity 1024 [ 0.154366] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03 [ 0.154462] Brought up 4 CPUs [ 0.154582] SMP: Total of 4 processors activated (153.60 BogoMIPS). [ 0.154615] CPU: All CPU(s) started in SVC mode. [ 0.155660] devtmpfs: initialized [ 0.178702] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.180908] pinctrl core: initialized pinctrl subsystem [ 0.184268] NET: Registered protocol family 16 [ 0.189956] DMA: preallocated 4096 KiB pool for atomic coherent allocations [ 0.213888] cpuidle: using governor ladder [ 0.243920] cpuidle: using governor menu [ 0.244377] bcm2709.uart_clock = 3000000 [ 0.247660] No ATAGs? [ 0.247727] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.247782] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.247842] mailbox: Broadcom VideoCore Mailbox driver [ 0.247978] bcm2708_vcio: mailbox at f300b880 [ 0.248085] bcm_power: Broadcom power driver [ 0.248119] bcm_power_open() -> 0 [ 0.248144] bcm_power_request(0, 8) [ 0.748848] bcm_mailbox_read -> 00000080, 0 [ 0.748880] bcm_power_request -> 0 [ 0.749020] Serial: AMBA PL011 UART driver [ 0.749167] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3 [ 1.269698] console [ttyAMA0] enabled [ 1.347595] SCSI subsystem initialized [ 1.351604] usbcore: registered new interface driver usbfs [ 1.357276] usbcore: registered new interface driver hub [ 1.362750] usbcore: registered new device driver usb [ 1.369787] Switched to clocksource arch_sys_counter [ 1.404719] FS-Cache: Loaded [ 1.407978] CacheFiles: Loaded [ 1.423502] NET: Registered protocol family 2 [ 1.429121] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 1.436366] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 1.443057] TCP: Hash tables configured (established 8192 bind 8192) [ 1.449528] TCP: reno registered [ 1.452797] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 1.458781] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 1.465525] NET: Registered protocol family 1 [ 1.470342] RPC: Registered named UNIX socket transport module. [ 1.476283] RPC: Registered udp transport module. [ 1.481082] RPC: Registered tcp transport module. [ 1.485800] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.493393] bcm2708_dma: DMA manager at f3007000 [ 1.498194] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB) [ 1.508253] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 1.514767] audit: initializing netlink subsys (disabled) [ 1.520306] audit: type=2000 audit(1.299:1): initialized [ 1.541777] VFS: Disk quotas dquot_6.5.2 [ 1.546095] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.555786] FS-Cache: Netfs 'nfs' registered for caching [ 1.562032] NFS: Registering the id_resolver key type [ 1.567176] Key type id_resolver registered [ 1.571429] Key type id_legacy registered [ 1.576550] msgmni has been set to 1852 [ 1.582133] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 1.589759] io scheduler noop registered [ 1.593753] io scheduler deadline registered (default) [ 1.599237] io scheduler cfq registered [ 1.605778] BCM2708FB: allocated DMA memory fac00000 [ 1.610836] BCM2708FB: allocated DMA channel 0 @ f3007000 [ 1.622715] Console: switching to colour frame buffer device 82x26 [ 1.635040] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver [ 1.644353] uart-pl011 dev:f1: no DMA platform data [ 1.650937] kgdb: Registered I/O driver kgdboc. [ 1.680311] vc-cma: Videocore CMA driver [ 1.685787] vc-cma: vc_cma_base = 0x00000000 [ 1.692066] vc-cma: vc_cma_size = 0x00000000 (0 MiB) [ 1.698979] vc-cma: vc_cma_initial = 0x00000000 (0 MiB) [ 1.717623] brd: module loaded [ 1.728281] loop: module loaded [ 1.733209] vchiq: vchiq_init_state: slot_zero = 0xba800000, is_master = 0 [ 1.742343] Loading iSCSI transport class v2.0-870. [ 1.749546] CAN device driver interface [ 1.755053] usbcore: registered new interface driver smsc95xx [ 1.762360] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.969888] Core Release: 2.80a [ 1.974462] Setting default values for core params [ 1.980791] Finished setting default values for core params [ 2.188258] Using Buffer DMA mode [ 2.193061] Periodic Transfer Interrupt Enhancement - disabled [ 2.200453] Multiprocessor Interrupt Enhancement - disabled [ 2.207564] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 2.213433] Dedicated Tx FIFOs mode [ 2.218738] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbac14000 dma = 0xfac14000 len=9024 [ 2.231669] FIQ FSM acceleration enabled for : [ 2.231669] Non-periodic Split Transactions [ 2.231669] Periodic Split Transactions [ 2.231669] High-Speed Isochronous Endpoints [ 2.254654] dwc_otg: Microframe scheduler enabled [ 2.254721] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x803f7a24 [ 2.262296] WARN::hcd_init_fiq:413: FIQ ASM at 0x803f7d80 length 36 [ 2.270175] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbb806000 [ 2.277783] dwc_otg bcm2708_usb: DWC OTG Controller [ 2.284282] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1 [ 2.293161] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000 [ 2.300276] Init: Port Power? op_state=1 [ 2.305739] Init: Power Port (0) [ 2.310798] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 2.319177] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.327987] usb usb1: Product: DWC OTG Controller [ 2.334248] usb usb1: Manufacturer: Linux 3.18.5-v7+ dwc_otg_hcd [ 2.341819] usb usb1: SerialNumber: bcm2708_usb [ 2.348884] hub 1-0:1.0: USB hub found [ 2.354242] hub 1-0:1.0: 1 port detected [ 2.360100] dwc_otg: FIQ enabled [ 2.360115] dwc_otg: NAK holdoff enabled [ 2.360125] dwc_otg: FIQ split-transaction FSM enabled [ 2.360169] Module dwc_common_port init [ 2.360547] usbcore: registered new interface driver usb-storage [ 2.368277] mousedev: PS/2 mouse device common for all mice [ 2.376025] bcm2835-cpufreq: min=600000 max=900000 [ 2.382663] sdhci: Secure Digital Host Controller Interface driver [ 2.390393] sdhci: Copyright(c) Pierre Ossman [ 2.396467] DMA channels allocated for the MMC driver [ 2.439822] Load BCM2835 MMC driver [ 2.446636] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.456535] ledtrig-cpu: registered to indicate activity on CPUs [ 2.468668] hidraw: raw HID events driver (C) Jiri Kosina [ 2.475993] usbcore: registered new interface driver usbhid [ 2.483244] usbhid: USB HID core driver [ 2.491082] TCP: cubic registered [ 2.497027] Initializing XFRM netlink socket [ 2.502938] NET: Registered protocol family 17 [ 2.509883] can: controller area network core (rev 20120528 abi 9) [ 2.517733] NET: Registered protocol family 29 [ 2.523733] can: netlink gateway (rev 20130117) max_hops=1 [ 2.531263] Key type dns_resolver registered [ 2.537163] mmc0: host does not support reading read-only switch, assuming write-enable [ 2.537549] Registering SWP/SWPB emulation handler [ 2.538561] registered taskstats version 1 [ 2.538864] vc-sm: Videocore shared memory driver
[ 2.560273] [vc_sm_connected_init]: end - returning 0 [ 2.569973] Indeed it is in host mode hprt0 = 00021501 [ 2.586172] Waiting for root device /dev/mmcblk0p2... [ 2.588042] mmc0: new high speed SDHC card at address 59b4 [ 2.588657] mmcblk0: mmc0:59b4 SD 7.21 GiB [ 2.590338] mmcblk0: p1 p2 p3 [ 2.613089] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem [ 2.622026] EXT4-fs (mmcblk0p2): write access will be enabled during recovery [ 2.749871] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 2.758178] Indeed it is in host mode hprt0 = 00001101 [ 2.960135] usb 1-1: New USB device found, idVendor=0424, idProduct=9514 [ 2.968536] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 2.978344] hub 1-1:1.0: USB hub found [ 2.983902] hub 1-1:1.0: 5 ports detected [ 3.269909] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 3.390118] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00 [ 3.398610] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.410471] smsc95xx v1.0.4 [ 3.473594] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:c6:ce:60 [ 5.850301] EXT4-fs (mmcblk0p2): recovery complete [ 6.012349] EXT4-fs (mmcblk0p2): mounted filesystem with writeback data mode. Opts: (null) [ 6.024175] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 6.035173] devtmpfs: mounted [ 6.040663] Freeing unused kernel memory: 404K (807a1000 - 80806000) [ 7.131495] udevd[173]: starting version 175 [ 7.583758] bcm2708_spi 3f204000.spi: DMA channel 2 at address 0xf3007200 with irq 77 [ 7.612799] bcm2708_spi 3f204000.spi: DMA channel 4 at address 0xf3007400 with irq 20 [ 7.710068] stmpe-spi spi0.1: unknown chip id: 0x0 [ 7.717635] stmpe-spi: probe of spi0.1 failed with error -22 [ 7.849516] fbtft_of_value: buswidth = 8 [ 7.857296] fbtft_of_value: debug = 0 [ 7.877802] fbtft_of_value: rotate = 90 [ 7.895807] fbtft_of_value: fps = 25 [ 8.074696] graphics fb1: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=25, spi0.0 at 32 MHz [ 8.090452] bcm2708_spi 3f204000.spi: SPI Controller at 0x3f204000 (irq 80) [ 8.099453] bcm2708_spi 3f204000.spi: SPI Controller running in dma mode [ 8.108387] bcm2708_i2c_init_pinmode(1,2) [ 8.115536] bcm2708_i2c_init_pinmode(1,3) [ 8.122316] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 79) (baudrate 100000) [ 9.600782] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 9.994418] random: nonblocking pool is initialized [ 10.126656] i2c /dev entries driver [ 13.583883] EXT4-fs (mmcblk0p3): mounted filesystem with writeback data mode. Opts: data=writeback [ 14.666221] ip_tables: (C) 2000-2006 Netfilter Core Team [ 14.703582] nf_conntrack version 0.5.0 (14828 buckets, 59312 max) [ 14.773021] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 16.192794] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 17.724150] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1 [ 19.274462] Adding 102396k swap on /var/swap. Priority:-1 extents:5 across:339964k SSFS [ 28.101056] fbtft_device: unknown parameter 'frequency' ignored [ 28.102168] fbtft_device: SPI devices registered: [ 28.102199] fbtft_device: stmpe610 spi0.1 500kHz 8 bits mode=0x00 [ 28.102216] fbtft_device: ili9340 spi0.0 32000kHz 8 bits mode=0x00 [ 28.102227] fbtft_device: 'fb' Platform devices registered: [ 28.102263] fbtft_device: bcm2708_fb id=-1 pdata? no [ 28.102314] fbtft_device: Deleting spi0.1 [ 28.103850] fb_ili9340 spi0.1: fbtft_request_gpios: gpio_request_one('dc'=25) failed with -16 [ 28.103958] fb_ili9340: probe of spi0.1 failed with error -16 [ 28.103984] fbtft_device: GPIOS used by 'pitft': [ 28.103997] fbtft_device: 'dc' = GPIO25 [ 28.104009] fbtft_device: SPI devices registered: [ 28.104026] fbtft_device: ili9340 spi0.0 32000kHz 8 bits mode=0x00 [ 28.104042] fbtft_device: fb_ili9340 spi0.1 32000kHz 8 bits mode=0x00 [ 132.900486] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead. [ 722.394699] fuse init (API version 7.23)