Skip to content

Commit ae9e29a

Browse files
davidkatheder-rsnashif
authored andcommitted
boards: nxp: Add support for sdif on LPC55S28 and LPCXpresso55S28 board
- Add sdif node to nxp_lpc55s2x_common.dtsi - Add sdif pinmux configuration to LPCXpresso55S28 board - Enable sdif and sdmmc disk on LPCXpresso55S28 board, providing SD card storage capabilities. Signed-off-by: David Christian Katheder <[email protected]>
1 parent 9621bd6 commit ae9e29a

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

boards/nxp/lpcxpresso55s28/lpcxpresso55s28-pinctrl.dtsi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,23 @@
6464
slew-rate = "standard";
6565
};
6666
};
67+
68+
pinmux_sdif_default: pinmux_sdif_default {
69+
group0 {
70+
pinmux = <SDIF_SD0_D0_PIO0_24>,
71+
<SDIF_SD0_D1_PIO0_25>,
72+
<SDIF_SD0_D2_PIO0_31>,
73+
<SD0_CLK_PIO0_7>,
74+
<SD0_CMD_PIO0_8>,
75+
<SD0_POW_EN_PIO0_9>,
76+
<SDIF_SD0_D3_PIO1_0>;
77+
slew-rate = "fast";
78+
};
79+
80+
group1 {
81+
pinmux = <SD0_WR_PRT_PIO0_15>,
82+
<SD0_CARD_DET_N_PIO0_17>;
83+
slew-rate = "standard";
84+
};
85+
};
6786
};

boards/nxp/lpcxpresso55s28/lpcxpresso55s28.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,15 @@ zephyr_uhc1: &usbhhs {
148148
tx-cal-45-dp-ohms = <10>;
149149
tx-cal-45-dm-ohms = <10>;
150150
};
151+
152+
&sdif {
153+
status = "okay";
154+
pinctrl-0 = <&pinmux_sdif_default>;
155+
pinctrl-names = "default";
156+
157+
mmc {
158+
compatible = "zephyr,sdmmc-disk";
159+
status = "okay";
160+
disk-name = "SD";
161+
};
162+
};

dts/arm/nxp/nxp_lpc55S2x_common.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@
266266
#pwm-cells = <3>;
267267
};
268268

269+
sdif: sdif@9b000 {
270+
compatible = "nxp,lpc-sdif";
271+
reg = <0x9b000 0x1000>;
272+
interrupts = <42 0>;
273+
clocks = <&syscon MCUX_SDIF_CLK>;
274+
status = "disabled";
275+
};
276+
269277
hs_lspi: spi@9f000 {
270278
compatible = "nxp,lpc-spi";
271279
/* Enabling cs-gpios below will allow using GPIO CS,

0 commit comments

Comments
 (0)