arm64: dts: rockchip: Add pcie1 slot for rk3576 evb1 board
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 23 Apr 2025 01:22:39 +0000 (09:22 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 28 Apr 2025 12:10:19 +0000 (14:10 +0200)
PCIe1 and usb_drd1_dwc3 is sharing the same PHY on RK3576 platform.
For pcie1 slot and USB interface, there is a swich IC labelled as
Dial_Switch_1 on evb1 board. If we need to make pcie1 slot work for this
board, we should first disable usb_drd1_dwc3 and then set Dial_Switch_1
to low state.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Link: https://lore.kernel.org/r/1745371359-30443-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts

index ac397ac00a9e35b62cbfe84f990b18bb874b2c5f..0902d694cef43a0c46ce62c490495e0a8b591a0a 100644 (file)
        };
 };
 
+&pcie1 {
+       reset-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
+       vpcie3v3-supply = <&vcc3v3_pcie1>;
+
+       /*
+        * Disable usb_drd1_dwc3 if enabling pcie1 and set Dial_Switch_1
+        * to low state according to the schematic of page 17.
+        */
+       status = "disabled";
+};
+
 &pinctrl {
        usb {
                usb_host_pwren: usb-host-pwren {