Skip to content

Commit 56b1095

Browse files
esmilConchuOD
authored andcommitted
riscv: dts: starfive: Enable SDIO wifi on JH7100 boards
Add pinctrl and MMC controller nodes for the Broadcom wifi controller 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 c548409 commit 56b1095

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

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

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/ {
1414
aliases {
1515
mmc0 = &sdio0;
16+
mmc1 = &sdio1;
1617
serial0 = &uart3;
1718
};
1819

@@ -64,6 +65,11 @@
6465
<0x00 0xfa000000 0x10 0x7a000000 0x00 0x01000000>,
6566
<0x00 0xfb000000 0x00 0xfb000000 0x07 0x85000000>;
6667
};
68+
69+
wifi_pwrseq: wifi-pwrseq {
70+
compatible = "mmc-pwrseq-simple";
71+
reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
72+
};
6773
};
6874

6975
&gpio {
@@ -146,6 +152,41 @@
146152
};
147153
};
148154

155+
sdio1_pins: sdio1-0 {
156+
clk-pins {
157+
pinmux = <GPIOMUX(33, GPO_SDIO1_PAD_CCLK_OUT,
158+
GPO_ENABLE, GPI_NONE)>;
159+
bias-disable;
160+
input-disable;
161+
input-schmitt-disable;
162+
};
163+
sdio-pins {
164+
pinmux = <GPIOMUX(29,
165+
GPO_SDIO1_PAD_CCMD_OUT,
166+
GPO_SDIO1_PAD_CCMD_OEN,
167+
GPI_SDIO1_PAD_CCMD_IN)>,
168+
<GPIOMUX(36,
169+
GPO_SDIO1_PAD_CDATA_OUT_BIT0,
170+
GPO_SDIO1_PAD_CDATA_OEN_BIT0,
171+
GPI_SDIO1_PAD_CDATA_IN_BIT0)>,
172+
<GPIOMUX(30,
173+
GPO_SDIO1_PAD_CDATA_OUT_BIT1,
174+
GPO_SDIO1_PAD_CDATA_OEN_BIT1,
175+
GPI_SDIO1_PAD_CDATA_IN_BIT1)>,
176+
<GPIOMUX(34,
177+
GPO_SDIO1_PAD_CDATA_OUT_BIT2,
178+
GPO_SDIO1_PAD_CDATA_OEN_BIT2,
179+
GPI_SDIO1_PAD_CDATA_IN_BIT2)>,
180+
<GPIOMUX(31,
181+
GPO_SDIO1_PAD_CDATA_OUT_BIT3,
182+
GPO_SDIO1_PAD_CDATA_OEN_BIT3,
183+
GPI_SDIO1_PAD_CDATA_IN_BIT3)>;
184+
bias-pull-up;
185+
input-enable;
186+
input-schmitt-enable;
187+
};
188+
};
189+
149190
uart3_pins: uart3-0 {
150191
rx-pins {
151192
pinmux = <GPIOMUX(13, GPO_LOW, GPO_DISABLE,
@@ -225,6 +266,25 @@
225266
status = "okay";
226267
};
227268

269+
&sdio1 {
270+
#address-cells = <1>;
271+
#size-cells = <0>;
272+
bus-width = <4>;
273+
cap-sd-highspeed;
274+
cap-sdio-irq;
275+
cap-power-off-card;
276+
mmc-pwrseq = <&wifi_pwrseq>;
277+
non-removable;
278+
pinctrl-names = "default";
279+
pinctrl-0 = <&sdio1_pins>;
280+
status = "okay";
281+
282+
wifi@1 {
283+
compatible = "brcm,bcm4329-fmac";
284+
reg = <1>;
285+
};
286+
};
287+
228288
&uart3 {
229289
pinctrl-names = "default";
230290
pinctrl-0 = <&uart3_pins>;

0 commit comments

Comments
 (0)