- 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>
-
- Jul 19, 2021
-
-
Ansuel Smith authored
Define nvmem-cells and convert mtd-mac-address to nvmem implementation. The conversion is done with an automated script. Signed-off-by:
Ansuel Smith <ansuelsmth@gmail.com>
-
Ansuel Smith authored
Rework patch 681-NET-add-mtd-mac-address-support to implement only the function to read the mac-address from mtd. Generalize mtd-mac-address-increment function so it can be applied to any source of of_get_mac_address. Rename any mtd-mac-address-increment to mac-address-increment. Rename any mtd-mac-address-increment-byte to mac-address-increment-byte. This should make simplify the conversion of target to nvmem implementation. Signed-off-by:
Ansuel Smith <ansuelsmth@gmail.com>
-
- 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>
-
- Jul 17, 2020
-
-
Adrian Schmutzler authored
For mt7621, console is set up via DTS bootargs individually in device DTS/DTSI files. However, 44 of 74 statements use the following setting: chosen { bootargs = "console=ttyS0,57600"; }; Therefore, don't repeat ourselves and move that definition to the SoC DTSI file to serve as a default value. This patch is cosmetic. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Apr 04, 2020
-
-
DENG Qingfang authored
update dts and network/LED configuration for DSA driver. sysupgrade from images prior to this commit with config preserved will cause broken ethernet setup. Signed-off-by:
DENG Qingfang <dengqf6@mail2.sysu.edu.cn> Acked-by:
Jo-Philipp Wich <jo@mein.io> [split commit] Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
DENG Qingfang authored
Upstream GPIO driver uses "groups" "function" properties Signed-off-by:
DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
-
DENG Qingfang authored
The upstream driver does not use &gpio0..2 banks notation anymore, so convert them to &gpio Signed-off-by:
DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
-
- 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 25, 2019
-
-
Qi Jiang authored
Hardware: SoC: MT7621A Flash: 32 MiB RAM: 512 MiB Ethernet: built-in switch USB: 1x USB3.0 SATA: ASM1060, 1 SATA port Flash instruction (TFTP): 1. Set PC to fixed ip address 192.168.173.22 2. Download *-sysupgrade.bin image and rename it to firmware.img 3. Start a tftp server with the image file in its root directory 4. Turn off the router 5. Turn on router,press the reset button and wait ~15 seconds 6. Release the reset button and after a short time the firmware should be transferred from the tftp server 7. Wait ~3 minutes to complete recovery. Signed-off-by:
Qi Jiang <rushx@live.cn> [squash commits, add label-mac-device, fix sign-off style] Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- Sep 19, 2019
-
-
Adrian Schmutzler authored
This patch adds the label MAC address for several devices in ramips. Some devices require setting the MAC address in 02_network: For the following devices, the netif device can be linked in device tree, but the MAC address cannot be read: - cudy,wr1000 - dlink,dir-615-d - dlink,dir-615-h1 - dlink,dir-860l-b1 - glinet,gl-mt300a - glinet,gl-mt300n - glinet,gl-mt750 - vocore,vocore2 - vocore,vocore2-lite - zbtlink,zbt-we1326 - zbtlink,zbt-wg3526 For the following devices, label MAC address is tied to lan or wan, so no node to link to exists in device tree: - dlink,dir-510l - dlink,dwr-116-a1 - dlink,dwr-118-a1 - dlink,dwr-118-a2 - dlink,dwr-921-c1 - dlink,dwr-922-e2 - all hiwifi devices - lava,lr-25g001 - xiaomi,mir3p Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Aug 24, 2019
-
-
Zhenjian Zhang authored
SoC: MT7621AT RAM: 256MB Flash: 16M SPI Ethernet: 5x GE ports WiFi: 2.4G: MT7615N 5G: MT7615N Flash instruction: 1.Modify the file to linux.bin 2.Set up FTP service 3.Computer settings fixed IP: 192.168.179.50 255.255.255.0 4.Turn on the power and press and hold the reset button until the indicator light is on for about 5 seconds. Signed-off-by:
Zhenjian Zhang <itdesk.zhang@gmail.com> [fix mac location] Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- Jul 11, 2019
-
-
Chuanhong Guo authored
mt7621 and mt7628 now have the ability to detect memory size automatically. Drop memory nodes and let kernel determine memory size. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- 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>
-
- Jun 26, 2019
-
-
Chuanhong Guo authored
Specifications: - SoC: MT7621AT - RAM: 128MB - Flash: 16M SPI NOR - Ethernet: 5x GE ports - WiFi: 2.4G: MT7615N 5G: MT7615N Flash instruction: Upload generated sysupgrade firmware through factory web interface. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- 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 29, 2018
-
-
INAGAKI Hiroshi authored
Specify firmware partition format by compatible string. formats in ramips: - denx,uimage - tplink,firmware - seama It's unlikely but the firmware splitting might not work any longer for the following boards, due to a custom header: - EX2700: two uImage headers - BR-6478AC-V2: edimax-header - 3G-6200N: edimax-header - 3G-6200NL: edimax-header - BR-6475ND: edimax-header - TEW-638APB-V2: umedia-header - RT-N56U: mkrtn56uimg But it rather looks like the uImage splitter is fine with the extra header. The following dts are not touched, due to lack of a compatible string in the matching firmware splitter submodule: - CONFIG_MTD_SPLIT_JIMAGE_FW DWR-116-A1.dts DWR-118-A2.dts DWR-512-B.dts DWR-921-C1.dts LR-25G001.dts - CONFIG_MTD_SPLIT_TRX_FW WCR-1166DS.dts WSR-1166.dts - CONFIG_MTD_SPLIT_MINOR_FW RBM11G.dts RBM33G.dts - CONFIG_MTD_SPLIT_LZMA_FW AR670W.dts - CONFIG_MTD_SPLIT_WRGG_FW DAP-1522-A1.dts Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
- 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>
-
Mathias Kresin authored
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>
-
- 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>
-
Mathias Kresin authored
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>
-
- Jul 16, 2018
-
-
Chuanhong Guo authored
Also fix several typos in led node name. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com>
-
- Jun 01, 2018
-
-
John Crispin authored
This reverts commit 02f815d1. Signed-off-by:
John Crispin <john@phrozen.org>
-
- May 30, 2018
-
-
Rosen Penev authored
That commit exposed a bug in the DTS files used by mt7621 where the wrong reg value for pcie1 (and potentially pcie2) was being used. This was causing WiFi failures for interfaces in pcie1. eg. 2.4GHz working but not 5GHz. As all of these dts entries are already specified in mt7621.dtsi, remove them. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- Oct 25, 2017
-
-
Kevin Darbyshire-Bryant authored
Remove reference to pinmux group "wdt rst" on EW1200, ZBT-WG2626 and ZBT-WG3526 devices. "wdt rst" is a pinmux function and not a pinmux group. Fixes the following error message during boot: rt2880-pinmux pinctrl: invalid group "wdt rst" for function "gpio" Signed-off-by:
Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
-
- 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>
-
- Jul 29, 2017
-
-
L. D. Pinney authored
Add compatible strings to all mt7621 based device tree source files to fix formal issues. Signed-off-by:
L. D. Pinney <ldpinney@gmail.com>
-
- Mar 01, 2017
-
-
Francois Goudal authored
This device features both a 2.4 and 5Ghz radio, and supports 802.11a/b/g/n/ac modes. It has 5 Gb-Ethernet ports and a USB 3.0 host port. It is powered by the Mediatek MT7621 SoC, and the MT7602E and MT7612E wifi chipsets, together with 128MB of RAM and 16 MB of SPI Flash. The stock firmware is in fact based on some openwrt barrier breaker, with a mediatek SDK kernel, and an afoundry custom made web interface (not LuCI based). Firmware update page on the stock web interface can not accept sysupgrade images, it bricks the device. At this point, the only working solution I found was to connect to the serial console port (available on J4 header) and to use opkg to install dropbear. Then scp the sysupgrade file in the device's /tmp and run sysupgrade from console without preserving configuration files. Signed-off-by:
Francois Goudal <francois@goudal.net>
-
- Feb 01, 2017
-
-
Felix Fietkau authored
Uses upstream code to parse DT supported band/frequency information. Update existing .dts files to the new format and remove unnecessary overrides. Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Nov 23, 2016
-
-
Mathias Kresin authored
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>
-
- Nov 13, 2016
-
-
Mathias Kresin authored
All compiled device tree files not mentioned are binary identical to the former ones. Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts. Due to the include of the input binding header, the BTN_* node names in: - ramips/GL-MT300A.dts - ramips/GL-MT300N.dts - ramips/GL-MT750.dts - ramips/Timecloud.dts will be changed by the compiler to the numerical equivalent. Move the binding include of lantiq boards to the file where they are used the first time to hint the user where the values do come from. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Jun 20, 2016
-
-
Michael Lee authored
Signed-off-by:
Michael Lee <igvtee@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>
-
- Jan 19, 2016
-
-
John Crispin authored
The bootloader was updated and now uses 115200 instead of 57600 baud for the serial console. Change this also in OpenWrt's DTS, so the rate is consistent for bootloader and linux kernel output. Signed-off-by:
Daniel Golle <daniel@makrotopia.org> SVN-Revision: 48359
-
- Dec 18, 2015
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47935
-