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. Feb 05, 2021
    • Ewan Parker's avatar
      ramips: add support for Hi-Link HLK-7688A · ddafcc79
      Ewan Parker authored
      
      Specifications:
      
        - SoC: MediaTek MT7688AN
        - RAM: 128 MB
        - Flash: 32 MB
        - Ethernet: 5x 10/100 (1x WAN, 4x LAN)
        - Wireless: built in 2.4GHz (bgn)
        - USB: 1x USB 2.0 port
        - Buttons: 1x Reset
        - LEDs: 1x (WiFi)
      
      Flash instructions:
      
        - Configure TFTP server with IP address 10.10.10.3
        - Name the firmware file as firmware.bin
        - Connect any Ethernet port to the TFTP server's LAN
        - Choose option 2 in U-Boot
        - Alternatively choose option 7 to upload firmware to the built-in
          web server
      
      MAC addresses as verified by OEM firmware:
      
        use   address   source
        2g    *:XX      factory 0x4
        LAN   *:XX+1    factory 0x28
        WAN   *:XX+1    factory 0x2e
      
      Notes:
      
      This board is ostensibly a module containing the MediaTek MT7688AN SoC,
      128 MB DDR2 SDRAM and 32 MB flash storage.  The SoC can be operated in
      IoT Gateway Mode or IoT Device Mode.
      
      From some vendors the U-Boot that comes installed operates on UART 2
      which is inaccessible in gateway mode and operates unreliably in the
      Linux kernel when using more than 64 MB of RAM.  For those, updating
      U-Boot is recommended.
      
      Signed-off-by: default avatarEwan Parker <ewan@ewan.cc>
      [add WLAN to 01_leds]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      ddafcc79
  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. Aug 06, 2020
  7. Jul 31, 2020
    • Robinson Wu's avatar
      ramips: add support for JS76x8 series DEV boards · 84cb0f7a
      Robinson Wu authored
      
      This commit adds support for the Jotale JS76x8 series development boards.
      These devices have the following specifications:
      
      - SOC: MT7628AN/NN, MT7688AN, MT7628DAN
      - RAM of MT7628AN/NN and MT7688AN: 64/128/256 MB (DDR2)
      - RAM of MT7628DAN: 64 MB (DDR2)
      - FLASH:8/16/32 MB (SPI NOR)
      - Ethernet:3x 10/100 Mbps ethernet ports (MT76x8 built-in switch)
      - WIFI:1x 2T2R 2.4 GHz Wi-Fi
      - LEDs:1x system status green LED, 1x wifi green LED,
             3x ethernet green LED
      - Buttons:1x reset button
      - 1x microSD slot
      - 4x USB 2.0 port
      - 1x mini-usb debug UART
      - 1x DC jack for main power (DC 5V)
      - 1x TTL/RS232 UART
      - 1x TTL/RS485 UART
      - 13x GPIO header
      - 1x audio codec(wm8960)
      
      Installation via OpenWrt:
      
      The original firmware is OpenWrt, so both LuCI and sysupgrade can be used.
      
      Installation via U-boot web:
      
      1. Power on board with reset button pressed, release it
         after wifi led start blinking.
      2. Setup static IP 192.168.1.123/4 on your PC.
      3. Go to 192.168.1.8 in browser and upload "sysupgrade" image.
      
      Installation via U-boot tftp:
      1. Connect to serial console at the mini usb, which has been connected to UART0
         on board (115200 8N1)
      2. Setup static IP 192.168.1.123/4 on your PC.
      3. Place openwrt-firmware.bin on your PC tftp server (192.168.1.123).
      3. Connect one of LAN ports on board to your PC.
      4. Start terminal software (e.g. screen /dev/ttyUSB0 115200) on PC.
      5. Apply power to board.
      6. Interrupt U-boot with keypress of "2".
      7. At u-boot prompts:
         Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N) Y
         Input device IP (192.168.1.8) ==:192.168.1.8
         Input server IP (192.168.1.123) ==:192.168.1.123
         Input Linux Kernel filename (root_uImage) ==:openwrt-firmware.bin
      8. board will download file from tftp server, write it to flash and reboot.
      
      Signed-off-by: default avatarRobinson Wu <wurobinson@qq.com>
      [add license to DTS files, fix state_default and reduce to the mimimum,
      move phy0tpt trigger to DTS, drop ucidef_set_led_timer, fix network ports]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      84cb0f7a
  8. May 09, 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 10, 2019
  13. Feb 05, 2019
  14. 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
  15. Oct 07, 2018
  16. Aug 04, 2018
  17. Jul 16, 2018
  18. Dec 29, 2017
  19. Feb 16, 2017
    • Furong Xu's avatar
      ramips: fix PWM pin mux conflict in dtsi · 00343e18
      Furong Xu authored
      
      GPIO18 and GPIO19 on OMEGA2(+) should be GPIO mode, enable PWM lead to a conflict
      
      [    0.290633] rt2880-pinmux pinctrl: pin io18 already requested by pinctrl; cannot claim for 10005000.pwm
      [    0.299722] rt2880-pinmux pinctrl: pin-18 (10005000.pwm) status -22
      [    0.305729] rt2880-pinmux pinctrl: could not request pin 18 (io18) from group pwm0  on device rt2880-pinmux
      [    0.315131] mtk-pwm 10005000.pwm: Error applying setting, reverse things back
      
      Keep PWM disabled.
      
      Signed-off-by: default avatarFurong Xu <xfr@outlook.com>
      00343e18
  20. Feb 14, 2017
  21. Jan 15, 2017
    • Lazar Demin's avatar
      ramips: Added Onion Omega2 and Omega2+ · ab90f15c
      Lazar Demin authored
      This patch adds support for the Onion Omega2 and Omega2+ (https://onion.io
      
      )
      
      Specifications:
      - SoC: MediaTek MT7688AN (580MHz, ramips)
      - Omega2
        - RAM: 64MB DDR
        - Storage: 16MB NOR SPI flash onboard
      - Omega2+
        - RAM: 128MB DDR
        - Storage: 32MB NOR SPI flash onboard + microSD slot
      - Wireless: Built into MT7688AN (mt76) with onboard 1x chip antenna and u.FL connecter
      - Ethernet: 1x100M pins on Omega2 & Omega2+, can use Ethernet Expansion and an Omega Dock to get a physical Ethernet port
      - Strongly recommend using the Omega2 & Omega2+ with a Dock (Expansion Dock, Power Dock, Arduino Dock 2, Mini Dock)
        - All Docks Provide:
          - Micro-USB port to provide power to the Omega
            - On the Expansion and Mini Docks, can also access the terminal (UART0) via serial
          - USB 2.0 socket connected to Omega
        - Just the Expansion Dock, Power Dock, and Arduino Dock 2 provide:
          - Omega GPIO breakout
          - Allows for connection of Omega Expansions:
            - Ethernet Expansion
            - Relay Expansion
            - PWM Expansion
            - OLED Expansion
            - Ethernet Expansion
            - Proto Expansion
            - Cellular Expansion
      
      Signed-off-by: default avatarLazar Demin <lazar@onion.io>
      ab90f15c
  22. 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
  23. Jun 01, 2016
  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
  30. Oct 19, 2015
Loading