[#3885] twi_keypad and lcd case fails

Document created by Aaronwu Employee on Aug 28, 2013
Version 1Show Document
  • View in full screen mode

[#3885] twi_keypad and lcd case fails

Submitted By: Mingquan Pan

Open Date

2008-02-03 02:08:41     Close Date

2008-02-15 02:51:59

Priority:

Medium High     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-6

App binary format:

N/A     

Summary: twi_keypad and lcd case fails

Details:

 

twi_keypad and twi_lcd case fails on 08r1-rc1 for bf533 stamp.

 

for twi_keypad case, it open device error:

 

*******************************************************************

STEP 3: Start testing.

 

 

modprobe twi_keypad

root:/> insert module success.

lsmod

Module                  Size  Used by

twi_keypad              3044  0

root:/> twikeypad_test -r

TWI LCD Test Application

 

Please input any character followed by 'D'.

 

open error 2

root:/>

Please input another character followed by 'D'.

 

root:/> rmmod twi_keypad

root:/> version

kernel:    Linux release 2.6.22.16-ADI-2008R1-svn4154, build #113 Sun Feb 3 16:54:46 CST 2008

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-6056, build #55 Sun Feb 3 16:54:19 CST 2008

root:/>

 

for twi_lcd case,

just no device under /sys/bus/i2c/devices folder.

 

The config file is attached.

 

Follow-ups

 

--- Mingquan Pan                                             2008-02-03 04:43:54

twi_keypad on bf548-ezkit looks also broke, though it could open device,no

character entered is output to console.

 

Loading .text @ 0x00001000 (1530336 bytes)

Loading .rodata @ 0x00177000 (412576 bytes)

Loading __ksymtab @ 0x001dbba0 (16936 bytes)

Loading __ksymtab_gpl @ 0x001dfdc8 (5336 bytes)

Loading __ksymtab_strings @ 0x001e12a0 (54732 bytes)

Loading __param @ 0x001ee86c (1080 bytes)

Loading .data @ 0x001ef000 (94208 bytes)

Loading .init.text @ 0x00206000 (127884 bytes)

Loading .init.data @ 0x0022538c (13064 bytes)

Loading .init.setup @ 0x00228694 (612 bytes)

Loading .initcall.init @ 0x002288f8 (564 bytes)

Loading .con_initcall.init @ 0x00228b2c (4 bytes)

Loading .init.ramfs @ 0x00228b30 (3799725 bytes)

Loading .text_l1 @ 0xffa00000 (5764 bytes)

sh_addr: FFA00000, p_paddr: 005C85DD

Loading from: 025C9000 to 005C85DD, size: 5764

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 005C9C61

Loading from: 025CB000 to 005C9C61, size: 192

Clearing .bss @ 0x005ca000 (71024 bytes)

## Starting application at 0x00001000 ...

Linux version 2.6.22.16-ADI-2008R1-svn4139 (test@Linux54-ADV7393-AD1981) (gcc

version 4.1.2 (ADI svn)) #136 Sun Feb 3 15:10:41 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-BF548 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

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-0x001769e0

  rodata    = 0x00177000-0x001eeca4

  data      = 0x001ef000-0x00206000

    stack   = 0x001f0000-0x001f2000

  init      = 0x00206000-0x005ca000

  bss       = 0x005ca000-0x005db570

  available = 0x005db570-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 15748

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)

Physical pages: 3dff

Memory available: 56848k/63556k RAM, (3856k init code, 1494k kernel code, 69k

data, 2048k dma)

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

SCSI subsystem initialized

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

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x03178000 - 512 pages at 0x03e00000

bfin-otp: initialized

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

smsc911x: Driver version 2007-07-13.

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support

DPO or FUA

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support

DPO or FUA

sda: sda1

sd 0:0:0:0: [sda] Attached SCSI disk

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Intel/Sharp Extended Query Table at 0x010A

  Unknown Intel/Sharp Extended Query version 1.5.

gen_probe: No supported Vendor Command Set found

physmap-flash physmap-flash.0: map_probe failed

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog

Devices, Inc.

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V

8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00400000 : "Linux Kernel"

0x00400000-0x10000000 : "File System"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0,

regs_base@ffc00500, dma channel@4

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0,

regs_base@ffc02300, dma channel@5

input: bf54x-keys as /class/input/input0

bf54x-keys: Blackfin BF54x Keypad registered IRQ 76

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver,

Version 1.8, regs_base@ffc02200

AD5252 Attached

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50

2006 UTC).

ASoC version 0.13.1

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980)

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:13:12 (792)

Freeing unused kernel memory: 3856k 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-02-02 14:30:27 CST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> successful boot attempt

 

*******************************************************************

STEP 3: Start testing.

 

 

modprobe twi_keypad

input: BF5xx twikeypad as /class/input/input1

input: BF5xx twikeypad at twikeypad/input0 IRQ 212

root:/> insert module success.

lsmod

 

Module                  Size  Used by

twi_keypad              3076  0

root:/> twikeypad_test -r

TWI LCD Test Application

 

Please input any character followed by 'D'.

 

 

Please input another character followed by 'D'.

 

--- Bryan Wu                                                 2008-02-14 05:11:51

It should be fixed on BF548-EZKIT:

 

No bug in kernel, just need disable bf54x-keypad driver when test twi_keypad on

BF548-EZKIT. TWI LCD testcase also is ok on BF548-EZKIT.

 

--

Linux version 2.6.22.18-ADI-2008R1-svn4259 (roc@roc-desktop) (gcc version 4.1.2

(ADI svn)) #2 Thu Feb 14 17:42:29 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-BF548 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

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-0x001858f0

  rodata    = 0x00186000-0x00200548

  data      = 0x00201000-0x0021c000

    stack   = 0x00202000-0x00204000

  init      = 0x0021c000-0x005b8000

  bss       = 0x005b8000-0x005cce70

  available = 0x005cce70-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 15748

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

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: 56964k/65536k RAM, (3696k init code, 1554k kernel code, 685k

data, 2048k dma, 588k 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

ezkit_init(): registering device resources

SCSI subsystem initialized

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

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x0310c000 - 512 pages at 0x03e00000

Console: switching to colour frame buffer device 80x24

bfin-otp: initialized

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

smsc911x: Driver version 2007-07-13.

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support

DPO or FUA

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support

DPO or FUA

sda: sda1

sd 0:0:0:0: [sda] Attached SCSI disk

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Intel/Sharp Extended Query Table at 0x010A

  Unknown Intel/Sharp Extended Query version 1.5.

gen_probe: No supported Vendor Command Set found

physmap-flash physmap-flash.0: map_probe failed

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog

Devices, Inc.

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V

8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00400000 : "Linux Kernel"

0x00400000-0x10000000 : "File System"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0,

regs_base@ffc00500, dma channel@4

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0,

regs_base@ffc02300, dma channel@5

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver,

Version 1.8, regs_base@ffc02200

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50

2006 UTC).

ASoC version 0.13.1

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980-MMAP)

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 08:56:29 (32189)

Freeing unused kernel memory: 3696k 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-02-14 12:15:14 CST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> successful boot attempt

 

*******************************************************************

STEP 3: Start testing.

 

 

modprobe twi_keypad

input: BF5xx twikeypad as /class/input/input0

input: BF5xx twikeypad at twikeypad/input0 IRQ 212

root:/> insert module success.

lsmod

est -r

Module                  Size  Used by

twi_keypad              3076  0

root:/> twikeypad_test -r

TWI Keypad Test Application

 

 

Please input any character followed by 'D'.

Entry was: 4

 

 

Please input another character followed by 'D'.

Entry was: 7

 

root:/> rmmod twi_keypad

root:/> lsmod

Module                  Size  Used by

root:/> Ending ./i2ctwi_keyboard_test.exp

--

 

-Bryan

 

--- Bryan Wu                                                 2008-02-14 05:39:45

On BF533-STAMP, it also passes. I can't reproduce this bug.

 

TWI LCD

--

Linux version 2.6.22.18-ADI-2008R1-svn4261 (roc@roc-desktop) (gcc version 4.1.2

(ADI svn)) #8 Thu Feb 14 18:25:10 CST 2008

early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Reset caused by Software reset

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF533 Rev 0.3

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 398 MHz core clock and 79 MHz System Clock

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  text      = 0x00001000-0x000fcaf0

  rodata    = 0x000fd000-0x00143620

  data      = 0x00144000-0x00154000

    stack   = 0x00144000-0x00146000

  init      = 0x00154000-0x00417000

  bss       = 0x00417000-0x00425af0

  available = 0x00425af0-0x037ff000

  DMA Zone  = 0x07f00000-0x08000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

