arm64: dts: renesas: r8a779h0: gray-hawk-single: Enable PCIe Host
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 4 Sep 2024 00:34:09 +0000 (09:34 +0900)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 1 Oct 2024 12:19:28 +0000 (14:19 +0200)
Enable PCIe Host controller on R-Car V4M Gray Hawk board.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240904003409.1578212-3-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts

index 9a1917b87f6138af053e2530e9c55177ecdd0126..72e1ffe98585447f424495e7d6382dd946bc1c86 100644 (file)
                reg = <0x4 0x80000000 0x1 0x80000000>;
        };
 
+       pcie_clk: clk-9fgv0841-pci {
+               compatible = "fixed-clock";
+               clock-frequency = <100000000>;
+               #clock-cells = <0>;
+       };
+
        reg_1p8v: regulator-1p8v {
                        compatible = "regulator-fixed";
                        regulator-name = "fixed-1.8V";
        status = "okay";
        clock-frequency = <400000>;
 
+       io_expander_a: gpio@20 {
+               compatible = "onnn,pca9654";
+               reg = <0x20>;
+               interrupt-parent = <&gpio0>;
+               interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
        eeprom@50 {
                compatible = "rohm,br24g01", "atmel,24c01";
                label = "cpu-board";
        status = "okay";
 };
 
+&pcie0_clkref {
+       compatible = "gpio-gate-clock";
+       clocks = <&pcie_clk>;
+       enable-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
+       /delete-property/ clock-frequency;
+};
+
+&pciec0 {
+       reset-gpios = <&io_expander_a 0 GPIO_ACTIVE_LOW>;
+       status = "okay";
+};
+
 &pfc {
        pinctrl-0 = <&scif_clk_pins>, <&scif_clk2_pins>;
        pinctrl-names = "default";