From 40f8bfdcd1895ebe240f0b3858f47cbb47339c1f Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Sun, 17 Mar 2024 23:37:38 +0100 Subject: [PATCH] starfive: enable pcie0/1 on MarsV Signed-off-by: Zoltan HERPAI --- .../1102-enable-pcie-on-marsv.patch | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 target/linux/starfive/patches-6.1/1102-enable-pcie-on-marsv.patch diff --git a/target/linux/starfive/patches-6.1/1102-enable-pcie-on-marsv.patch b/target/linux/starfive/patches-6.1/1102-enable-pcie-on-marsv.patch new file mode 100644 index 0000000000..d8720e84fe --- /dev/null +++ b/target/linux/starfive/patches-6.1/1102-enable-pcie-on-marsv.patch @@ -0,0 +1,77 @@ +--- linux-6.1.81/arch/riscv/boot/dts/starfive/jh7110-visionfive2-mars-common.dtsi 2024-03-17 23:09:19.579452786 +0100 ++++ linux-6.1.81/arch/riscv/boot/dts/starfive.new/jh7110-visionfive2-mars-common.dtsi 2024-03-16 19:00:10.382139562 +0100 +@@ -210,6 +210,21 @@ + status = "okay"; + }; + ++&pcie0 { ++ pinctrl-names = "default"; ++ reset-gpios = <&sysgpio 26 GPIO_ACTIVE_LOW>; ++ phys = <&pciephy0>; ++ status = "okay"; ++}; ++ ++&pcie1 { ++ pinctrl-names = "default"; ++ reset-gpios = <&sysgpio 28 GPIO_ACTIVE_LOW>; ++ phys = <&pciephy1>; ++ status = "okay"; ++}; ++ ++ + &qspi { + #address-cells = <1>; + #size-cells = <0>; +@@ -401,6 +416,52 @@ + slew-rate = <0>; + }; + }; ++ ++ pcie0_wake_default: pcie0_wake_default { ++ wake-pins { ++ pinmux = ; ++ bias-disable; ++ drive-strength = <2>; ++ input-enable; ++ input-schmitt-disable; ++ slew-rate = <0>; ++ }; ++ }; ++ ++ pcie0_clkreq_default: pcie0_clkreq_default { ++ clkreq-pins { ++ bias-disable; ++ pinmux = ; ++ drive-strength = <2>; ++ input-enable; ++ input-schmitt-disable; ++ slew-rate = <0>; ++ }; ++ }; ++ ++ pcie1_wake_default: pcie1_wake_default { ++ wake-pins { ++ bias-disable; ++ pinmux = ; ++ drive-strength = <2>; ++ input-enable; ++ input-schmitt-disable; ++ slew-rate = <0>; ++ }; ++ }; ++ ++ pcie1_clkreq_default: pcie1_clkreq_default { ++ clkreq-pins { ++ bias-disable; ++ pinmux = ; ++ drive-strength = <2>; ++ input-enable; ++ input-schmitt-disable; ++ slew-rate = <0>; ++ }; ++ }; ++ ++ + }; + + &uart0 { -- 2.30.2