aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621.dtsi
Commit message (Collapse)AuthorAgeFilesLines
* ramips: mt7621: backport more pcie driver fixesChuanhong Guo2020-04-181-5/+4
| | | | Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* ramips: mt7621: add new NAND driverDENG Qingfang2020-04-041-2/+12
| | | | | | Add new NAND driver for MT7621 Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* ramips: mt7621: update PCIe node in dtsiDENG Qingfang2020-04-041-14/+29
| | | | | | Update PCIe node in dtsi to match the new driver Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* ramips: mt7621: update pinctrl nodesDENG Qingfang2020-04-041-24/+24
| | | | | | Upstream GPIO driver uses "groups" "function" properties Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* ramips: mt7621: replace gpio/eth nodes in mt7621.dtsiDENG Qingfang2020-04-041-42/+94
| | | | | | | There's different gpio and ethernet drivers upstream for mt7621. Update these two nodes to match upstream dt bindings. Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
* ramips: fix whitespace issues in DTS filesAdrian Schmutzler2019-10-211-2/+0
| | | | | | | | | This is the result of grepping/searching for several common whitespace issues like double empty lines, leading spaces, etc. This patch fixes them for the ramips target. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ramips: mt7621: add IRQ for GPIO nodeChuanhong Guo2019-06-261-0/+3
| | | | | | This makes interrupt-based gpio-keys working. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* ramips: fix MT7621 dtsiDeng Qingfang2018-12-291-2/+38
| | | | | | | Fix SysTick reg Add uartlite2 and uartlite3 nodes Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
* ramips: fix dtc compiler warningsMathias Kresin2018-12-061-4/+4
| | | | | | | | | | | | | | | | | The latest dtc compiler considers nodes named i2c or spi as the respective bus: /pinctrl/i2c: incorrect #address-cells for I2C bus /pinctrl/spi: incorrect #address-cells for SPI bus Rename the node to fix the false positives. Fix the spi node unit address for the DWR-512-B and UBNT-ER-e50 to get rid of the following warning: SPI bus unit address format error, expected "n" Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix some clocks in mt7621.dtsiWeijie Gao2018-11-261-11/+2
| | | | | | | As the cpu clock calculation has been fixed, the clock for gic and spi should be also fixed. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* ramips: fix cpu clock of mt7621 and add dt clk devicesWeijie Gao2018-11-261-0/+8
| | | | | | | | | | For a long time the mt7621 uses a fixed cpu clock which causes a problem if the cpu frequency is not 880MHz. This patch fixes the cpu clock calculation and adds the cpu/bus clkdev which will be used in dts. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* ramips: fix register range of memc node in mt7621.dtsiWeijie Gao2018-11-261-1/+1
| | | | | | | The memc node from mt7621.dtsi has incorrect register resource. Fix it according to the programming guide. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* ramips: set usb led trigger via devicetreeMathias Kresin2018-10-071-0/+21
| | | | | | | | | | Assign the usbdev trigger via devicetree for all subtargets and drop the userspace handling of the usb leds. With the change all usb ports are triggering the usb led instead of only usb 1.1 XOR usb 2.0 XOR usb 3.0 as it was before. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add mt7620/1 sdhci pinmuxMathias Kresin2018-09-061-0/+3
| | | | | | | Set the pins to the required mode via the pinmux driver. It allows to get rid of the pinmux related code in the sd card driver. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: fix some cosmetic glitches in dts filesPaul Wassi2018-08-271-1/+1
| | | | | | | | | | | - fix single spaces hidden by a tab - replace indentation with spaces by tabs - make empty lines empty - drop trailing whitespace - drop unnecessary blank lines Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ramips: move partitions into partition table nodeAlex Maclean2018-08-041-2/+0
| | | | | | | | Starting with kernel 4.4, the use of partitions as direct subnodes of the mtd device is discouraged and only supported for backward compatiblity reasons. Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ramips: fix whitespace and comment issues in dtsMathias Kresin2018-08-041-4/+4
| | | | | | | | Fix space vs. tabs issue and trainling whitespaces. Use C style comments or drop the comments if they explain what is already to see in the devicetree parameters. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix hnat dtc warningMathias Kresin2018-08-041-11/+11
| | | | | | | | | | The hardware NAT node has the same reg/unit as the ethernet node. One of them need to be a child of the other. Make the hardware NAT node a child of the ethernet node since the it "reference" the netdev in its properties. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix pci/pcie related dtc warningsMathias Kresin2018-08-041-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the ranges property to the PCI bridges where missing. Add the unit address to PCI bridge where missing. Rework the complete rt3883 pci node. Drop the PCI unit nodes from the dtsi. They are not used by any dts file and should be rather in the dts than in the SoC dtsi. Express the PCI-PCI bridge in a clean devicetree syntax. The ralink,pci-slot isn't used by any driver, drop it. Move the pci interrupt controller out of the pci node. It doesn't share the same reg and therefore should be an independent/SoC child node. Move the pci related rt3883 pinctrl setting to the dtsi instead of defining the very same for each rt3883 board. If the device_type property is used for PCI units, the unit is treated as pci bridge which it isn't. Drop it for PCI units. Reference pci-bridges or the pci node defined in the dtsi instead of recreating the whole node hierarchy. It allows to change the referenced node in the dtsi without the need to touch all dts. Fix the PCI(e) wireless unit addresses. All our PCI(e) wireless chips are the first device on the bus. The unit address has to be the bus address instead of the PCI vendor/device id. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix cpu related dtc warningsMathias Kresin2018-08-041-2/+2
| | | | | | We need a reg property if we are using a unit address. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: mt7621: Fix some cosmetic DTC warningsRosen Penev2018-06-081-9/+10
| | | | | | | | | | | | | | | | Node /cpus/cpu@0 has a unit name, but no reg property Node /cpus/cpu@1 has a unit name, but no reg property Node /cpuintc@0 has a unit name, but no reg property Node /cpuclock@0 has a unit name, but no reg property Node /sysclock@0 has a unit name, but no reg property Node /pcie@1e140000/pcie0 missing ranges for PCI bridge (or not a bridge) Node /pcie@1e140000/pcie0 missing bus-range for PCI bridge Node /pcie@1e140000/pcie1 missing ranges for PCI bridge (or not a bridge) Node /pcie@1e140000/pcie1 missing bus-range for PCI bridge Node /pcie@1e140000/pcie2 missing ranges for PCI bridge (or not a bridge) Node /pcie@1e140000/pcie2 missing bus-range for PCI bridge Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Revert "ramips: improve interrupt mapping"John Crispin2018-06-011-5/+4
| | | | | | This reverts commit 5f7396ebef09b224edf08b0bda113613a42f0928. Signed-off-by: John Crispin <john@phrozen.org>
* 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