diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-05-10 11:47:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-10 11:47:09 +0000 |
commit | 11551d3e653cba1728517bc58b216d29a55b17e0 (patch) | |
tree | 005f27670f433eb1d8c55382be156b6c22658cbb /target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch | |
parent | c6c8c1b3576f09708151b67d228fe20c77a4a1e3 (diff) | |
download | upstream-11551d3e653cba1728517bc58b216d29a55b17e0.tar.gz upstream-11551d3e653cba1728517bc58b216d29a55b17e0.tar.bz2 upstream-11551d3e653cba1728517bc58b216d29a55b17e0.zip |
ipq806x: add pcie support to ipq806x based platforms
This change adds PCIe support to IPQ806x based platforms. The driver is
actually cherry-picked from the following LKML thread:
*https://lwn.net/Articles/643086/ (patches 110-111)
We also add here an additional fix to support multiple PCI controllers
on the same platform (patch 112), and to patch the ap148 & dbs149 DTS
files (patch 113).
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45663 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch')
-rw-r--r-- | target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch b/target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch index 348f24b921..fe670cf99e 100644 --- a/target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch +++ b/target/linux/ipq806x/patches-3.18/700-add-gmac-dts-suport.patch @@ -16,7 +16,7 @@ i2c4_pins: i2c4_pinmux { pins = "gpio12", "gpio13"; function = "gsbi4"; -@@ -38,6 +45,25 @@ +@@ -54,6 +61,25 @@ bias-none; }; }; @@ -42,7 +42,7 @@ }; gsbi@16300000 { -@@ -76,6 +102,7 @@ +@@ -92,6 +118,7 @@ #size-cells = <1>; spi-max-frequency = <50000000>; reg = <0>; @@ -50,9 +50,9 @@ partition@0 { label = "lowlevel_init"; -@@ -136,5 +163,66 @@ - usb30@1 { - status = "ok"; +@@ -166,5 +193,66 @@ + pinctrl-0 = <&pcie2_pins>; + pinctrl-names = "default"; }; + + mdio0: mdio { @@ -119,18 +119,19 @@ }; --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi -@@ -3,6 +3,7 @@ - #include "skeleton.dtsi" +@@ -4,6 +4,7 @@ #include <dt-bindings/clock/qcom,gcc-ipq806x.h> #include <dt-bindings/soc/qcom,gsbi.h> + #include <dt-bindings/reset/qcom,gcc-ipq806x.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> / { model = "Qualcomm IPQ8064"; -@@ -390,5 +391,41 @@ +@@ -513,5 +514,42 @@ + dr_mode = "host"; }; }; - ++ + nss-gmac-common { + reg = <0x03000000 0x0000FFFF 0x1bb00000 0x0000FFFF 0x00900000 0x00004000>; + reg-names = "nss_reg_base" , "qsgmii_reg_base", "clk_ctl_base"; |