File tree Expand file tree Collapse file tree 12 files changed +143
-23
lines changed
samples/subsys/fs/fs_sample/boards
tests/drivers/disk/disk_performance/boards Expand file tree Collapse file tree 12 files changed +143
-23
lines changed Original file line number Diff line number Diff line change 177
177
pinctrl-names = "default";
178
178
txdelay = <0>;
179
179
rxdelay = <0>;
180
- status = "disabled ";
180
+ status = "okay ";
181
181
mmc {
182
182
compatible = "zephyr,mmc-disk";
183
183
disk-name = "SD2";
184
- status = "disabled ";
184
+ status = "okay ";
185
185
};
186
186
};
187
187
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ supported:
18
18
- adc
19
19
- hwinfo
20
20
- usbd
21
+ - sdhc
21
22
testing :
22
23
ignore_tags :
23
24
- net
Original file line number Diff line number Diff line change 413
413
drive-strength = "0.5";
414
414
};
415
415
};
416
+
417
+ sdio0_default: sdio0_default {
418
+ group0 {
419
+ pinmux = <SDIF0_DAT1_P85>,
420
+ <SDIF0_DAT3_P87>,
421
+ <SDIF0_DAT4_P156>,
422
+ <SDIF0_DAT5_P157>,
423
+ <SDIF0_DAT6_P158>,
424
+ <SDIF0_DAT7_P159>;
425
+ drive-strength = "1.0";
426
+ };
427
+ group1 {
428
+ pinmux = <SDIF0_DAT0_P84>,
429
+ <SDIF0_DAT2_P86>,
430
+ <SDIF0_CMD_P160>,
431
+ <SDIF0_CLKOUT_P88>;
432
+ drive-strength = "1.0";
433
+ bias-pull-up;
434
+ ambiq,pull-up-ohms = <12000>;
435
+ };
436
+ group2 {
437
+ pinmux = <GPIO_P161>;
438
+ ambiq,sdif-cdwp = <1>;
439
+ };
440
+ group3 {
441
+ pinmux = <GPIO_P175>;
442
+ ambiq,sdif-cdwp = <2>;
443
+ };
444
+ group4 {
445
+ pinmux = <GPIO_P161>;
446
+ ambiq,sdif-cdwp = <3>;
447
+ };
448
+ group5 {
449
+ pinmux = <GPIO_P175>;
450
+ ambiq,sdif-cdwp = <4>;
451
+ };
452
+ };
453
+
454
+ sdio1_default: sdio1_default {
455
+ group0 {
456
+ pinmux = <SDIF1_DAT1_P126>,
457
+ <SDIF1_DAT3_P128>,
458
+ <SDIF1_DAT4_P130>,
459
+ <SDIF1_DAT5_P131>,
460
+ <SDIF1_DAT6_P132>,
461
+ <SDIF1_DAT7_P133>;
462
+ drive-strength = "1.0";
463
+ };
464
+ group1 {
465
+ pinmux = <SDIF1_DAT0_P125>,
466
+ <SDIF1_DAT2_P127>,
467
+ <SDIF1_CMD_P134>,
468
+ <SDIF1_CLKOUT_P129>;
469
+ drive-strength = "1.0";
470
+ bias-pull-up;
471
+ ambiq,pull-up-ohms = <12000>;
472
+ };
473
+ group2 {
474
+ pinmux = <GPIO_P161>;
475
+ ambiq,sdif-cdwp = <1>;
476
+ };
477
+ group3 {
478
+ pinmux = <GPIO_P175>;
479
+ ambiq,sdif-cdwp = <2>;
480
+ };
481
+ group4 {
482
+ pinmux = <GPIO_P161>;
483
+ ambiq,sdif-cdwp = <3>;
484
+ };
485
+ group5 {
486
+ pinmux = <GPIO_P175>;
487
+ ambiq,sdif-cdwp = <4>;
488
+ };
489
+ };
416
490
};
Original file line number Diff line number Diff line change 219
219
};
220
220
};
221
221
222
+ &sdio0 {
223
+ pinctrl-0 = <&sdio0_default>;
224
+ pinctrl-names = "default";
225
+ txdelay = <0>;
226
+ rxdelay = <0>;
227
+ status = "okay";
228
+ mmc {
229
+ compatible = "zephyr,mmc-disk";
230
+ disk-name = "SD2";
231
+ status = "okay";
232
+ };
233
+ };
234
+
235
+ &sdio1 {
236
+ pinctrl-0 = <&sdio1_default>;
237
+ pinctrl-names = "default";
238
+ txdelay = <9>;
239
+ rxdelay = <11>;
240
+ status = "okay";
241
+ };
242
+
222
243
zephyr_udc0: &usb {
223
244
vddusb33-gpios = <&gpio64_95 27 (GPIO_PULL_UP)>;
224
245
vddusb0p9-gpios = <&gpio64_95 26 (GPIO_PULL_UP)>;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ supported:
22
22
- pdm
23
23
- i2s
24
24
- mspi
25
+ - sdhc
25
26
testing :
26
27
ignore_tags :
27
28
- net
Original file line number Diff line number Diff line change 692
692
#io-channel-cells = <1>;
693
693
};
694
694
695
+ sdio0: sdio@SDIO0_BASE_NAME {
696
+ compatible = "ambiq,sdio";
697
+ reg = <SDIO0_REG_BASE SDIO0_REG_SIZE>;
698
+ interrupts = <26 0>;
699
+ max-bus-freq = <96000000>;
700
+ min-bus-freq = <375000>;
701
+ power-delay-ms = <50>;
702
+ status = "disabled";
703
+ zephyr,pm-device-runtime-auto;
704
+ };
705
+
706
+ sdio1: sdio@SDIO1_BASE_NAME {
707
+ compatible = "ambiq,sdio";
708
+ reg = <SDIO1_REG_BASE SDIO1_REG_SIZE>;
709
+ interrupts = <84 0>;
710
+ max-bus-freq = <96000000>;
711
+ min-bus-freq = <375000>;
712
+ power-delay-ms = <50>;
713
+ status = "disabled";
714
+ zephyr,pm-device-runtime-auto;
715
+ };
716
+
695
717
pinctrl: pin-controller@GPIO_BASE_NAME {
696
718
compatible = "ambiq,apollo5-pinctrl";
697
719
reg = <GPIO_REG_BASE GPIO_REG_SIZE>;
Original file line number Diff line number Diff line change 1
- CONFIG_DISK_DRIVER_MMC=y
2
1
CONFIG_MMC_STACK=y
3
- CONFIG_SDHC=y
4
- CONFIG_MMC_SUBSYS=y
5
2
6
3
CONFIG_MAIN_STACK_SIZE=8192
7
4
CONFIG_IDLE_STACK_SIZE=4096
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ CONFIG_MMC_STACK=y
2
+
3
+ CONFIG_MAIN_STACK_SIZE=8192
4
+ CONFIG_IDLE_STACK_SIZE=4096
5
+ CONFIG_AMBIQ_SDIO_ASYNC=y
Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ void soc_early_init_hook(void)
57
57
58
58
/* Enable Dcache */
59
59
sys_cache_data_enable ();
60
+
61
+ #ifdef CONFIG_CORTEX_M_DWT
62
+ am_hal_pwrctrl_periph_enable (AM_HAL_PWRCTRL_PERIPH_DEBUG );
63
+ #endif
60
64
}
61
65
62
66
#if CONFIG_CACHE_MANAGEMENT
You can’t perform that action at this time.
0 commit comments