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.

Compiler/AM5728: MMC3 configuration

Part Number: AM5728

Tool/software: TI C/C++ Compiler

Hi All TI Engineer,

I read the refer manual about AM5728 EMMC/SD/SDIO (25.2), So The MMC3 instance support 1-, 4-, and 8 bit data transfers.

I design the MMC 3 interface to read/write SD card with 4 bit data bus on my Board.

And, I configure the device tree as flows:

But I can not find the SD card on my board by mmc3 interface.

The scan sd card command:

fdisk -l 

I Missed something?

  • Hi,

    What Linux version are you using? Where is the device tree? You haven't posted it.
  • Hi,

    I am sorry.

    Linux version:

    4.9.69-ti-rt-r85

    The  device tree:

    /* * DEVICE TREE FORMAT PADCONF * */

    &dra7_pmx_core {

    mmc3_pins_ds: pinmux_mmc3_pins_ds {

    pinctrl-single,pins = <

    DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_clk.mmc3_clk */

    DRA7XX_CORE_IOPAD(0x3780, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_cmd.mmc3_cmd */

    DRA7XX_CORE_IOPAD(0x3784, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat0.mmc3_dat0 */

    DRA7XX_CORE_IOPAD(0x3788, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat1.mmc3_dat1 */

    DRA7XX_CORE_IOPAD(0x378c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat2.mmc3_dat2 */

    DRA7XX_CORE_IOPAD(0x3790, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat3.mmc3_dat3 */

    >;

    };

    mmc3_pins_hs: pinmux_mmc3_pins_hs {

    pinctrl-single,pins = <

    DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_clk.mmc3_clk */

    DRA7XX_CORE_IOPAD(0x3780, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_cmd.mmc3_cmd */

    DRA7XX_CORE_IOPAD(0x3784, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat0.mmc3_dat0 */

    DRA7XX_CORE_IOPAD(0x3788, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat1.mmc3_dat1 */

    DRA7XX_CORE_IOPAD(0x378c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat2.mmc3_dat2 */

    DRA7XX_CORE_IOPAD(0x3790, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat3.mmc3_dat3 */

    >;

    };

    mmc3_pins_sdr12: pinmux_mmc3_pins_sdr12 {

    pinctrl-single,pins = <

    DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_clk.mmc3_clk */

    DRA7XX_CORE_IOPAD(0x3780, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_cmd.mmc3_cmd */

    DRA7XX_CORE_IOPAD(0x3784, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat0.mmc3_dat0 */

    DRA7XX_CORE_IOPAD(0x3788, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat1.mmc3_dat1 */

    DRA7XX_CORE_IOPAD(0x378c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat2.mmc3_dat2 */

    DRA7XX_CORE_IOPAD(0x3790, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat3.mmc3_dat3 */

    >;

    };

    mmc3_pins_sdr25: pinmux_mmc3_pins_sdr25 {

    pinctrl-single,pins = <

    DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_clk.mmc3_clk */

    DRA7XX_CORE_IOPAD(0x3780, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_cmd.mmc3_cmd */

    DRA7XX_CORE_IOPAD(0x3784, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat0.mmc3_dat0 */

    DRA7XX_CORE_IOPAD(0x3788, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat1.mmc3_dat1 */

    DRA7XX_CORE_IOPAD(0x378c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat2.mmc3_dat2 */

    DRA7XX_CORE_IOPAD(0x3790, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat3.mmc3_dat3 */

    >;

    };

    mmc3_pins_sdr50: pinmux_mmc3_pins_sdr50 {

    pinctrl-single,pins = <

    DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_clk.mmc3_clk */

    DRA7XX_CORE_IOPAD(0x3780, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_cmd.mmc3_cmd */

    DRA7XX_CORE_IOPAD(0x3784, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat0.mmc3_dat0 */

    DRA7XX_CORE_IOPAD(0x3788, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat1.mmc3_dat1 */

    DRA7XX_CORE_IOPAD(0x378c, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat2.mmc3_dat2 */

    DRA7XX_CORE_IOPAD(0x3790, PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE0) /* mmc3_dat3.mmc3_dat3 */

    >;

    };

    };

    The mmc 3 interface on my board :

  • Sun yangyang said:
    4.9.69-ti-rt-r85

    I would suggest you to work with the kernel that comes with AM57x PSDK v4.03

    ti-processor-sdk-linux-am57xx-evm-04.03.00.05/board-support/linux-4.9.69/

    AM572x TI EVM comes with MMC1 connected to microSD card, in 4-bit mode. I would suggest you to explore how this is done in below files:

    linux-4.9.69/arch/arm/mach-omap2/pdata-quirks.c

    linux-4.9.69/arch/arm/boot/dts/dra7.dtsi

    linux-4.9.69/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi

    linux-4.9.69/arch/arm/boot/dts/am57xx-beagle-x15.dts

    linux-4.9.69/arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi

    Consider that MMC1 and MMC3 support different frequencies. See also how power/voltage is applied on EVM MMC1 and compare/align with your custom board MMC3.

    See also below e2e threads:

    Regards,
    Pavel

  • Thanks for your reply!

    work with the kernel that comes with AM57x PSDK v4.03;

    ti-processor-sdk-linux-am57xx-evm-04.03.00.05/board-support/linux-4.9.69/;

    modifi device tree as below:

    &mmc3 {

       status = "okay";

       pinctrl-names = "default";

       pinctrl-0 = <&mmc3_pins_default>;

       pinctrl-1 = <&mmc3_pins_hs>;

       pinctrl-2 = <&mmc3_pins_sdr12> ;

       pinctrl-3 = <&mmc3_pins_sdr25;

       pinctrl-4 = <&mmc3_pins_sdr50;

       vmmc-supply = <&vdd_3v3>;

       bus-width = <4>;

    };

    But, now, I can not enable MMC3 interface.Missed anthings?

    MMC3 supply VDDSHV7 did not the same as MMC1 VDDSHV8, So how can I modify the "vmmc-supply = <ldo1_reg>"?

    Any reply will be appreciated!

  • Part Number: AM5728

    Tool/software: TI C/C++ Compiler

    Dear All TI engineers,

    How can I enable MMC3 interface ON AM5728?

    Linux Kernerl:Linux arm 4.9.69-ti-rt-r85 

    SDK:

    git clone https://github.com/RobertCNelson/ti-linux-kernel-dev.git git checkout origin/ti-linux-4.9.y -b tmp

    I add the following content in the device tree,But MMC3 still fails to mount the device, and need to modify the kernel?

     ATTACH File:

    1346.dts.txt
    //add the  am57xx-beagle-x15-revc.dts
    &mmc3 {
    	pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
    	pinctrl-0 = <&mmc3_pins_default>;
    	pinctrl-1 = <&mmc3_pins_hs>;
    	pinctrl-2 = <&mmc3_pins_sdr12>;
    	pinctrl-3 = <&mmc3_pins_sdr25>;
    	pinctrl-4 = <&mmc3_pins_sdr50>;
        
    	max-frequency = <48000000>;
    	vmmc-supply = <&vdd_3v3>;
    }; 
    *****************************************************************
    //add the am57xx-beagle-x15-common.dtsi
    &mmc3 {
    	status = "okay";
    
    	max-frequency = <48000000>;
    	pinctrl-names = "default";
    	pinctrl-0 = <&mmc3_pins_ds>;
    
    	bus-width = <4>;
    	vmmc-supply = <&vdd_3v3>;
    };
    
    
    

  • Hi,

    As posted by Pavel you should use the officially released Processor SDK RTOS. Then select only one mmc3_pins configuration and use it as "default", you shouldn't have pinctrl-names = "default"; and then add 4 different mmc3_pins configurations.

    Then for vmmc-supply, make sure you use an ldo that is listed in the tps659038_pmic regulators subnode. Or if you use fixed power supply make sure that the corresponding fixed-regulator is listed in the dts file.

    Also make sure you also have the mmc3 and its pinmux settings configured in u-boot code as well.

    Best Regards,
    Yordan
  • Dear TI Engineer,

    When I modify the dts, the mmc2(mmc3)  device has been generated in /sys/class/mmc_host/mmc2/.

    But, why not generated in /dev/?

    My Demesg is 

    dmesage.txt
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.9.69-ti-rt-r85 (root@pi-System-Product-Name) (gcc version 6.4.1 20171012 (Linaro GCC 6.4-2017.11) ) #1 SMP PREEMPT RT Fri Jul 6 11:15:01 CST 2018
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d
    [    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] Reserved memory: created CMA memory pool at 0x95800000, size 56 MiB
    [    0.000000] OF: reserved mem: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x99000000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x9d000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x9f000000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 48 MiB at 0xfc800000
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] OMAP4: Map 0xffd00000 to fe600000 for dram barrier
    [    0.000000] On node 0 totalpages: 474623
    [    0.000000] free_area_init_node: node 0, pgdat c15ee880, node_mem_map eeda8000
    [    0.000000]   Normal zone: 1728 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 147456 pages, LIFO batch:31
    [    0.000000]   HighMem zone: 327167 pages, LIFO batch:31
    [    0.000000] DRA752 ES2.0
    [    0.000000] percpu: Embedded 16 pages/cpu @eed27000 s32800 r8192 d24544 u65536
    [    0.000000] pcpu-alloc: s32800 r8192 d24544 u65536 alloc=16*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 472895
    [    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: 8, 1048576 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1644096K/1898492K available (13312K kernel code, 1077K rwdata, 4388K rodata, 1024K init, 809K bss, 41404K reserved, 212992K cma-reserved, 1259516K 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 - 0xc0e00000   (14304 kB)
                         .init : 0xc1400000 - 0xc1500000   (1024 kB)
                         .data : 0xc1500000 - 0xc160d5d8   (1078 kB)
                          .bss : 0xc160f000 - 0xc16d963c   ( 810 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] arm_arch_timer: Architected 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.000012] Switching to timer-based delay loop, resolution 162ns
    [    0.000554] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000557] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.001336] Console: colour dummy device 80x30
    [    0.001453] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
    [    0.001455] This ensures that you still see kernel messages. Please
    [    0.001456] update your kernel commandline.
    [    0.001473] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=24590)
    [    0.001477] pid_max: default: 32768 minimum: 301
    [    0.001626] Security Framework initialized
    [    0.001631] Yama: becoming mindful.
    [    0.001657] AppArmor: AppArmor initialized
    [    0.001793] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001800] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.002681] CPU: Testing write buffer coherency: ok
    [    0.002685] ftrace: allocating 39622 entries in 117 pages
    [    0.082430] /cpus/cpu@0 missing clock-frequency property
    [    0.082482] /cpus/cpu@1 missing clock-frequency property
    [    0.082495] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.082532] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.190991] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.191168] Brought up 2 CPUs
    [    0.191185] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.191194] CPU: All CPU(s) started in HYP mode.
    [    0.191201] CPU: Virtualization extensions available.
    [    0.192497] devtmpfs: initialized
    [    0.237046] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.237451] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.237472] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.241099] xor: measuring software checksum speed
    [    0.279154]    arm4regs  :  1988.000 MB/sec
    [    0.319301]    8regs     :  1614.000 MB/sec
    [    0.359403]    32regs    :  1499.000 MB/sec
    [    0.399546]    neon      :  2680.000 MB/sec
    [    0.399557] xor: using function: neon (2680.000 MB/sec)
    [    0.399574] pinctrl core: initialized pinctrl subsystem
    [    0.400767] NET: Registered protocol family 16
    [    0.404159] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.405372] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.544304] omap_hwmod: dcan1: _wait_target_disable failed
    [    0.657814] OMAP GPIO hardware version 0.1
    [    0.676406] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
    [    0.705476] No ATAGs?
    [    0.705505] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.705516] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.705951] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.705963] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.706743] OMAP DMA hardware revision 0.0
    [    0.789054] raid6: neonx2   gen()  1345 MB/s
    [    0.857238] raid6: neonx2   xor()  1238 MB/s
    [    0.857248] raid6: using algorithm neonx2 gen() 1345 MB/s
    [    0.857257] raid6: .... xor() 1238 MB/s, rmw enabled
    [    0.857265] raid6: using intx1 recovery algorithm
    [    0.872994] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.874524] edma 43300000.edma: memcpy is disabled
    [    0.881887] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.886291] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.886514] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.886740] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.886953] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.887275] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.887501] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.889549] SCSI subsystem initialized
    [    0.889727] libata version 3.00 loaded.
    [    0.890001] usbcore: registered new interface driver usbfs
    [    0.890079] usbcore: registered new interface driver hub
    [    0.890176] usbcore: registered new device driver usb
    [    0.891623] palmas 0-0058: Irq flag is 0x00000008
    [    0.915171] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
    [    0.919336] vtt_fixed: supplied by smps3
    [    0.954507] random: fast init done
    [    0.959160] vdd_3v3: supplied by regen1
    [    0.959408] aic_dvdd_fixed: supplied by vdd_3v3
    [    0.963921] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.964567] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    0.964793] media: Linux media interface: v0.10
    [    0.964849] Linux video capture interface: v2.00
    [    0.964933] pps_core: LinuxPPS API ver. 1 registered
    [    0.964943] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.964965] PTP clock support registered
    [    0.965586] omap-mailbox 4883c000.mailbox: omap mailbox rev 0x400
    [    0.966013] omap-mailbox 4883e000.mailbox: omap mailbox rev 0x400
    [    0.966350] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.966706] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.967326] Advanced Linux Sound Architecture Driver Initialized.
    [    0.967952] NetLabel: Initializing
    [    0.967963] NetLabel:  domain hash size = 128
    [    0.967970] NetLabel:  protocols = UNLABELED CIPSOv4
    [    0.968048] NetLabel:  unlabeled traffic allowed by default
    [    0.968345] clocksource: Switched to clocksource arch_sys_counter
    [    1.119470] VFS: Disk quotas dquot_6.6.0
    [    1.119553] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    1.119996] AppArmor: AppArmor Filesystem Enabled
    [    1.136170] NET: Registered protocol family 2
    [    1.136905] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    1.136990] TCP bind hash table entries: 8192 (order: 5, 229376 bytes)
    [    1.137280] TCP: Hash tables configured (established 8192 bind 8192)
    [    1.137365] UDP hash table entries: 512 (order: 3, 32768 bytes)
    [    1.137424] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
    [    1.137699] NET: Registered protocol family 1
    [    1.138300] RPC: Registered named UNIX socket transport module.
    [    1.138313] RPC: Registered udp transport module.
    [    1.138322] RPC: Registered tcp transport module.
    [    1.138330] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    1.138342] PCI: CLS 0 bytes, default 64
    [    1.139681] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    1.143187] audit: initializing netlink subsys (disabled)
    [    1.143241] audit: type=2000 audit(1.095:1): initialized
    [    1.144449] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    1.154210] zbud: loaded
    [    1.157710] NFS: Registering the id_resolver key type
    [    1.157742] Key type id_resolver registered
    [    1.157753] Key type id_legacy registered
    [    1.157775] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    1.158030] fuse init (API version 7.26)
    [    1.158986] orangefs_debugfs_init: called with debug mask: :none: :0:
    [    1.159246] orangefs_init: module version upstream loaded
    [    1.159257] SGI XFS with ACLs, security attributes, realtime, no debug enabled
    [    1.166212] Key type asymmetric registered
    [    1.166226] Asymmetric key parser 'x509' registered
    [    1.166345] bounce: pool size: 64 pages
    [    1.166564] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    1.166693] io scheduler noop registered
    [    1.166706] io scheduler deadline registered
    [    1.167084] io scheduler cfq registered (default)
    [    1.173517] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    1.177013] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.3
    [    1.177353] OF: PCI: host bridge /ocp/axi@0/pcie@51000000 ranges:
    [    1.177396] OF: PCI:    IO 0x20003000..0x20012fff -> 0x00000000
    [    1.177422] OF: PCI:   MEM 0x20013000..0x2fffffff -> 0x20013000
    [    2.179225] dra7-pcie 51000000.pcie: phy link never came up
    [    2.179483] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
    [    2.179499] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    2.179512] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
    [    2.179523] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [    2.179563] pci 0000:00:00.0: [104c:8888] type 01 class 0x060400
    [    2.179589] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
    [    2.179603] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
    [    2.179685] pci 0000:00:00.0: supports D1
    [    2.179693] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    2.180001] PCI: bus0: Fast back to back transfers disabled
    [    2.180161] PCI: bus1: Fast back to back transfers enabled
    [    2.180283] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
    [    2.180301] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
    [    2.180317] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    2.189780] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    2.193834] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 301, base_baud = 3000000) is a 8250
    [    3.273220] console [ttyS2] enabled
    [    3.279118] omap_rng 48090000.rng: OMAP Random Number Generator ver. 20
    [    3.286031] [drm] Initialized
    [    3.291786] OMAP DSS rev 6.1
    [    3.295182] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    3.303692] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [    3.315449] etnaviv gpu-subsystem: bound 59000000.bb2d (ops gpu_ops)
    [    3.321845] etnaviv-gpu 59000000.bb2d: model: GC320, revision: 5301
    [    3.397977] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
    [    3.406560] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
    [    3.413317] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [    3.421890] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    [    3.432618] scsi host0: ahci
    [    3.435864] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 344
    [    3.445842] libphy: Fixed MDIO Bus: probed
    [    3.450869] CAN device driver interface
    [    3.496413] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [    3.502542] libphy: 48485000.mdio: probed
    [    3.511579] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
    [    3.521284] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver Micrel KSZ9031 Gigabit PHY
    [    3.531542] cpsw 48484000.ethernet: Detected MACID = d4:36:39:29:9a:7a
    [    3.538177] cpsw 48484000.ethernet: cpts: overflow check period 1250 (jiffies)
    [    3.546647] cpsw 48484000.ethernet: cpsw: Detected MACID = d4:36:39:29:9a:7b
    [    3.559870] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    3.566451] ehci-pci: EHCI PCI platform driver
    [    3.570975] ehci-platform: EHCI generic platform driver
    [    3.576636] ehci-omap: OMAP-EHCI Host Controller driver
    [    3.582769] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    3.588308] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [    3.596665] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
    [    3.605588] xhci-hcd xhci-hcd.1.auto: irq 468, io mem 0x48890000
    [    3.611870] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    3.618814] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.626075] usb usb1: Product: xHCI Host Controller
    [    3.630980] usb usb1: Manufacturer: Linux 4.9.69-ti-rt-r85 xhci-hcd
    [    3.637280] usb usb1: SerialNumber: xhci-hcd.1.auto
    [    3.642954] hub 1-0:1.0: USB hub found
    [    3.646762] hub 1-0:1.0: 1 port detected
    [    3.651206] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    3.656745] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [    3.664541] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    3.672850] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [    3.679674] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.686936] usb usb2: Product: xHCI Host Controller
    [    3.691839] usb usb2: Manufacturer: Linux 4.9.69-ti-rt-r85 xhci-hcd
    [    3.698138] usb usb2: SerialNumber: xhci-hcd.1.auto
    [    3.703737] hub 2-0:1.0: USB hub found
    [    3.707545] hub 2-0:1.0: 1 port detected
    [    3.712114] usbcore: registered new interface driver usb-storage
    [    3.719602] palmas_pwrbutton 48070000.i2c:tps659038@58:tps659038_pwr_button: h/w controlled shutdown duration=12 seconds
    [    3.731876] input: palmas_pwron as /devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0058/48070000.i2c:tps659038@58:tps659038_pwr_button/input/input0
    [    3.758960] ata1: SATA link down (SStatus 0 SControl 300)
    [    3.770683] rtc-ds1307 2-006f: rtc core: registered mcp7941x as rtc0
    [    3.777255] rtc-ds1307 2-006f: 64 bytes nvram
    [    3.783452] omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc2
    [    3.793964] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: rtc core: registered 48070000.i2c:tps659 as rtc1
    [    3.806186] i2c /dev entries driver
    [    3.812175] gpio-fan gpio_fan: GPIO fan initialized
    [    3.818323] tmp102 0-0048: initialized
    [    3.825215] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.837035] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [    3.880867] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [    3.888379] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [    3.932818] omap_hsmmc 480ad000.mmc: no pinctrl state for sdr50 mode
    [    3.944900] omap_hsmmc 480ad000.mmc: no pinctrl state for sdr25 mode
    [    3.951281] omap_hsmmc 480ad000.mmc: no pinctrl state for sdr12 mode
    [    3.957663] omap_hsmmc 480ad000.mmc: no pinctrl state for hs mode
    [    3.976367] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [    3.977781] mmc1: new DDR MMC card at address 0001
    [    3.982449] mmcblk1: mmc1:0001 M62704 3.53 GiB 
    [    3.986799] mmcblk1boot0: mmc1:0001 M62704 partition 1 2.00 MiB
    [    3.991121] mmcblk1boot1: mmc1:0001 M62704 partition 2 2.00 MiB
    [    3.992006]  mmcblk1: p1
    [    4.001663] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
    [    4.001864] omap-aes 4b500000.aes: will run requests pump with realtime priority
    [    4.004440] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
    [    4.005761] omap-aes 4b700000.aes: will run requests pump with realtime priority
    [    4.006175] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
    [    4.006276] omap-des 480a5000.des: will run requests pump with realtime priority
    [    4.007407] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
    [    4.009221] hidraw: raw HID events driver (C) Jiri Kosina
    [    4.010656] usbcore: registered new interface driver usbhid
    [    4.010658] usbhid: USB HID core driver
    [    4.015656] wireguard: WireGuard 0.0.20171211 loaded. See www.wireguard.com for information.
    [    4.015659] wireguard: Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
    [    4.016415] NET: Registered protocol family 10
    [    4.021332] mip6: Mobile IPv6
    [    4.021339] NET: Registered protocol family 17
    [    4.021349] can: controller area network core (rev 20120528 abi 9)
    [    4.021402] NET: Registered protocol family 29
    [    4.021469] Key type dns_resolver registered
    [    4.021472] mpls_gso: MPLS GSO support
    [    4.021566] omap_voltage_late_init: Voltage driver support not added
    [    4.021671] Power Management for TI OMAP4+ devices.
    [    4.021860] ThumbEE CPU extension supported.
    [    4.021869] Registering SWP/SWPB emulation handler
    [    4.022470] registered taskstats version 1
    [    4.022534] zswap: loaded using pool lzo/zbud
    [    4.028174] Btrfs loaded, crc32c=crc32c-generic
    [    4.033006] Key type encrypted registered
    [    4.033014] AppArmor: AppArmor sha1 policy hashing enabled
    [    4.050482] dmm 4e000000.dmm: workaround for errata i878 in use
    [    4.052326] dmm 4e000000.dmm: initialized all PAT entries
    [    4.053932] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    4.053934] [drm] No driver support for vblank timestamp query.
    [    4.053959] omapdrm omapdrm.0: No connectors reported connected with modes
    [    4.053965] [drm] Cannot find any crtc or sizes - going 1024x768
    [    4.062172] [drm] Enabling DMM ywrap scrolling
    [    4.408112] Console: switching to colour frame buffer device 128x48
    [    4.418183] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    4.431622] asoc-simple-card sound0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
    [    4.441456] rtc-ds1307 2-006f: setting system clock to 2001-01-01 00:46:59 UTC (978310019)
    [    4.449759] of_cfs_init
    [    4.452284] of_cfs_init: OK
    [    4.455451] PM: Hibernation image not present or could not be loaded.
    [    4.455999] aic_dvdd_fixed: disabling
    [    4.459700] ALSA device list:
    [    4.462680]   #0: BeagleBoard-X15
    [    4.466485] Waiting for root device /dev/mmcblk0p1...
    [    4.548736] usb 1-1: New USB device found, idVendor=0451, idProduct=8142
    [    4.555470] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
    [    4.570459] usb 1-1: SerialNumber: C00B3859FEB7
    [    4.592685] hub 1-1:1.0: USB hub found
    [    4.596499] hub 1-1:1.0: 4 ports detected
    [    5.221406] mmc0: host does not support reading read-only switch, assuming write-enable
    [    5.238122] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
    [    5.245285] mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
    [    5.249763] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [    5.260420]  mmcblk0: p1
    [    5.268674] usb 2-1: New USB device found, idVendor=0451, idProduct=8140
    [    5.275406] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    5.296702] hub 2-1:1.0: USB hub found
    [    5.300529] hub 2-1:1.0: 4 ports detected
    [    5.343262] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
    [    5.351418] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
    [    5.362427] devtmpfs: mounted
    [    5.366303] Freeing unused kernel memory: 1024K
    [    5.494120] systemd[1]: System time before build time, advancing clock.
    [    5.549349] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
    [    5.567830] systemd[1]: Detected architecture arm.
    [    5.595308] systemd[1]: Set hostname to <arm>.
    [    5.831267] systemd[1]: Reached target Encrypted Volumes.
    [    5.848561] systemd[1]: Listening on fsck to fsckd communication Socket.
    [    5.868626] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    5.888584] systemd[1]: Listening on Journal Socket (/dev/log).
    [    5.904512] systemd[1]: Listening on udev Kernel Socket.
    [    5.920562] systemd[1]: Listening on udev Control Socket.
    [    5.936878] systemd[1]: Created slice System Slice.
    [    6.603307] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
    [    6.934441] systemd-journald[210]: Received request to flush runtime journal from PID 1
    [    8.191030] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
    [    8.191142] remoteproc remoteproc0: 58820000.ipu is available
    [    8.191502] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000
    [    8.191599] remoteproc remoteproc1: 55020000.ipu is available
    [    8.192001] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
    [    8.192091] remoteproc remoteproc2: 40800000.dsp is available
    [    8.195976] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
    [    8.195988] remoteproc remoteproc0: powering up 58820000.ipu
    [    8.196024] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
    [    8.196031] remoteproc remoteproc0: request_firmware failed: -2
    [    8.200618] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
    [    8.200625] remoteproc remoteproc2: powering up 40800000.dsp
    [    8.200662] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
    [    8.200667] remoteproc remoteproc2: request_firmware failed: -2
    [    8.203524] omap-rproc 41000000.dsp: assigned reserved memory node dsp2_cma@9f000000
    [    8.208911] remoteproc remoteproc3: 41000000.dsp is available
    [    8.209036] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
    [    8.209043] remoteproc remoteproc3: powering up 41000000.dsp
    [    8.209073] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
    [    8.209079] remoteproc remoteproc3: request_firmware failed: -2
    [    8.268172] remoteproc remoteproc1: powering up 55020000.ipu
    [    8.268191] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3743100
    [    8.268271] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
    [    8.351444] remoteproc remoteproc1: registered virtio0 (type 7)
    [    8.351454] remoteproc remoteproc1: remote processor 55020000.ipu is now up
    [    9.643386] using random self ethernet address
    [    9.643408] using random host ethernet address
    [    9.740832] using random self ethernet address
    [    9.740842] using random host ethernet address
    [    9.947756] usb0: HOST MAC d4:36:39:29:9a:7c
    [    9.947937] usb0: MAC d4:36:39:29:9a:7d
    [    9.972688] usb1: HOST MAC d4:36:39:29:9a:7e
    [    9.972887] usb1: MAC d4:36:39:29:9a:7f
    [   10.172731] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
    [   10.759790] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
    [   10.794290] vpe 489d0000.vpe: Device registered as /dev/video0
    [   11.558809] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
    [   12.072077] ti-pruss 4b200000.pruss: creating PRU cores and other child platform devices
    [   12.112789] virtio_rpmsg_bus virtio0: rpmsg host is online
    [   12.114984] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x65
    [   12.148035] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x66
    [   12.162389] irq: no irq domain found for /ocp/pruss_soc_bus@4b226000/pruss@4b200000/intc@4b220000 !
    [   12.169736] irq: no irq domain found for /ocp/pruss_soc_bus@4b226000/pruss@4b200000/intc@4b220000 !
    [   12.177576] ti-pruss 4b280000.pruss: creating PRU cores and other child platform devices
    [   12.201679] irq: no irq domain found for /ocp/pruss_soc_bus@4b2a6000/pruss@4b280000/intc@4b2a0000 !
    [   12.207139] irq: no irq domain found for /ocp/pruss_soc_bus@4b2a6000/pruss@4b280000/intc@4b2a0000 !
    [   12.274463] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: probing service dce-callback with src 1024 dst 101
    [   12.286196] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: published functions = 4
    [   12.289622] rpmsg_rpc virtio0.rpmsg-rpc.-1.102: probing service rpmsg-dce with src 1025 dst 102
    [   12.300982] rpmsg_rpc virtio0.rpmsg-rpc.-1.102: published functions = 9
    [   12.346122] remoteproc remoteproc4: 4b234000.pru0 is available
    [   12.346195] pru-rproc 4b234000.pru0: PRU rproc node /ocp/pruss_soc_bus@4b226000/pruss@4b200000/pru@4b234000 probed successfully
    [   12.359179] remoteproc remoteproc5: 4b238000.pru1 is available
    [   12.359259] pru-rproc 4b238000.pru1: PRU rproc node /ocp/pruss_soc_bus@4b226000/pruss@4b200000/pru@4b238000 probed successfully
    [   12.366871] remoteproc remoteproc6: 4b2b4000.pru0 is available
    [   12.366954] pru-rproc 4b2b4000.pru0: PRU rproc node /ocp/pruss_soc_bus@4b2a6000/pruss@4b280000/pru@4b2b4000 probed successfully
    [   12.371605] remoteproc remoteproc7: 4b2b8000.pru1 is available
    [   12.371677] pru-rproc 4b2b8000.pru1: PRU rproc node /ocp/pruss_soc_bus@4b2a6000/pruss@4b280000/pru@4b2b8000 probed successfully
    [  163.080471] random: crng init done
    
    

  • Part Number: AM5728

    Tool/software: TI C/C++ Compiler

    Dear TI Engineer,

    When I modify the dts, the mmc2(mmc3)  device has been generated in /sys/class/mmc_host/mmc2/.

    But, why not generated in /dev/?

    Any reply wille be appreciated!

    Thanks!

  • Hi,

    As stated in your first post your mmc3 is connected to sd-card, right? In this case how do you boot your board? Is it from sd card (mmc3)? If yes, then, check for /dev/mmcblk0p1 (and 2).

    Can you show the output of ls /dev ?

    Best Regards,
    Yordan
  • Hi,
    Thansk for your reply!
    I was able to make it work by adding:
    New Power noder,
    Max frequency is 64Mhz.
    Thanks!