]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: renesas: white-hawk-cpu-common: Enable PCIe Host ch0
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 22 Aug 2024 00:44:54 +0000 (09:44 +0900)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 23 Aug 2024 13:52:45 +0000 (15:52 +0200)
Enable PCIe Host controller channel 0 on R-Car V4H White Hawk boards.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240822004454.1087582-3-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/white-hawk-cpu-common.dtsi

index 80496fb3d4765a7c7f2885c02e2f824b2e9c6716..3845b413bd24cd72fbee3b61476ce1aca8d2ee41 100644 (file)
                };
        };
 
+       pcie_clk: clk-9fgv0841-pci {
+               compatible = "fixed-clock";
+               clock-frequency = <100000000>;
+               #clock-cells = <0>;
+       };
+
        reg_1p2v: regulator-1p2v {
                compatible = "regulator-fixed";
                regulator-name = "fixed-1.2V";
        status = "okay";
 };
 
+&pcie0_clkref {
+       compatible = "gpio-gate-clock";
+       clocks = <&pcie_clk>;
+       enable-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
+       /delete-property/ clock-frequency;
+};
+
+&pciec0 {
+       reset-gpio = <&io_expander_a 0 GPIO_ACTIVE_LOW>;
+       status = "okay";
+};
+
 &pfc {
        pinctrl-0 = <&scif_clk_pins>;
        pinctrl-names = "default";