This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: I2C error

Part Number: AM5728
Other Parts Discussed in Thread: PROCESSOR-SDK-AM57X

Tool/software: Linux

Hello TI,

I would like to enable i2c5 in my AM57x based ARM board and getting timeout error while accessing the i2c5 bus. And I am using the very latest TI SDK and same issue.

I posted the below forum to make sure the HW connections, as per Biser, it looks good.

We have to solve this issue very quickly as we are going to manufacture PCB for this design, so we have to close this issue asap.

Can you please help us on this ?

Here is my pinmux settings for i2c5 bus (i2cdetect -y -r 4)

When I do "i2cdetect -y -r 4", and getting below errors in linux console.

Can you please check if need any change in SW ?

[ 0.563976] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/i2c5_pins_default, deferring probe

[ 109.620862] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[ 110.640847] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[ 111.660858] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[ 112.680841] omap_i2c 4807c000.i2c: timeout waiting for bus ready

&i2c5 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c5_pins_default>;
clock-frequency = <100000>;//100KHz

};

i2c5_pins_default: i2c5_pins_default {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x36B4, (PIN_INPUT_PULLUP | PIN_INPUT_SLEW | MUX_MODE10))// mcasp1_axr0.i2c5_sda
DRA7XX_CORE_IOPAD(0x36B8, (PIN_INPUT_PULLUP | PIN_INPUT_SLEW | MUX_MODE10))// mcasp1_axr1.i2c5_scl
>;
};

I am using the below I2C5 on Beagbleboneblack x15 board (AM57x)

Can you please check that whether I have configured the pinmux properly for this i2c5 pins.

