- 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 17, 2021
-
-
Adrian Schmutzler authored
The mt76x8 subtarget is the only one in ramips that stores the mediatek,mtd-eeprom property directly in the "root" mt7628an.dtsi. This is not optimal for a few different reasons: * If you don't really know it or are used to other (sub)targets, the property will be set somewhat magically. * The property is set based on &factory partition before (if at all) this partition is defined. * There are several devices that have different offset or even different partitions to read from, which will then be overwritten in the DTS files. Thus, definitions are scattered between root DTSI and individual files. Based on these circumstances, the "root" definition is removed and the property is added to the device-based DTS(I) files where needed and applicable. This should be easier to grasp for unexperienced developers and will move the property closer to the partition definitions. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- 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>
-
- Feb 05, 2021
-
-
Ewan Parker authored
Specifications: - SoC: MediaTek MT7688AN - RAM: 128 MB - Flash: 32 MB - Ethernet: 5x 10/100 (1x WAN, 4x LAN) - Wireless: built in 2.4GHz (bgn) - USB: 1x USB 2.0 port - Buttons: 1x Reset - LEDs: 1x (WiFi) Flash instructions: - Configure TFTP server with IP address 10.10.10.3 - Name the firmware file as firmware.bin - Connect any Ethernet port to the TFTP server's LAN - Choose option 2 in U-Boot - Alternatively choose option 7 to upload firmware to the built-in web server MAC addresses as verified by OEM firmware: use address source 2g *:XX factory 0x4 LAN *:XX+1 factory 0x28 WAN *:XX+1 factory 0x2e Notes: This board is ostensibly a module containing the MediaTek MT7688AN SoC, 128 MB DDR2 SDRAM and 32 MB flash storage. The SoC can be operated in IoT Gateway Mode or IoT Device Mode. From some vendors the U-Boot that comes installed operates on UART 2 which is inaccessible in gateway mode and operates unreliably in the Linux kernel when using more than 64 MB of RAM. For those, updating U-Boot is recommended. Signed-off-by:
Ewan Parker <ewan@ewan.cc> [add WLAN to 01_leds] 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>
-
- Aug 06, 2020
-
-
Adrian Schmutzler 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") Most of it has already been removed in be2b61e4 ("ramips: drop m25p,chunked-io from dts") It seems all current usages were added after that. Remove them. Cc: Chuanhong Guo <gch981213@gmail.com> Reported-by:
Sungbo Eo <mans0n@gorani.run> Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Jul 31, 2020
-
-
Robinson Wu authored
This commit adds support for the Jotale JS76x8 series development boards. These devices have the following specifications: - SOC: MT7628AN/NN, MT7688AN, MT7628DAN - RAM of MT7628AN/NN and MT7688AN: 64/128/256 MB (DDR2) - RAM of MT7628DAN: 64 MB (DDR2) - FLASH:8/16/32 MB (SPI NOR) - Ethernet:3x 10/100 Mbps ethernet ports (MT76x8 built-in switch) - WIFI:1x 2T2R 2.4 GHz Wi-Fi - LEDs:1x system status green LED, 1x wifi green LED, 3x ethernet green LED - Buttons:1x reset button - 1x microSD slot - 4x USB 2.0 port - 1x mini-usb debug UART - 1x DC jack for main power (DC 5V) - 1x TTL/RS232 UART - 1x TTL/RS485 UART - 13x GPIO header - 1x audio codec(wm8960) Installation via OpenWrt: The original firmware is OpenWrt, so both LuCI and sysupgrade can be used. Installation via U-boot web: 1. Power on board with reset button pressed, release it after wifi led start blinking. 2. Setup static IP 192.168.1.123/4 on your PC. 3. Go to 192.168.1.8 in browser and upload "sysupgrade" image. Installation via U-boot tftp: 1. Connect to serial console at the mini usb, which has been connected to UART0 on board (115200 8N1) 2. Setup static IP 192.168.1.123/4 on your PC. 3. Place openwrt-firmware.bin on your PC tftp server (192.168.1.123). 3. Connect one of LAN ports on board to your PC. 4. Start terminal software (e.g. screen /dev/ttyUSB0 115200) on PC. 5. Apply power to board. 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 (192.168.1.8) ==:192.168.1.8 Input server IP (192.168.1.123) ==:192.168.1.123 Input Linux Kernel filename (root_uImage) ==:openwrt-firmware.bin 8. board will download file from tftp server, write it to flash and reboot. Signed-off-by:
Robinson Wu <wurobinson@qq.com> [add license to DTS files, fix state_default and reduce to the mimimum, move phy0tpt trigger to DTS, drop ucidef_set_led_timer, fix network ports] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- May 09, 2020
-
-
Sungbo Eo 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. While at it, remove unused m25p80 label. Tested on rt5350 (for spi-nor) and rt3662 (for cfi-flash). 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:
Sungbo Eo <mans0n@gorani.run>
-
- 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>
-
Chuanhong Guo authored
upstream driver merged 3 separated gpio banks into one gpio node. and gpioX Y in our local driver should be replaced with gpio X*32+Y. This patch is created using the following sed command: sed -i -r 's/(.*)gpio([0-9]) ([0-9]+)(.*)/echo "\1gpio $((\2*32+\3))\4"/ge' 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>
-
- Oct 21, 2019
-
-
Adrian Schmutzler authored
This converts all remaining devices to use interrupt-driven gpio-keys compatible instead of gpio-keys-polled. The poll-interval is removed. While at it, add/remove newlines in keys and leds node where necessary. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- Jul 10, 2019
-
-
Adrian Schmutzler authored
Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- 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>
-
- 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>
-
- Dec 29, 2017
-
-
Mathias Kresin authored
Change the compatibel from Omega to Omega2 and add the compatible string where missing. Signed-off-by:
Mathias Kresin <dev@kresin.me>
-
- Feb 16, 2017
-
-
Furong Xu authored
GPIO18 and GPIO19 on OMEGA2(+) should be GPIO mode, enable PWM lead to a conflict [ 0.290633] rt2880-pinmux pinctrl: pin io18 already requested by pinctrl; cannot claim for 10005000.pwm [ 0.299722] rt2880-pinmux pinctrl: pin-18 (10005000.pwm) status -22 [ 0.305729] rt2880-pinmux pinctrl: could not request pin 18 (io18) from group pwm0 on device rt2880-pinmux [ 0.315131] mtk-pwm 10005000.pwm: Error applying setting, reverse things back Keep PWM disabled. Signed-off-by:
Furong Xu <xfr@outlook.com>
-
- Feb 14, 2017
-
-
Furong Xu authored
At the tail of dtsi, wmac is enabled twice, clean the first one Signed-off-by:
Furong Xu <xfr@outlook.com>
-
- Jan 15, 2017
-
-
Lazar Demin authored
This patch adds support for the Onion Omega2 and Omega2+ (https://onion.io ) Specifications: - SoC: MediaTek MT7688AN (580MHz, ramips) - Omega2 - RAM: 64MB DDR - Storage: 16MB NOR SPI flash onboard - Omega2+ - RAM: 128MB DDR - Storage: 32MB NOR SPI flash onboard + microSD slot - Wireless: Built into MT7688AN (mt76) with onboard 1x chip antenna and u.FL connecter - Ethernet: 1x100M pins on Omega2 & Omega2+, can use Ethernet Expansion and an Omega Dock to get a physical Ethernet port - Strongly recommend using the Omega2 & Omega2+ with a Dock (Expansion Dock, Power Dock, Arduino Dock 2, Mini Dock) - All Docks Provide: - Micro-USB port to provide power to the Omega - On the Expansion and Mini Docks, can also access the terminal (UART0) via serial - USB 2.0 socket connected to Omega - Just the Expansion Dock, Power Dock, and Arduino Dock 2 provide: - Omega GPIO breakout - Allows for connection of Omega Expansions: - Ethernet Expansion - Relay Expansion - PWM Expansion - OLED Expansion - Ethernet Expansion - Proto Expansion - Cellular Expansion Signed-off-by:
Lazar Demin <lazar@onion.io>
-
- 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 01, 2016
-
-
Yuan Chenmang authored
The Widora board is similar to the Linkit 7688 but features a larger flash capacity. Signed-off-by:
Yuan Chenmang <771992497@qq.com> [Jo-Philipp Wich: Reword commit message, cleanup initial PR] Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 18, 2016
-
-
Álvaro Fernández Rojas authored
Use linux,spidev compatible string. Move MZK-DP150N spidev to spi1 node. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Á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
-
-
John Crispin authored
Signed-off-by:
John Crispin <john@phrozen.org>
-
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>
-
Stanislav Galabov authored
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>
-
- Apr 09, 2016
-
-
John Crispin authored
Misc fixes for LinkIt 7688 board: - Copy the right wireless firmware for the mt7688 - Add back '0065-mt7688-fixes.patch', left out after the move to Linux 4.4. - Remove SPI_DEV from linux config which otherwise causes a massive warning - Add wmac to LINKIT7688.dts so wireless works Signed-off-by:
Adam Kent <adam@semicircular.net> SVN-Revision: 49130
-
- Dec 18, 2015
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47935
-
- Nov 05, 2015
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 47388
-
- Oct 19, 2015
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 47203
-