arm64: dts: imx8mp-beacon: Configure 100MHz PCIe Ref Clk
authorAdam Ford <aford173@gmail.com>
Wed, 4 Oct 2023 23:51:47 +0000 (18:51 -0500)
committerShawn Guo <shawnguo@kernel.org>
Tue, 10 Oct 2023 03:06:01 +0000 (11:06 +0800)
There is a I2C controlled 100MHz Reference clock used by the PCIe
controller. Configure this clock's DIF1 output to be used by
the PCIe.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts

index acd265d8b58ed9c8399d63794caacc1f229732d1..5c90788ab6a1a9902d086d020c67a84cc216734f 100644 (file)
                stdout-path = &uart2;
        };
 
+       clk_xtal25: clock-xtal25 {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <25000000>;
+       };
+
        connector {
                compatible = "usb-c-connector";
                label = "USB-C";
                };
        };
 
-       pcie0_refclk: clock-pcie {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <100000000>;
-       };
-
        reg_audio: regulator-wm8962 {
                compatible = "regulator-fixed";
                regulator-name = "3v3_aud";
                interrupt-controller;
                #interrupt-cells = <2>;
        };
+
+       pcieclk: clock-generator@68 {
+               compatible = "renesas,9fgv0241";
+               reg = <0x68>;
+               clocks = <&clk_xtal25>;
+               #clock-cells = <1>;
+       };
 };
 
 &i2c3 {
 };
 
 &pcie_phy {
+       fsl,clkreq-unsupported;
        fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
-       clocks = <&pcie0_refclk>;
+       clocks = <&pcieclk 1>;
        clock-names = "ref";
        status = "okay";
 };