Skip to content

Commit c548409

Browse files
esmilConchuOD
authored andcommitted
riscv: dts: starfive: Enable SD-card on JH7100 boards
Add pinctrl and MMC device tree nodes for the SD-card on the BeagleV Starlight and StarFive VisionFive V1 boards. Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent a29bb65 commit c548409

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

arch/riscv/boot/dts/starfive/jh7100-common.dtsi

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/ {
1414
aliases {
15+
mmc0 = &sdio0;
1516
serial0 = &uart3;
1617
};
1718

@@ -108,6 +109,43 @@
108109
};
109110
};
110111

112+
sdio0_pins: sdio0-0 {
113+
clk-pins {
114+
pinmux = <GPIOMUX(54, GPO_SDIO0_PAD_CCLK_OUT,
115+
GPO_ENABLE, GPI_NONE)>;
116+
bias-disable;
117+
input-disable;
118+
input-schmitt-disable;
119+
};
120+
sdio-pins {
121+
pinmux = <GPIOMUX(55, GPO_LOW, GPO_DISABLE,
122+
GPI_SDIO0_PAD_CARD_DETECT_N)>,
123+
<GPIOMUX(53,
124+
GPO_SDIO0_PAD_CCMD_OUT,
125+
GPO_SDIO0_PAD_CCMD_OEN,
126+
GPI_SDIO0_PAD_CCMD_IN)>,
127+
<GPIOMUX(49,
128+
GPO_SDIO0_PAD_CDATA_OUT_BIT0,
129+
GPO_SDIO0_PAD_CDATA_OEN_BIT0,
130+
GPI_SDIO0_PAD_CDATA_IN_BIT0)>,
131+
<GPIOMUX(50,
132+
GPO_SDIO0_PAD_CDATA_OUT_BIT1,
133+
GPO_SDIO0_PAD_CDATA_OEN_BIT1,
134+
GPI_SDIO0_PAD_CDATA_IN_BIT1)>,
135+
<GPIOMUX(51,
136+
GPO_SDIO0_PAD_CDATA_OUT_BIT2,
137+
GPO_SDIO0_PAD_CDATA_OEN_BIT2,
138+
GPI_SDIO0_PAD_CDATA_IN_BIT2)>,
139+
<GPIOMUX(52,
140+
GPO_SDIO0_PAD_CDATA_OUT_BIT3,
141+
GPO_SDIO0_PAD_CDATA_OEN_BIT3,
142+
GPI_SDIO0_PAD_CDATA_IN_BIT3)>;
143+
bias-pull-up;
144+
input-enable;
145+
input-schmitt-enable;
146+
};
147+
};
148+
111149
uart3_pins: uart3-0 {
112150
rx-pins {
113151
pinmux = <GPIOMUX(13, GPO_LOW, GPO_DISABLE,
@@ -178,6 +216,15 @@
178216
clock-frequency = <27000000>;
179217
};
180218

219+
&sdio0 {
220+
broken-cd;
221+
bus-width = <4>;
222+
cap-sd-highspeed;
223+
pinctrl-names = "default";
224+
pinctrl-0 = <&sdio0_pins>;
225+
status = "okay";
226+
};
227+
181228
&uart3 {
182229
pinctrl-names = "default";
183230
pinctrl-0 = <&uart3_pins>;

0 commit comments

Comments
 (0)