ALT Linux kernel packages development
 help / color / mirror / Atom feed
* [d-kernel] [PATCH] [6.18] arm64: dts: Enable the PCIe controller for the Repka Pi5 board.
@ 2026-09-22  9:18 Daniil Gnusarev
  2026-09-22 10:51 ` Ivan A. Melnikov
  2026-09-22 10:54 ` Ivan A. Melnikov
  0 siblings, 2 replies; 3+ messages in thread
From: Daniil Gnusarev @ 2026-09-22  9:18 UTC (permalink / raw)
  To: gnusarevda, devel-kernel

This enables the PCIe controller on Repka Pi5 board.
It also resolves the shutdown/reboot issue. Without this,
the `mmu600_pcie` node (which is unused but starts automatically)
fails to shut down, causing the shutdown process to hang.

Based on the original dts:
Link: https://gitflic.ru/project/npo_rbs/repka-os_linux-rockchip/blob?file=arch/arm64/boot/dts/rockchip/rk3588-repka-pi5.dts&branch=master

Signed-off-by: Daniil Gnusarev <gnusarevda@basealt.ru>
---
 .../boot/dts/rockchip/rk3588-repka-pi5.dts    | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-repka-pi5.dts b/arch/arm64/boot/dts/rockchip/rk3588-repka-pi5.dts
index 4e4207108dbf2..1ff882188f4d4 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-repka-pi5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-repka-pi5.dts
@@ -74,6 +74,17 @@ fan: pwm-fan {
 		#cooling-cells = <2>;
 	};
 
+	vcc3v3_pcie30: vcc3v3-pcie30 {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc3v3_pcie30";
+		startup-delay-us = <5000>;
+		enable-active-high;
+		gpios = <&gpio2 RK_PB6 GPIO_ACTIVE_HIGH>;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vcc5v0_sys>;
+	};
+
 	vcc5v0_sys: regulator-vcc5v0-sys {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc5v0_sys";
@@ -260,6 +271,22 @@ map1 {
 	};
 };
 
+&pcie30phy {
+	data-lanes = <1 3 2 4>;
+	clocks = <&cru PCLK_PCIE_COMBO_PIPE_PHY>,
+		 <&cru PCLK_PHP_ROOT>;
+	clock-names = "pclk", "pipe";
+	status = "okay";
+};
+
+&pcie3x4 {
+	num-lanes = <1>;
+	max-link-speed = <3>;
+	vpcie3v3-supply = <&vcc3v3_pcie30>;
+	reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
+
 &pinctrl {
 	fan {
 		fan_tach: fan-tach {
-- 
2.42.2



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-22 10:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22  9:18 [d-kernel] [PATCH] [6.18] arm64: dts: Enable the PCIe controller for the Repka Pi5 board Daniil Gnusarev
2026-09-22 10:51 ` Ivan A. Melnikov
2026-09-22 10:54 ` Ivan A. Melnikov

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git