board-rockpi4-0003-arm64-dts-pcie.patch 881 B

1234567891011121314151617181920212223242526272829303132333435
  1. diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
  2. index 1ae1ebd4e..2f84397d5 100644
  3. --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
  4. +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
  5. @@ -62,6 +62,8 @@
  6. regulator-name = "vcc3v3_pcie";
  7. regulator-always-on;
  8. regulator-boot-on;
  9. + regulator-min-microvolt = <3300000>;
  10. + regulator-max-microvolt = <3300000>;
  11. vin-supply = <&vcc5v0_sys>;
  12. };
  13. @@ -434,6 +459,21 @@
  14. gpio1830-supply = <&vcc_3v0>;
  15. };
  16. +&pcie0 {
  17. + ep-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
  18. + num-lanes = <4>;
  19. + max-link-speed = <1>;
  20. + pinctrl-names = "default";
  21. + pinctrl-0 = <&pcie_clkreqnb_cpm>;
  22. + vpcie12v-supply = <&vcc12v_dcin>;
  23. + vpcie3v3-supply = <&vcc3v3_pcie>;
  24. + status = "okay";
  25. +};
  26. +
  27. +&pcie_phy {
  28. + status = "okay";
  29. +};
  30. +
  31. &pmu_io_domains {
  32. status = "okay";