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 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
  3. Jul 19, 2021
  4. Nov 25, 2020
    • Adrian Schmutzler's avatar
      treewide: add space before SPDX identifier · b69c2173
      Adrian Schmutzler authored
      
      Strictly, an SPDX identifier requires a space between the comment
      marker and the identifier itself. The choice of the comment marker
      itself is irrelevant.
      
      Correct:
      
      // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
      
      Wrong:
      
      //SPDX-License-Identifier: GPL-2.0-or-later OR MIT
      
      Fix that in the whole tree (actually, only ramips contained wrong
      uses).
      
      Found by checkpatch.pl
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      b69c2173
  5. 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
  6. 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
  7. Aug 06, 2020
  8. Aug 05, 2020
  9. 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
  10. Dec 23, 2019
  11. Oct 21, 2019
  12. Jul 11, 2019
  13. Jul 10, 2019
  14. Mar 29, 2019
    • Tobias Welz's avatar
      ramips: add support for WIZnet WizFi630S board · 7c4b85ee
      Tobias Welz authored
      
      The WIZnet WizFi630S board is in the miniPCIe form factor.
      
      SoC: Mediatek MT7688AN
      RAM: 128MB
      Flash: 32Mb
      WiFi: 2.4GHz
      Ethernet: 3x 100Mbit
      USB: 1 (USB 2.0)
      serial ports: 2 (1x full, 1xlite)
      
      Flash and recovery instructions: Use the factory installed u-boot boot
      loader. It is available on UART2 (115200,8,n,1).  Then get the
      sysupgrade image from a tftp server.
      
      Signed-off-by: default avatarTobias Welz <tw@wiznet.eu>
      [whitespace and device name in makefile fixes]
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      7c4b85ee
  15. Feb 05, 2019
  16. 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
  17. Oct 07, 2018
  18. Aug 04, 2018
  19. Jul 16, 2018
  20. Dec 23, 2017
  21. Aug 03, 2017
  22. Feb 02, 2017
  23. 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
  24. May 18, 2016
  25. May 12, 2016
  26. May 10, 2016
  27. 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
  28. Dec 18, 2015
  29. Nov 05, 2015
Loading