aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devicesFelix Fietkau2015-12-193-12/+4
| | | | | | | | Enable it from .dts files that need it, also remove redundant properties Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47936 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 ↵Felix Fietkau2015-12-1894-94/+94
| | | | | | | | to fix probe issues Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: update the mt7621 ethernet support patchJohn Crispin2015-12-171-19/+21
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47929 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: fix error message when initramfs is too largeJohn Crispin2015-12-171-1/+1
| | | | | | Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47908 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: remove unwanted change from patchJohn Crispin2015-12-171-11/+0
| | | | | | | | Remove unwanted change to irq-mips-gic.c from mt7621 support patch Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47907 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: change CM_GCR_BASE_CMDEFTGT_MEM value to match datasheetJohn Crispin2015-12-171-0/+12
| | | | | | | | | | Zero config value for default memory region means 'memory', not not 'disabled' according to 'Control Registers Of The Coherency Manager' manual. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47906 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: undo mips-cm probe hack to not wipe out memory regionsJohn Crispin2015-12-171-0/+20
| | | | | | | | | | Since now we hopefully setup memory regions properly we no longer need this hack. Tested and works on ubnt-erx. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47905 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: setup memory region for pcie controller memoryJohn Crispin2015-12-171-0/+42
| | | | | | | | | Only compile tested since I do not have any hardware with devices on pcie bus. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47904 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: add patch to setup CM memory region for palmbusJohn Crispin2015-12-171-0/+36
| | | | | | | | This is tested and works on ubnt-erx. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47903 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: update config files to build the cleaned up ethernet driverJohn Crispin2015-12-177-28/+37
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47902 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: drop dummy profile from mt7688John Crispin2015-12-172-14/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47901 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fixup devicetree files to work with new ethernet driverJohn Crispin2015-12-17139-176/+190
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47900 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: drop old ethernet driverJohn Crispin2015-12-1721-6842/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47899 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add reworked ethernet driverJohn Crispin2015-12-1717-24/+7877
| | | | | | | | update to the version of the driver that is on its way upstream Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47898 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add missing kernel symbolsJohn Crispin2015-12-126-0/+6
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47884 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX)John Crispin2015-12-127-2/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This router is based on MT7621 SoC, no wifi, no usb, nand. Works: * Boots. * Ethernet. * Switch. * Button (reset). * Flashing OpenWrt from stock firmware. * Upgrading OpenWrt. Doesn't work: * No GPIO leds. All leds are controlled by switch, but stock firmware was able to control them. * SoC has crypto engine but no open driver. * SoC has nat acceleration, but no open driver. * This router has 2MB spi flash soldered in but MT nand/spi drivers do not support pin sharing, so it is not accessable and disabled. Stock firmware could read it and it was empty. * PoE out. Router has serial pins populated. If looking at the top of the router, then counting from Eth sockets pins go as: 'GND, RX, TX, GND'. 3.3v, 57600. U-boot bootloader supports tftpboot, controlled from serial. This router has two kernel partitions: 'live' and 'backup'. They are swapped during flashing (on both stock and OpenWrt). Active partition is controlled by a flag in a factory partition. U-boot has custom command to switch active kernel partition. Kernel partitions are 'bare flash' 3MB. Stock bootloader has no UBI support. Stock rootfs is UBIFS. Flashing procedure. Stock firmware uses custom kernel patch to mount squashfs from a file that is located on UBIFS volume. This makes wiping out this volume from within stock firmware difficult. Instead this patch builds image that is flashable by stock firmware and contains initrams image (with minimal set of packages to fit into kernel partition). Once this is flashed one can reboot into initramfs OpenWrt and use sysupgrade to flash OpenWrt including rootfs into nand. Note: factory image is only built if initramfs image is enabled. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47881 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Spansion S34ML0[24]G2 flashJohn Crispin2015-12-121-0/+43
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47880 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: remove stray "+" from ethernet driverJohn Crispin2015-12-121-1/+1
| | | | | | | | this is what you get if you manually apply patches with c&p Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47877 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: move partition definitions out of mt7621.dtsi fileJohn Crispin2015-12-122-20/+22
| | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47876 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use gic timer as clocksource for mt7621John Crispin2015-12-123-0/+112
| | | | | | | | | | * 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47875 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Revert "ramips: use gic timer as clocksource for mt7621"Felix Fietkau2015-12-113-101/+0
| | | | | | This reverts commit 270a2afcc544ca14e79198346e7e186033472ae7. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47872 3c298f89-4303-0410-b956-a3cf2f4a3e73
* all: drop old uci-defaults.shJo-Philipp Wich2015-12-112-2/+2
| | | | | | | | | Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one and update all users accordingly. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47867 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add additional support for MQmaker WiTi boardJohn Crispin2015-12-117-1/+178
| | | | | | | | | | | | | | The board is based on mt7621AT cpu, and has 16mb nor flash, 256mb of ram, 2 sata ports, microsd card slot, 1 USB 3.0 port and at least one 2.4 and one 5 ghz antenna. This is the 6th submission that adds support for XHCI in the device tree file, along with switching the location of the 2 radio's and addition of the kmod-i2c-mt7621 in the default packages of the profile. Signed-off-by: Sebastian Careba <nitroshift@yahoo.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47845 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix support for PBR-M1 boardJohn Crispin2015-12-113-22/+61
| | | | | | | | | | The PBR-M1 support in current OpenWrt is for the early demo board and it doesn't work on the final board.This patch fixes the support for it. The LED called pbr-m1:buzzer is a beeper connected to GPIO26 so I used gpio-beeper instead of gpio-leds. Signed-off-by: 郭传鈜 <gch981213@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47844 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use gic timer as clocksource for mt7621John Crispin2015-12-113-0/+101
| | | | | | | | | | * 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47843 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enable CPS for mt7621John Crispin2015-12-113-123/+21
| | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47842 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: irq handlers do not get irq in 4.3 kernel, update patchesJohn Crispin2015-12-112-29/+4
| | | | | | | | | | | This resolves compilation warnings like this: drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_probe': drivers/gpio/gpio-mt7621.c:328:46: warning: passing argument 2 of 'irq_set_chained_handler' from incompatible pointer type [-Wincompatible-pointer-types] irq_set_chained_handler(mediatek_gpio_irq, mediatek_gpio_irq_handler); Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47841 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Fix CM_GCR_CPC_BASE_CPCBASE_{MSK, SHF} valuesJohn Crispin2015-12-111-0/+13
| | | | | | | | Update CM_GCR_CPC_BASE_CPCBASE_{MSK,SHF} to match datasheet Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47840 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fold gic patch into mt7621 support patchJohn Crispin2015-12-112-571/+23
| | | | | | | | All gic patch was doing is removing code added by mt7621 support patch. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47839 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: backport series of patches that ensure GCRs of other CPUs are ↵John Crispin2015-12-113-0/+269
| | | | | | | | accessed properly Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47838 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: backport batch fixing illegal instruction when booting secodnary ↵John Crispin2015-12-111-0/+53
| | | | | | | | CPUs in CPS mode Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: mt7621: use symbolic names of gic interrupt settingsJohn Crispin2015-12-1111-18/+30
| | | | | | | | This also adds dts nodes for cpc and mc for documentation purposes Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47836 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: bump to the target to v4.3John Crispin2015-12-10104-5437/+3943
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47831 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: fix arch used during dts compilationFelix Fietkau2015-12-101-1/+1
| | | | | | | | | Use kernel arch for dts compilation. Also use Image/BuildDTB to build dts for ramips. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47823 3c298f89-4303-0410-b956-a3cf2f4a3e73
* all: remove dummy ucidef_set_interface_loopback() from board.dJo-Philipp Wich2015-12-031-2/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47744 3c298f89-4303-0410-b956-a3cf2f4a3e73
* board.d: remove redundant ucidef_set_interfaces_lan_wan() callsJo-Philipp Wich2015-12-031-19/+0
| | | | | | | | | | This removes calls to ucidef_set_interfaces_lan_wan() and ucidef_set_interfaces_lan() on boards where all relevant info can be inferred from the switch definition. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47722 3c298f89-4303-0410-b956-a3cf2f4a3e73
* board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()Jo-Philipp Wich2015-12-031-40/+20
| | | | | | | | | | | | This changes uci-defaults-new.sh, config_generate and all relevant board.d files in order combine ucidef_add_switch() and ucidef_add_switch_ports() into a single function. Also removes now superfluous enable and reset arguments. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47721 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()Jo-Philipp Wich2015-12-031-2/+4
| | | | | | | | | | | | | | | Out of 69 switch definitions, only 3 pass something different than "1" as values for reset and enable, with one of those three being invalid. This change ... * removes the reset and enable arguments from ucidef_add_switch() * unconditionally writes reset:1 and enable:1 to JSON * converts the three users of nonstandard values to ucidef_add_switch_attr() Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: switch ucidef_add_switch_vlan() to ucidef_add_switch_ports()Jo-Philipp Wich2015-12-031-38/+41
| | | | | | | | | | This migrates the final board.d user of ucidef_add_switch_vlan() to the new ucidef_add_switch_ports() approach, fixing some logic errors for a few boards along the way. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47717 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: remove duplicate patchJohn Crispin2015-11-281-30/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47670 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: adapt VoCore to new second spi device codeJohn Crispin2015-11-283-70/+66
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47667 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add second SPI clocksJohn Crispin2015-11-281-0/+30
| | | | | | | | These clocks were missing in the changes introduced in r47573-47580 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47666 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()Jo-Philipp Wich2015-11-261-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47657 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: renable nand supportJohn Crispin2015-11-241-0/+1
| | | | | | | | CONFIG_MTK_MTD_NAND was incorrectly disabled by r47619. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47640 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix typo in image makefile (#18712)Felix Fietkau2015-11-241-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47627 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for netis WF-2881John Crispin2015-11-2410-4/+198
| | | | | | | | | | | | | | | | | | | | | | | | | netis WF-2881 is an MT7621AT based router with MT7602EN, MT7612EN. It has 128MB DDR3, 128MB SLC NAND FLASH, 5-port Gbps switch and 1x USB 3.0. The following patch adds support for this device. this device only works on top of UBI. Tested and working: * ethernet * both WiFi radios * USB 3.0 * buttons (reset button) * ethernet switch and USB diag LEDs * UART * GPIOs * sysupgrade Tested and not working * failsafe Signed-off-by: YounJae Rho <luxflow@live.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47619 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for Youku YK1John Crispin2015-11-246-2/+141
| | | | | | | | | Changes since V1: I resend this patch for current trunk.The former V1 patch is for CC branch. Signed-off-by: Shonn Lu <countrysideboy@qq.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47617 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add second spi master sysclkJohn Crispin2015-11-241-0/+30
| | | | | | | | for mt7620, rt3883 and rt5350 Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47616 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: update dtsi files to support second spi deviceJohn Crispin2015-11-227-380/+143
| | | | | | Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47580 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use transfer_one instead of transfer_one_message on rt2880 spiJohn Crispin2015-11-221-65/+62
| | | | | | | | | | | | * use kernel buildin transfer_one_message. we only need to implement transfer_one and set_cs function * should support use gpio as cs pin * deselected the spi device when setup and add debug info * only reset device when first driver probe Signed-off-by: Michael Lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47579 3c298f89-4303-0410-b956-a3cf2f4a3e73