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. Jul 19, 2021
  3. Oct 02, 2020
    • Adrian Schmutzler's avatar
      ramips: remove model name from LED labels · c846dd91
      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: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      c846dd91
  4. 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
  5. Jul 17, 2020
  6. Apr 04, 2020
  7. Dec 23, 2019
  8. Sep 25, 2019
    • Qi Jiang's avatar
      ramips: add support for XiaoYu XY-C5 · 93b6cc97
      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: default avatarQi Jiang <rushx@live.cn>
      [squash commits, add label-mac-device, fix sign-off style]
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      93b6cc97
  9. Sep 19, 2019
    • Adrian Schmutzler's avatar
      ramips: provide label MAC address · 71403949
      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: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      71403949
  10. Aug 24, 2019
  11. Jul 11, 2019
  12. Jul 10, 2019
  13. Jun 26, 2019
  14. Feb 05, 2019
  15. 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
  16. Oct 07, 2018
  17. Aug 04, 2018
    • Alex Maclean's avatar
      ramips: move partitions into partition table node · 6031ab34
      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: default avatarAlex Maclean <monkeh@monkeh.net>
      6031ab34
    • Mathias Kresin's avatar
      ramips: fix dtc warnings · 53624c17
      Mathias Kresin authored
      
      Fix individual boards dtc warnings or obvious mistakes.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      53624c17
    • Mathias Kresin's avatar
      ramips: fix pci/pcie related dtc warnings · f9b8328d
      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: default avatarMathias Kresin <dev@kresin.me>
      f9b8328d
  18. Jul 16, 2018
  19. Jun 01, 2018
  20. May 30, 2018
    • Rosen Penev's avatar
      ramips: Fix WiFi after 5f7396eb · 02f815d1
      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: default avatarRosen Penev <rosenp@gmail.com>
      02f815d1
  21. Oct 25, 2017
  22. Aug 03, 2017
  23. Jul 29, 2017
  24. Mar 01, 2017
    • Francois Goudal's avatar
      ramips: add support for Afoundry EW-1200 · 9b35815f
      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: default avatarFrancois Goudal <francois@goudal.net>
      9b35815f
  25. Feb 01, 2017
  26. Nov 23, 2016
    • Mathias Kresin's avatar
      ramips: cleanup dts files of mt7621 based boards · f1d0eba3
      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: default avatarMathias Kresin <dev@kresin.me>
      f1d0eba3
  27. Nov 13, 2016
    • Mathias Kresin's avatar
      treewide: dts: use keycode defines from input dt-binding · 2b55c83e
      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: default avatarMathias Kresin <dev@kresin.me>
      2b55c83e
  28. Jun 20, 2016
  29. May 18, 2016
  30. May 12, 2016
  31. Jan 19, 2016
  32. Dec 18, 2015
Loading