diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-17 16:50:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-17 16:50:51 +0000 |
commit | 895884d601e2ae5c8dee70d283cdc960e1063028 (patch) | |
tree | a77f42f5a40dbe510316402ec7ef0716e36360ef /target/linux/ramips/dts | |
parent | 902b6f81d693b124a5a9ae7d12cbb89e7af27139 (diff) | |
download | upstream-895884d601e2ae5c8dee70d283cdc960e1063028.tar.gz upstream-895884d601e2ae5c8dee70d283cdc960e1063028.tar.bz2 upstream-895884d601e2ae5c8dee70d283cdc960e1063028.zip |
ramips: register mt7621 pcie through device tree
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44009 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621.dtsi | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index cadb1187e3..a36c2b7711 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -274,4 +274,53 @@ interrupt-parent = <&gic>; interrupts = <23>; }; + + pcie@1e140000 { + compatible = "mediatek,mt7621-pci"; + reg = <0x1e140000 0x100 + 0x1e142000 0x100>; + + #address-cells = <3>; + #size-cells = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie_pins>; + + device_type = "pci"; + + bus-range = <0 255>; + ranges = < + 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */ + 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */ + >; + + status = "okay"; + + pcie0 { + reg = <0x0000 0 0 0 0>; + + #address-cells = <3>; + #size-cells = <2>; + + device_type = "pci"; + }; + + pcie1 { + reg = <0x0800 0 0 0 0>; + + #address-cells = <3>; + #size-cells = <2>; + + device_type = "pci"; + }; + + pcie2 { + reg = <0x1000 0 0 0 0>; + + #address-cells = <3>; + #size-cells = <2>; + + device_type = "pci"; + }; + }; }; |