2011-07-18 17:23:17     /dev/spidev0.1 not being created

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

2011-07-18 17:23:17     /dev/spidev0.1 not being created

barreh walid (TUNISIA)

Message: 102477   

 

Hello again,

I have a BF548 ezkit and I am using the latest trunk kernel/uboot/filesystem ( 2010R1 ).

in the ezkit.c

 

#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)

static struct bfin5xx_spi_chip spidev_chip_info = {

        .enable_dma = 0,

        .bits_per_word = 8,

};

#endif

 

#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)

       {

               .modalias = "spidev",

                .max_speed_hz = 3125000,     /* max spi clock (SCK) speed in HZ */

                .bus_num = 0,

                .chip_select = 1,

                .controller_data = &spidev_chip_info,

        },

#endif

 

 

but spidev0.1 does not get created. I do not have a /dev/spidev0.1

 

THANKS...

QuoteReplyEditDelete

 

 

2011-07-19 01:12:13     Re: /dev/spidev0.1 not being created

Aaron Wu (CHINA)

Message: 102478   

 

Did you enable the User mode SPI device driver support in kernel? By default it's disabled.

QuoteReplyEditDelete

 

 

2011-07-19 03:41:18     Re: /dev/spidev0.1 not being created

barreh walid (TUNISIA)

Message: 102520   

 

THANKS AARON.

 

yes User mode SPI device driver support is enabled.

 

 

 

the log file if can help:

 

 

 

Starting Kernel at = 002b08b4

 

Linux version 2.6.34.7-ADI-2010R1 (barreh@barreh-desktop) (gcc version 4.3.5 (AD

 

I-2010R1-RC4) ) #105 Tue Jul 19 09:33:09 CEST 2011

 

register early platform devices

 

bootconsole [early_shadow0] enabled

 

bootconsole [early_BFuart1] enabled

 

early printk enabled on early_BFuart1

 

Board Memory: 64MB

 

Kernel Managed Memory: 64MB

 

Memory map:

 

  fixedcode = 0x00000400-0x00000490

 

  text      = 0x00001000-0x001c5718

 

  rodata    = 0x001c5718-0x00266a70

 

  bss       = 0x00267000-0x00280fe8

 

  data      = 0x00280fe8-0x0029e000

 

    stack   = 0x0029c000-0x0029e000

 

  init      = 0x0029e000-0x00b4b000

 

  available = 0x00b4b000-0x03e00000

 

  DMA Zone  = 0x03e00000-0x04000000

 

Hardware Trace Active and Enabled

 

Boot Mode: 3

 

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

 

Compiled for ADSP-BF548 Rev 0.2

 

Blackfin Linux support by   blackfin.uclinux.org/

 

Processor Speed: 525 MHz core clock and 131 MHz System Clock

 

NOMPU: setting up cplb tables

 

Instruction Cache Enabled for CPU0

 

  External memory: cacheable in instruction cache

 

  L2 SRAM        : uncacheable in instruction cache

 

Data Cache Enabled for CPU0

 

  External memory: cacheable (write-through) in data cache

 

  L2 SRAM        : uncacheable in data cache

 

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 15748

 

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial

 

,uart1,57600 console=tty0 console=ttyBF1,57600 ip=192.168.10.65:192.168.10.68:19

 

2.168.10.1:255.255.255.0:bf548-ezkit:eth0:off

 

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

 

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

 

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

 

Memory available: 51356k/65536k RAM, (8884k init code, 1809k kernel code, 867k d

 

ata, 2048k dma, 572k reserved)

 

Hierarchical RCU implementation.

 

NR_IRQS:295

 

Configuring Blackfin Priority Driven Interrupts

 

Console: colour dummy device 80x25

 

Linux version 2.6.34.7-ADI-2010R1 (barreh@barreh-desktop) (gcc version 4.3.5 (AD

 

I-2010R1-RC4) ) #105 Tue Jul 19 09:33:09 CEST 2011

 

