Skip to content

Commit

Permalink
Add E-Key slot nvme boot support for nanopc t6 in u-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
4MT-HJM authored and Joshua-Riek committed Jun 11, 2024
1 parent 1295609 commit 66ef7af
Showing 1 changed file with 38 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Date: Sun, 25 Jun 2023 14:45:56 -0400
Subject: [PATCH] add the nanopir6 and nanopct6

---
arch/arm/dts/rk3588-nanopc-t6.dts | 161 ++++++++++++++++++++
arch/arm/dts/rk3588-nanopc-t6.dts | 197 ++++++++++++++++++++
arch/arm/dts/rk3588s-nanopi-r6c.dts | 177 ++++++++++++++++++++++
arch/arm/dts/rk3588s-nanopi-r6s.dts | 125 ++++++++++++++++
configs/nanopc-t6-rk3588_defconfig | 218 ++++++++++++++++++++++++++++
Expand All @@ -23,7 +23,7 @@ new file mode 100644
index 0000000000..ee7c7f005c
--- /dev/null
+++ b/arch/arm/dts/rk3588-nanopc-t6.dts
@@ -0,0 +1,161 @@
@@ -0,0 +1,197 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2021 Rockchip Electronics Co., Ltd
Expand Down Expand Up @@ -104,6 +104,21 @@ index 0000000000..ee7c7f005c
+ vin-supply = <&vcc5v0_sys>;
+ };
+
+ vdd_mpcie_3v3: vdd-mpcie-3v3 {
+ u-boot,dm-pre-reloc;
+ 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";
Expand All @@ -128,11 +143,23 @@ index 0000000000..ee7c7f005c
+ 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";
Expand Down Expand Up @@ -184,6 +211,15 @@ index 0000000000..ee7c7f005c
+ 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>;
+ };
+ };
+
+};
diff --git a/arch/arm/dts/rk3588s-nanopi-r6c.dts b/arch/arm/dts/rk3588s-nanopi-r6c.dts
new file mode 100644
Expand Down

1 comment on commit 66ef7af

@wmport
Copy link

@wmport wmport commented on 66ef7af Sep 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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])

Please sign in to comment.