[PATCH v6 3/3] PCI: imx6: Add support for i.MX6 PCIe controller
Shawn Guo
shawn.guo at linaro.org
Tue Nov 26 02:26:01 EST 2013
On Tue, Nov 26, 2013 at 06:04:16AM +0000, Richard Zhu wrote:
> [Richard] Based on the tag " pci-v3.13-fixes-1" on pci git-repos, imx6 pcie had been tested on imx6 sabresd board.
>
> The pcie works after enable pcie support in imx6qdl-sabresd.dtsi file.
Great, thanks, Richard.
Shawn
>
> Patch:
> Author: Richard Zhu <r65037 at freescale.com>
> Date: Tue Nov 26 13:29:24 2013 +0800
>
> pcie: imx6: enable pcie on imx6qdl sabresd board
>
> Add pcie device tree node into imx6qdl dts file,
> enable pcie on imx6qdl sabresd board
>
> Signed-off-by: Richard Zhu <r65037 at freescale.com>
>
> diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
> index e75e11b..b821f87 100644
> --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
> @@ -212,6 +212,12 @@
> };
> };
>
> +&pcie {
> + power-on-gpio = <&gpio3 19 0>;
> + reset-gpio = <&gpio7 12 0>;
> + status = "okay";
> +};
> +
> &pwm1 {
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_pwm0_1>;
>
> LOGs when e1000e nic is used:
> uname -a
> Linux freescale 3.12.0+ #49 SMP Tue Nov 26 13:26:03 CST 2013 armv7l GNU/Linux
> root at freescale ~$ lspci -v
> 00:00.0 PCI bridge: Unknown device 16c3:abcd (rev 01) (prog-if 00 [Normal decode])
> Flags: bus master, fast devsel, latency 0
> Memory at 01000000 (32-bit, non-prefetchable) [size=1M]
> Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
> I/O behind bridge: 00001000-00001fff
> Memory behind bridge: 01100000-011fffff
> Prefetchable memory behind bridge: 01200000-012fffff
> [virtual] Expansion ROM at 01300000 [disabled] [size=64K]
> Capabilities: [40] Power Management version 3
> Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable-
> Capabilities: [70] Express Root Port (Slot-) IRQ 0
> Capabilities: [100] Advanced Error Reporting
> Capabilities: [140] Virtual Channel
>
> 01:00.0 Ethernet controller: Intel Corporation Unknown device 10d3
> Subsystem: Intel Corporation Unknown device a01f
> Flags: bus master, fast devsel, latency 0, IRQ 155
> Memory at 01180000 (32-bit, non-prefetchable) [size=128K]
> Memory at 01100000 (32-bit, non-prefetchable) [size=512K]
> I/O ports at 1000 [disabled] [size=32]
> Memory at 011a0000 (32-bit, non-prefetchable) [size=16K]
> [virtual] Expansion ROM at 01200000 [disabled] [size=256K]
> Capabilities: [c8] Power Management version 2
> Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
> Capabilities: [e0] Express Endpoint IRQ 0
> Capabilities: [a0] MSI-X: Enable- Mask- TabSize=5
> Capabilities: [100] Advanced Error Reporting
> Capabilities: [140] Device Serial Number 8b-18-3a-ff-ff-21-1b-00
> > >
> <...>
> >
> > Best Regards
> > Richard Zhu
>
> [Richard]
> Best Regards
> Richard Zhu
>
>
More information about the linux-arm-kernel
mailing list