register early platform devices

 

bootconsole [early_shadow0] enabled

 

bootconsole [early_BFuart1] enabled

 

early printk enabled on early_BFuart1

 

Board Memory: 64MB

 

Kernel Managed Memory: 64MB

 

Memory map:

 

  fixedcode = 0x00000400-0x00000490

 

  text      = 0x00001000-0x001c5718

 

  rodata    = 0x001c5718-0x00266a70

 

  bss       = 0x00267000-0x00280fe8

 

  data      = 0x00280fe8-0x0029e000

 

    stack   = 0x0029c000-0x0029e000

 

  init      = 0x0029e000-0x00b4b000

 

  available = 0x00b4b000-0x03e00000

 

  DMA Zone  = 0x03e00000-0x04000000

 

Hardware Trace Active and Enabled

 

Boot Mode: 3

 

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

 

Compiled for ADSP-BF548 Rev 0.2

 

Blackfin Linux support by   blackfin.uclinux.org/

 

Processor Speed: 525 MHz core clock and 131 MHz System Clock

 

NOMPU: setting up cplb tables

 

Instruction Cache Enabled for CPU0

 

  External memory: cacheable in instruction cache

 

  L2 SRAM        : uncacheable in instruction cache

 

Data Cache Enabled for CPU0

 

  External memory: cacheable (write-through) in data cache

 

  L2 SRAM        : uncacheable in data cache

 

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 15748

 

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial

 

,uart1,57600 console=tty0 console=ttyBF1,57600 ip=192.168.10.65:192.168.10.68:19

 

2.168.10.1:255.255.255.0:bf548-ezkit:eth0:off

 

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

 

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

 

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

 

Memory available: 51356k/65536k RAM, (8884k init code, 1809k kernel code, 867k d

 

ata, 2048k dma, 572k reserved)

 

Hierarchical RCU implementation.

 

NR_IRQS:295

 

Configuring Blackfin Priority Driven Interrupts

 

Console: colour dummy device 80x25

 

console [tty0] enabled

 

console [ttyBF1] enabled, bootconsole disabled

 

console [ttyBF1] enabled, bootconsole disabled

 

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

 

Mount-cache hash table entries: 512

 

Blackfin Scratchpad data SRAM: 4 KB

 

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

 

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

 

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)

 

Blackfin L2 SRAM: 128 KB (128 KB free)

 

NET: Registered protocol family 16

 

Blackfin DMA Controller

 

ezkit_init(): registering device resources

 

start ****** registering device resources ***********

 

start ****** registering device resources ***********

 

start ****** registering device resources ***********

 

SPI dev enabled by make menuconfig*************

 

SPI dev enabled by make menuconfig*************

 

bio: create slab <bio-0> at 0

 

SCSI subsystem initialized

 

spi spi0.2: Warning: SPI CPHA not set: Slave Select not under software control!

 

See Documentation/blackfin/bfin-spi-notes.txt

 

bfin-spi bfin-spi.0: chipselect 1 already in use

 

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

 

ase@ffc00500, dma channel@4

 

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

 

ase@ffc02300, dma channel@5

 

usbcore: registered new interface driver usbfs

 

usbcore: registered new interface driver hub

 

usbcore: registered new device driver usb

 

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base

 

@ffc00700

 

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

 

@ffc02200

 

Advanced Linux Sound Architecture Driver Version 1.0.22.1.

 

musb_hdrc: version 6.0, pio, otg (peripheral+host), debug=0

 

musb_hdrc musb_hdrc.0: USB OTG mode controller at ffc03c00 using PIO, IRQ 82

 

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

 

UDP hash table entries: 256 (order: 0, 4096 bytes)

 

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

 

NET: Registered protocol family 1

 

Slow work thread pool: Starting up

 

Slow work thread pool: Ready

 

msgmni has been set to 100

 

io scheduler noop registered (default)

 

