Files
nixos-hardware/spacemit/k3-pico-itx/patches/0015-dts-k3-com260-pcie.patch
T

45 lines
1.0 KiB
Diff

From: liberodark <liberodark@gmail.com>
Subject: [PATCH] riscv: dts: spacemit: k3: enable PCIe on CoM260-IFX
The CoM260-IFX (BPI-SM10) boots from an NVMe drive on PCIe port A, with
the same x4 wiring as the Pico-ITX. Enable the combo PHY and the first
PCIe root complex on this board.
Rebased on v7.3-rc1: the PHY node and the PCIe host nodes now come from
upstream, so only the board level enablement is left here.
Signed-off-by: liberodark <liberodark@gmail.com>
---
--- a/arch/riscv/boot/dts/spacemit/k3-com260-ifx.dts
+++ b/arch/riscv/boot/dts/spacemit/k3-com260-ifx.dts
@@ -4,6 +4,8 @@
* Copyright (c) 2026 Yixun Lan <dlan@kernel.org>
*/
+#include <dt-bindings/phy/phy.h>
+
#include "k3-com260.dtsi"
/ {
@@ -52,3 +54,20 @@
sd-uhs-sdr104;
status = "okay";
};
+
+&combophy {
+ spacemit,apmu = <&syscon_apmu 0x11>;
+ status = "okay";
+};
+
+&pcie0_rc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie0_0_cfg>;
+ num-lanes = <4>;
+ status = "okay";
+
+ pcie@0 {
+ phys = <&combophy 0 PHY_TYPE_PCIE>,
+ <&combophy 1 PHY_TYPE_PCIE>;
+ };
+};