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.

PROCESSOR-SDK-AM62X: custom board bring up

Part Number: PROCESSOR-SDK-AM62X

Hi,

My custom board that is based on am62 got stuck during boot up with following error.

Is there any advice to fix this?

U-Boot SPL 2021.01-g78a217ca9e (Nov 02 2022 - 20:54:51 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
Trying to boot from MMC2
Warning: Detected image signing certificate on GP device. Skipping ced
Warning: Detected image signing certificate on GP device. Skipping ced
Warning: Detected image signing certificate on GP device. Skipping ced
Warning: Detected image signing certificate on GP device. Skipping ced
Warning: Detected image signing certificate on GP device. Skipping ced
Loading Environment from MMC... *** Warning - No MMC card found, usint

Starting ATF on ARM64 core...

NOTICE:  BL31: v2.7(release):v2.7.0-359-g1309c6c805-dirty
NOTICE:  BL31: Built : 11:40:36, Sep  8 2022

U-Boot SPL 2021.01-g78a217ca9e (Nov 02 2022 - 20:54:51 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
Trying to boot from MMC2


U-Boot 2021.01-g78a217ca9e (Nov 02 2022 - 20:54:51 +0000)

SoC:   AM62X SR1.0 GP
Model: Texas Instruments K3 AM625 SoC
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed -19
DRAM:  2 GiB
MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
Loading Environment from MMC... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed 1
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Failed to load 'boot.scr'
Failed to load 'uEnv.txt'
18674176 bytes read in 776 ms (22.9 MiB/s)
39984 bytes read in 4 ms (9.5 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 000000008fef3000, end 000000008fffffff ... K

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.145-g8b51d20b6e (oe-user@oe-host) (2
[    0.000000] Machine model: AM625-based
[    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (opti)
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000B
[    0.000000] OF: reserved mem: initialized node ipc-memories@9c8000l
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000B
[    0.000000] OF: reserved mem: initialized node m4f-dma-memory@9cb0l
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000B
[    0.000000] OF: reserved mem: initialized node m4f-memory@9cc00000l
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000B
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9d90l
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000B
[    0.000000] OF: reserved mem: initialized node r5f-memory@9da00000l
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009c7fffff]
[    0.000000]   node   0: [mem 0x000000009c800000-0x000000009e6fffff]
[    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
[    0.000000]   node   0: [mem 0x000000009e780000-0x000000009fffffff]
[    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000]
[    0.000000] cma: Reserved 512 MiB at 0x00000000dd000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 22 pages/cpu s50008 r8192 d31912 u9012
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interfe
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages:6
[    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=nt
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 209)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1456636K/2097152K available (11008K kernel cod)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nod1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_c.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment dela.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000
[    0.000000] ITS [mem 0x01820000-0x0182ffff]
[    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer S
[    0.000000] ITS@0x0000000001820000: Devices Table too large, reduc9
[    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @8080)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x0000000080030000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000
[    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff s
[    0.000004] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps s
[    0.008473] Console: colour dummy device 80x25
[    0.013068] Calibrating delay loop (skipped), value calculated usi)
[    0.023749] pid_max: default: 32768 minimum: 301
[    0.028554] LSM: Security Framework initializing
[    0.033339] Mount-cache hash table entries: 4096 (order: 3, 32768 )
[    0.040921] Mountpoint-cache hash table entries: 4096 (order: 3, 3)
[    0.050668] rcu: Hierarchical SRCU implementation.
[    0.055861] Platform MSI: msi-controller@1820000 domain created
[    0.062123] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-cd
[    0.071343] EFI services will not be available.
[    0.076095] smp: Bringing up secondary CPUs ...
[    0.080734] smp: Brought up 1 node, 1 CPU
[    0.084832] SMP: Total of 1 processors activated.
[    0.089647] CPU features: detected: 32-bit EL0 Support
[    0.094903] CPU features: detected: CRC32 instructions
[    0.107584] CPU: All CPU(s) started at EL2
[    0.111792] alternatives: patching kernel code
[    0.117326] devtmpfs: initialized
[    0.125917] KASLR disabled due to lack of seed
[    0.130699] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xfs
[    0.140677] futex hash table entries: 256 (order: 2, 16384 bytes, )
[    0.162645] pinctrl core: initialized pinctrl subsystem
[    0.168742] DMI not present or invalid.
[    0.173362] NET: Registered protocol family 16
[    0.179414] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic as
[    0.186779] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for s
[    0.194855] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool fos
[    0.203500] thermal_sys: Registered thermal governor 'step_wise'
[    0.203505] thermal_sys: Registered thermal governor 'power_alloca'
[    0.210119] hw-breakpoint: found 6 breakpoint and 4 watchpoint reg.
[    0.223777] ASID allocator initialised with 65536 entries
[    0.244488] HugeTLB registered 1.00 GiB page size, pre-allocated 0s
[    0.251431] HugeTLB registered 32.0 MiB page size, pre-allocated 0s
[    0.258380] HugeTLB registered 2.00 MiB page size, pre-allocated 0s
[    0.265235] HugeTLB registered 64.0 KiB page size, pre-allocated 0s
[    0.273339] cryptd: max_cpu_qlen set to 1000
[    0.280645] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTd
[    0.289717] vcc_5v0: supplied by vmain_pd
[    0.294569] vcc_3v3_sys: supplied by vmain_pd
[    0.299491] vcc_1v8: supplied by vcc_3v3_sys
[    0.304590] iommu: Default domain type: Translated 
[    0.309918] SCSI subsystem initialized
[    0.314048] mc: Linux media interface: v0.10
[    0.318438] videodev: Linux video capture interface: v2.00
[    0.324110] pps_core: LinuxPPS API ver. 1 registered
[    0.329185] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Ro>
[    0.338535] PTP clock support registered
[    0.342575] EDAC MC: Ver: 3.0.0
[    0.346366] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fc0
[    0.353424] FPGA manager framework
[    0.356986] Advanced Linux Sound Architecture Driver Initialized.
[    0.364111] clocksource: Switched to clocksource arch_sys_counter
[    0.370641] VFS: Disk quotas dquot_6.6.0
[    0.374704] VFS: Dquot-cache hash table entries: 512 (order 0, 409)
[    0.386569] NET: Registered protocol family 2
[    0.391362] IP idents hash table entries: 32768 (order: 6, 262144 )
[    0.400275] tcp_listen_portaddr_hash hash table entries: 1024 (ord)
[    0.409145] TCP established hash table entries: 16384 (order: 5, 1)
[    0.417348] TCP bind hash table entries: 16384 (order: 6, 262144 b)
[    0.425114] TCP: Hash tables configured (established 16384 bind 16)
[    0.432039] UDP hash table entries: 1024 (order: 3, 32768 bytes, l)
[    0.438951] UDP-Lite hash table entries: 1024 (order: 3, 32768 byt)
[    0.446445] NET: Registered protocol family 1
[    0.451380] RPC: Registered named UNIX socket transport module.
[    0.457471] RPC: Registered udp transport module.
[    0.462280] RPC: Registered tcp transport module.
[    0.467089] RPC: Registered tcp NFSv4.1 backchannel transport modu.
[    0.473685] PCI: CLS 0 bytes, default 64
[    0.478326] hw perfevents: enabled with armv8_cortex_a53 PMU drivee
[    0.490385] Initialise system trusted keyrings
[    0.495233] workingset: timestamp_bits=46 max_order=19 bucket_orde0
[    0.505806] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.512422] NFS: Registering the id_resolver key type
[    0.517664] Key type id_resolver registered
[    0.521942] Key type id_legacy registered
[    0.526098] nfs4filelayout_init: NFSv4 File Layout Driver Register.
[    0.532954] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver .
[    0.540716] 9p: Installing v9fs 9p2000 file system support
[    0.579523] Key type asymmetric registered
[    0.583750] Asymmetric key parser 'x509' registered
[    0.588816] Block layer SCSI generic (bsg) driver version 0.4 load)
[    0.596412] io scheduler mq-deadline registered
[    0.601057] io scheduler kyber registered
[    0.606373] pinctrl-single 4084000.pinctrl: 34 pins, size 136
[    0.612737] pinctrl-single f4000.pinctrl: 171 pins, size 684
[    0.624096] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabld
[    0.641747] brd: module loaded
[    0.651179] loop: module loaded
[    0.655143] megasas: 07.714.04.00-rc1
[    0.661920] tun: Universal TUN/TAP device driver, 1.6
[    0.667541] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.673981] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.680110] sky2: driver version 1.30
[    0.684356] VFIO - User Level meta-driver version: 0.3
[    0.690490] i2c /dev entries driver
[    0.695476] sdhci: Secure Digital Host Controller Interface driver
[    0.701878] sdhci: Copyright(c) Pierre Ossman
[    0.706756] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.713125] ledtrig-cpu: registered to indicate activity on CPUs
[    0.719531] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ..
[    0.727063] optee: probing for conduit method.
[    0.731697] optee: revision 3.19 (afacf356)
[    0.731947] optee: dynamic shared memory is enabled
[    0.741500] optee: initialized driver
[    0.746849] NET: Registered protocol family 17
[    0.751630] 9pnet: Installing 9P2000 support
[    0.756119] Key type dns_resolver registered
[    0.760658] Loading compiled-in X.509 certificates
[    0.772635] ti-sci 44043000.system-controller: ABI: 3.1 (firmware )
[    0.805977] omap_i2c 20010000.i2c: bus 0 rev0.12 at 100 kHz
[    0.812307] ti-sci-intr 4210000.interrupt-controller: Interrupt Rod
[    0.820740] ti-sci-intr bus@f0000:interrupt-controller@a00000: Intd
[    0.830089] ti-sci-inta 48000000.interrupt-controller: Interrupt Ad
[    0.839152] ti-bcdma 485c0100.dma-controller: Number of rings: 82
[    0.847267] ti-bcdma 485c0100.dma-controller: Channels: 48 (bchan:)
[    0.858410] ti-pktdma 485c0000.dma-controller: Number of rings: 150
[    0.868470] ti-pktdma 485c0000.dma-controller: Channels: 35 (tchan)
[    0.878854] printk: console [ttyS2] disabled
[    0.883353] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 19, bas0
[    0.892157] printk: console [ttyS2] enabled
[    0.892157] printk: console [ttyS2] enabled
[    0.900601] printk: bootconsole [ns16550a0] disabled
[    0.900601] printk: bootconsole [ns16550a0] disabled
[    0.914802] rtc-ti-k3 2b1f0000.rtc: registered as rtc0
[    0.920001] rtc-ti-k3 2b1f0000.rtc: setting system clock to 1970-0)
[    1.031234] mmc0: CQHCI version 5.10
[    1.045633] pca953x 0-0022: supply vcc not found, using dummy regur
[    1.052528] pca953x 0-0022: using AI
[    1.080117] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] ust
[    1.087765] pca953x 0-0022: failed writing register
[    1.093131] pca953x: probe of 0-0022 failed with error -121
[    1.101689] debugfs: Directory 'pd:182' with parent 'pm_genpd' alr!
[    1.116865] ALSA device list:
[    1.119844]   No soundcards found.
[    1.123778] Waiting for root device PARTUUID=22059581-02...
[    1.188557] mmc0: Command Queue Engine enabled
[    1.193025] mmc0: new HS200 MMC card at address 0001
[    1.198693] mmcblk0: mmc0:0001 G1M15L 29.6 GiB 
[    1.203458] mmcblk0boot0: mmc0:0001 G1M15L partition 1 31.5 MiB
[    1.209582] mmcblk0boot1: mmc0:0001 G1M15L partition 2 31.5 MiB
[    1.215664] mmcblk0rpmb: mmc0:0001 G1M15L partition 3 4.00 MiB, ch)

CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.1 | VT102 | Offlin

  • p.s.

    i am using minimal image and here is the dts file.

    /dts-v1/;
    
    #include "k3-am625.dtsi"
    
    / {
    	compatible = "ti,am625";
    	model = "AM625-based";
    
    	aliases {
    		serial2 = &main_uart0;
    		mmc0 = &sdhci0;
    		mmc1 = &sdhci1;
    	};
    
    	chosen {
    		stdout-path = "serial2:115200n8";
    		bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
    	};
    
    	// AM6251 has only 1 core
    	cpus {
    		cpu-map {
    			cluster0 {
    				/delete-node/ core1;
    				/delete-node/ core2;
    				/delete-node/ core3;
    			};
    		};
    
    		/delete-node/ cpu@1;
    		/delete-node/ cpu@2;
    		/delete-node/ cpu@3;
    	};
    
    	memory@80000000 {
    		device_type = "memory";
    		/* 2G RAM */
    		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
    
    	};
    
    	reserved-memory {
    		#address-cells = <2>;
    		#size-cells = <2>;
    		ranges;
    
    		rtos_ipc_memory_region: ipc-memories@9c800000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9c800000 0x00 0x00300000>;
    			no-map;
    		};
    
    		mcu_m4fss_dma_memory_region: m4f-dma-memory@9cb00000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9cb00000 0x00 0x100000>;
    			no-map;
    		};
    
    		mcu_m4fss_memory_region: m4f-memory@9cc00000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9cc00000 0x00 0xd00000>;
    			no-map;
    		};
    
    		wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9d900000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9d900000 0x00 0x00100000>;
    			no-map;
    		};
    
    		wkup_r5fss0_core0_memory_region: r5f-memory@9da00000 {
    			compatible = "shared-dma-pool";
    			reg = <0x00 0x9da00000 0x00 0x00d00000>;
    			no-map;
    		};
    
    		lpm_ctx_ddr: lpm-memory@9e700000 {
    			reg = <0x00 0x9e700000 0x00 0x80000>;
    			alignment = <0x1000>;
    		};
    
    		secure_tfa_ddr: tfa@9e780000 {
    			reg = <0x00 0x9e780000 0x00 0x80000>;
    			alignment = <0x1000>;
    			no-map;
    		};
    
    		secure_ddr: optee@9e800000 {
    			reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
    			alignment = <0x1000>;
    			no-map;
    		};
    	};
    
    	vmain_pd: regulator-0 {
    		/* TPS65988 PD CONTROLLER OUTPUT */
    		compatible = "regulator-fixed";
    		regulator-name = "vmain_pd";
    		regulator-min-microvolt = <5000000>;
    		regulator-max-microvolt = <5000000>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    
    	vcc_5v0: regulator-1 {
    		/* Output of TPS630702 */
    		compatible = "regulator-fixed";
    		regulator-name = "vcc_5v0";
    		regulator-min-microvolt = <5000000>;
    		regulator-max-microvolt = <5000000>;
    		vin-supply = <&vmain_pd>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    
    	vcc_3v3_sys: regulator-2 {
    		/* output of LM61460-Q1 */
    		compatible = "regulator-fixed";
    		regulator-name = "vcc_3v3_sys";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
    		vin-supply = <&vmain_pd>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    
    	vdd_mmc1: regulator-3 {
    		/* TPS22918DBVR */
    		compatible = "regulator-fixed";
    		regulator-name = "vdd_mmc1";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
    		regulator-boot-on;
    		enable-active-high;
    		vin-supply = <&vcc_3v3_sys>;
    		gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
    	};
    
    	vcc_1v8: regulator-7 {
    		/* output of TPS6282518DMQ */
    		compatible = "regulator-fixed";
    		regulator-name = "vcc_1v8";
    		regulator-min-microvolt = <1800000>;
    		regulator-max-microvolt = <1800000>;
    		vin-supply = <&vcc_3v3_sys>;
    		regulator-always-on;
    		regulator-boot-on;
    	};
    };
    
    
    
    // From main domain:
    
    &main_conf {
    	status = "disabled";
    };
    
    &main_pmx0 {
    	main_uart0_pins_default: main-uart0-pins-default {
    		pinctrl-single,pins = <
    			AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
    			AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
    		>;
    	};
    
    	main_i2c1_pins_default: main-i2c1-pins-default {
    		pinctrl-single,pins = <
    			AM62X_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
    			AM62X_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
    		>;
    	};
    
    	main_mmc0_pins_default: main-mmc0-pins-default {
    		pinctrl-single,pins = <
    			AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
    			AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
    			AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */
    			AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (AA1) MMC0_DAT1 */
    			AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (AA3) MMC0_DAT2 */
    			AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (Y4) MMC0_DAT3 */
    			AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (AB2) MMC0_DAT4 */
    			AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (AC1) MMC0_DAT5 */
    			AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (AD2) MMC0_DAT6 */
    			AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (AC2) MMC0_DAT7 */
    		>;
    	};
    
    	main_mmc1_pins_default: main-mmc1-pins-default {
    		pinctrl-single,pins = <
    			AM62X_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
    			AM62X_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
    			AM62X_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
    			AM62X_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
    			AM62X_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
    			AM62X_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
    			AM62X_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
    		>;
    	};
    
    	main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-pins-default {
    		pinctrl-single,pins = <
    			AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */
    		>;
    	};
    };
    
    &main_uart0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_uart0_pins_default>;
    };
    
    &main_uart1 {
    	/* Main UART1 is used by TIFS firmware */
    	status = "reserved";
    };
    
    &main_uart2 {
    	status = "disabled";
    };
    
    &main_uart3 {
    	status = "disabled";
    };
    
    &main_uart4 {
    	status = "disabled";
    };
    
    &main_uart5 {
    	status = "disabled";
    };
    
    &main_uart6 {
    	status = "disabled";
    };
    
    &mcu_uart0 {
    	status = "disabled";
    };
    
    &mcu_i2c0 {
    	status = "disabled";
    };
    
    &main_i2c0 {
    	status = "disabled";
    };
    
    &main_i2c1 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_i2c1_pins_default>;
    	clock-frequency = <100000>;
    
    	exp1: gpio@22 {
    		compatible = "ti,tca6424";
    		reg = <0x22>;
    		gpio-controller;
    		#gpio-cells = <2>;
    		gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
    				   "PRU_DETECT", "MMC1_SD_EN",
    				   "VPP_LDO_EN", "EXP_PS_3V3_En",
    				   "EXP_PS_5V0_En", "EXP_HAT_DETECT",
    				   "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
    				   "UART1_FET_BUF_EN", "WL_LT_EN",
    				   "GPIO_HDMI_RSTn", "CSI_GPIO1",
    				   "CSI_GPIO2", "PRU_3V3_EN",
    				   "HDMI_INTn", "TEST_GPIO2",
    				   "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
    				   "MCASP1_FET_SEL", "UART1_FET_SEL",
    				   "TSINT#", "IO_EXP_TEST_LED";
    
    		interrupt-parent = <&main_gpio1>;
    		interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
    		interrupt-controller;
    		#interrupt-cells = <2>;
    
    		pinctrl-names = "default";
    		pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
    	};
    };
    
    &main_i2c2 {
    	status = "disabled";
    };
    
    &main_i2c3 {
    	status = "disabled";
    };
    
    &main_spi0 {
    	status = "disabled";
    };
    
    &main_spi1 {
    	status = "disabled";
    };
    
    &main_spi2 {
    	status = "disabled";
    };
    
    &sdhci0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_mmc0_pins_default>;
    	ti,driver-strength-ohm = <50>;
    	disable-wp;
    };
    
    &sdhci1 {
    	/* SD/MMC */
    	no-1-8-v;
        sdhci-caps-mask = <0x8000000F 0x0>;
    };
    
    &sdhci2 {
    	status = "disabled";
    };
    
    &gpu {
    	status = "disabled";
    };
    
    &usbss0 {
    	status = "disabled";
    };
    
    &usbss1 {
    	status = "disabled";
    };
    
    &fss {
    	status = "disabled";
    };
    
    &cpsw3g {
    	status = "disabled";
    };
    
    &dss {
    	status = "disabled";
    };
    
    &ti_csi2rx0 {
    	status = "disabled";
    };
    
    &dphy0 {
    	status = "disabled";
    };
    
    &main_mcan0 {
    	status = "disabled";
    };
    
    &epwm0 {
    	status = "disabled";
    };
    
    &epwm1 {
    	status = "disabled";
    };
    
    &epwm2 {
    	status = "disabled";
    };
    
    &ecap0 {
    	status = "disabled";
    };
    
    &ecap1 {
    	status = "disabled";
    };
    
    &ecap2 {
    	status = "disabled";
    };
    
    &mcasp0 {
    	status = "disabled";
    };
    
    &mcasp1 {
    	status = "disabled";
    };
    
    &mcasp2 {
    	status = "disabled";
    };
    
    &wkup_uart0 {
    	/* WKUP UART0 is used by DM firmware */
    	status = "reserved";
    };
    
    &wkup_i2c0 {
    	status = "disabled";
    };
    
    &mailbox0_cluster0 {
    	mbox_m4_0: mbox-m4-0 {
    		ti,mbox-rx = <0 0 0>;
    		ti,mbox-tx = <1 0 0>;
    	};
    
    	mbox_r5_0: mbox-r5-0 {
    		ti,mbox-rx = <2 0 0>;
    		ti,mbox-tx = <3 0 0>;
    	};
    };
    
    
    &mcu_m4fss {
    	mboxes = <&mailbox0_cluster0 &mbox_m4_0>;
    	memory-region = <&mcu_m4fss_dma_memory_region>,
    			<&mcu_m4fss_memory_region>;
    };
    
    &wkup_r5fss0_core0 {
    	mboxes = <&mailbox0_cluster0 &mbox_r5_0>;
    	memory-region = <&wkup_r5fss0_core0_dma_memory_region>,
    			<&wkup_r5fss0_core0_memory_region>;
    };
    
    
    &mcu_rti0 {
    	/* MCU RTI0 is used by M4F firmware */
    	status = "reserved";
    };
    
    &wkup_rti0 {
    	/* WKUP RTI0 is used by DM firmware */
    	status = "reserved";
    };

  • Hi Cyra,

    The kernel log shows only the eMMC is detected, but SD card is not. In your board dts, I don't see the mmc1 pinmux is added in &sdhci1 node.

  • Yes, we made it so that the voltage is fixed for SD card so I removed it.

  • Hi Cyra,

    I am not sure I understand your last comment. But you need to add the mmc1 pinmux and refer to it in sdhci1 node in your board DTS.