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

* Re: [d-kernel] [PATCH] [6.18] arm64: dts: Enable the PCIe controller for the Repka Pi5 board.
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Ivan A. Melnikov @ 2026-09-22 10:51 UTC (permalink / raw)
  To: Daniil Gnusarev; +Cc: devel-kernel

[-- Attachment #1: Type: text/plain, Size: 2354 bytes --]

On Tue, Sep 22, 2026 at 01:18:09PM +0400, Daniil Gnusarev wrote:
> 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

Лучше указывать ссылку на конкретный коммит, например

https://gitflic.ru/project/npo_rbs/repka-os_linux-rockchip/blob?file=arch/arm64/boot/dts/rockchip/rk3588-repka-pi5.dts&commit=4b64c5c7f6b1747e280e3d5b884717aea3f15c17

> 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

Reviewed-by: Ivan A. Melnikov <iv@altlinux.org>

-- 
  wbr,
    iv m.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 870 bytes --]

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

* Re: [d-kernel] [PATCH] [6.18] arm64: dts: Enable the PCIe controller for the Repka Pi5 board.
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Ivan A. Melnikov @ 2026-09-22 10:54 UTC (permalink / raw)
  To: Daniil Gnusarev; +Cc: devel-kernel

On Tue, Sep 22, 2026 at 01:18:09PM +0400, Daniil Gnusarev wrote:
> 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>

Applied to 6.18/sisyphus, 17ceab203897 -> 2f6c1eca22b9.

Спасибо!

-- 
  wbr,
    iv m.


^ 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