mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 23:43:30 +01:00
45 lines
1.0 KiB
Diff
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>;
|
|
+ };
|
|
+};
|