summaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/mt7621.dtsi
Commit message (Collapse)AuthorAgeFilesLines
* ramips: improve interrupt mappingNeilBrown2018-05-141-4/+5
| | | | | | | | | | | | | | As the Interrupts for the PCI adapters are listed in devicetree we shouldn't need to have them explicit in the code. The simplest way to do this is to use of_irq_parse_and_map_pci() and specify an interrupt-map which identifies the different PCI hosts by bus/slot numbers. This has the advantage that the hwirq number are mapped to virq numbers for us, so the ugly hack can go. Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* ramips: implement hardware NAT offload for MT7621John Crispin2018-04-061-0/+10
| | | | | | | | | | Supports IPv4 flow offloading on MT7621 for Routing, SNAT and DNAT Supported are regular ethernet->ethernet connections, including one 802.1q VLAN and/or PPPoE encapsulation Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: mt7621: fix usb initRoman Yeryomin2018-02-221-0/+1
| | | | | | | | | | In 4.14 reg-names is required to identify resources. Otherwise init fails with: [ 5.900501] xhci-mtk 1e1c0000.xhci: invalid resource [ 5.910499] xhci-mtk: probe of 1e1c0000.xhci failed with error -22 Signed-off-by: Roman Yeryomin <roman@advem.lv>
* ramips: fix missing mediatek wdtKevin Darbyshire-Bryant2017-09-221-1/+1
| | | | | | | | | | | | | | | mediatek MT7621 soc watchdog DTS id was renamed from "mtk,mt7621-wdt" to "mediatek,mt7621-wdt" when driver upstreamed to kernel 4.5 Update mt7621.dtsi & mt7628an.dtsi definitions to match upstreamed kernel. Restores hardward watchdog functionality on mt7621 devices under linux 4.9 Tested on: MIR3G Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* ralink: fix rcu_sched stalls on mt7621John Crispin2017-07-261-0/+13
| | | | | | | | there were 2 bugs *) core1 came up with a bad bogo mips, looks like the clock needed time to stabilize *) HPT frequency was not set making r4k timers not come up properly Signed-off-by: John Crispin <john@phrozen.org>
* ramips: cleanup dts files of mt7621 based boardsMathias Kresin2016-11-231-11/+5
| | | | | | | | | | | | | | | | | | | | Fix a typo in mt7621.dtsi compatible string. Disable spi, sdhci and pci in mt7621.dtsi and enable the nodes in the indiviual board dts files. The nodes require further device specific configuration anyway. Remove the m25p80@0 spi child node from mt7621.dtsi and add the chunked-io parameter to the individual board dts files. Fix the spi flash compatible string for the WNDR3700V5. Drop the mt7621-eval-board compatible string for all boards which are not the eval board. Drop the linux,modalias parameter from spi flash node. Remove the xhci node from board files, it is already enabled in dtsi. Disable xhci for boards not having usb ports populated. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: update i2s dtsi filesMichael Lee2016-06-131-0/+22
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: update i2c dtsi filesMichael Lee2016-06-131-7/+25
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: add gdma hsdma dts infoMichael Lee2016-06-131-0/+34
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: fix size-cells on spi nodesÁlvaro Fernández Rojas2016-05-181-1/+1
| | | | | | size-cells should be 0 in order to avoid dummy values in reg properties. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* ramips: DTS modificationsStanislav Galabov2016-05-121-0/+11
| | | | | | | | | | | | | | This commit makes the following modifications to ramips dts files: 1. Add clkctrl node to all dtsi files (although not used for now) 2. Add clocks and clock-names properties to some nodes (usbphy, pci) 3. Add usbphy node for rt3050 (although not used for now) 4. Add clock-frequency to uart nodes in mt7621.dtsi and mt7628an.dtsi These modifications, although not fully used at the moment, will make it easier for FreeBSD to adopt and use LEDE ramips dts files with minimal changes for easier maintenance. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: DTS reworkStanislav Galabov2016-05-121-13/+13
| | | | | | | | Add node aliases to dtsi files. Reword dts files so they're more in-line with upstream. Fix some more warnings and errors reported by dtc Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: Add hex prefix (0x) to dtsi reg properties where needed.Stanislav Galabov2016-05-101-3/+3
| | | | Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: introduce serial0 aliasesStanislav Galabov2016-05-101-1/+5
| | | | | | | This patch introduces serial0 aliases in the ramips DTS files, which can then be used to denote the active console instead of relying on bootargs. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: add linux 4.4 support, update mt7621 subtarget to 4.4Felix Fietkau2016-03-071-2/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48951
* ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devicesFelix Fietkau2015-12-191-0/+2
| | | | | | | | Enable it from .dts files that need it, also remove redundant properties Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47936
* ralink: fixup devicetree files to work with new ethernet driverJohn Crispin2015-12-171-3/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47900
* ramips: move partition definitions out of mt7621.dtsi fileJohn Crispin2015-12-121-20/+0
| | | | | | | | | Partitions defined in parent dtsi cannot be undefined in children. This moves partitions defined in mt7621.dtsi into board's device tree. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> SVN-Revision: 47876
* ramips: use gic timer as clocksource for mt7621John Crispin2015-12-121-0/+26
| | | | | | | | | | * Switches clocksource to gic timer. * Moves frequency definitions to dtsi since frequency was hardcoded anyway Will work on proper frequency detection later. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> SVN-Revision: 47875
* Revert "ramips: use gic timer as clocksource for mt7621"Felix Fietkau2015-12-111-14/+0
| | | | | | This reverts commit 270a2afcc544ca14e79198346e7e186033472ae7. SVN-Revision: 47872
* ramips: use gic timer as clocksource for mt7621John Crispin2015-12-111-0/+14
| | | | | | | | | | * Switches clocksource to gic timer. * Moves frequency definitions to dtsi since frequency was hardcoded anyway Will work on proper frequency detection later. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> SVN-Revision: 47843
* ramips: enable CPS for mt7621John Crispin2015-12-111-1/+1
| | | | | | | | | | | | | Enables CPS multiprocessing instead ob obsoleted CMP for mt7621. This patch fixes a few issues currently existing on 4.3 kernel with at least ubnt-erx: * iperf shows only 50Mbits on direct gigabit connection to desktop, * ping times jump to 5-6ms to dorectly connected desktop * /proc/interrupts shows spurious interrups (ERR) Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> SVN-Revision: 47842
* ramips: mt7621: use symbolic names of gic interrupt settingsJohn Crispin2015-12-111-8/+20
| | | | | | | | This also adds dts nodes for cpc and mc for documentation purposes Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> SVN-Revision: 47836
* ralink: bump to the target to v4.3John Crispin2015-12-101-14/+18
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47831
* ramips: fix size-cells for spi nodesJohn Crispin2015-10-051-1/+1
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 47119
* ramips: Fix pinmux functions for MT7621John Crispin2015-09-161-7/+7
| | | | | | | | | The pinctrl-rt2880 code doesn't support multiple functions with the same name. This will result in a incorrect pinmux configuration. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> SVN-Revision: 46963
* ramips: fix indentation and other mistakes in .dts{, i} filesJohn Crispin2015-08-171-2/+18
| | | | | | | | | | | | | | | | | | | | The following patch fixes: * wrong indentations * doubled gpio-keys-polled nodes (DIR-300-B7, DIR-320-B1, DIR-610-A1) * duplicate spacings * empty lines at end of files and after last child nodes * trailing and leading whitespace * unnecessary and commented-out code * missing empty lines between nodes and between properties and nodes * unnecessary empty lines between nodes properties [1] in .dts{,i} files, for ramips target. [1] Some of empty lines in SOCs dtsi files were left untouched, because they seem to be there for a reason (readability?). Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46613
* ralink: fix mt7621 i2c nameJohn Crispin2015-03-171-2/+2
| | | | | | Signed-off-by: zouxf <fl.service@t-firefly.com> SVN-Revision: 44868
* ralink: add ethernet fe and esw reset control bitFelix Fietkau2015-01-181-0/+3
| | | | | | Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44042
* ramips: register mt7621 pcie through device treeFelix Fietkau2015-01-171-0/+49
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44009
* ramips: on mt7621 only enable xhci for the eval board (still needs patch ↵Felix Fietkau2015-01-031-0/+2
| | | | | | | | cleanup to take effect) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43815
* ramips: rework and fix m25p80 chunked-io supportFelix Fietkau2015-01-021-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43808
* ralink: remove partitoon map from mt7621.dtsiJohn Crispin2014-12-151-31/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43720
* ralink: mt7621 is a 1004KcJohn Crispin2014-12-031-1/+5
| | | | | | Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 43514
* ralink: few updates tot he sdhci probe codeJohn Crispin2014-11-151-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43275
* ralink: update pcie driver to load ranges from dtsJohn Crispin2014-11-141-3/+81
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43249
* ralink: fix up dts for mt7621 eval boardJohn Crispin2014-11-121-24/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43238
* ralink: add support for mt7628John Crispin2014-11-061-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43197
* ralink: refresh patchesJohn Crispin2014-03-181-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39949
* ralink: add mt7621 supportJohn Crispin2013-12-131-0/+245
there are still various missing pieces for full support. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39040