dts: add SDIO support to apollo4p_evb
Update dts for using SDIO on apollo4p_evb. Signed-off-by: Darren Lu <dlu@ambiq.com>
This commit is contained in:
parent
129ccf981c
commit
5fd343b316
3 changed files with 46 additions and 0 deletions
|
@ -171,4 +171,25 @@
|
|||
ambiq,iom-nce-module = <36>;
|
||||
};
|
||||
};
|
||||
sdio0_default: sdio0_default {
|
||||
group0 {
|
||||
pinmux = <SDIF_DAT1_P85>,
|
||||
<SDIF_DAT3_P87>,
|
||||
<SDIF_DAT4_P79>,
|
||||
<SDIF_DAT5_P80>,
|
||||
<SDIF_DAT6_P81>,
|
||||
<SDIF_DAT7_P82>;
|
||||
drive-strength = "1.0";
|
||||
};
|
||||
group1 {
|
||||
pinmux =
|
||||
<SDIF_DAT0_P84>,
|
||||
<SDIF_DAT2_P86>,
|
||||
<SDIF_CMD_P83>,
|
||||
<SDIF_CLKOUT_P88>;
|
||||
drive-strength = "1.0";
|
||||
bias-pull-up;
|
||||
ambiq,pull-up-ohms = <12000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
sw0 = &button0;
|
||||
sw1 = &button1;
|
||||
rtc = &rtc0;
|
||||
sdhc0 = &sdio0;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
@ -154,6 +155,19 @@
|
|||
clk-source = <3>;
|
||||
};
|
||||
|
||||
&sdio0 {
|
||||
pinctrl-0 = <&sdio0_default>;
|
||||
pinctrl-names = "default";
|
||||
txdelay = <0>;
|
||||
rxdelay = <0>;
|
||||
status = "okay";
|
||||
mmc {
|
||||
compatible = "zephyr,mmc-disk";
|
||||
disk-name = "SD2";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
zephyr_udc0: &usb {
|
||||
vddusb33-gpios = <&gpio96_127 7 (GPIO_PULL_UP)>;
|
||||
vddusb0p9-gpios = <&gpio96_127 5 (GPIO_PULL_UP)>;
|
||||
|
|
|
@ -368,6 +368,17 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
sdio0: sdio@40070000 {
|
||||
compatible = "ambiq,sdio";
|
||||
reg = <0x40070000 0x100>;
|
||||
interrupts = <26 0>;
|
||||
max-bus-freq = <96000000>;
|
||||
min-bus-freq = <375000>;
|
||||
power-delay-ms = <50>;
|
||||
status = "disabled";
|
||||
zephyr,pm-device-runtime-auto;
|
||||
};
|
||||
|
||||
usb: usb@400b0000 {
|
||||
compatible = "ambiq,usb";
|
||||
reg = <0x400B0000 0x4100>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue