-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nanopc T6: Is it possible to boot from nvme which installed on E-Key slot? #834
Comments
The nodes pcie2x1l0 and pcie2x1l2 are for the ethernet ports. While pcie2x1l1 would be the correct node. I threw this together but have no idea if it works, but id use it as a starting point. diff --git a/arch/arm/dts/rk3588-nanopc-t6.dts b/arch/arm/dts/rk3588-nanopc-t6.dts
index ee7c7f005cc..9acaffb4900 100644
--- a/arch/arm/dts/rk3588-nanopc-t6.dts
+++ b/arch/arm/dts/rk3588-nanopc-t6.dts
@@ -78,6 +78,20 @@
vin-supply = <&vcc5v0_sys>;
};
+ vdd_mpcie_3v3: vdd-mpcie-3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd_mpcie_3v3";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie_m2_1_pwren>;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ enable-active-high;
+ gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
+ regulator-boot-on;
+ regulator-always-on;
+ vin-supply = <&vcc5v0_sys>;
+ };
+
led_sys: led-sys {
u-boot,dm-pre-reloc;
compatible = "regulator-fixed";
@@ -102,11 +116,23 @@
status = "okay";
};
+&pcie2x1l1 {
+ u-boot,dm-pre-reloc;
+ vpcie3v3-supply = <&vdd_mpcie_3v3>;
+ reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+};
+
&combphy0_ps {
u-boot,dm-pre-reloc;
status = "okay";
};
+&combphy1_ps {
+ u-boot,dm-pre-reloc;
+ status = "okay";
+};
+
&combphy2_psu {
u-boot,dm-pre-reloc;
status = "okay";
@@ -158,4 +184,13 @@
rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
+
+ pcie {
+ u-boot,dm-pre-reloc;
+ pcie_m2_1_pwren: pcie-m21-pwren {
+ u-boot,dm-pre-reloc;
+ rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
};
|
Thanks Joshua! |
it's a bad modification, it's a hardwired conflict. [ 10.374044] pci_bus 0000:01: busn_res: can not insert [bus 01-ff] under [bus 00-0f] (conflicts with (null) [bus 00-0f]) |
Hello,
I was trying to install system and boot from nvme ssd installed on E-Key M.2 slot, instead of M-Key, as I was planning to install some other pcie device on the 3.0x4 slot.
Firstly I boot the system from sd card, and I can see the nvme ssd device on E-key slot(with an adaption card) through lspci:
Also i can see nvme device in /dev:
I've used the script to install os into nvme and updated u-boot into SPI and EMMC, and after reboot seems u-boot only search for the M-key pcie:
I've tried to move the nvme ssd to M-key and os can boot successfully.
I did some more research in the u-boot code(but honestly I'm really new to arm board and u-boot...), and found it seems the driver for pci2x1 is already in Joshua-Riek/u-boot-rockchip/arch/arm/dts/rk3588.dtsi:
but not in arch/arm/dts/rk3588-nanopc-t6.dts
till here I got no idea how to go ahead... Any help would be greatly appreciated
Thanks in advance!
The text was updated successfully, but these errors were encountered: