mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
128 lines
3.3 KiB
Diff
128 lines
3.3 KiB
Diff
From fa0c39b4564ea4cdbda88dc701b51ce615a11342 Mon Sep 17 00:00:00 2001
|
|
From: Frank Wunderlich <frank-w@public-files.de>
|
|
Date: Sun, 19 Jun 2022 10:26:05 +0200
|
|
Subject: [PATCH 48/51] arm64: dts: rockchip: Add PCIe v3 nodes to BPI-R2-Pro
|
|
|
|
Add Nodes to Bananapi-R2-Pro board to support PCIe v3 and
|
|
set PCIe related regulators to always on.
|
|
|
|
Suggested-by: Peter Geis <pgwipeout@gmail.com>
|
|
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
|
|
---
|
|
.../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 90 +++++++++++++++++++
|
|
1 file changed, 90 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
|
|
@@ -86,6 +86,62 @@
|
|
vin-supply = <&dc_12v>;
|
|
};
|
|
|
|
+ pcie30_avdd0v9: pcie30-avdd0v9 {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "pcie30_avdd0v9";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <900000>;
|
|
+ regulator-max-microvolt = <900000>;
|
|
+ vin-supply = <&vcc3v3_sys>;
|
|
+ };
|
|
+
|
|
+ pcie30_avdd1v8: pcie30-avdd1v8 {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "pcie30_avdd1v8";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ vin-supply = <&vcc3v3_sys>;
|
|
+ };
|
|
+
|
|
+ /* pi6c pcie clock generator feeds both ports */
|
|
+ vcc3v3_pi6c_05: vcc3v3-pi6c-05-regulator {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "vcc3v3_pcie";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ enable-active-high;
|
|
+ gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
|
|
+ startup-delay-us = <200000>;
|
|
+ vin-supply = <&vcc5v0_sys>;
|
|
+ };
|
|
+
|
|
+ /* actually fed by vcc3v3_sys, dependent on pi6c clock generator */
|
|
+ vcc3v3_minipcie: vcc3v3-minipcie-regulator {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "vcc3v3_minipcie";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ enable-active-high;
|
|
+ gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
|
+ startup-delay-us = <50000>;
|
|
+ vin-supply = <&vcc3v3_pi6c_05>;
|
|
+ };
|
|
+
|
|
+ /* actually fed by vcc3v3_sys, dependent on pi6c clock generator */
|
|
+ vcc3v3_ngff: vcc3v3-ngff-regulator {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "vcc3v3_ngff";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ enable-active-high;
|
|
+ gpio = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
+ startup-delay-us = <50000>;
|
|
+ vin-supply = <&vcc3v3_pi6c_05>;
|
|
+ };
|
|
+
|
|
vcc5v0_usb: vcc5v0_usb {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_usb";
|
|
@@ -513,6 +569,27 @@
|
|
};
|
|
};
|
|
|
|
+&pcie30phy {
|
|
+ data-lanes = <1 2>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&pcie3x1 {
|
|
+ /* M.2 slot */
|
|
+ num-lanes = <1>;
|
|
+ reset-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
|
|
+ vpcie3v3-supply = <&vcc3v3_ngff>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&pcie3x2 {
|
|
+ /* mPCIe slot */
|
|
+ num-lanes = <1>;
|
|
+ reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
|
|
+ vpcie3v3-supply = <&vcc3v3_minipcie>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&pinctrl {
|
|
leds {
|
|
blue_led_pin: blue-led-pin {
|
|
@@ -708,6 +785,19 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&usb2phy1 {
|
|
+ /* USB for PCIe/M2 */
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&usb2phy1_host {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&usb2phy1_otg {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&vop {
|
|
assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
|
|
assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
|