bf54x-lq043: FrameBuffer initializing...

 

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

 

Console: switching to colour frame buffer device 80x24

 

bfin-otp: initialized

 

bfin-uart: Blackfin serial driver

 

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

 

brd: module loaded

 

register bfin atapi driver

 

scsi0 : pata-bf54x

 

ata1: PATA max UDMA/66 irq 68

 

physmap platform flash device: 02000000 at 20000000

 

physmap-flash physmap-flash.0: map_probe failed

 

m25p80 spi0.1: m25p16 (2048 Kbytes)

 

Creating 2 MTD partitions on "m25p80":

 

0x000000000000-0x000000080000 : "bootloader(spi)"

 

0x000000080000-0x000000200000 : "linux kernel(spi)"

 

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

 

Inc.

 

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

 

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

 

it)

 

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

 

0x000000000000-0x000000080000 : "bootloader(nand)"

 

0x000000080000-0x000000480000 : "linux kernel(nand)"

 

0x000000480000-0x000010000000 : "file system(nand)"

 

CAN device driver interface

 

smsc911x: Driver version 2008-10-21.

 

smsc911x-mdio: probed

 

eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)

 

net eth0: MAC Address: 00:e0:22:fe:bf:67

 

input: bf54x-keys as /devices/platform/bf54x-keys/input/input0

 

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

 

i2c /dev entries driver

 

ata1.00: ATA-7: FUJITSU MHW2040AT, 0000000B, max UDMA/100

 

ata1.00: 78140160 sectors, multi 16: LBA

 

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

 

Linux telephony interface: v1.00

 

ata1.00: configured for UDMA/66

 

blk_queue_max_segments: set to minimum 1

 

scsi 0:0:0:0: Direct-Access     ATA      FUJITSU MHW2040A 0000 PQ: 0 ANSI: 5

 

usbcore: registered new interface driver usbhid

 

usbhid: USB HID core driver

 

dma rx:0 tx:1, err irq:10, regs:ffc00800

 

sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)

 

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

 

AD1980 SoC Audio Codec

 

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

 

or FUA

 

asoc: AC97 <-> bf5xx-ac97 mapping ok

 

sda:

 

ALSA device list:

 

  #0: bf5xx-board (AD1980)

 

sda1

 

TCP cubic registered

 

NET: Registered protocol family 17

 

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

 

can: controller area network core (rev 20090105 abi 8)

 

NET: Registered protocol family 29

 

can: raw protocol (rev 20090105)

 

can: broadcast manager protocol (rev 20090105 t)

 

rtc-bfin rtc-bfin: setting system clock to 1970-10-27 11:04:28 UTC (25873468)

 

net eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

 

IP-Config: Complete:

 

     device=eth0, addr=192.168.10.65, mask=255.255.255.0, gw=192.168.10.1,

 

     host=bf548-ezkit, domain=, nis-domain=(none),

 

     bootserver=192.168.10.68, rootserver=192.168.10.68, rootpath=

 

Freeing unused kernel memory: 8884k 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.16.2 (2011-07-18 18:10:02 CEST) hush - the humble shell

 

 

 

root:/>

QuoteReplyEditDelete

 

 

2011-07-19 05:58:50     Re: /dev/spidev0.1 not being created

Aaron Wu (CHINA)

Message: 102524   

 

From your log you may have chipselect one for SPI controller 0 assigned to multiple spi devices in your board file

QuoteReplyEditDelete

 

 

2011-07-19 06:21:40     Re: /dev/spidev0.1 not being created

barreh walid (TUNISIA)

Message: 102528   

 

THANKS Aaron

 

it is working fine with spidev0.3  (chipselect = 3)

 

When using SPI port 0, use the processor’s SPI0SEL3 flag pin on an EZ-Extender because SPI0SEl1 and SPI0SEL2 are

 

dedicated for the serial flash and touchscreen controller, respectively.

Attachments

    Outcomes