主题中讨论的其他器件:SK-AM62
您好!
我正在使用 SK-AM62 上的 tisdk-base-image 和 k3-am625-skelle.dts 作为起点。
我 修改了 k3-am625-skelle.dts 以启用 mmc0和 mmc1、但 mmc1似乎无法识别。
U-Boot SPL 2021.01-g3e37ebc0be (Apr 26 2023 - 07:38:15 +0000) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar') SPL initial stack usage: 13424 bytes Trying to boot from MMC2 Loading Environment from MMC... *** Warning - No MMC card found, using default environment Starting ATF on ARM64 core... NOTICE: BL31: v2.7(release):v2.7.0-359-g1309c6c805-dirty NOTICE: BL31: Built : 12:32:53, Dec 28 2022 I/TC: I/TC: OP-TEE version: 3.19.0-15-gd6c5d0037 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Wed Dec 28 12:16:25 UTC 2022 aarch64 I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check optee.readthedocs.io/.../porting_guidelines.html I/TC: Primary CPU initializing I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar') I/TC: HUK Initialized I/TC: Activated SA2UL device I/TC: Fixing SA2UL firewall owner for GP device I/TC: Enabled firewalls for SA2UL TRNG device I/TC: SA2UL TRNG initialized I/TC: SA2UL Drivers initialized I/TC: Primary CPU switching to normal world boot U-Boot SPL 2021.01-g3e37ebc0be (Apr 26 2023 - 07:47:48 +0000) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar') Trying to boot from MMC2 U-Boot 2021.01 (Apr 26 2023 - 19:02:09 +0900) SoC: AM62X SR1.0 GP Model: Texas Instruments AM625 SK EEPROM not available at 0x50, trying to read at 0x51 Board: AM62-SKEVM rev E3 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 Net: eth0: ethernet@8000000port@1 Hit any key to stop autoboot: 0 => => printenv default_device_tree default_device_tree=k3-am625-skeleton.dtb => boot switch to partitions #0, OK mmc1 is current device SD/MMC found on device 1 Failed to load 'boot.scr' 1490 bytes read in 2 ms (727.5 KiB/s) Loaded env from uEnv.txt Importing environment from mmc1 ... Running uenvcmd ... 1 bytes read in 2 ms (0 Bytes/s) Already setup. 18391552 bytes read in 192 ms (91.4 MiB/s) 34278 bytes read in 3 ms (10.9 MiB/s) ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 000000008fef4000, end 000000008fffffff ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.10.153-rt76-g3e37ebc0be (oe-user@oe-host) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP PREEMPT_RT Wed Apr 26 07:49:01 UTC 2023 [ 0.000000] Machine model: Texas Instruments AM625 [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 3 MiB [ 0.000000] OF: reserved mem: initialized node ipc-memories@9c800000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009cb00000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node m4f-dma-memory@9cb00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009cc00000, size 14 MiB [ 0.000000] OF: reserved mem: initialized node m4f-memory@9cc00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009da00000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@9da00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009db00000, size 12 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@9db00000, compatible id shared-dma-pool [ 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-0x00000000ffffffff] [ 0.000000] On node 0 totalpages: 524288 [ 0.000000] DMA zone: 8192 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 524288 pages, LIFO batch:63 [ 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 18 pages/cpu s35008 r8192 d30528 u73728 [ 0.000000] pcpu-alloc: s35008 r8192 d30528 u73728 alloc=18*4096 [ 0.000000] pcpu-alloc: [0] 0 [ 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 interface [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=da4a1ff7-02 rw rootfstype=ext4 rootwait [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 1456984K/2097152K available (10752K kernel code, 1192K rwdata, 4184K rodata, 1728K init, 437K bss, 115880K reserved, 524288K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 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_cpu_ids=1. [ 0.000000] rcu: RCU priority boosting: priority 1 delay 500 ms. [ 0.000000] rcu: RCU_SOFTIRQ processing moved to rcuc kthreads. [ 0.000000] No expedited grace period (rcu_normal_after_boot). [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 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:0x0000000001880000 [ 0.000000] ITS [mem 0x01820000-0x0182ffff] [ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS [ 0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19 [ 0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0) [ 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 @0x0000000080040000 [ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns [ 0.000000] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns [ 0.008466] Console: colour dummy device 80x25 [ 0.013063] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000) [ 0.023743] pid_max: default: 32768 minimum: 301 [ 0.028551] LSM: Security Framework initializing [ 0.033333] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.040916] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.050687] rcu: Hierarchical SRCU implementation. [ 0.056122] Platform MSI: msi-controller@1820000 domain created [ 0.062399] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created [ 0.071644] EFI services will not be available. [ 0.076426] smp: Bringing up secondary CPUs ... [ 0.081065] smp: Brought up 1 node, 1 CPU [ 0.085164] SMP: Total of 1 processors activated. [ 0.089979] CPU features: detected: 32-bit EL0 Support [ 0.095235] CPU features: detected: CRC32 instructions [ 0.107501] CPU: All CPU(s) started at EL2 [ 0.111708] alternatives: patching kernel code [ 0.117236] devtmpfs: initialized [ 0.127012] KASLR disabled due to lack of seed [ 0.131759] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.141739] futex hash table entries: 256 (order: 3, 32768 bytes, linear) [ 0.163112] pinctrl core: initialized pinctrl subsystem [ 0.169135] DMI not present or invalid. [ 0.173749] NET: Registered protocol family 16 [ 0.180138] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.187513] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.195610] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.204371] thermal_sys: Registered thermal governor 'step_wise' [ 0.204946] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.218094] ASID allocator initialised with 65536 entries [ 0.240193] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.247153] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.254041] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.260895] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.268937] cryptd: max_cpu_qlen set to 1000 [ 0.276702] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTAGID[0x0bb7e02f] Detected [ 0.285829] vcc_5v0: supplied by vmain_pd [ 0.290646] vcc_3v3_sys: supplied by vmain_pd [ 0.296363] iommu: Default domain type: Translated [ 0.301788] SCSI subsystem initialized [ 0.305990] mc: Linux media interface: v0.10 [ 0.310381] videodev: Linux video capture interface: v2.00 [ 0.316060] pps_core: LinuxPPS API ver. 1 registered [ 0.321135] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.330489] PTP clock support registered [ 0.334528] EDAC MC: Ver: 3.0.0 [ 0.338307] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fc9100 [ 0.345442] FPGA manager framework [ 0.349036] Advanced Linux Sound Architecture Driver Initialized. [ 0.356230] clocksource: Switched to clocksource arch_sys_counter [ 0.362743] VFS: Disk quotas dquot_6.6.0 [ 0.366811] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.379501] NET: Registered protocol family 2 [ 0.384285] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.393310] tcp_listen_portaddr_hash hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.402218] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.410472] TCP bind hash table entries: 16384 (order: 7, 917504 bytes, linear) [ 0.418874] TCP: Hash tables configured (established 16384 bind 16384) [ 0.425962] UDP hash table entries: 1024 (order: 5, 131072 bytes, linear) [ 0.433136] UDP-Lite hash table entries: 1024 (order: 5, 131072 bytes, linear) [ 0.440938] NET: Registered protocol family 1 [ 0.445956] RPC: Registered named UNIX socket transport module. [ 0.452060] RPC: Registered udp transport module. [ 0.456870] RPC: Registered tcp transport module. [ 0.461678] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.468272] PCI: CLS 0 bytes, default 64 [ 0.473010] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 0.485582] Initialise system trusted keyrings [ 0.490507] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 0.502463] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.509225] NFS: Registering the id_resolver key type [ 0.514492] Key type id_resolver registered [ 0.518793] Key type id_legacy registered [ 0.522963] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.529819] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.537596] 9p: Installing v9fs 9p2000 file system support [ 0.577461] Key type asymmetric registered [ 0.581688] Asymmetric key parser 'x509' registered [ 0.586753] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243) [ 0.594359] io scheduler mq-deadline registered [ 0.599008] io scheduler kyber registered [ 0.605074] pinctrl-single f4000.pinctrl: 171 pins, size 684 [ 0.617170] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled [ 0.635777] brd: module loaded [ 0.646670] loop: module loaded [ 0.650662] megasas: 07.714.04.00-rc1 [ 0.657832] tun: Universal TUN/TAP device driver, 1.6 [ 0.663475] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 0.669921] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 0.676046] sky2: driver version 1.30 [ 0.680371] VFIO - User Level meta-driver version: 0.3 [ 0.686537] i2c /dev entries driver [ 0.691006] sdhci: Secure Digital Host Controller Interface driver [ 0.697372] sdhci: Copyright(c) Pierre Ossman [ 0.702265] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.708964] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 0.717021] optee: probing for conduit method. [ 0.721665] optee: revision 3.19 (d6c5d003) [ 0.721942] optee: dynamic shared memory is enabled [ 0.731624] optee: initialized driver [ 0.736957] NET: Registered protocol family 17 [ 0.741746] 9pnet: Installing 9P2000 support [ 0.746205] Key type dns_resolver registered [ 0.750911] printk: bootconsole [ns16550a0]: printing thread started [ 0.750957] Loading compiled-in X.509 certificates [ 0.760600] ti-sci 44043000.system-controller: ti,ctx-memory-region is required for suspend but not provided. [ 0.760616] ti-sci 44043000.system-controller: ti_sci_init_suspend failed, mem suspend will be non-functional. [ 0.760622] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar') [ 0.826171] omap-gpmc 3b000000.memory-controller: GPMC revision 6.0 [ 0.826194] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000 [ 0.844673] printk: console [ttyS2]: printing thread started [ 0.844686] printk: console [ttyS2] enabled [ 0.844690] printk: bootconsole [ns16550a0] disabled [ 0.848500] printk: bootconsole [ns16550a0]: printing thread stopped [ 0.968808] mmc0: CQHCI version 5.10 [ 0.979072] pca953x 0-0022: supply vcc not found, using dummy regulator [ 0.979271] pca953x 0-0022: using AI [ 1.005781] vdd_mmc1: supplied by vcc_3v3_sys [ 1.013825] debugfs: Directory 'pd:53' with parent 'pm_genpd' already present! [ 1.013900] debugfs: Directory 'pd:52' with parent 'pm_genpd' already present! [ 1.013940] debugfs: Directory 'pd:51' with parent 'pm_genpd' already present! [ 1.014385] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present! [ 1.024857] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit [ 1.030183] ALSA device list: [ 1.030198] No soundcards found. [ 1.044929] Waiting for root device PARTUUID=da4a1ff7-02... [ 1.117743] mmc0: Command Queue Engine enabled [ 1.117765] mmc0: new HS200 MMC card at address 0001 [ 1.118462] mmcblk0: mmc0:0001 S0J56X 14.8 GiB [ 1.118666] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB [ 1.118855] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB [ 1.119051] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (237:0) [ 1.120166] mmcblk0: p1 p2 [ 31.840247] vdd_mmc1: disabling
修改如下。 基本上、我复制了一些 我认为与 K3-am62x-sk-common.dtsi 相关的部分。 您能告诉 我我在 mmc1中缺少什么吗?
diff --git a/sdk/linux/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts b/sdk/linux/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts index 86aee3bb567..ccb24aa27d8 100644 --- a/sdk/linux/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts +++ b/sdk/linux/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts @@ -18,6 +18,8 @@ aliases { serial2 = &main_uart0; + mmc0 = &sdhci0; + mmc1 = &sdhci1; }; chosen { @@ -88,6 +90,65 @@ 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>; + }; + + vdd_sd_dv: regulator-4 { + /* Output of TLV71033 */ + compatible = "regulator-gpio"; + regulator-name = "tlv71033"; + pinctrl-names = "default"; + pinctrl-0 = <&vdd_sd_dv_pins_default>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + vin-supply = <&vcc_5v0>; + gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>; + states = <1800000 0x0>, + <3300000 0x1>; + }; }; /* cbass_main */ @@ -162,10 +223,6 @@ status = "disabled"; }; -&main_gpio1 { - status = "disabled"; -}; - &gpu { status = "disabled"; }; @@ -175,7 +232,36 @@ }; &main_i2c1 { - status = "disabled"; + 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 { @@ -209,12 +295,21 @@ status = "disabled"; }; -&sdhci1 { - status = "disabled"; +&sdhci0 { + pinctrl-names = "default"; + pinctrl-0 = <&main_mmc0_pins_default>; + ti,driver-strength-ohm = <50>; + disable-wp; }; -&sdhci0 { - status = "disabled"; +&sdhci1 { + /* SD/MMC */ + vmmc-supply = <&vdd_mmc1>; + vqmmc-supply = <&vdd_sd_dv>; + pinctrl-names = "default"; + pinctrl-0 = <&main_mmc1_pins_default>; + ti,driver-strength-ohm = <50>; + disable-wp; }; &sdhci2 { @@ -232,6 +327,52 @@ 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 */ + >; + }; + + vdd_sd_dv_pins_default: vdd-sd-dv-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x07c, PIN_OUTPUT, 7) /* (P25) GPMC0_CLK.GPIO0_31 */ + >; + }; + + 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 */ + >; + }; }; &epwm0 {
处理器 SDK 版本是 ti-processor-sdk-linux-rt-am62xx-evm-08.05.00.21。
此致、