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. Aug 17, 2021
    • Adrian Schmutzler's avatar
      ramips: mt7628: move mtd-eeprom out of root DTSI · ad6b0770
      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: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      ad6b0770
  4. 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
  5. Apr 12, 2020
    • Chuanhong Guo's avatar
      ramips: replace pinctrl property names · b756ea2a
      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: default avatarChuanhong Guo <gch981213@gmail.com>
      b756ea2a
    • Chuanhong Guo's avatar
      ramips: mt7628: update dts for upstream gpio-mt7621 driver · 0b68d081
      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: default avatarChuanhong Guo <gch981213@gmail.com>
      0b68d081
  6. Dec 23, 2019
  7. Oct 21, 2019
  8. Jul 11, 2019
  9. Jul 10, 2019
  10. Feb 05, 2019
  11. Oct 07, 2018
  12. Aug 04, 2018
  13. Jul 16, 2018
  14. Jan 23, 2018
  15. Aug 03, 2017
  16. Feb 02, 2017
  17. 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
  18. Jun 01, 2016
  19. May 18, 2016
  20. May 12, 2016
  21. May 10, 2016
  22. Apr 09, 2016
    • John Crispin's avatar
      ramips: Fixes for LinkIt 7688 · 0ffa5800
      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: default avatarAdam Kent <adam@semicircular.net>
      
      SVN-Revision: 49130
      0ffa5800
  23. Dec 18, 2015
  24. Nov 05, 2015
  25. Oct 19, 2015
Loading