From 320c7ed44496c5b618a37897330180a90fa5ad7e Mon Sep 17 00:00:00 2001 From: Alvin Xie Date: Fri, 17 May 2024 10:36:58 +0800 Subject: [PATCH] fix: add pcie power supply for rock 2a pcie overlay Signed-off-by: Alvin Xie --- .../dts/rockchip/overlays/rock-2a-enable-pcie.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-2a-enable-pcie.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-2a-enable-pcie.dts index 0bbdafe0..214d0739 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rock-2a-enable-pcie.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-2a-enable-pcie.dts @@ -14,6 +14,19 @@ }; }; +&{/} { + vcc3v3_pcie: vcc3v3-pcie { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pcie"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <5000>; + enable-active-high; + gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; + vin-supply = <&vcc5v0_sys>; + }; +}; + &pcie_usb_selection { enable-active-high; gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; @@ -29,5 +42,6 @@ &pcie2x1 { reset-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie>; status = "okay"; };