Shiji Yang
4d213b2ae2
ramips: fix xtal clock registration issue on RT3883
...
The redundant xtal clock source caused clock registration failure.
Link: https://lore.kernel.org/all/20250108093636.265033-1-sergio.paracuellos@gmail.com/
Fixes: https://github.com/openwrt/openwrt/issues/17677
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17830
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit cfca9d6894 )
2025-02-02 20:36:41 +01:00
Shiji Yang
1a75172721
ramips: pinctrl: allow mux SDXC pins for mt76x8
...
The mt76x8 SDXC pin register definition is incompatible with the
mtmips generic pinctrl driver structure. This hack allows us to
mux the SDXC IO to different pin groups in device tree.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17446
(cherry picked from commit 05ec3b50a8 )
Link: https://github.com/openwrt/openwrt/pull/17754
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-29 22:37:05 +01:00
Anders Melchiorsen
a5eb5ee1a6
ramips: restore full switch performance for USW-Flex
...
Since commit f1c9afd801 ("ramips: mt7621-dts: mux phy0/4 to gmac1") the
USW-Flex lan1 port has been attached directly to the CPU. This improves
routing performance but hinders switching.
This is a generally accepted trade-off in that commit but for USW-Flex it
is a questionable choice. This switch is designed to deliver PoE to remote
places and using it as a router is unlikely. Meanwhile, the lan1 port is
also PoE-in and will often be the uplink, carrying most of the traffic.
Reverting f1c9afd801 for USW-Flex restores full 1 Gbps switching
performance on all ports.
Signed-off-by: Anders Melchiorsen <amelchio@nogoto.net >
Link: https://github.com/openwrt/openwrt/pull/17703
Signed-off-by: Robert Marko <robimarko@gmail.com >
(cherry picked from commit 62872f8bfd )
2025-01-27 12:56:29 +01:00
Paweł Owoc
150aa9aeee
ramips: mt7620: fix patching mac address in caldata
...
Fix usage of non-existent 'caldata_patch_mac' function
by using the 'caldata_patch_data' function.
Fixes : #17734
Signed-off-by: Paweł Owoc <frut3k7@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/17737
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 3295f6f1c2 )
2025-01-27 02:05:02 +01:00
Luis Mita
3207fe6636
ramips: mt7621: add support for Confiabits MT7621 v1
...
Hardware:
- SoC: MediaTek MT7621DAT
- Flash: 16 MiB cFeon
- RAM: 128 MiB MT7621DAT
- WLAN: 2.4 GHz (MT7603EN), 5 GHz (MT7613BEN 802.11ac)
- Ethernet: 1x 10/100/1000 Mbps WAN, 3x 10/100/1000 LAN (MT7621DAT)
- Buttons: 1 Reset button, 1 WPS button
- LEDs: 5x Green (POWER/WAN/2.4G/5G/WPS), 1x Red (WAN)
- Serial console: unpopulated header, 57600 8n1
- Power: 12 VDC, 1 A
MAC:
LAN MAC: label mac (eeprom@4)
WAN MAC: label mac (eeprom@4)
2.4G MAC: label mac (eeprom@4)
5G MAC: label mac + 1 (eeprom@8004)
Installation:
The stock firmware is OpenWrt-based. If you can reach LuCI or SSH, just use the sysupgrade image
with the 'Keep settings' option turned off.
Signed-off-by: Luis Mita <luis@luismita.com >
Link: https://github.com/openwrt/openwrt/pull/17534
(cherry picked from commit 1c5ca24da6 )
Link: https://github.com/openwrt/openwrt/pull/17653
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-01-18 19:21:57 +01:00
John Audia
220860ef4c
kernel: bump 6.6 to 6.6.70
...
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.70
Removed upstreamed:
generic/backport-6.6/902-net-llc-reset-skb-transport_header.patch[1]
generic/pending-6.6/605-netfilter-nft_set_hash-unaligned-atomic-read-on-stru.patch[2]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.70&id=0c896816aa193e6459fc947747e5753c06b395b9
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.70&id=4f49349c1963e507aa37c1ec05178faeb0103959
Build system: x86/64
Build-tested: bcm27xx/bcm2712, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: bcm27xx/bcm2712, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Signed-off-by: John Audia <therealgraysky@proton.me >
Link: https://github.com/openwrt/openwrt/pull/17545
Signed-off-by: Robert Marko <robimarko@gmail.com >
(cherry picked from commit efafd7d47f )
2025-01-12 21:43:35 +01:00
Shiji Yang
976bfe61e0
ramips: mtk-mmc: remove nt76x8 pinctrl hack
...
Now we can set the mt76x8 SDXC pinmux in device tree.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17446
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit b4a9f85c13 )
2025-01-04 19:25:34 +01:00
Shiji Yang
09378395cd
ramips: make package kmod-sdhci-mt7620 conflict with kmod-mmc-mtk
...
These two packages are SDXC drivers for Mediatek mt762x series SoCs.
One is upstream implementation, and the other is downstream driver.
Installing them together will result in conflicts.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17446
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 0764e30082 )
2025-01-04 19:25:34 +01:00
Shiji Yang
f311c9754c
ramips: fix SDXC function for mt76x8 one eth port devices
...
There are only 5 devices in mt76x8 sub-target selected the MTK SDXC
driver package. And they are all single ethernet port routers or dev
boards:
* LinkIt Smart 7688
* Onion Omega2+
* RAVPower RP-WD009
* VoCore VoCore2
* VoCore VoCore2-Lite
For these devices, they are using the ephy p1 - p4 as the SDXC IO
pins. Therefore, these GPIO pads must be configured in "digital"
IO mode.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17446
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit f5996ae947 )
2025-01-04 19:25:34 +01:00
Shiji Yang
f81f707c05
ramips: add back SDXC card reader support for HiWiFi HC5x61A
...
After adding the correct package and pin group configurations,
the SDXC card slot can now function properly.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17446
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit cea4aae0a9 )
2025-01-04 19:25:34 +01:00
Shiji Yang
4d9b06c571
ramips: mmc-mtk: add more vendor driver register init values
...
In the MTK vendor driver, mt762x SDXC registers MSDC_PATCH_BIT and
MSDC_PATCH_BIT1 have different init values than upstream driver.
These magical values should have some help for the stability.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17446
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit f70cdfd682 )
2025-01-04 19:25:34 +01:00
Shiji Yang
cc733e7e2a
ramips: mt762{0,8}: reduce default MMC clock to 24 MHz
...
The upstream mtk-sd driver did not perform specific timing
optimization for MT762x series SoC, hence the SDHC peripheral
of some boards cannot run at too high frequency. Reduce the
maximum clock frequency to fix the mmc read/write error.
Closes: https://github.com/openwrt/openwrt/issues/17364
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17375
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit de0c143742 )
2025-01-04 19:25:34 +01:00
Jonathan Sturges
36f7db978a
ramips: mt7621: enable lzma-loader for Amped Wireless ALLY
...
Switch to using loader-kernel to accommodate
larger image sizes that are problematic for
many mt7621 uboots.
Signed-off-by: Jonathan Sturges <jsturges@redhat.com >
Link: https://github.com/openwrt/openwrt/pull/17389
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit f8a8a2c5c7 )
2025-01-01 23:14:31 +01:00
John Audia
21549dbf7b
kernel: bump 6.6 to 6.6.66
...
Update patch set for new release and add required kernel option
CONFIG_ZRAM_TRACK_ENTRY_ACTIME to generic config
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.66
Manually rebased:
bcm27xx/patches-6.6/950-0092-MMC-added-alternative-MMC-driver.patch
bcm53xx/patches-6.6/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
starfive/patches-6.6/1000-serial-8250_dw-Add-starfive-jh7100-hsuart-compatible.patch
Removed upstreamed:
bcm27xx/patches-6.6/950-0029-vc4_hdmi-Avoid-log-spam-for-audio-start-failure.patch[1]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.66&id=e0388a95736abd1f5f5a94221dd1ac24eacbd4d7
Build system: x86/64
Build-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64
Run-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64
Signed-off-by: John Audia <therealgraysky@proton.me >
Link: https://github.com/openwrt/openwrt/pull/17271
(cherry picked from commit 28f534d953 )
Link: https://github.com/openwrt/openwrt/pull/17302
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-12-19 11:22:12 +01:00
John Audia
9af0e94fa6
kernel: bump 6.6 to 6.6.64
...
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.64
Manually rebased:
generic/hack-6.6/780-usb-net-MeigLink_modem_support.patch
bcm27xx/patches-6.6/950-0585-drm-vc4-Introduce-generation-number-enum.patch
bcm27xx/patches-6.6/950-0610-drm-vc4-hvs-Support-BCM2712-HVS.patch
bcm27xx/patches-6.6/950-0829-vc4-hvs-Add-support-for-D0-register-changes.patch
Removed upstreamed:
bcm27xx/patches-6.6/950-0597-drm-vc4-hdmi-Avoid-hang-with-debug-registers-when-su.patch[1]
bcm27xx/patches-6.6/950-0599-drm-vc4-Fix-dlist-debug-not-resetting-the-next-entry.patch[2]
bcm27xx/patches-6.6/950-0600-drm-vc4-Remove-incorrect-limit-from-hvs_dlist-debugf.patch[3]
bcm27xx/patches-6.6/950-0708-drm-vc4-Correct-logic-on-stopping-an-HVS-channel.patch[4]
ramips/patches-6.6/002-01-v6.13-clk-ralink-mtmips-fix-clock-plan-for-Ralink-SoC-RT38.patch[5]
ramips/patches-6.6/002-02-v6.13-clk-ralink-mtmips-fix-clocks-probe-order-in-oldest-r.patch[6]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=223ee2567a55e4f80315c768d2969e6a3b9fb23d
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=8182b5ca19c6f173b6498d1c6d3e4b034b76bbde
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=52c1716f65a558174e381360bd88f18dae4be85c
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=9728b508b01a5eeeac79ceb676364c674dd951ac
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=f85a1d06afbcc57ac44176db8f9d7a934979952c
6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.64&id=fbb13732c6ffa9d58cedafabcd5ce8fd7ef8ae5a
Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Co-authored-by: Mieczyslaw Nalewaj <namiltd@yahoo.com >
Signed-off-by: John Audia <therealgraysky@proton.me >
Link: https://github.com/openwrt/openwrt/pull/17217
Signed-off-by: Robert Marko <robimarko@gmail.com >
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 5158e28769 )
2024-12-15 01:43:39 +01:00
Shiji Yang
bf284ed4af
ramips: fix 2.4G wmac eeprom offset for TL-WR902AC v4
...
The eeprom data offset on 2.4GHz wmac is wrong. It is obvious that
this is a copy & paste issue.
Suggested-by: @cgm999 on https://github.com/openwrt/openwrt/issues/13969
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17263
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 5a24850de1 )
2024-12-14 20:34:55 +01:00
Mauri Sandberg
fd7b1f60ea
ramips: dna_valokuitu-plus-ex400: clean-up image creation
...
Code cleanup. Simplify and unify how kernel image is passed to
Build/dna-bootfs
Signed-off-by: Mauri Sandberg <maukka@ext.kapsi.fi >
Link: https://github.com/openwrt/openwrt/pull/16811
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit ec839c786c )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:49:29 +00:00
Shiji Yang
0a0950614b
ramips: mt76x8: disable unused Ralink systick driver
...
The mt76x8 series SoCs use the MIPS generic systick timer. Sync the
upstream Ralink systick driver changes and disable it for mt76x8
target to reduce the kernel size.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/16844
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 0c57510ced )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:49:27 +00:00
Vaclav Svoboda
50ee6adc5a
ramips: mt76x8: Add support for Zbtlink ZBT-WE2426-B
...
The Zbtlink ZBT-WE2426-B is an indoor dual band WiFi router
with 4 external non detachable antennas and 5 Fast Ethernet ports.
Hardware of ZBT-WE2426-B:
- SoC: MT7628AN
- RAM: 64 MB (Winbond W9751G6K8-25)
- Storage: 8 MB SPI flash (S25FL064K)
- Ethernet: 5x 10/100 Mbps LAN1,LAN2,LAN3,LAN4 & WAN
- Wireless: 2.4GHz: on SoC (802.11b/g/n)
- Wireless: 5GHz: Mediatek MT7612EN (802.11n/ac)
- LEDs: 8x
- Buttons: 1x reset
- USB: 1x 2.0
- MicroSD slot: 1x
- Power: 9 VDC, 1 A
- Uart: GND TX RX PWR - J1 on the PCB
- Board silkscreen: "ZBT-WE2426-C V04" "2018-02-28" "CTT" "13 18"
Backup the stock firmware, settings and calibration data:
This router comes with PandoraBox OpenWrt firmware, so it is
possible to get all MTD partitions using scp.
Installation:
- Using the bootloader web server. Hold the reset button while turning
the power on. Upload the sysupgrade image on http://192.168.1.1 .
- Using the sysupgrade command in PandoraBox OpenWrt.
LEDs:
- LAN1,LAN2,LAN3,LAN4,WAN,WLAN2G use GPIO pins of the MT7628AN SoC
(GPIOs 43,42,41,40,39,44)
- WLAN5G uses pin of MT7612EN.
- The POWER LED is directly connected to the VCC. It can be reconnected to
the GPIO 37 of the MT7628AN SoC by resoldering SMD resistor on the PCB.
Buttons:
- The RESET button is connected to the GPIO 38 of the MT7628AN SoC.
MAC addresses as verified by OEM firmware:
use address source
2g *:b0 factory 0x4 (label)
5g *:b1 factory 0x8004
LAN *:b2 factory 0x28
WAN *:b3 factory 0x2e
Signed-off-by: Vaclav Svoboda <svoboda@neng.cz >
Link: https://github.com/openwrt/openwrt/pull/16927
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 3a9752ea02 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:48:59 +00:00
Shiji Yang
2d3ad35537
ramips: sync upstream Ralink clock patches
...
1. Add sdhc clock for MT7620 and MT76x8 SoCs.
2. Fix clock driver warning for RT2880, RT305x and RT3883.
Link: https://lore.kernel.org/all/20240910044024.120009-1-sergio.paracuellos@gmail.com/
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/17037
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit 7bb99bca3d )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:48:16 +00:00
Rosen Penev
7142e35777
kernel: filter out compiler opts from config
...
These get dynamically set based on compiler version. Not relevant for
targets.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16770
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
(cherry picked from commit cd92cbddf8 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:47:54 +00:00
Rosen Penev
96ab90a9aa
ramips: mt7621: fix typo
...
Missing u caused the regulator to fail probe.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16925
Signed-off-by: Robert Marko <robimarko@gmail.com >
(cherry picked from commit 3e42526404 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:53 +00:00
Rosen Penev
2af51fbdab
treewide: remove THIS_MODULE assignment
...
Matches upstream coccinelle check: api/platform_no_drv_owner.cocci.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16846
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
(cherry picked from commit cc98cfafd7 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:45 +00:00
Rosen Penev
68465e524b
ramips: mt7621: add missing regulator-boot-on
...
What seems to be happening is that the kernel requests an ACTIVE_LOW
gpio initially and sets it to high later based on gpios in dts.
This seems to break some devices where the bootloader sets it to high.
Fixes: e612900ae0 ("ramips: mt7621: convert usb power to regulators")
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16877
Signed-off-by: Robert Marko <robimarko@gmail.com >
(cherry picked from commit a7bc6bf7db )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:39 +00:00
Tim Lunn
79c711a035
rampis: mt7621: Edgerouter-X adjust IMAGE_SIZE to reflect new kernel size
...
IMAGE_SIZE was previously set to kernel1 + ubi size = 256768k, now
kernel1 is 6MB adjust this value to add 3072k to total image size.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit 5b406bccac )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:37 +00:00
Tim Lunn
d582b369c3
ramips: mt7621: Edgerouter-X drop factory image
...
Edgerouter-X factory images have not built automatically since 19.x due
to images being over 3MB. While it was possible to build custom images
with very stripped down config, this is no longer possible with the size
increases of linux 6.1 and 6.6.
Drop code for generation of factory images, if some dev later wishes to
try custom images they can revert this commit.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit 4d90b79704 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:35 +00:00
Tim Lunn
14880209d5
rampis: mt7621: Re-enable Edgerouter-X image builds
...
With the new layout providing 6MB for kernel there will be no issues
with kernel size affecting build of images.
Re-enable image builds for Edgerouter-X and X-SFP.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit 71b4842e3b )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:33 +00:00
Tim Lunn
1c934c7dc7
rampis: mt7621: Edgerouter-X update compat version to 2.0
...
Use compat version to indicate that the new layout for larger kernels
is in place. This handled by the patch to ubnt.sh to always select
the kernel1 slot for flashing and as active kernel slot.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit 1bdbd511b2 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:31 +00:00
Tim Lunn
a5efcbd327
rampis: mt7621: Edgerouter-X set compat version message
...
Refer user to the wiki page for instructions on how to migrate to the
new kernel layout.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit 70c371d91c )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:30 +00:00
Tim Lunn
1fd7e5124e
rampis: mt7621: resize Edgerouter-X kernel size to 6MB
...
With the updated partition layout set in dts, set the KERNEL_SIZE
parameter to 6MB allowing builds of Linux 6.1 and later to fit.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit 09a6bffb6e )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:28 +00:00
Tim Lunn
c2cde63ae6
rampis: mt7621: Edgerouter-X disable toggling of kernel slots
...
Uboot selects which kernel slot to boot based on a flag in the factory
mtd partition. Patch ubnt.sh to ensure always flash to kernel1 slot and
update flag if required.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit 5e355f1f90 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:26 +00:00
Tim Lunn
4b9e9a0310
rampis: mt7621: Convert Edgerouter-X dts to single kernel config
...
The OEM layout for Edgerouter X provides for two 3MB kernel slots.
As of linux 6.1 the kernel images no longer fit and as such
Edgerouter X builds have been disabled in Main.
Revise the layout to make kernel1 slot 6MB and drop kernel2 slot.
This patch applies the required changes to the dts file.
Signed-off-by: Tim Lunn <tim@feathertop.org >
Tested-by: Mauri Sandberg <maukka@ext.kapsi.fi >
Link: https://github.com/openwrt/openwrt/pull/15194
(cherry picked from commit dc51c4355d )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:24 +00:00
Rosen Penev
0cf557876a
ramips: mt7621: convert usb power to regulators
...
These things are regulators. Should silence dmesg messages about using
dummy regulators.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16804
Signed-off-by: Robert Marko <robimarko@gmail.com >
(cherry picked from commit e612900ae0 )
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz >
2024-11-28 18:46:14 +00:00
Robert Marko
141ccfd548
ramips: mt7621: support openwrt,netdev-name for renaming interfaces
...
Edgerouter X currently has its eth1 port on the switch missing since there
is a naming conflict currently.
So, as the root cause is mixing kernel support for DSA interfaces having
predictable names set via "label" property vs others having it assigned
dynamically lets avoid the conflict by using our own custom property as
suggested upstream [1].
So, add support via "openwrt,netdev-name" property and use it on ERX.
Fixes: 2a25c6ace8 ("ramips: get rid of downstream network device label patch")
Fixes : #15643
Link: https://github.com/openwrt/openwrt/pull/17062
Signed-off-by: Robert Marko <robimarko@gmail.com >
(cherry picked from commit 5695267847 )
2024-11-25 16:42:03 +01:00
Mauri Sandberg
a923d1f9ec
ramips: Fix EX400 imagebuilder
...
A factory image for DNA EX400 depends on an initramfs image and they
were explicitly removed from the imagebuilder recently. Now the factory
image creation fails miserably and it also affects custom image creation
with the firmware selector.
Add the initramfs kernel to the staging so that it's shipped with the
imagebuilder. Also remove a image build target added solely for DNA EX400.
Tested by creating a factory and syspupgrade images locally with
the imagebuilder and verified their functionality.
Related work
c85348d9ab ("imagebuilder: remove initramfs image files")
Fixes: fea2264d9f ("ramips: mt7621: Add DNA Valokuitu Plus EX400")
Signed-off-by: Mauri Sandberg <maukka@ext.kapsi.fi >
---
v4: use append-image-stage, remove Build/kernel-initramfs-bin
v3: adjust commit subject
v2: remove fix for inconsistent line ending elsewhere in the file
Link: https://github.com/openwrt/openwrt/pull/16659
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-11-04 11:26:12 +01:00
Rosen Penev
9c6cd2241d
ramips: m4r v4: fix typo
...
It should be debounce-interval, as with the others.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16802
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-31 10:45:11 +01:00
Christian Marangi
73edd3a41e
ramips: ignore errors from trx utility
...
Ignore errors from trx utility to handle case with image too big.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
2024-10-30 14:17:34 +01:00
Rosen Penev
a6a44f94bf
ramips: linkit: replace driver with gpio-hog
...
It does the same thing minus a few dmesg prints.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16788
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-30 11:11:07 +01:00
Andreas Böhler
cbefc64cb3
ramips: Fix WiFi on Sercomm NA502 and NA502s
...
The WiFi chips are actually on PCIe1 and PCIe2, PCIe0 is empty. Fix the
assignment so that WiFi works properly again.
Signed-off-by: Andreas Böhler <dev@aboehler.at >
Link: https://github.com/openwrt/openwrt/pull/16807
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-29 21:25:04 +01:00
Christian Marangi
285e200e5e
ramips: mt7621: drop kmod-i2c-ralink from ASUS RP-AC56
...
Drop kmod-i2c-ralink from ASUS RP-AC56 as it was wrongly added. Such
kmod is not supported on mt7621 as i2c is handled by the mediatek driver
and not bay the ralink downstream one.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
2024-10-29 00:07:54 +01:00
Rosen Penev
0f5e5dee1d
ramips: modernize pwm driver
...
Add more devm usage.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16649
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-27 15:21:03 +01:00
Rosen Penev
3cdab2ad44
ramips: use platform_get_irq
...
No need for irq_of_parse_and_map since this is in _probe.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16771
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
2024-10-27 14:25:24 +01:00
Shiji Yang
d7ed4c77b5
ramips: rt3883: convert devices to interrupt-driven gpio-keys
...
This converts all RT3662 and RT3883 devices to use interrupt based
gpio-keys instead of gpio-keys-polled. The poll-interval will be
removed.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/16764
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-25 13:56:14 +02:00
Shiji Yang
0bcb64041a
ramips: rt305x: convert devices to interrupt-driven gpio-keys
...
This converts all RT305x and RT5350 devices to use interrupt based
gpio-keys instead of gpio-keys-polled. The poll-interval will be
removed.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/16764
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-25 13:56:14 +02:00
Shiji Yang
a3819e23be
ramips: rt2880: convert devices to interrupt-driven gpio-keys
...
This converts all RT2880 devices to use interrupt based gpio-keys
instead of gpio-keys-polled. The poll-interval will be removed.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/16764
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-25 13:56:14 +02:00
Shiji Yang
7cc53ef09b
ramips: mt76x8: convert Minew G1-C to interrupt-driven gpio-keys
...
All other MT76x8 devices have already been migrated to gpio-keys.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/16764
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-25 13:56:14 +02:00
Shiji Yang
0d4616b838
ramips: dts: add the missing interrupt properties for GPIO nodes
...
The Ralink GPIO driver supports irqchip function. Hence we need to
add "interrupt-parent" and "interrupt-controller" properties to make
sure it works properly. It is worth noting that all GPIO devices
share the same interrupt line.
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/16764
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-25 13:56:14 +02:00
Shiji Yang
2b2abdbb75
ramips: ralink-gpio: use irqchip helpers to register driver
...
The gpiolib has already introduced a general GPIO irqchip framework
to initialize the GPIO irqchip[1]. This patch will make use of it
to simplify the legacy Ralink GPIO driver codes. This patch also
includes some code readability improvements.
[1] 1425052097b5 ("gpio: add IRQ chip helpers in gpiolib")
Signed-off-by: Shiji Yang <yangshiji66@qq.com >
Link: https://github.com/openwrt/openwrt/pull/16764
Signed-off-by: Robert Marko <robimarko@gmail.com >
2024-10-25 13:56:14 +02:00
Rosen Penev
19bd5436c7
treewide: remove platform_get_resoruce
...
Easier to just use devm_platform_ioremap_resource.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16701
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-22 00:44:33 +02:00
Rosen Penev
19d84c60f8
ramips: modernize snd-mt7620 driver
...
Use more devm and remove gotos.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/16631
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-20 00:22:04 +02:00