88 lines
2.2 KiB
Diff
88 lines
2.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Marvin Wewer <mwewer37@proton.me>
|
|
Date: Sun, 11 Jan 2026 12:11:10 +0000
|
|
Subject: arm64: dts: allwinner: a527-cubie-a5e: enable PCIe/USB-C combophy
|
|
|
|
Signed-off-by: Marvin Wewer <mwewer37@proton.me>
|
|
---
|
|
---
|
|
arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts | 58 ++++++++++
|
|
1 file changed, 58 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts b/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
|
|
index 111111111111..222222222222 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
|
|
@@ -76,6 +76,39 @@ reg_usb_vbus: vbus {
|
|
gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
|
|
enable-active-high;
|
|
};
|
|
+
|
|
+ reg_pcie_vcc3v3: regulator-pcie-vcc3v3 {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "pcie-3v3";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-enable-ramp-delay = <1000>;
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ gpio = <&r_pio 0 11 GPIO_ACTIVE_HIGH>;
|
|
+ enable-active-high;
|
|
+ };
|
|
+
|
|
+ gma340_oe: gma340-oe {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "gma340-oe";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ gpio = <&pio 1 7 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+
|
|
+ gma340_pcie: gma340-pcie {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "gma340-pcie";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ gpio = <&pio 1 6 GPIO_ACTIVE_HIGH>;
|
|
+ enable-active-high;
|
|
+ };
|
|
};
|
|
|
|
&ehci0 {
|
|
@@ -434,3 +467,28 @@ w25q128: flash@0 {
|
|
status = "okay";
|
|
};
|
|
};
|
|
+
|
|
+/* PCIE and USB Switch */
|
|
+&combophy {
|
|
+ resets = <&ccu RST_BUS_PCIE_USB3>;
|
|
+ phy_use_sel = <0>; /* 0:PCIE; 1:USB3 */
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&pcie {
|
|
+ reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>;
|
|
+ wake-gpios = <&pio 7 12 GPIO_ACTIVE_HIGH>;
|
|
+ num-lanes = <1>;
|
|
+ clk-freq-100M;
|
|
+ pcie3v3-supply = <®_pcie_vcc3v3>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&usbc1 {
|
|
+ device_type = "usbc1";
|
|
+ usb_regulator_io = "nocare";
|
|
+ usb_wakeup_suspend = <1>;
|
|
+ wakeup-source;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
--
|
|
Armbian
|
|
|