- Jan 15, 2022
-
-
Michael Pratt authored
The following devices have a Winbond W25Q256FV flash chip, which does not have the RESET pin enabled by default, and otherwise would require setting a bit in a status register. Before moving to Linux 5.4, we had the patch: 0053-mtd-spi-nor-add-w25q256-3b-mode-switch.patch which kept specific flash chips with explicit 3-byte and 4-byte address modes to stay in 3-byte address mode while idle (after an erase or write) by using a custom flag SPI_NOR_4B_READ_OP that was part of the patch. this was obsoleted by the patch: 481-mtd-spi-nor-rework-broken-flash-reset-support.patch which uses the newer upstream flag SNOR_F_BROKEN_RESET for devices with a flash chip that cannot be hardware reset with RESET pin and therefore must be left in 3-byte address mode when idle. The new patch requires that the DTS of affected devices have the property "broken-flash-reset", which was not yet added for most of them. This commit adds the property for remaining affected devices in ramips target, specifically because of the flash chip model. However, it is possible that there are other devices where the flash chip uses an explicit 4-byte address mode and the RESET pin is not connected to the SOC on the board, and those DTS would also need this property. Ref: 22d982ea ("ramips: add support for switching between 3-byte and 4-byte addressing") Ref: dfa521f1 ("generic: spi-nor: rework broken-flash-reset") Signed-off-by:
Michael Pratt <mcpratt@pm.me>
-
- Aug 18, 2021
-
-
Adrian Schmutzler authored
Convert most of the cases from mtd-mac-address to nvmem where MAC addresses are set in the DTSI, but the partitions are only located in the device DTS. This posed some problems earlier, since in these cases we are using partitions before they are defined, and the nvmem system did not seem to like that. There have been a few different resolution approaches, based on the different tradeoffs of deduplication vs. maintainability: 1. In many cases, the partition tables were identical except for the firmware partition size, and the firmware partition was the last in the table. In these cases, the partition table has been moved to the DTSI, and only the firmware partition's "reg" property has been kept in the DTS files. So, the updated nvmem definition could stay in the DTSI files as well. 2. For all other cases, splitting up the partition table would have introduced additional complexity. Thus, the nodes to be converted to nvmem have been moved to the DTS files where the partitioning was defined. 3. For Netgear EX2700 and WN3000RP v3, the remaining DTSI file was completely dissolved, as it was quite small and the name was not really nice either. 4. The D-Link DIR-853 A3 was converted to nvmem as well, though it is just a plain DTS file not taken care of in the first wave. In addition, some minor rearrangements have been made for tidyness. Not covered (yet) by this patch are: * Various unielec devices * The D-Link DIR-8xx family Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Oct 02, 2020
-
-
Adrian Schmutzler authored
Like in the previous patch for ath79 target, this will remove the "devicename" from LED labels in ramips as well. The devicename is removed in DTS files and 01_leds, consolidation of definitions into DTSI files is done where (easily) possible, and migration scripts are updated. For the latter, all existing definitions were actually just devicename migrations anyway. Therefore, those are removed and a common migration file is created in target base-files. This is actually another example of how the devicename removal makes things easier. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Sep 25, 2020
-
-
Adrian Schmutzler authored
The "/dts-v1/;" identifier is supposed to be present once at the top of a device tree file after the includes have been processed. In ramips, we therefore requested to have in the DTS files so far, and omit it in the DTSI files. However, essentially the syntax of the parent mtxxxx/rtxxxx DTSI files already determines the DTS version, so putting it into the DTS files is just a useless repetition. Consequently, this patch puts the dts-v1 statement into the top-level SoC-based DTSI files, and removes all other occurences. Since the dts-v1 statement needs to be before any other definitions, this also moves the includes accordingly where necessary. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Apr 12, 2020
-
-
Chuanhong Guo authored
Upstream pinctrl driver in drivers/staging uses groups/function/ralink,num-gpios instead of ralink,group/ralink,function/ralink,nr-gpio Replace these properties in dts as well as the pinctrl driver in patches-4.14. This commit is created using: sed -i 's/ralink,group/groups/g' sed -i 's/ralink,function/function/g' sed -i 's/ralink,nr-gpio/ralink,num-gpios/g' Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- Dec 23, 2019
-
-
Adrian Schmutzler authored
The node pinctrl0 is already set up in the SOC DTSI files, but defined again as member of pinctrl in most of the device DTS(I) files. This patch removes this redundancy for the entire ramips target. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Sep 28, 2019
-
-
Adrian Schmutzler authored
Spelling of Zbtlink varies across image definitions and DTS files. This patch uses Zbtlink consistently and also updates the model in DTS files to contain the vendor in all cases. This patch is cosmetical, as there should be no dependencies on device model name in ramips anymore. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Jul 10, 2019
-
-
Adrian Schmutzler authored
As introduced with ath79, DTS files for ramips will now be labelled soc_vendor_device.dts(i). With this change, DTS files can be selected automatically without further manual links. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- May 17, 2019
-
-
Kristian Evensen authored
ZBT WE826-E is a dual-SIM version of the ZBT WE826. The router has the following specifications: - MT7620A (580 MHz) - 128MB RAM - 32MB of flash (SPI NOR) - 5x 10/100Mbps Ethernet (MT7620A built-in switch) - 1x microSD slot - 1x miniPCIe slot (only USB2.0 bus) - 2x SIM card slots (standard size) - 1x USB2.0 port - 1x 2.4GHz wifi (rt2800) - 10x LEDs (4 GPIO-controlled) - 1x reset button The following have been tested and working: - Ethernet switch - wifi - miniPCIe slot - USB port - microSD slot - sysupgrade - reset button Installation and recovery: In order to install OpenWRT the first time or recover the router, you can use the web-based recovery system. Keep the reset button pressed during boot and access 192.168.1.1 in your browser when your machine obtains an IP address. Upload the firmware to start the recovery process. How to swap SIMs: You control which SIM slot to use by writing 0/1 to /sys/class/gpio/gpio13/value. In order for the change to take effect, you can either use AT-commands (AT+CFUN) or power-cycle the modem (write 0/1 to /sys/class/gpio/gpio14/value). Signed-off-by:
Kristian Evensen <kristian.evensen@gmail.com>
-
- Apr 14, 2019
-
-
Eike Feldmann authored
It's OEM module with 2*26 pin header, similar to LinkIt Smart 7688 or Vocore2. Specification: CPU: MT7628 580 MHz. MIPS 24K RAM: 64 MB Flash: 8 MB WIFI: 802.11n/g/b 20/40 MHz USB: 1x Port USB 2.0 Ethernet: 5 Port ethernet switch UART: 2x Installation: Use the installed uboot Bootloader. Connect a serial cable to serialport 0. Turn power on. Choose the option: "Load system code then write to Flash via TFTP". Choose the local device IP and the TFTP server IP and the file name of the system image. After if the Bootloader will copy the image to the local flash. Notes: The I2C Kernel module work not correctly. You can send and receive data. But the command i2cdetect doesn’t work. FS#845 Signed-off-by:
Eike Feldmann <eike.feldmann@outlook.com> [commit subject and message touches, DTS whitespace fixes, wifi LED rename, pinctrl fixes, network settings fixes, lan/wmac mac addresses, removed i2c kernel modules] Signed-off-by:
Petr Štetiar <ynezz@true.cz>
-
- Feb 05, 2019
-
-
Chuanhong Guo authored
This option was a spi nor hack which is dropped in commit bcf4a5f4 ("ramips: remove chunked-io patch and set spi->max_transfer_size instead") Signed-off-by:
Chuanhong Guo <gch981213@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [edit message]
-
Petr Štetiar authored
In DTS Checklist[1] we're now demanding proper generic node names, as the name of a node should reflect the function of the device and use generic name for that[2]. Everybody seems to be copy&pasting from DTS files available in the repository today, so let's unify that naming there as well and provide proper examples. 1. https://openwrt.org/submitting-patches#dts_checklist 2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation Signed-off-by:
Petr Štetiar <ynezz@true.cz> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
-
Petr Štetiar authored
In DTS Checklist[1] we're now demanding proper generic node names, as the name of a node should reflect the function of the device and use generic name for that[2]. Everybody seems to be copy&pasting from DTS files available in the repository today, so let's unify that naming there as well and provide proper examples. 1. https://openwrt.org/submitting-patches#dts_checklist 2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation Signed-off-by:
Petr Štetiar <ynezz@true.cz> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
-
- Nov 26, 2018
-
-
Mathias Kresin authored
Use the generic board detection instead of the target specific one as all recent additions are doing. Add the wireless led according the gpio number from the datasheet. Rename the board part of the leds to match the name used for the compatible string. Finally, do not hijack the wps led for boot status indication longer than necessary. Merge userspace config into existing cases. Include the manufacture Name in the dts model string. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
Russell Senior authored
Specifically, SKW92A_E16, described here: http://www.skylabmodule.com/wp-content/uploads/SkyLab_SKW92A_V1.04_datasheet.pdf Specification: - MediaTek MT7628N/N (580 Mhz) - 64 MB of RAM - 16 MB of FLASH - 2T2R 2.4 GHz - 5x 10/100 Mbps Ethernet - 2x u.FL - Power by micro-USB connector at USB1 on EVB - UART via micro-USB connector at USB3 on EVB (57600 8n1) - 5x Ethernet LEDs - 1x WLAN LEDs - 1x WPS LED connected by jumper wire from I2S_CK on J20 to WPS_LED pin hole next to daughter board on EVB - WPS/Reset button (S2 on EVB) - RESET button (S1 on EVB) is *not* connected to RST hole next to daughter board Flash instruction: >From Skylab firmware: 1. Associate with SKYLAP_AP 2. In a browser, load: http://10.10.10.254/ 3. Username/password: admin/admin 4. In web admin interface: Administration / Upload Firmware, browse to sysupgrade image, apply, flash will fail with a message: Not a valid firmware. *** Warning: "/var/tmpFW" has corrupted data! 5. Telnet to 10.10.10.254, drops you into a root shell with no credentials 6. # cd /var 7. # mtd_write -r write tmpFW mtd4 Unlocking mtd4 ... Writing from tmpFW to mtd4 ... [e] 8. When flash has completed, you will have booted into your firmware. >From U-boot via TFTP and initramfs: 1. Place openwrt-ramips-mt76x8-skw92a-initramfs-kernel.bin on a TFTP server 2. Connect to serial console at USB3 on EVB 3. Connect ethernet between port 1 (not WAN) and your TFTP server (e.g. 192.168.11.20) 4. Start terminal software (e.g. screen /dev/ttyUSB0 57600) on PC 5. Apply power to EVB 6. Interrupt u-boot with keypress of "1" 7. At u-boot prompts: Input device IP (10.10.10.123) ==:192.168.11.21 Input server IP (10.10.10.3) ==:192.168.11.20 Input Linux Kernel filename (root_uImage) ==:openwrt-ramips-mt76x8-skw92a-initramfs-kernel.bin 8. Move ethernet to port 0 (WAN) on EVB 9. At new OpenWrt console shell, fetch squashfs-sysupgrade image and flash with sysupgrade. >From U-boot via TFTP direct flash: 1. Place openwrt-ramips-mt76x8-skw92a-squashfs-sysupgrade.bin on a TFTP server 2. Connect to serial console at USB3 on EVB (57600 8N1) 3. Connect ethernet between port 1 (not WAN) an your TFTP server (e.g. 192.168.11.20) 4. Start terminal software (e.g. screen /dev/ttyUSB0 57600) on PC 5. Apply power to EVB 6. Interrupt u-boot with keypress of "2" 7. At u-boot prompts: Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N) Y Input device IP (10.10.10.123) ==:192.168.11.21 Input server IP (10.10.10.3) ==:192.168.11.20 Input Linux Kernel filename (root_uImage) ==:openwrt-ramips-mt76x8-skw92a-squashfs-sysupgrade.bin 8. When transfer is complete or as OpenWrt begins booting, move ethernet to port 0 (WAN). Signed-off-by:
Russell Senior <russell@personaltelco.net>
-
- Oct 07, 2018
-
-
Mathias Kresin authored
Use diag.sh version used for other targets supporting different leds for the different boot states. The existing led sequences should be the same as before. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Aug 04, 2018
-
-
Alex Maclean authored
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>
-
Mathias Kresin authored
Fix individual boards dtc warnings or obvious mistakes. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Jul 16, 2018
-
-
Chuanhong Guo authored
Also fix several typos in led node name. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- Aug 03, 2017
-
-
L. D. Pinney authored
Use the GPIO dt-bindings macros and add compatible strings in the ramips device tree source files. Signed-off-by:
L. D. Pinney <ldpinney@gmail.com> Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Mar 24, 2017
-
-
Mathias Kresin authored
Even the commit message of the patch adding support for the MiWiFi Nano says that a 16 MB flash chip is used. Extend the firmware partition to make use of all available flash space. Fixes: FS#622 Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Feb 02, 2017
-
-
Mathias Kresin authored
Use only the jedec,spi-nor compatible string. Everything else either never worked or is only support to keep compatibility. Remove the linux,modalias property. It is obsolete since kernel 4.4. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Jan 02, 2017
-
-
L. D. Pinney authored
Use the the dt-bindings macros and add the reset button. Set the correct polarity for the LEDs and drop the default state. Remove all trigger for the LEDs. According to the manual the LEDs are only used to show the operation state, where blue means normal operation. Use the MAC-Addresses stored in EEPROM for the ethernet and the wireless interface. Signed-off-by:
L. D. Pinney <ldpinney@gmail.com> [use leds only for boot status indication, add proper commit message] Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Jun 03, 2016
-
-
Álvaro Fernández Rojas authored
Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
- May 18, 2016
-
-
Álvaro Fernández Rojas authored
size-cells should be 0 in order to avoid dummy values in reg properties. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
- May 12, 2016
-
-
Stanislav Galabov authored
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>
-
- May 10, 2016
-
-
Stanislav Galabov authored
be done properly for the entire device trees. Signed-off-by:
Stanislav Galabov <sgalabov@gmail.com>
-
- Mar 20, 2016
-
-
John Crispin authored
1) Use leds to indicate: Red - Power Amber - Radio On Blue - Wifi associated 2) Add profile to default build group for MT7628 subtarget Signed-off-by:
Noble Pepper <openwrtmail@noblepepper.com> SVN-Revision: 49045
-
- Mar 16, 2016
-
-
John Crispin authored
Xiaomi MiWiFi Nano is based on Mediatek MT7628 with 64MB ram 16MB flash Signed-off-by:
Noble Pepper <openwrtmail@noblepepper.com> v3 includes changes suggested by L. D. Pinney & Karl Palsson- Eliminate en25q64 (4MB) flash chip Alphabetization Remove hyphen in model Rename profile from miwifinano.mk to xiaomi.mk Add gpios that are attached to leds SVN-Revision: 49024
-
- Feb 28, 2016
-
-
Felix Fietkau authored
ramips: create device tree node for MT7628 WMAC in preparation for future work on driver support in mt76 Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48812
-
- Dec 18, 2015
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47935
-
- Feb 19, 2015
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 44494
-
- Feb 09, 2015
-
-
John Crispin authored
keep default as 3.14, mt7621 gic need to be ported to 3.18 Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 44349
-
- Jan 02, 2015
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43808
-
- Nov 15, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 43275
-
- Nov 06, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 43197
-
- Sep 17, 2013
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 38026
-
- Jul 26, 2013
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 37561
-
- Jul 24, 2013
-
-
John Crispin authored
Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board. http://www.asiarf.com/Smallest-Tiny-Ralink-802-11n-Wireless-AP-Router-Module-Board-AWM002-product-view-375.html Signed-off-by Jon Smirl <jonsmirl@gmail.com> SVN-Revision: 37521
-
- Jun 23, 2013
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 37016
-