Skip to content

Commit 2b8bd26

Browse files
aurel32Yixun Lan
authored andcommitted
riscv: dts: spacemit: enable PCIe ports on Milk-V Jupiter
Enable the two PCIe controller along with and their associated PHY. They are routed to the M.2 M-key connector and to the PCIe x8 slot. Add an always-on regulator sourcing 3.3V from the DC-IN input, to power the PCIe ports. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Yixun Lan <dlan@kernel.org> Link: https://lore.kernel.org/r/20260326183745.1370642-7-aurelien@aurel32.net Signed-off-by: Yixun Lan <dlan@kernel.org>
1 parent dce01d8 commit 2b8bd26

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@
4040
};
4141
};
4242

43+
pcie_vcc_3v3: regulator-pcie-vcc3v3 {
44+
compatible = "regulator-fixed";
45+
regulator-name = "pcie_vcc3v3";
46+
regulator-min-microvolt = <3300000>;
47+
regulator-max-microvolt = <3300000>;
48+
regulator-boot-on;
49+
regulator-always-on;
50+
vin-supply = <&reg_dc_in>;
51+
};
52+
4353
reg_dc_in: regulator-dc-in-12v {
4454
compatible = "regulator-fixed";
4555
regulator-name = "dc_in_12v";
@@ -291,6 +301,38 @@
291301
};
292302
};
293303

304+
&pcie1_phy {
305+
pinctrl-names = "default";
306+
pinctrl-0 = <&pcie1_3_cfg>;
307+
status = "okay";
308+
};
309+
310+
&pcie1_port {
311+
phys = <&pcie1_phy>;
312+
vpcie3v3-supply = <&pcie_vcc_3v3>;
313+
};
314+
315+
&pcie1 {
316+
vpcie3v3-supply = <&pcie_vcc_3v3>;
317+
status = "okay";
318+
};
319+
320+
&pcie2_phy {
321+
pinctrl-names = "default";
322+
pinctrl-0 = <&pcie2_4_cfg>;
323+
status = "okay";
324+
};
325+
326+
&pcie2_port {
327+
phys = <&pcie2_phy>;
328+
vpcie3v3-supply = <&pcie_vcc_3v3>;
329+
};
330+
331+
&pcie2 {
332+
vpcie3v3-supply = <&pcie_vcc_3v3>;
333+
status = "okay";
334+
};
335+
294336
&qspi {
295337
pinctrl-names = "default";
296338
pinctrl-0 = <&qspi_cfg>;

0 commit comments

Comments
 (0)