Skip to content
Snippets Groups Projects
  1. Jan 15, 2022
    • Michael Pratt's avatar
      ramips: fix reboot for remaining 32 MB boards · 74516f43
      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: default avatarMichael Pratt <mcpratt@pm.me>
      74516f43
  2. Aug 18, 2021
    • Adrian Schmutzler's avatar
      ramips: convert most mtd-mac-address cases in DTSI to nvmem · ba3d92c5
      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: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      ba3d92c5
  3. Sep 25, 2020
    • Adrian Schmutzler's avatar
      ramips: move dts-v1 statement to top-level DTSI files · 621297e8
      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: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      621297e8
  4. May 09, 2020
  5. Jul 10, 2019
  6. Feb 05, 2019
  7. Nov 29, 2018
    • INAGAKI Hiroshi's avatar
      ramips: specify "firmware" partition format · d70ec300
      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: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      d70ec300
  8. Aug 04, 2018
  9. Jan 23, 2018
    • Jackson Ming Hu's avatar
      ramips: add support for Widora Neo 32MB flash revision · 21d36438
      Jackson Ming Hu authored
      
      Widora has updated their Widora Neo board recently.
      
      The new model uses 32MB WSON-8 factor SPI flash
      instead of the original 16MB SOP-8 factor SPI flash.
      
      All the other hardware components are the same as
      the first revision.
      
      Detailed hardware specs listed below:
      
      CPU: MTK MT7688AN
      RAM: 128MB DDR2
      ROM: 32MB WSON-8 factor SPI Flash (Winbond)
      WiFi: Built-in 802.11n 150Mbps?
      Ethernet: 10/100Mbps x1
      Audio codec: WM8960
      Other IO: USB OTG;
      	  USB Power+Serial (CP2104);
      	  3x LEDs (Power, LAN, WiFi);
      	  2x Keys (WPS, CPU Reset)
      	  1x Audio In/Out
      	  1x IPEX antenna port
      	  1x Micro SD slot
      
      Signed-off-by: default avatarJackson Ming Hu <huming2207@gmail.com>
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      21d36438
    • Mathias Kresin's avatar
      ramips: add flash size postfix to Widora neo · a411881a
      Mathias Kresin authored
      
      Rename the Widora neo by adding a flash size prefix. Move the common parts
      into a dtsi to be prepare everything for upcomming support of the 32MB
      version.
      
      Migrate the Widora neo to the generic board detection as well.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      a411881a
  10. Aug 11, 2017
    • L. D. Pinney's avatar
      ramips: add support for the VoCore2 Lite · df3295f5
      L. D. Pinney authored
      The VoCore2 Lite uses the same PCB as the Vocore2.
      This patch moves the common VoCore2 parts into dtsi.
      
      Removed memory node in the device tree source file.
      Memory is detected automatically.
      
      http://vocore.io/
      http://vonger.net/
      http://vonger.cn/
      
      
      
      Specifications:
      - SoC: MediaTek MT7688AN
      - RAM: 64MB DDR2 EtronTech EM68B16CWQH-25H
      - Flash: 8MB NOR SPI Flash GigaDevice GD25Q64CWIG
      - Wireless: Built into MT7688AN with onboard IPEX connector
      
      Firmware installation:
      - VoCore2-Lite ships with firmware forked from OpenWrt.
      - Installation from the bootloader is recommended.
      - If using luci/sysupgrade use the -n option (do not keep settings)
        original firmware uses a modified proprietary MediaTek wireless driver.
      - The wireless is disabled by default in LEDE.
      - If reverting to factory firmware using the bootloader is recommended.
      
      Signed-off-by: default avatarL. D. Pinney <ldpinney@gmail.com>
      Tested by: Noble Pepper <noblepepper@gmail.com>
      df3295f5
  11. Aug 03, 2017
  12. Jul 25, 2017
    • Paul Wassi's avatar
      ramips: DTS: VoCore2 improvements/fixes · c51c976d
      Paul Wassi authored
      
      The VoCore2 features 128MB of RAM, therefore set
      memory in DTS to 128*1024*1024 = 0x8000000
      The board's LED is connected to GND, set it to
      ACTIVE_HIGH here.
      Make serial console working again on kernel 4.9 by
      change of pinmux configuration.
      
      Signed-off-by: default avatarPaul Wassi <p.wassi@gmx.at>
      c51c976d
  13. Jan 13, 2017
    • Andrew Yong's avatar
      ramips: add support for VoCore2 · 3f31029b
      Andrew Yong authored
      
      This patch adds support for the VoCore VoCore2 and its complementary
      "ultimate" dock.
      
      Specifications:
      - SoC: MediaTek MT7628AN (580MHz, ramips)
      - RAM: 128MB DDR2 166MHz
      - Storage: 16MB NOR SPI flash onboard + microSD slot on dock
      - Wireless: Built into MT7628AN (mt76) with 1T1R firmware on VoCore2
                  boards with onboard 1x chip antenna
      - Ethernet: 1x100M (port0) on dock, 1x100M (port2) on PCB header
      - Dock hardware:
        - USB 2.0 socket
        - MicroSD socket
        - 100Mbps Ethernet x1
        - 3.5mm headphone jack (TRRS) connected to Everest Semi ES8388 I2S
          DAC/ADC (support WIP)
        - Micro USB for power and console (UART2)
      
      Initial installation:
      - VoCore2 comes preinstalled with a fork of OpenWrt CC and AP on
        SSID "VoCore2"
      - Connect to VoCore2 by Ethernet or Wi-Fi
      - `ssh root@192.168.1.1` (password is "vocore")
      - scp/wget/etc. LEDE sysupgrade.bin to VoCore2
      - `sysupgrade -n <your image>.bin` (don't keep old config, as the
        original firmware uses Ralink SDK Wi-Fi drivers and not
        mt76+mac80211)
      - after sysupgrade completes, Wi-Fi will be disabled by default so use
        Ethernet or the micro USB console to configure Wi-Fi again
      
      Signed-off-by: default avatarAndrew Yong <me@ndoo.sg>
      3f31029b
  14. Jan 02, 2017
    • L. D. Pinney's avatar
      ramips: MiWiFi Nano fixes · b28e94d4
      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: default avatarL. D. Pinney <ldpinney@gmail.com>
      [use leds only for boot status indication, add proper commit message]
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      b28e94d4
  15. Jun 03, 2016
  16. May 18, 2016
  17. May 12, 2016
  18. May 10, 2016
  19. Mar 20, 2016
  20. Mar 16, 2016
  21. Feb 28, 2016
  22. Dec 18, 2015
  23. Feb 19, 2015
  24. Feb 09, 2015
  25. Jan 02, 2015
  26. Nov 15, 2014
  27. Nov 06, 2014
  28. Sep 17, 2013
  29. Jul 26, 2013
  30. Jul 24, 2013
  31. Jun 23, 2013
Loading