Commit Graph

1297 Commits (796a2d032b723edb40d6f9368877416c6b4ffdde)

Author SHA1 Message Date
Felix Fietkau d9857f5468 ramips: Enable RTC support for PBR-M1
The PBR-M1 and other upcoming MT7621 boards have RTC chips on them. The
PBR-M1 also selects the kmod-rtc-pcf8563 by default. But the module itself
will not be build because CONFIG_RTC_CLASS is currently not enabled for its
kernel.

Enabling this option should fix the problem of the missing rtc device on
these boards.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46857
9 years ago
Jonas Gorski 7d6cff4882 kernel: update 3.18 to 3.18.21
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46768
9 years ago
Felix Fietkau 7747092ed1 ramips: fix devicetree corruption with some boot loaders if the caches are not ready at boot
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46766
9 years ago
Jonas Gorski efb2c403cf ramips: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46759
9 years ago
John Crispin 402c2d008b ramips: move patches around
0073 needs to applied afert 0102

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46667
9 years ago
John Crispin 0f155a330e ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts
Instead of using board name provided explicitly as text in LED name, ex.:

[...]
mlwg2)
	status_led="mlwg2:blue:system"
[...]

use $board variable, which allows to combine together multiple boards with same color and LED names, ex:

[...]
mlw221|\
mlwg2)
	status_led="$board:blue:system"
[...]

The above approach allows to shrink size of code in base-files/etc/board.d/01_leds and base-files/etc/diag.sh scripts dramatically.
One thing to keep in mind here is that we assume to use proper and consistent LED naming scheme ("device:color:led-name").

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46665
9 years ago
John Crispin 1a392636a5 ramips: use consistent naming scheme for LEDs
The upstream LED naming convention is "device:color:led-name", but it seems that many of supported boards in OpenWrt don't follow this approach.
The following patch fixes this inconsistency in dts{,i} files and updates base-files scripts for ramips target:
 * fixes wrong indentation
 * keeps case statements structure in same convention as in other scripts (no empty line after ";;", no indentation for case...esac body)
 * fixes wrong LED names for some of boards (makes them the same as in dts{,i} files)
 * combines boards with same configuration (ex. set_wifi_led "rt2800pci-phy0::radio" in 01_leds)

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46664
9 years ago
John Crispin eba4a143c6 ramips: reorder the sysupgrade script
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46660
9 years ago
John Crispin aa4c6e27b4 ramips: reorder patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46659
9 years ago
John Crispin 87df7da757 ramips: Fix MT7621 pinmux bits for uart3, uart2, mdio
The MT7621 uses a 2 bit wide configuration of the sdhci, spi, mdio, pcie,
wdt, uart2 and uart3 in the GPIO_MODE register. It was correctly done
for sdhci, spi, pcie and wdt, The same has to be done for uart3, uart2
and mdio.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46645
9 years ago
John Crispin 09851afd33 ramips: Fix amount of MT7621 pins controlled by spi group
The PINS conntrolled by the SPI bits in the GPIO_MODE register is always
7 and not 8 for nand mode.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46644
9 years ago
John Crispin 9ed654e389 ramips: Fix uart2/uart3 pinmux order on MT7621
The uart3 setting in GPIO_MODE register is before the uart2 setting. Also
don't mix uart2 and uart3 function/groups.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46643
9 years ago
John Crispin f32116987f ramips: remove unnecessary LED declaration for WT1520 in diag.sh
This device doesn't have defined LEDs in its dts file.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46635
9 years ago
John Crispin 2f0449419f ramips: fix indentation, case statements structure and optimize base-files/etc/board.d/02_network
The following patch:
 * fixes wrong indentation
 * combines together boards with same configuration
 * removes unnecessary spaces
 * removes empty lines after ";;" and uses only "|\" (for consistency)
 * orders boards alphabetically

in base-files/etc/board.d/02_network script.

