]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MLK-10203-2 arm: pcie: enable imx6qdl pcie support
authorRichard Zhu <Richard.Zhu@freescale.com>
Thu, 5 Feb 2015 08:17:00 +0000 (16:17 +0800)
committerRichard Zhu <Richard.Zhu@freescale.com>
Wed, 11 Feb 2015 07:19:49 +0000 (15:19 +0800)
enable imx6qdl pcie support on imx_3.14 kernel

Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
(cherry picked from commit 87326992bc29c36abdd3c8a23f8766cfa136ab37)

arch/arm/boot/dts/imx6qdl-sabresd.dtsi
arch/arm/boot/dts/imx6qdl.dtsi

index a74362bfc77482ea71029197a97021d25372feb2..9cf7652ee7941680916a6a351df546aba98b5aa5 100644 (file)
        status = "okay";
 };
 
        status = "okay";
 };
 
+&pcie {
+       power-on-gpio = <&gpio3 19 0>;
+       reset-gpio = <&gpio7 12 0>;
+       status = "okay";
+};
+
 &pwm1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm1>;
 &pwm1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm1>;
index c3a0c807de7792aaf9cdf301468709c6135e98f2..ab73d832c26825cba320d0cd7e2a5ef6281ae504 100644 (file)
 
                pcie: pcie@0x01000000 {
                        compatible = "fsl,imx6q-pcie", "snps,dw-pcie";
 
                pcie: pcie@0x01000000 {
                        compatible = "fsl,imx6q-pcie", "snps,dw-pcie";
-                       reg = <0x01ffc000 0x4000>; /* DBI */
+                       reg = <0x01ffc000 0x4000>, <0x01f00000 0x80000>;
+                       reg-names = "dbi", "config";
                        #address-cells = <3>;
                        #size-cells = <2>;
                        device_type = "pci";
                        #address-cells = <3>;
                        #size-cells = <2>;
                        device_type = "pci";
-                       ranges = <0x00000800 0 0x01f00000 0x01f00000 0 0x00080000 /* configuration space */
-                                 0x81000000 0 0          0x01f80000 0 0x00010000 /* downstream I/O */
+                       ranges = <0x81000000 0 0          0x01f80000 0 0x00010000 /* downstream I/O */
                                  0x82000000 0 0x01000000 0x01000000 0 0x00f00000>; /* non-prefetchable memory */
                        num-lanes = <1>;
                                  0x82000000 0 0x01000000 0x01000000 0 0x00f00000>; /* non-prefetchable memory */
                        num-lanes = <1>;
-                       interrupts = <0 123 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clks IMX6QDL_CLK_PCIE_REF_125M>, <&clks IMX6QDL_CLK_SATA_REF_100M>,
+                       interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "msi";
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0 0 0 0x7>;
+                       interrupt-map = <0 0 0 1 &intc 0 123 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0 0 0 2 &intc 0 122 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0 0 0 3 &intc 0 121 IRQ_TYPE_LEVEL_HIGH>,
+                                       <0 0 0 4 &intc 0 120 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clks IMX6QDL_CLK_PCIE_REF_125M>,
+                                <&clks IMX6QDL_CLK_SATA_REF_100M>,
                                 <&clks IMX6QDL_CLK_LVDS1_GATE>, <&clks IMX6QDL_CLK_PCIE_AXI>;
                                 <&clks IMX6QDL_CLK_LVDS1_GATE>, <&clks IMX6QDL_CLK_PCIE_AXI>;
-                       clock-names = "pcie_ref_125m", "sata_ref_100m", "lvds_gate", "pcie_axi";
+                       clock-names = "pcie_phy", "ref_100m", "pcie_bus", "pcie";
                        status = "disabled";
                };
 
                        status = "disabled";
                };