root@am57xx-evm:/# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.40-g4796173fc5 (titus@titus-laptop) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11)) #1 SMP PREEMPT Thu Aug 16 22:30:16 +08 2018
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: TI AM5728 BeagleBoard-X15 rev C
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
[    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
[    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node dsp2-memory@9f000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 24 MiB at 0x00000000fe400000
[    0.000000] OMAP4: Map 0x00000000ffd00000 to fe600000 for dram barrier
[    0.000000] On node 0 totalpages: 474368
[    0.000000] free_area_init_node: node 0, pgdat c1053a40, node_mem_map eeda2000
[    0.000000]   DMA zone: 1728 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 147456 pages, LIFO batch:31
[    0.000000]   HighMem zone: 326912 pages, LIFO batch:31
[    0.000000] DRA752 ES2.0
[    0.000000] percpu: Embedded 15 pages/cpu @eed36000 s31372 r8192 d21876 u61440
[    0.000000] pcpu-alloc: s31372 r8192 d21876 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 472640
[    0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait
[    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: 1675652K/1897472K available (8192K kernel code, 346K rwdata, 2504K rodata, 2048K init, 299K bss, 33404K reserved, 188416K cma-reserved, 1283072K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                   lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0a00000   (10208 kB)
                     .init : 0xc0e00000 - 0xc1000000   (2048 kB)
                     .data : 0xc1000000 - 0xc1056b10   ( 347 kB)
                      .bss : 0xc1058000 - 0xc10a2c3c   ( 300 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] OMAP clockevent source: timer1 at 32786 Hz
[    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[    0.000017] Switching to timer-based delay loop, resolution 162ns
[    0.000336] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000345] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000777] Console: colour dummy device 80x30
[    0.000794] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
[    0.000802] This ensures that you still see kernel messages. Please
[    0.000809] update your kernel commandline.
[    0.000831] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[    0.000846] pid_max: default: 32768 minimum: 301
[    0.000965] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000980] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001497] CPU: Testing write buffer coherency: ok
[    0.001710] /cpus/cpu@0 missing clock-frequency property
[    0.001729] /cpus/cpu@1 missing clock-frequency property
[    0.001742] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.039886] Setting up static identity map for 0x80200000 - 0x80200060
[    0.059897] Hierarchical SRCU implementation.
[    0.080092] EFI services will not be available.
[    0.099958] smp: Bringing up secondary CPUs ...
[    0.170324] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.170418] smp: Brought up 1 node, 2 CPUs
[    0.170432] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[    0.170439] CPU: All CPU(s) started in HYP mode.
[    0.170446] CPU: Virtualization extensions available.
[    0.170938] devtmpfs: initialized
[    0.187930] random: get_random_u32 called from bucket_table_alloc+0x100/0x250 with crng_init=0
[    0.188176] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.188369] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.188386] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.191994] pinctrl core: initialized pinctrl subsystem
[    0.192450] DMI not present or invalid.
[    0.192702] NET: Registered protocol family 16
[    0.193732] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.194654] omap_hwmod: l3_main_2 using broken dt data from ocp
[    0.302294] omap_hwmod: dcan1: _wait_target_disable failed
[    0.400586] cpuidle: using governor ladder
[    0.400620] cpuidle: using governor menu
[    0.408546] gpio gpiochip0: (gpio): added GPIO chardev (254:0)
[    0.408611] gpiochip_setup_dev: registered GPIOs 0 to 31 on device: gpiochip0 (gpio)
[    0.408668] OMAP GPIO hardware version 0.1
[    0.409310] gpio gpiochip1: (gpio): added GPIO chardev (254:1)
[    0.409378] gpiochip_setup_dev: registered GPIOs 32 to 63 on device: gpiochip1 (gpio)
[    0.410040] gpio gpiochip2: (gpio): added GPIO chardev (254:2)
[    0.410106] gpiochip_setup_dev: registered GPIOs 64 to 95 on device: gpiochip2 (gpio)
[    0.410806] gpio gpiochip3: (gpio): added GPIO chardev (254:3)
[    0.410867] gpiochip_setup_dev: registered GPIOs 96 to 127 on device: gpiochip3 (gpio)
[    0.411533] gpio gpiochip4: (gpio): added GPIO chardev (254:4)
[    0.411595] gpiochip_setup_dev: registered GPIOs 128 to 159 on device: gpiochip4 (gpio)
[    0.412262] gpio gpiochip5: (gpio): added GPIO chardev (254:5)
[    0.412323] gpiochip_setup_dev: registered GPIOs 160 to 191 on device: gpiochip5 (gpio)
[    0.412974] gpio gpiochip6: (gpio): added GPIO chardev (254:6)
[    0.413041] gpiochip_setup_dev: registered GPIOs 192 to 223 on device: gpiochip6 (gpio)
[    0.413695] gpio gpiochip7: (gpio): added GPIO chardev (254:7)
[    0.413761] gpiochip_setup_dev: registered GPIOs 224 to 255 on device: gpiochip7 (gpio)
[    0.436046] No ATAGs?
[    0.436119] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.436133] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.436483] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.436494] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.437010] OMAP DMA hardware revision 0.0
[    0.452126] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[    0.453407] edma 43300000.edma: memcpy is disabled
[    0.456649] edma 43300000.edma: TI EDMA DMA engine driver
[    0.457025] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-main_12v0[0]'
[    0.457236] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-evm_5v0[0]'
[    0.457295] evm_5v0: supplied by main_12v0
[    0.457518] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-vdd_3v3[0]'
[    0.457755] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator-aic_dvdd[0]'
[    0.458107] of_get_named_gpiod_flags: parsed 'gpio' property of node '/fixedregulator-vtt[0]' - status (0)
[    0.460415] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[    0.460662] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[    0.460908] omap-iommu 58882000.mmu: 58882000.mmu registered
[    0.461150] omap-iommu 55082000.mmu: 55082000.mmu registered
[    0.461488] omap-iommu 41501000.mmu: 41501000.mmu registered
[    0.461691] omap-iommu 41502000.mmu: 41502000.mmu registered
[    0.461923] iommu: Adding device 58820000.ipu to group 1
[    0.462002] iommu: Adding device 55020000.ipu to group 2
[    0.462140] iommu: Adding device 40800000.dsp to group 0
[    0.462374] iommu: Adding device 41000000.dsp to group 3
[    0.464505] palmas 0-0058: Irq flag is 0x00000008
[    0.492746] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
[    0.494255] SMPS12: supplied by regulator-dummy
[    0.495935] SMPS3: supplied by regulator-dummy
[    0.497604] SMPS45: supplied by regulator-dummy
[    0.499380] SMPS6: supplied by regulator-dummy
[    0.500794] SMPS7: supplied by regulator-dummy
[    0.502193] SMPS8: supplied by regulator-dummy
[    0.503472] SMPS9: supplied by regulator-dummy
[    0.504192] LDO1: supplied by regulator-dummy
[    0.511205] random: fast init done
[    0.511316] LDO2: supplied by regulator-dummy
[    0.521172] LDO3: supplied by regulator-dummy
[    0.531191] LDO4: supplied by regulator-dummy
[    0.541218] LDO5: supplied by regulator-dummy
[    0.541936] LDO6: supplied by regulator-dummy
[    0.542664] LDO7: supplied by regulator-dummy
[    0.543391] LDO8: supplied by regulator-dummy
[    0.544110] LDO9: supplied by regulator-dummy
[    0.551267] LDOLN: supplied by regulator-dummy
[    0.561252] LDOUSB: supplied by regulator-dummy
[    0.573131] gpiochip_find_base: found new base at 504
[    0.573265] gpio gpiochip8: (48070000.i2c:tps659038@58:tps659038_gpio): added GPIO chardev (254:8)
[    0.573334] gpiochip_setup_dev: registered GPIOs 504 to 511 on device: gpiochip8 (48070000.i2c:tps659038@58:tps659038_gpio)
[    0.573818] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    0.574366] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
[    0.574445] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/i2c5_pins_default, deferring probe
[    0.574600] media: Linux media interface: v0.10
[    0.574638] Linux video capture interface: v2.00
[    0.574719] pps_core: LinuxPPS API ver. 1 registered
[    0.574729] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.574748] PTP clock support registered
[    0.574777] EDAC MC: Ver: 3.0.0
[    0.575025] dmi: Firmware registration failed.
[    0.575398] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[    0.575674] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[    0.575991] Advanced Linux Sound Architecture Driver Initialized.
[    0.576678] clocksource: Switched to clocksource arch_sys_counter
[    0.584591] NET: Registered protocol family 2
[    0.585120] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585184] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.585310] TCP: Hash tables configured (established 8192 bind 8192)
[    0.585380] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.585413] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.585534] NET: Registered protocol family 1
[    0.585844] RPC: Registered named UNIX socket transport module.
[    0.585854] RPC: Registered udp transport module.
[    0.585862] RPC: Registered tcp transport module.
[    0.585869] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.585879] PCI: CLS 0 bytes, default 64
[    0.586769] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.586943] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.587939] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.591976] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.592473] NFS: Registering the id_resolver key type
[    0.592498] Key type id_resolver registered
[    0.592506] Key type id_legacy registered
[    0.592544] ntfs: driver 2.1.32 [Flags: R/O].
[    0.593795] bounce: pool size: 64 pages
[    0.593842] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.593854] io scheduler noop registered
[    0.593863] io scheduler deadline registered
[    0.594012] io scheduler cfq registered (default)
[    0.594023] io scheduler mq-deadline registered
[    0.594031] io scheduler kyber registered
[    0.599131] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[    0.601735] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.3
[    0.601894] dra7-pcie 51000000.pcie: GPIO lookup for consumer (null)
[    0.601902] dra7-pcie 51000000.pcie: using device tree for GPIO lookup
[    0.601934] of_get_named_gpiod_flags: parsed 'gpios' property of node '/ocp/axi@0/pcie@51000000[0]' - status (0)
[    0.602097] OF: PCI: host bridge /ocp/axi@0/pcie@51000000 ranges:
[    0.602133] OF: PCI:    IO 0x20003000..0x20012fff -> 0x00000000
[    0.602156] OF: PCI:   MEM 0x20013000..0x2fffffff -> 0x20013000
[    1.602419] dra7-pcie 51000000.pcie: phy link never came up
[    1.602545] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[    1.602559] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.602571] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    1.602582] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[    1.602617] pci 0000:00:00.0: [104c:8888] type 01 class 0x060400
[    1.602648] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.602708] pci 0000:00:00.0: supports D1
[    1.602715] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.602896] PCI: bus0: Fast back to back transfers disabled
[    1.602989] PCI: bus1: Fast back to back transfers enabled
[    1.603027] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
[    1.603047] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.603368] pcieport 0000:00:00.0: Signaling PME with IRQ 172
[    1.603498] pcieport 0000:00:00.0: AER enabled with IRQ 172
[    1.606422] vdd_3v3: supplied by regen1
[    1.606754] aic_dvdd_fixed: supplied by vdd_3v3
[    1.606848] vtt_fixed: supplied by smps3
[    1.649295] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    1.651839] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 45, base_baud = 3000000) is a 8250
[    2.744650] console [ttyS2] enabled
[    2.749964] omap_rng 48090000.rng: Random Number Generator ver. 20
[    2.757945] DSS: OMAP DSS rev 6.1
[    2.761741] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
[    2.770184] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
[    2.779227] tpd12s015 encoder: GPIO lookup for consumer (null)
[    2.779234] tpd12s015 encoder: using device tree for GPIO lookup
[    2.779265] of_get_named_gpiod_flags: parsed 'gpios' property of node '/encoder[0]' - status (0)
[    2.779281] tpd12s015 encoder: GPIO lookup for consumer (null)
[    2.779288] tpd12s015 encoder: using device tree for GPIO lookup
[    2.779325] of_get_named_gpiod_flags: parsed 'gpios' property of node '/encoder[1]' - status (0)
[    2.779338] tpd12s015 encoder: GPIO lookup for consumer (null)
[    2.779345] tpd12s015 encoder: using device tree for GPIO lookup
[    2.779393] of_get_named_gpiod_flags: parsed 'gpios' property of node '/encoder[2]' - status (0)
[    2.780179] of_get_named_gpiod_flags: can't parse 'hpd-gpios' property of node '/connector[0]'
[    2.787935] brd: module loaded
[    2.796395] loop: module loaded
[    2.800175] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
[    2.809534] mdio_bus fixed-0: GPIO lookup for consumer reset
[    2.809541] mdio_bus fixed-0: using lookup tables for GPIO lookup
[    2.809549] mdio_bus fixed-0: lookup for GPIO reset failed
[    2.809573] libphy: Fixed MDIO Bus: probed
[    2.816076] mdio_bus 48485000.mdio: GPIO lookup for consumer reset
[    2.816084] mdio_bus 48485000.mdio: using device tree for GPIO lookup
[    2.816095] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/ethernet@48484000/mdio@48485000[0]'
[    2.816104] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/ethernet@48484000/mdio@48485000[0]'
[    2.816111] mdio_bus 48485000.mdio: using lookup tables for GPIO lookup
[    2.816119] mdio_bus 48485000.mdio: lookup for GPIO reset failed
[    2.866703] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    2.874399] libphy: 48485000.mdio: probed
[    2.883121] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
[    2.892876] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver Micrel KSZ9031 Gigabit PHY
[    2.903107] cpsw 48484000.ethernet: Detected MACID = d4:36:39:28:ca:20
[    2.909764] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
[    2.916147] cpsw 48484000.ethernet: ALE Table size 1024
[    2.921447] cpsw 48484000.ethernet: device node lookup for pps timer failed
[    2.928522] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
[    2.936397] cpsw 48484000.ethernet: cpsw: Detected MACID = d4:36:39:28:ca:21
[    2.944618] i2c /dev entries driver
[    2.948942] IR NEC protocol handler initialized
[    2.953494] IR RC5(x/sz) protocol handler initialized
[    2.958592] IR RC6 protocol handler initialized
[    2.963143] IR JVC protocol handler initialized
[    2.967727] IR Sony protocol handler initialized
[    2.972363] IR SANYO protocol handler initialized
[    2.977410] IR Sharp protocol handler initialized
[    2.982136] IR MCE Keyboard/mouse protocol handler initialized
[    2.988009] IR XMP protocol handler initialized
[    2.993574] of_get_named_gpiod_flags: parsed 'gpios' property of node '/gpio_fan[0]' - status (0)
[    2.994827] gpio-fan gpio_fan: GPIO fan initialized
[    3.000861] tmp102 0-0048: initialized
[    3.008683] sdhci: Secure Digital Host Controller Interface driver
[    3.014892] sdhci: Copyright(c) Pierre Ossman
[    3.020140] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.026613] sdhci-omap 4809c000.mmc: GPIO lookup for consumer cd
[    3.026619] sdhci-omap 4809c000.mmc: using device tree for GPIO lookup
[    3.026639] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@4809c000[0]' - status (0)
[    3.026681] sdhci-omap 4809c000.mmc: Got CD GPIO
[    3.031320] sdhci-omap 4809c000.mmc: GPIO lookup for consumer wp
[    3.031325] sdhci-omap 4809c000.mmc: using device tree for GPIO lookup
[    3.031332] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@4809c000[0]'
[    3.031338] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@4809c000[0]'
[    3.031344] sdhci-omap 4809c000.mmc: using lookup tables for GPIO lookup
[    3.031349] sdhci-omap 4809c000.mmc: lookup for GPIO wp failed
[    3.032063] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_1_8v mode
[    3.038739] sdhci-omap 4809c000.mmc: no pinctrl state for hs200_1_8v mode
[    3.096896] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
[    3.104349] sdhci-omap 480b4000.mmc: GPIO lookup for consumer wp
[    3.104357] sdhci-omap 480b4000.mmc: using device tree for GPIO lookup
[    3.104367] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@480b4000[0]'
[    3.104376] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@480b4000[0]'
[    3.105496] sdhci-omap 480b4000.mmc: using lookup tables for GPIO lookup
[    3.105504] sdhci-omap 480b4000.mmc: lookup for GPIO wp failed
[    3.144048] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.154175] mmc0: new high speed SDHC card at address 59b4
[    3.160011] mmcblk0: mmc0:59b4 SD    14.7 GiB
[    3.165935]  mmcblk0: p1
[    3.168511] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
[    3.168849] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led0[0]' - status (0)
[    3.168856] no flags found for gpios
[    3.168939] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led1[0]' - status (0)
[    3.168945] no flags found for gpios
[    3.169021] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led2[0]' - status (0)
[    3.169026] no flags found for gpios
[    3.169115] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led3[0]' - status (0)
[    3.169120] no flags found for gpios
[    3.176580] ledtrig-cpu: registered to indicate activity on CPUs
[    3.186270] NET: Registered protocol family 10
[    3.191550] Segment Routing with IPv6
[    3.195275] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.202064] NET: Registered protocol family 17
[    3.209930] Key type dns_resolver registered
[    3.214453] omap_voltage_late_init: Voltage driver support not added
[    3.220988] Power Management for TI OMAP4+ devices.
[    3.226445] Registering SWP/SWPB emulation handler
[    3.242981] dmm 4e000000.dmm: workaround for errata i878 in use
[    3.250291] dmm 4e000000.dmm: initialized all PAT entries
[    3.256994] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.263637] [drm] No driver support for vblank timestamp query.
[    3.269657] [drm] Cannot find any crtc or sizes
[    3.275012] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[    3.295912] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 100 kHz
[    3.301858] hctosys: unable to open rtc device (rtc0)
[    3.307375] aic_dvdd_fixed: disabling
[    3.311206] ldousb: disabling
[    3.312692] mmc1: new DDR MMC card at address 0001
[    3.312937] mmcblk1: mmc1:0001 M62704 3.53 GiB
[    3.319039] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB
[    3.319159] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB
[    3.319274] mmcblk1rpmb: mmc1:0001 M62704 partition 3 512 KiB
[    3.320008]  mmcblk1: p1
[    3.344052] ALSA device list:
[    3.347040]   No soundcards found.
[    3.364547] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    3.372758] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    3.382582] devtmpfs: mounted
[    3.386586] Freeing unused kernel memory: 2048K
[    3.677624] systemd[1]: System time before build time, advancing clock.
[    3.702639] random: systemd: uninitialized urandom read (16 bytes read)
[    3.719011] random: systemd: uninitialized urandom read (16 bytes read)
[    3.728404] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[    3.747044] systemd[1]: Detected architecture arm.
[    3.787900] systemd[1]: Set hostname to <am57xx-evm>.
[    3.823992] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    4.128306] systemd[1]: Created slice User and Session Slice.
[    4.157340] systemd[1]: Created slice System Slice.
[    4.186791] systemd[1]: Reached target Slices.
[    4.216973] systemd[1]: Reached target Remote File Systems.
[    4.246916] systemd[1]: Reached target Swap.
[    4.277176] systemd[1]: Listening on Journal Socket (/dev/log).
[    4.307152] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    4.316738] [drm] Cannot find any crtc or sizes
[    4.765260] usbcore: registered new interface driver usbfs
[    4.770873] usbcore: registered new interface driver hub
[    4.776858] usbcore: registered new device driver usb
[    4.830490] usbcore: registered new interface driver usbserial
[    5.169821] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[    5.496271] systemd-journald[94]: Received request to flush runtime journal from PID 1
[    5.856245] omap-rproc 58820000.ipu: assigned reserved memory node ipu1-memory@9d000000
[    5.888951] remoteproc remoteproc0: 58820000.ipu is available
[    5.946701] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
[    6.043025] remoteproc remoteproc1: 55020000.ipu is available
[    6.044325] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
[    6.044385] remoteproc remoteproc2: 40800000.dsp is available
[    6.044697] omap-rproc 41000000.dsp: assigned reserved memory node dsp2-memory@9f000000
[    6.044749] remoteproc remoteproc3: 41000000.dsp is available
[    6.202052] remoteproc remoteproc0: powering up 58820000.ipu
[    6.215187] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 4699456
[    6.227887] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[    6.247949] virtio_rpmsg_bus virtio0: rpmsg host is online
[    6.255629] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x32
[    6.255726] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x33
[    6.255950] virtio_rpmsg_bus virtio0: creating channel rpmsg-omx addr 0x3c
[    6.256039] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x65
[    6.272859] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[    6.279862] omap-des 480a5000.des: will run requests pump with realtime priority
[    6.285958] of_get_named_gpiod_flags: can't parse 'gpio-reset' property of node '/ocp/i2c@48070000/tlv320aic3104@18[0]'
[    6.351653] remoteproc remoteproc0: registered virtio0 (type 7)
[    6.351658] remoteproc remoteproc0: remote processor 58820000.ipu is now up
[    6.405220] rtc rtc1: 48070000.i2c:tps659038@58:tps659038_rtc: dev (253:1)
[    6.405231] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: rtc core: registered 48070000.i2c:tps659038@58:tps659038_rtc as rtc1
[    6.420854] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: GPIO lookup for consumer id
[    6.420862] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: using device tree for GPIO lookup
[    6.420880] of_get_named_gpiod_flags: can't parse 'id-gpios' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]'
[    6.420890] of_get_named_gpiod_flags: can't parse 'id-gpio' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]'
[    6.420896] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: using lookup tables for GPIO lookup
[    6.420902] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: lookup for GPIO id failed
[    6.420909] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: GPIO lookup for consumer vbus
[    6.420914] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: using device tree for GPIO lookup
[    6.420922] of_get_named_gpiod_flags: can't parse 'vbus-gpios' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]'
[    6.420956] of_get_named_gpiod_flags: parsed 'vbus-gpio' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]' - status (0)
[    6.431731] omap_rtc 48838000.rtc: char device (253:2)
[    6.431799] omap_rtc 48838000.rtc: registered as rtc2
[    6.945733] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
[    7.026832] vpe 489d0000.vpe: Device registered as /dev/video0
[    7.347210] rtc-ds1307 2-006f: SET TIME!
[    7.351725] rtc-ds1307 2-006f: read: 80 00 00 09 01 01 01
[    7.351733] rtc-ds1307 2-006f: read secs=0, mins=0, hours=0, mday=1, mon=0, year=101, wday=0
[    7.352081] rtc-ds1307 2-006f: got IRQ 181
[    7.352366] rtc-ds1307 2-006f: read: 80 00 00 0a 01 01 01
[    7.352373] rtc-ds1307 2-006f: read secs=0, mins=0, hours=0, mday=1, mon=0, year=101, wday=1
[    7.352723] rtc-ds1307 2-006f: mcp794xx_read_alarm, sec=0 min=0 hour=0 wday=0 mday=1 mon=0 enabled=0 polarity=0 irq=0 match=0
[    7.352999] rtc-ds1307 2-006f: read: 80 00 00 0a 01 01 01
[    7.353006] rtc-ds1307 2-006f: read secs=0, mins=0, hours=0, mday=1, mon=0, year=101, wday=1
[    7.353013] rtc rtc0: alarm rollover: year
[    7.353289] rtc-ds1307 2-006f: read: 80 00 00 0a 01 01 01
[    7.353295] rtc-ds1307 2-006f: read secs=0, mins=0, hours=0, mday=1, mon=0, year=101, wday=1
[    7.353427] rtc-ds1307 2-006f: char device (253:0)
[    7.353490] rtc-ds1307 2-006f: registered as rtc0
[    7.659729] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[    7.665677] omap-aes 4b500000.aes: will run requests pump with realtime priority
[    7.674464] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[    7.680757] omap-aes 4b700000.aes: will run requests pump with realtime priority
[    7.782940] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
[    7.907892] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    8.090976] SCSI subsystem initialized
[    8.283909] libata version 3.00 loaded.
[    8.503981] remoteproc remoteproc3: powering up 41000000.dsp
[    8.509918] remoteproc remoteproc1: powering up 55020000.ipu
[    8.509928] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3738980
[    8.509986] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
[    8.516718] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
[    8.516738] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    8.516744] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst
[    8.555965] remoteproc remoteproc3: Booting fw image dra7-dsp2-fw.xe66, size 19480300
[    8.572899] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
[    8.578783] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
[    8.584683] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
[    8.636640] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
[    8.646051] omap-hdmi-audio omap-hdmi-audio.0.auto: ASoC: no DMI vendor name!
[    8.659869] virtio_rpmsg_bus virtio1: rpmsg host is online
[    8.663259] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x65
[    8.664151] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x66
[    8.680406] scsi host0: ahci
[    8.680579] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 80
[    8.703485] remoteproc remoteproc1: registered virtio1 (type 7)
[    8.715164] remoteproc remoteproc1: remote processor 55020000.ipu is now up
[    8.723440] virtio_rpmsg_bus virtio2: rpmsg host is online
[    8.723511] virtio_rpmsg_bus virtio2: creating channel rpmsg-proto addr 0x3d
[    8.737656] remoteproc remoteproc2: powering up 40800000.dsp
[    8.737665] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 19480300
[    8.744246] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[    8.744274] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[    8.744307] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[    8.804396] remoteproc remoteproc3: registered virtio2 (type 7)
[    8.817160] remoteproc remoteproc3: remote processor 41000000.dsp is now up
[    8.835977] of_get_named_gpiod_flags: can't parse 'simple-audio-card,hp-det-gpio' property of node '/sound0[0]'
[    8.835988] of_get_named_gpiod_flags: can't parse 'simple-audio-card,mic-det-gpio' property of node '/sound0[0]'
[    8.872355] asoc-simple-card sound0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
[    8.881541] virtio_rpmsg_bus virtio3: rpmsg host is online
[    8.881589] remoteproc remoteproc2: registered virtio3 (type 7)
[    8.881594] remoteproc remoteproc2: remote processor 40800000.dsp is now up
[    8.881611] virtio_rpmsg_bus virtio3: creating channel rpmsg-proto addr 0x3d
[    8.977519] asoc-simple-card sound0: ASoC: no DMI vendor name!
[    9.008775] ata1: SATA link down (SStatus 0 SControl 300)
[    9.425517] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[    9.511296] net eth1: initializing cpsw version 1.15 (0)
[    9.578336] Bluetooth: Core ver 2.22
[    9.581961] NET: Registered protocol family 31
[    9.586421] Bluetooth: HCI device and connection manager initialized
[    9.624521] Bluetooth: HCI socket layer initialized
[    9.624530] Bluetooth: L2CAP socket layer initialized
[    9.624559] Bluetooth: SCO socket layer initialized
[    9.674244] Micrel KSZ9031 Gigabit PHY 48485000.mdio:02: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:02, irq=POLL)
[    9.734447] cpts ptp bc clkid 0
[    9.763205] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    9.829162] net eth0: initializing cpsw version 1.15 (0)
[    9.989873] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
[   10.054031] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.122425] rtc-ds1307 2-006f: write secs=55, mins=55, hours=9, mday=28, mon=6, year=118, wday=6
[   10.122434] rtc-ds1307 2-006f: write: d5 55 09 0f 28 07 18
[   10.123339] rtc-ds1307 2-006f: read: d5 55 09 2f 28 07 18
[   10.123348] rtc-ds1307 2-006f: read secs=55, mins=55, hours=9, mday=28, mon=6, year=118, wday=6
[   10.563493] pruss 4b200000.pruss: creating PRU cores and other child platform devices
[   10.572499] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: probing service rpc_example_2 with src 1024 dst 101
[   10.573055] rpmsg_rpc virtio1.rpmsg-rpc.-1.101: probing service dce-callback with src 1024 dst 101
[   10.573498] rpmsg_rpc virtio1.rpmsg-rpc.-1.102: probing service rpmsg-dce with src 1025 dst 102
[   10.573563] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: published functions = 8
[   10.574103] rpmsg_rpc virtio1.rpmsg-rpc.-1.101: published functions = 4
[   10.575299] rpmsg_rpc virtio1.rpmsg-rpc.-1.102: published functions = 9
[   10.576589] dwc3 488d0000.usb: changing max_speed on rev 5533202a
[   10.607095] NET: Registered protocol family 15
[   10.655619] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   10.655639] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[   10.656694] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
[   10.656737] xhci-hcd xhci-hcd.1.auto: irq 177, io mem 0x48890000
[   10.658496] hub 1-0:1.0: USB hub found
[   10.658914] hub 1-0:1.0: 1 port detected
[   10.659187] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   10.659198] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[   10.659322] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   10.660207] hub 2-0:1.0: USB hub found
[   10.660453] hub 2-0:1.0: 1 port detected
[   10.662648] NET: Registered protocol family 44
[   10.829997] Initializing XFRM netlink socket
[   10.912422] pruss 4b280000.pruss: creating PRU cores and other child platform devices
[   10.961948] remoteproc remoteproc4: 4b234000.pru is available
[   10.975299] pru-rproc 4b234000.pru: PRU rproc node /ocp/pruss_soc_bus@4b226004/pruss@0/pru@34000 probed successfully
[   10.994411] remoteproc remoteproc5: 4b238000.pru is available
[   11.000417] pru-rproc 4b238000.pru: PRU rproc node /ocp/pruss_soc_bus@4b226004/pruss@0/pru@38000 probed successfully
[   11.011878] remoteproc remoteproc6: 4b2b4000.pru is available
[   11.017809] pru-rproc 4b2b4000.pru: PRU rproc node /ocp/pruss_soc_bus@4b2a6004/pruss@0/pru@34000 probed successfully
[   11.029647] remoteproc remoteproc7: 4b2b8000.pru is available
[   11.035569] pru-rproc 4b2b8000.pru: PRU rproc node /ocp/pruss_soc_bus@4b2a6004/pruss@0/pru@38000 probed successfully
[   11.047973] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[   11.091427] hub 2-1:1.0: USB hub found
[   11.095568] hub 2-1:1.0: 4 ports detected
[   11.226723] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[   11.427451] hub 1-1:1.0: USB hub found
[   11.431260] hub 1-1:1.0: 4 ports detected
[   12.904331] random: crng init done
[   12.909156] random: 7 urandom warning(s) missed due to ratelimiting
[   13.205479] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   13.213421] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   19.043813] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[   19.057643] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
[   46.586725] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   47.606702] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   48.626719] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   49.646718] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   50.666722] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   51.686705] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   52.706721] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   53.736706] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   54.756717] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   55.786718] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[   56.806718] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[ 1314.776713] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[ 1315.796703] omap_i2c 4807c000.i2c: timeout waiting for bus ready
[ 1316.816728] omap_i2c 4807c000.i2c: timeout waiting for bus ready
root@am57xx-evm:/#

  • Hello Titus,

    By "latest SDK", do you mean Linux SDK 5.0? Did it work on previous SDKs?

    Regards,
    Nick
  • Hi Nick,
    Nope, it doesn't work in any version, I have tested with linux 4.9 kernel TI SDK and linux kernel 4.14(v05.00) TI SDK.
    Can you please verify the dts settings, pinmux and schematics, ?
    Due to these issues we are completely blocked and stopped our further development, can you please help us asap.
    Thanks for your understanding.
  • Here are the most common reasons I've seen for timeout errors:

    1. Pullups not in place or power rail to which pullups are connected not properly powered.  Please verify the bus is at the expected voltage.
    2. Pinmux not configured correctly.
      1. One mistake is if the INPUTENABLE bit is not set for both SCL and SDA.
      2. Another common mistake is if the I2C is mistakenly muxed to more than one pin.  I2C5 has 3 sets of pins to which it can be muxed.  Check the pinmux registers for all of them to verify that you don't have another pin inadvertently muxed to I2C5.

  • Thanks Brad for your response.

    Another common mistake is if the I2C is mistakenly muxed to more than one pin.  I2C5 has 3 sets of pins to which it can be muxed.  Check the pinmux registers for all of them to verify that you don't have another pin inadvertently muxed to I2C5.

    Here are the I2C5 pin mux configuration registers and looks fine. We are using I2C5 from X3 connector.

    gpmc_a4 (mode7) i2c5_scl  (0x4A003450)

    gpmc_a5 (mode7) i2c5_sda (0x4A003454)

    mcasp1_axr0 (mode10) i2c5_sda (0x4A0036B4)

    mcasp1_axr1 (mode10) i2c5_scl (0x4A0036B8)

    mcasp5_aclkx (mode4) i2c5_sda  (0x4A003744)

    mcasp5_fsx (mode4) i2c5_scl  (0x4A003748)

     

    root@am57xx-evm:/#

    root@am57xx-evm:/# devmem2 0x4A003450

    /dev/mem opened.

    Memory mapped at address 0xb6efc000.

    Read at address  0x4A003450 (0xb6efc450): 0x00040102

    root@am57xx-evm:/#

    root@am57xx-evm:/# devmem2 0x4A003454

    /dev/mem opened.Memory mapped at address 0xb6f4f000.

    Read at address  0x4A003454 (0xb6f4f454): 0x00040102

    root@am57xx-evm:/#

    root@am57xx-evm:/#

    root@am57xx-evm:/# devmem2 0x4A0036B4

    /dev/mem opened.

    Memory mapped at address 0xb6f79000.

    Read at address  0x4A0036B4 (0xb6f796b4): 0x000E000A

    root@am57xx-evm:/#

    root@am57xx-evm:/# devmem2 0x4A0036B8

    /dev/mem opened.

    Memory mapped at address 0xb6f05000.

    Read at address  0x4A0036B8 (0xb6f056b8): 0x000E000A

    root@am57xx-evm:/#

    root@am57xx-evm:/# devmem2 0x4A003744

    /dev/mem opened.

    Memory mapped at address 0xb6fbe000.

    Read at address  0x4A003744 (0xb6fbe744): 0x00060003

    root@am57xx-evm:/#

    root@am57xx-evm:/# devmem2 0x4A003748

    /dev/mem opened.

    Memory mapped at address 0xb6f59000.

    Read at address  0x4A003748 (0xb6f59748): 0x00010003

    root@am57xx-evm:/#

    root@am57xx-evm:/#

    One mistake is if the INPUTENABLE bit is not set for both SCL and SDA.

    root@am57xx-evm:/# devmem2 0x4A0036B4

    /dev/mem opened.

    Memory mapped at address 0xb6f79000.

    Read at address  0x4A0036B4 (0xb6f796b4): 0x000E000A

    root@am57xx-evm:/#

    root@am57xx-evm:/# devmem2 0x4A0036B8

    /dev/mem opened.

    Memory mapped at address 0xb6f05000.

    Read at address  0x4A0036B8 (0xb6f056b8): 0x000E000A

    root@am57xx-evm:/#

    I have got '0x000E000A' value in pinmux registers and confirm that INPUT EN is enabled with slew rate. (also tried without slew rate)

    Pullups not in place or power rail to which pullups are connected not properly powered. Please verify the bus is at the expected voltage.

    I have got 0.8V on both pins, what could be the problem here ?

    R1 & R2 are 4.7K resistors and R12 & R40 are 30Ohm resistors.

    patchwork.ozlabs.org/.../

    And  I have seen the below patch, do we need to enable the I2C5 clock in uboot/linux apart from i2c5 dts enabling ?

    Thanks for your support.

  • Ok, so your devmem2 output confirms that you've muxed I2C5 only to a single set of pins.  It also shows that the INPUTENABLE is set.  So that much is good.  With respect to slew rate, the following is in the data manual:

    • The default SLEWCONTROL settings in each pad configuration register must be used to guarantee
      timings, unless specific instructions otherwise are given in the individual timing sub-sections of the
      datasheet.

    For the specific pads you're using for I2C5, the SLEWCONTROL defaults to 1, so leaving that set to 1 is the correct setting.

    Titus Stalin said:
    I have got 0.8V on both pins, what could be the problem here ?

    Pins G12 and F12 correspond to voltage domain vddshv3.  Please measure the voltage observed on vddshv3 on your board.  Based on your pullups, this should be 3.3V.

    Titus Stalin said:
    R1 & R2 are 4.7K resistors and R12 & R40 are 30Ohm resistors.

    Looking at R1 and R2, can you confirm that the voltage rail to which they're being pulled is 3.3V?  In other words, are you seeing 3.3V on one side of the resistor and 0.8V on the other side?  (I want to to make sure that supply rail isn't sitting at 0.8V for some reason, in which case it would make sense why the I2C is only pulled up to 0.8V.)

    Similarly, can you look carefully at R12 and R40 to determine the direction of the voltage drop?  Alternatively, if you remove R12 and R40, do you see the I2C5 pin rise to 3.3V (i.e. due to internal pullup)?  In that scenario you would need to determine why you have 0.8V at the board level.

  • Thanks Brad for your pointers.
    Yes, I am not able to see the 3V3 in pull up resistors & other 3V3 test points, we are debugging the board, will get back if need any further help.
    Thanks again Brad.
  • Hi Brad,

    Thanks for your support so far.

    Started to debug the HW board and found the following observations on board.

    I have attached the schematics except the I2C slave device which design is propitiatory, I can send to you complete schematics via private chat.

    Checked the continuity between C53 (+ve) and board 3.3V pin connector (X1.A3), no continuity found.... its not expected, isn't it ?

    And also checked the voltage across, C27, C52, C44, C46, C29, and L12 to GND, & L13 to GND, mesaured voltage just 0.368V on all combinations.

    Any PCB design issue ?

    Unfortunately we designed only one board for now, unable to do the same with other boards.

    I can see the connectivity C52 & C27 via L12 & L13, so can we connect and put one wire externally from board 3.3V connector(X1.A3) to C57(+ve), this way board get powered up through 3.3V right ? can you please confirm ?

    We need to start new PCB and HW design  based on the current issue, so we completely blocked and not sure how to proceed further.

    Thanks for your help.

    edited_new.pdf

  • Hello Titus,

    A member of our hardware team should respond soon.

    Regards,
    Nick
  • Based on your schematic, it appears you are attaching a custom PCB to a BB X15 and taking power from that board. You should confirm the BB X15 is sourcing the correct voltage and has enough capacity to source your PCB.

    It is not clear from previous post what is causing your power supply problem. However, it appears to be a system level issue which needs to be resolved before we provide any additional help with I2C.

    Regards,
    Paul
  • Hi Paul,

    Thanks for your response.

    I have attached the schematics and my i2c slave devices are cameras, so your suspect is correct on power requirement.

    We enable the power to the PCB via GPIO (POWER_IN), and getting 1V when I write HIGH.

    I am using 12V, 1.5A power source to beaglebone X15 board.

    Can you please let me know what could be the problem.

    Thanks for your help.

    Enable/Disable pull up in POWER_IN using GPIO5_12 POWER_IN T1.S T1.D T1.G T1.D + R17 removed
    Enable 0.984V 3V3 0.461V 0.320V 1.035
    Disable 0V 3V3 0.36V 3V3                           0.36V
    T1.S, .D, .G -> Source, Drain, Gate of T1 transistor

  • I'm not able to help you resolve system level power supply issues. This is an issue you need to resolve.

    Regards,
    Paul
  • Hi Paul,
    Thanks for your support.
    We have resolved our HW issue on our board. Our add on board didn't get power input 3V3, due to that we got i2c timeout errors.