console=ttyBF0,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: 52516k/131072k RAM, (2828k init code, 1006k kernel code, 408k

data, 1024k dma, 73292k 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: 64 KB (55 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

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

Dynamic Power Management Controller Driver v0.1: major=10, minor = 254

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>

eth0: SMC91C11xFD (rev 1) at 20300300 IRQ 40 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:07:5b

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0,

regs_base@ffc00500, dma channel@5

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-gpio i2c-gpio.0: using pins 2 (SDA) and 3 (SCL)

AD5252 Attached

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:11:24 (684)

Freeing unused kernel memory: 2828k freed

dma_alloc_init: dma_page @ 0x00414000 - 256 pages at 0x07f00000

                           _____________________________________

        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-02-14 18:11:04 CST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> successful boot attempt

 

*******************************************************************

STEP 3: Start testing.

 

 

root:/> modprobe bfin_twi_lcd

TWI LCD Driver v0.00

 

Case 1 ...PASS

root:/> lsmod

Module                  Size  Used by

bfin_twi_lcd            5insert module success.

 

Case 2 ...PASS

256  0

root:/>

Case 3 ...PASS

cd sys/bus/i2c/devices

root:/sys/bus/i2c/devices> ls

0-0022  0-002f

Case 4 ...PASS

 

root:/sys/bus/i2c/devices> cd 0-002f

root:/sys/class/i2c-adapter/i2c-0/0-002f>

Case 5 ...PASS

echo 4 >

Case 6 ...PASS

write_w1

cat  read_w1

root:/sys/class/i2c-adapter/i2c-0/0-002f> cat  read_w1

 

Case 7 ...PASS

twilcd_test -h

4

root:/sys/class/i2c-adapter/i2c-0/0-002f> twilcd_test -h

TWI LCD Test Application

 

Usage: twilcd_test [-h?v] [-c] [-d CONTROLLER] [-p POSITION] [Message String]

        -h?            this help

        -v             print version info

        -c             Clear Display

        -d Number      use 1,2,3 for CONTROLLER 1,2,BOTH

        -p Char POS    Position where to put the string

 

Example: twilcd_test -p 0 "Hello World !"

root:/sys/class/i2c-adapter/i2c-0/0-002f>

Case 8 ...PASS

twilcd_test -p 0 "Hello World! "

TWI LCD Test Application

 

Position               : 0

Message                : Hel

Case 9 ...PASS

lo World! 

root:/sys/class/i2c-adapter/i2c-0/0-002f> twilcd_test -p 0

"`date`"

TWI LCD Test Application

 

Position               : 0

Message                : Thu

Case 10 ...PASS

Ending ./i2ctwi_lcd_test.exp

--

 

TWI Keypad test

--

Linux version 2.6.22.18-ADI-2008R1-svn4261 (roc@roc-desktop) (gcc version 4.1.2

(ADI svn)) #5 Thu Feb 14 18:12:49 CST 2008

early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Reset caused by Software reset

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF533 Rev 0.3

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 398 MHz core clock and 79 MHz System Clock

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  text      = 0x00001000-0x000fc850

  rodata    = 0x000fd000-0x00143484

  data      = 0x00144000-0x00154000

    stack   = 0x00144000-0x00146000

  init      = 0x00154000-0x00415000

  bss       = 0x00415000-0x00423ad0

  available = 0x00423ad0-0x037ff000

  DMA Zone  = 0x07f00000-0x08000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

console=ttyBF0,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: 52524k/131072k RAM, (2820k init code, 1006k kernel code, 408k

data, 1024k dma, 73292k 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: 64 KB (55 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

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

Dynamic Power Management Controller Driver v0.1: major=10, minor = 254

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>

eth0: SMC91C11xFD (rev 1) at 20300300 IRQ 40 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:07:5b

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0,

regs_base@ffc00500, dma channel@5

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-gpio i2c-gpio.0: using pins 2 (SDA) and 3 (SCL)

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:02:20 (140)

Freeing unused kernel memory: 2820k freed

dma_alloc_init: dma_page @ 0x00412000 - 256 pages at 0x07f00000

                           _____________________________________

        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-02-14 18:11:04 CST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> successful boot attempt

 

*******************************************************************

STEP 3: Start testing.

 

 

modprobe twi_keypad

input: BF5xx twikeypad as /class/input/input0

input: BF5xx twikeypad at twikeypad/input0 IRQ 39

root:/> insert module success.

lsmod

Module                  Size  Used by

twi_keypad              3044  0

root:/> twikeypad_test -r

TWI Keypad Test Application

 

 

Please input any character followed by 'D'.

Entry was: 4

 

 

Please input another character followed by 'D'.

Entry was: 5

 

root:/> rmmod twi_keypad

root:/> lsmod

Module                  Size  Used by

root:/> Ending ./i2ctwi_keyboard_test.exp

--

 

-Bryan

 

--- Mingquan Pan                                             2008-02-15 05:01:17

Yes, this case is ok now on branch head for bf533 and bf548 board. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.twi    application/octet-stream    26683    Mingquan Pan

Attachments

    Outcomes