]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: rockchip: rock5b: enable pcie2x1l2 and associated combphy
authorChristopher Obbard <chris.obbard@collabora.com>
Wed, 17 May 2023 10:01:01 +0000 (13:01 +0300)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 18 May 2023 00:44:04 +0000 (08:44 +0800)
Enable the PCIe 2x1l 2 device and associated combphy.
On this bus, the Rock5B has an Ethernet transceiver connected.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
[eugen.hristev@collabora.com: minor tweaks]
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
[jonas@kwiboo.se: add PCIe pins]
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi

index e9fcb7b92eb389db04c88b70580e0e6d6fe6233e..406303920d95e815aa9ec75085a5384e000d7d40 100644 (file)
        };
 };
 
+&combphy0_ps {
+       status = "okay";
+};
+
+&pcie2x1l2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pcie2x1l2_pins &pcie_reset_h>;
+       reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
+       status = "okay";
+};
+
 &pinctrl {
        bootph-all;
 
+       pcie {
+               pcie_reset_h: pcie-reset-h {
+                       rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               pcie2x1l2_pins: pcie2x1l2-pins {
+                       rockchip,pins = <3 RK_PC7 4 &pcfg_pull_none>,
+                                       <3 RK_PD0 4 &pcfg_pull_none>;
+               };
+       };
+
        usb {
                vcc5v0_host_en: vcc5v0-host-en {
                        rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;