91 lines
2.3 KiB
Diff
91 lines
2.3 KiB
Diff
From 86a2024d95e259c4309ced53242c0db6d993320b Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Reichel <sebastian.reichel@collabora.com>
|
|
Date: Mon, 18 Sep 2023 16:13:26 +0200
|
|
Subject: [PATCH] arm64: dts: rockchip: add PCIe2 network controller to
|
|
rk3588-evb1
|
|
|
|
The RK3588 EVB1 has a second network card, which is connected
|
|
via PCIe2. This adds support for that.
|
|
|
|
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
|
|
Link: https://lore.kernel.org/r/20230918141327.131108-2-sebastian.reichel@collabora.com
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
---
|
|
.../boot/dts/rockchip/rk3588-evb1-v10.dts | 43 +++++++++++++++++++
|
|
1 file changed, 43 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts
|
|
@@ -28,6 +28,26 @@
|
|
pwms = <&pwm2 0 25000 0>;
|
|
};
|
|
|
|
+ pcie20_avdd0v85: pcie20-avdd0v85-regulator {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "pcie20_avdd0v85";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <850000>;
|
|
+ regulator-max-microvolt = <850000>;
|
|
+ vin-supply = <&avdd_0v85_s0>;
|
|
+ };
|
|
+
|
|
+ pcie20_avdd1v8: pcie20-avdd1v8-regulator {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "pcie20_avdd1v8";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ vin-supply = <&avcc_1v8_s0>;
|
|
+ };
|
|
+
|
|
vcc12v_dcin: vcc12v-dcin-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc12v_dcin";
|
|
@@ -86,6 +106,10 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&combphy2_psu {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&cpu_b0 {
|
|
cpu-supply = <&vdd_cpu_big0_s0>;
|
|
};
|
|
@@ -162,7 +186,20 @@
|
|
};
|
|
};
|
|
|
|
+&pcie2x1l1 {
|
|
+ reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pcie2_1_rst>, <&rtl8111_isolate>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&pinctrl {
|
|
+ rtl8111 {
|
|
+ rtl8111_isolate: rtl8111-isolate {
|
|
+ rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
+ };
|
|
+ };
|
|
+
|
|
rtl8211f {
|
|
rtl8211f_rst: rtl8211f-rst {
|
|
rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
@@ -176,6 +213,12 @@
|
|
};
|
|
};
|
|
|
|
+ pcie2 {
|
|
+ pcie2_1_rst: pcie2-1-rst {
|
|
+ rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
+ };
|
|
+ };
|
|
+
|
|
usb {
|
|
vcc5v0_host_en: vcc5v0-host-en {
|
|
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
|