]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8qm-ss-hsio: fix PCI and SATA clock indices
authorFrank Li <Frank.Li@nxp.com>
Fri, 25 Oct 2024 22:08:10 +0000 (18:08 -0400)
committerShawn Guo <shawnguo@kernel.org>
Mon, 4 Nov 2024 08:46:32 +0000 (16:46 +0800)
The first argument of lpcg should indices, instead of index. Fix it by
use predefined macro.

Fixes: 9f7053f67c8a ("arm64: dts: imx8-ss-hsio: Add PCIe and SATA support")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8qm-ss-hsio.dtsi

index 59b6a670462c7745bc292db7ca298f8b1f3dbacc..b1d0189a1725895404fe168d3ed80eef0a6e1e24 100644 (file)
@@ -24,9 +24,9 @@
                interrupt-names = "msi";
                #address-cells = <3>;
                #size-cells = <2>;
-               clocks = <&pciea_lpcg 2>,
-                        <&pciea_lpcg 0>,
-                        <&pciea_lpcg 1>;
+               clocks = <&pciea_lpcg IMX_LPCG_CLK_6>,
+                        <&pciea_lpcg IMX_LPCG_CLK_4>,
+                        <&pciea_lpcg IMX_LPCG_CLK_5>;
                clock-names = "dbi", "mstr", "slv";
                bus-range = <0x00 0xff>;
                device_type = "pci";
@@ -54,9 +54,9 @@
                interrupt-names = "msi";
                #address-cells = <3>;
                #size-cells = <2>;
-               clocks = <&pcieb_lpcg 2>,
-                        <&pcieb_lpcg 0>,
-                        <&pcieb_lpcg 1>;
+               clocks = <&pcieb_lpcg IMX_LPCG_CLK_6>,
+                        <&pcieb_lpcg IMX_LPCG_CLK_4>,
+                        <&pcieb_lpcg IMX_LPCG_CLK_5>;
                clock-names = "dbi", "mstr", "slv";
                bus-range = <0x00 0xff>;
                device_type = "pci";
@@ -76,8 +76,8 @@
                compatible = "fsl,imx8qm-ahci";
                reg = <0x5f020000 0x10000>;
                interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
-               clocks = <&sata_lpcg 0>,
-                        <&sata_crr4_lpcg 0>;
+               clocks = <&sata_lpcg IMX_LPCG_CLK_4>,
+                        <&sata_crr4_lpcg IMX_LPCG_CLK_4>;
                clock-names = "sata", "sata_ref";
                phy-names = "sata-phy", "cali-phy0", "cali-phy1";
                power-domains = <&pd IMX_SC_R_SATA_0>;