From b1f648ee755de73a922a33d6a432f310ea4ff3e0 Mon Sep 17 00:00:00 2001 From: yangchaohong <45483831+yangchaohong@users.noreply.github.com> Date: Wed, 1 May 2024 12:35:22 +0800 Subject: [PATCH] Fix PCIe for RK35xx+Fix ROCK5A PCIe device tree --- ...ockchip-add-PCIe-for-M.2-E-Key-to-rock-5a.patch | 2 +- .../1047-fix-initial-PERST#-GPIO-value.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 patch/kernel/rockchip-rk3588-edge/1047-fix-initial-PERST#-GPIO-value.patch diff --git a/patch/kernel/rockchip-rk3588-edge/1023-arm64-dts-rockchip-add-PCIe-for-M.2-E-Key-to-rock-5a.patch b/patch/kernel/rockchip-rk3588-edge/1023-arm64-dts-rockchip-add-PCIe-for-M.2-E-Key-to-rock-5a.patch index 4bd4c4d605..16da70a318 100644 --- a/patch/kernel/rockchip-rk3588-edge/1023-arm64-dts-rockchip-add-PCIe-for-M.2-E-Key-to-rock-5a.patch +++ b/patch/kernel/rockchip-rk3588-edge/1023-arm64-dts-rockchip-add-PCIe-for-M.2-E-Key-to-rock-5a.patch @@ -28,7 +28,7 @@ index 1bc5b6a4e9b8..77893c3af613 100644 +&pcie2x1l2 { + status = "okay"; -+ reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>; ++ reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; +}; + &pinctrl { diff --git a/patch/kernel/rockchip-rk3588-edge/1047-fix-initial-PERST#-GPIO-value.patch b/patch/kernel/rockchip-rk3588-edge/1047-fix-initial-PERST#-GPIO-value.patch new file mode 100644 index 0000000000..e7d0312b05 --- /dev/null +++ b/patch/kernel/rockchip-rk3588-edge/1047-fix-initial-PERST#-GPIO-value.patch @@ -0,0 +1,14 @@ +diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c b/drivers/pci/controller/dwc/pcie-dw-rockchip.c +index d6842141d384..a909e42b4273 100644 +--- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c ++++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c +@@ -240,7 +240,7 @@ static int rockchip_pcie_resource_get(struct platform_device *pdev, + return PTR_ERR(rockchip->apb_base); + + rockchip->rst_gpio = devm_gpiod_get_optional(&pdev->dev, "reset", +- GPIOD_OUT_HIGH); ++ GPIOD_OUT_LOW); + if (IS_ERR(rockchip->rst_gpio)) + return PTR_ERR(rockchip->rst_gpio); + +