[#4092] touchscreen ad7877 failed to be probed on bf527 ezkit
Submitted By: Mingquan Pan
Open Date
2008-05-08 06:25:22 Close Date
2008-05-23 00:21:49
Priority:
Medium Assignee:
Bryan Wu
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
08r1-8
App binary format:
N/A
Summary: touchscreen ad7877 failed to be probed on bf527 ezkit
Details:
touchscreen ad7877 failed to be probed on bf527 ezkit board(1.4) with trunk head kernel.
The booting up log is:
Loading .text @ 0x00001000 (1049776 bytes)
Loading .exit.text.refok @ 0x001014b0 (296 bytes)
Loading .rodata @ 0x001015e0 (247128 bytes)
Loading __ksymtab @ 0x0013db38 (15072 bytes)
Loading __ksymtab_gpl @ 0x00141618 (4136 bytes)
Loading __ksymtab_strings @ 0x00142640 (46308 bytes)
Loading __param @ 0x0014db24 (320 bytes)
Clearing .bss @ 0x0014dc80 (59204 bytes)
Loading .data @ 0x0015c3c4 (80956 bytes)
Loading .init.text @ 0x00170000 (93612 bytes)
Loading .init.data @ 0x00186dac (13128 bytes)
Loading .init.setup @ 0x0018a0f4 (600 bytes)
Loading .initcall.init @ 0x0018a34c (444 bytes)
Loading .con_initcall.init @ 0x0018a508 (4 bytes)
Loading .init.ramfs @ 0x0018a50c (2658848 bytes)
Loading .text_l1 @ 0xffa00000 (5524 bytes)
sh_addr: FFA00000, p_paddr: 0041372C
Loading from: 02406000 to 0041372C, size: 5524
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 00414CC0
Loading from: 02408000 to 00414CC0, size: 192
## Starting application at 0x00170000 ...
Linux version 2.6.24.5-ADI-2008R2-pre-svn4696 (test@linux) (gcc version 4.1.2 (ADI svn)) #107 Thu May 8 16:07:24 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001014b0
rodata = 0x001015e0-0x0014dc64
bss = 0x0014dc80-0x0015c3c4
data = 0x0015c3c4-0x00170000
stack = 0x0016e000-0x00170000
init = 0x00170000-0x00415000
available = 0x00415000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
bfin-rtc: invalid date; resetting
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 59748k/65536k RAM, (2708k init code, 1025k kernel code, 443k data, 1024k dma, 584k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 48 KB (42 KB free)
Security Framework initialized
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
ad7877 spi0.1: spi0.1: Failed to probe AD7877 Touchscreen
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:00:03 UTC (3)
Freeing unused kernel memory: 2708k freed
dma_alloc_init: dma_page @ 0x00412000 - 256 pages at 0x03f00000
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.10.1 (2008-05-08 14:41:20 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> ls /dev/
bfin-otp log ram0 ram13 ram4 ram9 urandom
console mem ram1 ram14 ram5 random watchdog
full null ram10 ram15 ram6 rtc0 zero
kmem ptmx ram11 ram2 ram7 tty
kmsg pts ram12 ram3 ram8 ttyBF0
The config file is attached.
And the board jumper is default.
Follow-ups
--- Sonic Zhang 2008-05-08 06:36:53
Michael, where can I find the schematics of the ad7877 on our web site?
--- Mike Frysinger 2008-05-08 06:39:44
are you using an addon card ? there is no ad7877 on the BF527-ezkit
--- Michael Hennerich 2008-05-08 07:05:46
Absolutely right - No AD7877 on the Bf527-EZkit.
The touch screen digitizer, on the board is and won't be supported.
-Michael
--- Sonic Zhang 2008-05-08 22:43:42
Yes, Grace tests the ad7877 addon card on the SPI port.
--- Sonic Zhang 2008-05-08 22:44:33
Some customers ask for SPI ad7877 touchscreen support on bf527-ezkit.
--- Michael Hennerich 2008-05-09 03:33:16
Sonic,
The external AD7877 board you have - is a ADI Evaluation Board. Somemone in
your group wired it up some time. I can't help since I don't know how it is
wired.
But I know in order to get the STAMP SPI port working on the 527-EZkit you have
to populate JP3. Try to use SPISEL3 (CUD in the 527-EZkit schematics). Disable
SW11.1 to disconnect CUD/SPISEL3 from the rotary. Use one of the GPIOs on the
SPI header as AD7877 /DAV interrupt.
-Michael
--- Mingquan Pan 2008-05-21 06:54:36
From the bf527 ezkit schematic, spi port only have the STAMP_SPISEL1 and
STAMP_SPISEL2, and the STAMP_SPISEL2 looks at the same position as the chip
select for BF537 STAMP board. So by populating JP3 and disabling SW11.2,
changing the chip_select in ezkit.c to 2, building the kernel, and running it,
still fails to detect ad7877.
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc00500, dma channel@7
ad7877 spi0.2: spi0.2: Failed to probe AD7877 Touchscreen
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:12:26 UTC (746)
Freeing unused kernel memory: 2704k freed
dma_alloc_init: dma_page @ 0x00411000 - 256 pages at 0x03f00000
_____________________________________
--- Sonic Zhang 2008-05-21 22:52:42
This could be a gpio config problem in SPI driver for bf527. Bryan may take a
look.
--- Bryan Wu 2008-05-22 04:59:07
Fixed both in trunk and 2008R1 branch:
---
Linux version 2.6.22.19-ADI-2008R1-svn4769 (roc@roc-desktop) (gcc version 4.1.2
(ADI svn)) #2 Thu May 22 16:45:14 CST 2008
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
text = 0x00001000-0x000f75f0
rodata = 0x000f8000-0x0013ea0c
data = 0x0013f000-0x00150000
stack = 0x00140000-0x00142000
init = 0x00150000-0x003e3000
bss = 0x003e3000-0x003f1f70
available = 0x003f1f70-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 59892k/65536k RAM, (2636k init code, 985k kernel code, 414k
data, 1024k dma, 584k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 48 KB (42 KB free)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
Generic PHY: Registered new driver
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1,
mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0,
regs_base@ffc00500, dma channel@7
ad7877 spi0.2: touchscreen, irq 79
input: AD7877 Touchscreen as /class/input/input0
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 00:00:27 (27)
Freeing unused kernel memory: 2636k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.4.1 (2008-05-22 16:43:12 CST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> successful boot attempt
*******************************************************************
STEP 3: Starting test.
event_test /dev/input/event0
Input driver version is 1.0.0
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "AD7877 Touchscreen"
Supported events:
Event type 0 (Reset)
Event code 0 (Reset)
Event code 3 (Absolute)
Event type 3 (Absolute)
Event code 0 (X)
Value 0
Min 0
Max 4095
Event code 1 (Y)
Value 0
Min 0
Max 4095
Event code 24 (Pressure)
Value 0
Min 0
Max 1000
Testing ... (interrupt to exit)
Case 1 ...PASS
Please touch the keypad...
Event: time 37.481310, type 3 (Absolute), code 0 (X), value 1949
Event:
Case 2 ...PASS
time 37.481339, type 3 (Absolute), code 1 (Y), value 1814
Event: time 37.481349, type 3 (Absolute), code 24 (Pressure), value 302
Event: time 37.481352, type 0 (Reset), code 0 (Reset), value 0
Event: time 37.573825, type 3 (Absolute), code 24 (Pressure), value 0
Event: time 37.573832, type 0 (Reset), code 0 (Reset), value 0
Event: time 38.841949, type 3 (Absolute), code 0 (X), value 2228
Event: time 38.841960, type 3 (Absolute), code 1 (Y), value 2095
Event: time 38.841963, type 3 (Absolute), code 24 (Pressure), value 775
Event: time 38.841966, type 0 (Reset), code 0 (Reset), value 0
Event: time 38.893825, type 3 (Absolute), code 24 (Pressure), value 0
Event: time 38.893842, type 0 (Reset), code 0 (Reset), value 0
Event: time 40.128971, type 3 (Absolute), code 0 (X), value 1877
Event: time 40.128997, type 3 (Absolute), code 1 (Y), value 1668
Event: time 40.129001, type 3 (Absolute), code 24 (Pressure), value 475
Event: time 40.129004, type 0 (Reset), code 0 (Reset), value 0
Event: time 40.177826, type 3 (Absolute), code 24 (Pressure), value 0
Event: time 40.177840, type 0 (Reset), code 0 (Reset), value 0
root:/>
Case 3 ...PASS
Ending ./touchscreen_test.exp
---
--- Mingquan Pan 2008-05-23 00:21:46
Yes,close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.ad7877 application/octet-stream 27286 Mingquan Pan