One bug was left untouched: freestation5 board is listed twice in case statement, in ramips_setup_macs().

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46634
9 years ago
John Crispin 4069a8e49c ramips: be consistent with case statement in base-files/lib/upgrade/platform.sh
Always use "|\" (without spaces) and keep boards in alphabetical order.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46633
9 years ago
John Crispin a18b35a2f1 ramips: remove leading spaces, sort boards and optimize base-files/lib/ramips.sh
This patch:
 * fixes various mistakes (leading spaces, wrong or missing model names)
 * shortens model strings (we don't need to use whole model string from dts file, make it for consistency and as optimization)
 * sorts boards alphabetically

in base-files/lib/ramips.sh script.

Case statement was tested after above changes with simple script, which:
 * takes model string from dts{,i} file (model = "...")
 * provides this value as case input ($machine)
 * returns output ($name)

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46632
9 years ago
John Crispin 57e614c179 ramips: fix various mistakes in subtargets *.mk profiles
This patch:
 * fixes wrong indentation
 * fixes wrong names and descriptions (ex. Dlink -> D-Link)
 * changes filenames to manufacturer names
 * moves oem/unknown manufacturers boards to misc.mk profiles
 * combines profiles for boards from the same manufacturers in one file (ex. Olimex)
 * fix profile files structure (keep the same convention as in other targets, ex. ar71xx)

in various .mk profiles, in ramips target.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46631
9 years ago
John Crispin 0d464c360f ramips: remove old code for Edimax BR-6524N
It seems that support for Edimax BR-6524N was dropped long time ago (dts file for this device is missing).
This patch removes remaining code.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46630
9 years ago
John Crispin 2fe5cf2bd6 ramips: fix 7Links PX-4885 dts{, i}, board, image and profile names
The following patch changes 7Links PX-4885 dts{,i} filenames, board, image and profile names from "PX4885" to "PX-4885" (for consistency).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46629
9 years ago
John Crispin e4b6dcee5e ramips: fix Buffalo WMR-300 dts, board, image and profile names
The following patch changes Buffalo WMR-300 dts filename, board, image and profile names from "WMR300" to "WMR-300" (for consistency).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46628
9 years ago
John Crispin 713c81e97b ramips: fix Omnima models, images and profiles names
Official names for supported Omnima products are (as on website):
 * Omnima HPM
 * Omnima MiniEMBWiFi
 * Omnima MiniEMBPlug

This patch changes:
 * board names
 * dts filenames
 * profile names
 * image filenames
 * LED names

for Omnima devices, for consistency.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46627
9 years ago
John Crispin 0bb270429d ramips: fix Edimax BR-6425 board name
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46626
9 years ago
John Crispin 40f808600c ramips: fix Tenda W150M model name
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46625
9 years ago
John Crispin b52ac01d27 ramips: fix Aigale Ai-BR100 dts and profile names
The following patch changes dts filename and profile name for Aigale Ai-BR100 (for consistency).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46624
9 years ago
John Crispin 633c46a1d4 ramips: fix Olimex models, images and profiles names
Official names for RT5350F based OLinuXino products are "RT5350F-OLinuXino{,-EVB}" as on official manufacturer website.
The following patch:
 * changes board names from "olinuxino-rt5350f{,-evb}" to "rt5350f-olinuxino{,-evb}"
 * changes filenames of dts and profile files
 * changes image filenames

for Olimex RT5350F-OLinuXino{,-EVB} devices.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46623
9 years ago
John Crispin 66f6c9e231 ramips: fix Sitecom WL-341v3 board and image names
The following patch changes:
 * board name from "wl341v3" to "wl-341v3"
 * dts filename
 * LED names in dts file

for Sitecom WL-341v3 device.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46622
9 years ago
John Crispin 102073ca17 ramips: fix Argus ATP-52B board and image names
The following patch:
 * changes board name from "argus-atp52b" to "atp-52b"
 * changes dts filename
 * fixes LED names in dts file and base-files scripts
 * removes manufacturer name from image filename

for Argus ATP-52B device.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46621
9 years ago
John Crispin f38d42b8e4 ramips: fix Belkin F7C027 image name
This patch removes manufacturer from Belkin F7C027 image name ("belkinf7c027" -> "f7c027").

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46620
9 years ago
John Crispin 5e84d173fa ramips: fix Asus RT-N56U dts filename
Other Asus RT-N dts files are named "RT-N..." (not "RTN..."), so use the same for RT-N56U.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46619
9 years ago
John Crispin 7bf1db0dcb ramips: fix UPVEL model names
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46618
9 years ago
John Crispin a0b8c60134 ramips: fix Xiaomi MiWiFi Mini board, image and profile names
The following patch:
 * changes board name from "xiaomi-miwifi-mini" to "miwifi-mini"
 * changes filenames of dts and profile
 * fixes LED names in dts file and base-files scripts
 * removes manufacturer name from image filename

for Xiaomi MiWiFi Mini device.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46617
9 years ago
John Crispin 5a6690a7a6 ramips: fix Asus RP-N53 and Lenovo Y1{, S} image names
This patch:
 * fixes typo (rp_n53 -> rp-n53) in Asus RP-N53 image name
 * removes manufacturer from image names for Lenovo Y1{,S} devices

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46616
9 years ago
John Crispin 5e1ea4810b ramips: fix Asus WL-330N{, 3G} boards names
There are other Asus boards supported in ramips target, so use the same naming scheme for WL-330N{,3G} boards and their dts files.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46615
9 years ago
John Crispin f38db77707 ramips: fix Zbtlink ZBT-WR8305RT board name
There is another Zbtlink board (ZBT-WA05) supported in ramips target, so use the same naming scheme for ZBT-WR8305RT board and its dts file.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46614
9 years ago
John Crispin 553fea9f19 ramips: fix indentation and other mistakes in .dts{, i} files
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
9 years ago
Hauke Mehrtens 0b8643af4f kernel: update 3.18 to 3.18.20
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.20

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46570
9 years ago
Felix Fietkau ba05254353 ramips: Fix Ticket #20153 swap radio calibration data pointers on the RE6500
This patch fixes weak radio signal reported by nikola.georgiev

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 46545
9 years ago
Felix Fietkau 92c41de105 ramips: swap radio calibration data pointers for DIR-860L
Fixes low 5 GHz tx power issues

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46497
9 years ago
John Crispin 1b6a6abf04 ramips: add additional uarts to mt7628.dtsi
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46477
9 years ago
John Crispin 37495247d2 ramips: make sd driver depend on mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46476
9 years ago
John Crispin 351a55ac29 ramips: add CD polling to sd driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46475
9 years ago
John Crispin ebe957fad6 ramips: various mt7688 pinmux fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46474
9 years ago
John Crispin e04e44a223 ramips: add subtarget for mt7688
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46473
9 years ago
John Crispin 7449ea88db ramips: add clock strecthing support to i2c driver
fixes #19816

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46472
9 years ago
John Crispin dcae3723fd ramips: add support for STORYLiNK SAP-G3200U3
STORYLiNK SAP-G3200U3 is an AC1200 router based on MT7621AT+MT7602EN+MT7612EN.
It has 128MB DDR3, 8MB NOR FLASH, 5-port Gbps switch and 1x USB 3.0.

The following patch adds support for this device.

Tested and working:
* ethernet
* both WiFi radios
* USB 3.0
* buttons
* ethernet switch and USB diag LEDs
* UART
* GPIOs

Tested and not working:
* LEDs for WiFi radios (connected with WiFi chips, not supported in mt76?)
* failsafe mode (known problem, needs workaround like other MTK based devices)

More information in Wiki: http://wiki.openwrt.org/toh/storylink/sap-g3200u3

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46454
9 years ago
Felix Fietkau 363f32c8ac ramips: enable mt76 by default for mt7621
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46410
9 years ago
John Crispin eff79253f2 ramips: add support for Planex MZK-DP150N
This patch add support for Planex MZK-DP150N.
a mini router on the MT7620A SoC with one Ethernet port and a 802.11n 2.4 GHz radio.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>

SVN-Revision: 46405
9 years ago
John Crispin 5e1c7fb0cc ramips: added gpio spi refclk support for wrtnode board
This syncs the dts file with the one provided by the wrtnode team:
https://github.com/WRTnode/openwrt-patches/blob/master/R41508/wrtnode_factory_firmware_dts.patch

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46359
9 years ago
John Crispin 1aca6e6b27 ramips: added led support for wrtnode board
This syncs the dts file with the one provided by the wrtnode team:
https://github.com/WRTnode/openwrt-patches/blob/master/R41508/wrtnode_factory_firmware_dts.patch

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46350
9 years ago
John Crispin b618573815 ramips: adding support for OY-0001 Wireless Router
Adding support for OY-0001 Wireless Router.
OY-0001 is a wireless router made by oyewifi.com. Below is the details:
MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN.

Signed-off-by: Tom Deng <2579131212@qq.com>

SVN-Revision: 46349
9 years ago