Skip to content

Commit 57b5369

Browse files
sandiecao-dcConchuOD
authored andcommitted
riscv: dts: starfive: fml13v01: enable pcie1
Starfive Soc common defines GPIO28 as pcie1 reset, GPIO21 as pcie1 wakeup; But the FML13V01 board uses GPIO21 as pcie1 reset, GPIO28 as pcie1 wakeup; redefine pcie1 gpio and enable pcie1 for pcie based Wi-Fi. Signed-off-by: Sandie Cao <sandie.cao@deepcomputing.io> Tested-by: Maud Spierings <maud_spierings@hotmail.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent 4bdea6e commit 57b5369

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,40 @@
1111
compatible = "deepcomputing,fml13v01", "starfive,jh7110";
1212
};
1313

14+
&pcie1 {
15+
perst-gpios = <&sysgpio 21 GPIO_ACTIVE_LOW>;
16+
phys = <&pciephy1>;
17+
pinctrl-names = "default";
18+
pinctrl-0 = <&pcie1_pins>;
19+
status = "okay";
20+
};
21+
22+
&sysgpio {
23+
pcie1_pins: pcie1-0 {
24+
clkreq-pins {
25+
pinmux = <GPIOMUX(29, GPOUT_LOW,
26+
GPOEN_DISABLE,
27+
GPI_NONE)>;
28+
bias-pull-down;
29+
drive-strength = <2>;
30+
input-enable;
31+
input-schmitt-disable;
32+
slew-rate = <0>;
33+
};
34+
35+
wake-pins {
36+
pinmux = <GPIOMUX(28, GPOUT_HIGH,
37+
GPOEN_DISABLE,
38+
GPI_NONE)>;
39+
bias-pull-up;
40+
drive-strength = <2>;
41+
input-enable;
42+
input-schmitt-disable;
43+
slew-rate = <0>;
44+
};
45+
};
46+
};
47+
1448
&usb0 {
1549
dr_mode = "host";
1650
status = "okay";

0 commit comments

Comments
 (0)