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. Sep 28, 2019
  6. Jul 10, 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. Aug 03, 2017
  10. Apr 27, 2017
  11. Apr 25, 2017
Loading