Other Parts Discussed in Thread: AM3352
Tool/software: Linux
Hi,
I am trying to interface an I2C slave device to I2C-1 of my AM3352 based board. When I try to communication with the device I am getting the following error and the board gets stuck at this point.
[ 69.882770] omap_i2c 4802a000.i2c: Arbitration lost
[ 71.942390] sched: RT throttling activated
My boot log is given below:
U-Boot 2013.10 (Oct 15 2016 - 11:25:07)
I2C: ready
DRAM: 256 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1, OMAP SD/MMC: 2
SF: Detected W25Q64CV with page size 256 Bytes, erase size 4 KiB, total 8 MiB
Net: cpsw, usb_ether
Hit any key to stop autoboot: 0
Booting from eMMC ...
Card did not respond to voltage select!
4730408 bytes read in 264 ms (17.1 MiB/s)
35557 bytes read in 6 ms (5.7 MiB/s)
Kernel image @ 0x80200000 [ 0x000000 - 0x482e28 ]
## Flattened Device Tree blob at 80f80000
Booting using the fdt blob at 0x80f80000
Loading Device Tree to 8fb35000, end 8fb40ae4 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.18 (user@user-HP-ProBook-4440s) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.
09 - Linaro GCC 4.9-2014.09) ) #14 Wed Oct 25 13:58:44 IST 2017
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: CALIXTO-AM335X-NXT
[ 0.000000] cma: Reserved 16 MiB at 0x8e800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 225092K/262144K available (6461K kernel code, 520K rwdata, 2372K rodata, 300K init, 8208K bss, 20668K reserved, 16384K c
ma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08a89c0 (8835 kB)
[ 0.000000] .init : 0xc08a9000 - 0xc08f4000 ( 300 kB)
[ 0.000000] .data : 0xc08f4000 - 0xc09760c8 ( 521 kB)
[ 0.000000] .bss : 0xc0979000 - 0xc117d110 (8209 kB)
[ 0.000000] Running RCU self tests
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 19200000 Hz
[ 0.000023] sched_clock: 32 bits at 19MHz, resolution 52ns, wraps every 111848106981ns
[ 0.000059] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 99544814920 ns
[ 0.000130] OMAP clocksource: timer1 at 19200000 Hz
[ 0.001447] Console: colour dummy device 80x30
[ 0.001545] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.001560] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.001572] ... MAX_LOCK_DEPTH: 48
[ 0.001583] ... MAX_LOCKDEP_KEYS: 8191
[ 0.001594] ... CLASSHASH_SIZE: 4096
[ 0.001605] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.001616] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.001627] ... CHAINHASH_SIZE: 32768
[ 0.001638] memory used by lock dependency info: 5167 kB
[ 0.001650] per task-struct memory footprint: 1152 bytes
[ 0.001689] Calibrating delay loop... 571.80 BogoMIPS (lpj=2859008)
[ 0.097849] pid_max: default: 32768 minimum: 301
[ 0.098232] Security Framework initialized
[ 0.098444] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.098469] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.103605] Initializing cgroup subsys blkio
[ 0.103675] Initializing cgroup subsys memory
[ 0.103805] Initializing cgroup subsys devices
[ 0.103963] Initializing cgroup subsys freezer
[ 0.104189] Initializing cgroup subsys perf_event
[ 0.104296] CPU: Testing write buffer coherency: ok
[ 0.106745] Setting up static identity map for 0x80008200 - 0x80008258
[ 0.115986] devtmpfs: initialized
[ 0.174420] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.259154] omap_hwmod: debugss: _wait_target_disable failed
[ 0.319981] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.324062] pinctrl core: initialized pinctrl subsystem
[ 0.333462] NET: Registered protocol family 16
[ 0.343278] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.347149] cpuidle: using governor ladder
[ 0.347188] cpuidle: using governor menu
[ 0.356354] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.369075] OMAP GPIO hardware version 0.1
[ 0.412824] omap_gpio mmlgpioinputs: can't get irq resource ret=-6
[ 0.413983] omap_gpio mmlgpiooutputs: can't get irq resource ret=-6
[ 0.415231] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.484213] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.492471] usbcore: registered new interface driver usbfs
[ 0.492760] usbcore: registered new interface driver hub
[ 0.493034] usbcore: registered new device driver usb
[ 0.499326] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 0.501865] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 50 kHz
[ 0.503993] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 50 kHz
[ 0.504498] media: Linux media interface: v0.10
[ 0.504771] Linux video capture interface: v2.00
[ 0.504941] pps_core: LinuxPPS API ver. 1 registered
[ 0.504957] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.505064] PTP clock support registered
[ 0.507410] Advanced Linux Sound Architecture Driver Initialized.
[ 0.512380] Switched to clocksource timer1
[ 0.773409] NET: Registered protocol family 2
[ 0.776552] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.776838] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
[ 0.778189] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.778573] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.778962] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.780629] NET: Registered protocol family 1
[ 0.783532] RPC: Registered named UNIX socket transport module.
[ 0.783565] RPC: Registered udp transport module.
[ 0.783581] RPC: Registered tcp transport module.
[ 0.783596] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.786131] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[ 0.786322] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.793865] futex hash table entries: 256 (order: 1, 11264 bytes)
[ 0.794319] audit: initializing netlink subsys (disabled)
[ 0.794722] audit: type=2000 audit(0.789:1): initialized
[ 0.802609] VFS: Disk quotas dquot_6.6.0
[ 0.802811] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.806322] NFS: Registering the id_resolver key type
[ 0.807053] Key type id_resolver registered
[ 0.807077] Key type id_legacy registered
[ 0.822776] io scheduler noop registered
[ 0.822828] io scheduler deadline registered
[ 0.822907] io scheduler cfq registered (default)
[ 0.839837] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.850783] omap_uart 44e09000.serial: no wakeirq for uart0
[ 0.851796] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a OMAP UART0
[ 1.702144] console [ttyO0] enabled
[ 1.709484] pinctrl-single 44e10800.pinmux: pin 44e10978.0 already requested by 4819c000.i2c; cannot claim for 48022000.serial
[ 1.724439] pinctrl-single 44e10800.pinmux: pin-94 (48022000.serial) status -22
[ 1.734005] pinctrl-single 44e10800.pinmux: could not request pin 94 (44e10978.0) from group pinmux_uart1_pins on device pinctrl-single
[ 1.750011] omap_uart 48022000.serial: Error applying setting, reverse things back
[ 1.760275] omap_uart 48022000.serial: no wakeirq for uart1
[ 1.768121] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a OMAP UART1
[ 1.782569] omap_uart 48024000.serial: no wakeirq for uart2
[ 1.790332] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 160, base_baud = 3000000) is a OMAP UART2
[ 1.804548] omap_uart 481a6000.serial: no wakeirq for uart3
[ 1.812297] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 161, base_baud = 3000000) is a OMAP UART3
[ 1.826520] omap_uart 481a8000.serial: no wakeirq for uart4
[ 1.834337] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 162, base_baud = 3000000) is a OMAP UART4
[ 1.848505] omap_uart 481aa000.serial: no wakeirq for uart5
[ 1.856326] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 163, base_baud = 3000000) is a OMAP UART5
[ 1.870923] [drm] Initialized drm 1.1.0 20060810
[ 1.905698] loop: module loaded
[ 1.923070] m25p80 spi1.0: s25fl064k (8192 Kbytes)
[ 1.929486] 4 ofpart partitions found on MTD device spi1.0
[ 1.936696] Creating 4 MTD partitions on "spi1.0":
[ 1.942989] 0x000000000000-0x000000020000 : "u-boot-spl"
[ 1.959375] 0x000000020000-0x0000000a0000 : "u-boot"
[ 1.971359] 0x0000000a0000-0x0000000b0000 : "env1"
[ 1.982947] 0x0000000b0000-0x0000000c0000 : "env2"
[ 2.062539] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 2.070518] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 2.085389] libphy: 4a101000.mdio: probed
[ 2.090663] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 2.104491] cpsw 4a100000.ethernet: Detected MACID = 98:5d:ad:31:f1:45
[ 2.120396] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.129064] ehci-omap: OMAP-EHCI Host Controller driver
[ 2.136852] usbcore: registered new interface driver cdc_acm
[ 2.144298] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 2.154976] usbcore: registered new interface driver cdc_wdm
[ 2.162970] usbcore: registered new interface driver usbserial
[ 2.170720] usbcore: registered new interface driver usbserial_generic
[ 2.180000] usbserial: USB Serial support registered for generic
[ 2.223559] 47401300.usb-phy supply vcc not found, using dummy regulator
[ 2.254008] 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 2.269217] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 2.281380] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 2.294863] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.303789] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.313237] usb usb1: Product: MUSB HDRC host driver
[ 2.319712] usb usb1: Manufacturer: Linux 4.1.18 musb-hcd
[ 2.326776] usb usb1: SerialNumber: musb-hdrc.1.auto
[ 2.340562] hub 1-0:1.0: USB hub found
[ 2.346230] hub 1-0:1.0: 1 port detected
[ 2.361483] mousedev: PS/2 mouse device common for all mice
[ 2.372958] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
[ 2.383126] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input0
[ 2.398878] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[ 2.426074] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 2.437763] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 2.448127] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 2.461797] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 2.470909] i2c /dev entries driver
[ 2.480197] usbcore: registered new interface driver uvcvideo
[ 2.487802] USB Video Class driver (1.1.1)
[ 2.497334] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 2.563615] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.572718] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 2.591370] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 2.608959] usbcore: registered new interface driver usbhid
[ 2.616347] usbhid: USB HID core driver
[ 2.638672] oprofile: using arm/armv7
[ 2.644234] Netfilter messages via NETLINK v0.30.
[ 2.650498] nf_conntrack version 0.5.0 (3773 buckets, 15092 max)
[ 2.659737] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
[ 2.670440] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.678383] Initializing XFRM netlink socket
[ 2.684741] NET: Registered protocol family 10
[ 2.696516] NET: Registered protocol family 17
[ 2.702589] NET: Registered protocol family 15
[ 2.708981] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.725616] Bridge firewalling registered
[ 2.731490] Key type dns_resolver registered
[ 2.739909] ThumbEE CPU extension supported.
[ 2.745648] Registering SWP/SWPB emulation handler
[ 2.767273] mmc0: MAN_BKOPS_EN bit is not set
[ 2.773182] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 2.782955] rtc-pcf8563 0-0051: setting system clock to 2014-03-02 21:34:15 UTC (1393796055)
[ 2.826254] io_audio_supply: disabling
[ 2.831190] core_audio_supply: disabling
[ 2.836837] ALSA device list:
[ 2.840708] No soundcards found.
[ 2.849983] Waiting for root device /dev/mmcblk0p2...
[ 2.859406] mmc0: new high speed MMC card at address 0001
[ 2.870214] mmcblk0: mmc0:0001 004G60 3.69 GiB
[ 2.877202] mmcblk0boot0: mmc0:0001 004G60 partition 1 2.00 MiB
[ 2.885627] mmcblk0boot1: mmc0:0001 004G60 partition 2 2.00 MiB
[ 2.901377] mmcblk0: p1 p2
[ 2.990551] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.001542] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 3.024648] devtmpfs: mounted
[ 3.029528] Freeing unused kernel memory: 300K (c08a9000 - c08f4000)
[ 3.329378] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Starting portmap: done
Initializing random number generator... [ 3.936619] random: dd urandom read with 11 bits of entropy available
done.
Starting system message bus: done
Starting network...
[ 4.452679] net eth0: initializing cpsw version 1.12 (0)
[ 4.462850] net eth0: phy found : id is : 0x7c0f1
[ 4.485841] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
S
tarting dropbear sshd: OK
Starting lighttpd: OK
ssh-keygen: generating new host keys: RSA DSA [ 7.543328] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 7.572581] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
ECDSA ED25519
Starting sshd: OK
alsactl: load_state:1683: Cannot open /var/lib/alsa/asound.state for reading: No such file or directory
Starting vsftpd: OK
Calixto Systems Pvt Ltd
versa-nxt login: root
Password:
I have enabled i2c-1 in dts file in the following way:
exp1_pins: exp1_pins {
pinctrl-single,pins = <
0x16c ( PIN_INPUT_PULLUP | MUX_MODE3 ) /* (E17) uart0_rtsn.I2C1_SCL */
0x168 ( PIN_INPUT_PULLUP | MUX_MODE3 ) /* (E18) uart0_ctsn.I2C1_SDA */
>;
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&exp1_pins>;
status = "okay";
clock-frequency = <50000>;
};
Request help to identify the reason behind this problem.
Thanks and Regards
Ison Thomas