[PATCH 2/3] riscv: dts: sifive: fu740: Use reset index from header
Bo Gan
ganboing at gmail.com
Tue Aug 27 23:55:19 PDT 2024
The hard-coded index is removed.
Signed-off-by: Bo Gan <ganboing at gmail.com>
---
arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
index 6150f3397bff..a2c09033a9ed 100644
--- a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
+++ b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi
@@ -4,6 +4,7 @@
/dts-v1/;
#include <dt-bindings/clock/sifive-fu740-prci.h>
+#include <dt-bindings/reset/sifive-fu740-prci.h>
/ {
#address-cells = <2>;
@@ -358,7 +359,7 @@ pcie at e00000000 {
clocks = <&prci FU740_PRCI_CLK_PCIE_AUX>;
pwren-gpios = <&gpio 5 0>;
reset-gpios = <&gpio 8 0>;
- resets = <&prci 4>;
+ resets = <&prci FU740_PRCI_RST_PCIE_POWER_UP_N>;
status = "okay";
};
};
--
2.34.1
More information about the linux-riscv
mailing list