Commit graph

28448 commits

Author SHA1 Message Date
Evan Benn
994b59bdd0 boards: (APP-4028 PR #353): Add ekh-ath79 board for gl-x750 router
Also known as glinet spitz. The mips processor is big endian, so the
current release driver 1.14.1 will not work. I have however tested this
with the big endian patchset and it works.

The board has only 16MB flash, so I have restricted the packages.

The usb port is disabled by a gpio in the upstream dts. I have edited
that to enable the port at boot.

Approved-by: James Haggerty
Approved-by: Lyall Beveridge
2025-03-06 12:26:29 +11:00
Evan Benn
d0713af3d5 boards: (APP-3856, PR #348) Explicity depend on the right morse-fw variants
Approved-by: James Haggerty
Approved-by: Lyall Beveridge
2025-03-06 12:26:29 +11:00
Sophronia Koilpillai
6ef2890074 target: (APP-3746, PR #338) Update the right SPI_OVERLAY for ekh01-mf15457
Approved-by: James Haggerty
Approved-by: Evan Benn
2025-03-04 00:28:31 +11:00
Evan Benn
a5c046e4f9 boards: (APP-3759 PR #334) Replace all EKH04 with EKH04v6
Approved-by: Sophronia Koilpillai
Approved-by: James Haggerty
2025-03-04 00:28:10 +11:00
Sophronia Koilpillai
416eb6c4ba boards: (APP-3483, PR #308) Add Openwrt support for mm8108 evaluation boards
Approved-by: James Haggerty
Approved-by: Evan Benn
Approved-by: Lyall Beveridge
2025-03-04 00:27:37 +11:00
James Haggerty
ba5799fb84 ramips: mt76x8: (APP-3436, PR #301) update kernel config to exclude RAVE_SP
If you don’t have this a clean build now prompts you to select
an option for RAVE_SP (causing a failure unless you run with V=sc
and answer the option).

I'm a bit confused about why this is suddenly necessary AND why the
default make kernel_*config doesn't populate it, but it's echoing a
change that went in with the matter PR for artini.

I’m also concerned that this means we probably should be regenerating
other kernel configs (since people might take this SDK and expect it
to work for other archiectures), but the good news there is that most
of them already have the RAVE thingy.

Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-03-04 00:27:37 +11:00
Kshitij Jain
850102aa07 matter (SW-12275, #298): Add Matter support to openwrt build
SW-12275 add support for releasing matter with openwrt

* Update bluetooth make components (other.mk) with correct config option

* Add matter defconfig for all ekh boards

Approved-by: Cedric Van den Bergh
Approved-by: James Haggerty
Approved-by: Julia Page
2025-03-04 00:27:37 +11:00
James Haggerty
eb2cc07863 bcm27xx: (APP-3730, PR #328) add morse chip name to image name
Plan is to rename ekh01s to include the chip id.
For now, let's just mess with the image name; we can
consider whether we want to modify the model name
(and the internal identifier) once MM8108 settles.

Approved-by: Sophronia Koilpillai
Approved-by: Arien Judge
2025-03-04 00:27:37 +11:00
James Haggerty
7437feab6c bcm27xx: (APP-3659, PR #319) use SD LED for halow activity on morse devices
It's more interesting to see a HaLow activity LED than an
SD card LED, and this lines up with our priorities on the EKH03
(where we now show HaLow link/activity on the single RGB LED).


Approved-by: Milad Mohtashamirad
Approved-by: Lyall Beveridge
2025-03-04 00:27:37 +11:00
James Haggerty
801e6eb690 ramips: dts: (APP-3332, PR #314) add colour based aliases
This removes the extra functionality based aliases from the ekh03
(which are no longer used) and adds colour based aliases, which
make the diag_override.sh script clearer when we're using
multiple LEDs to construct a colour.

Note that we leave the old aliases in so that the board
will work without our custom LED package (morse-led-rgb).

Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-03-04 00:27:37 +11:00
James Haggerty
4f2b05b152 ramips: mt76x8: (APP-3627, PR #316) add halow link activity LED for ekh03/4
Note that this is tricky because we want the LED to be green
when the link is off and purple when the link is on.

This requires a patch to the netdev driver to support invert.

Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-03-04 00:27:37 +11:00
Sophronia Koilpillai
78c2511283 artini: (APP-3313, PR #290) set gpio line name to the 4.3v vfem gpio line
Approved-by: James Haggerty
Approved-by: Evan Benn
2025-03-04 00:25:49 +11:00
Evan Benn
b3fbd02f1c boards: (APP-3000, PR #288) Selectively enable USB
Some targets may not support USB host mode. So move the kmod packages,
and disable the hardware in artini's dts.

Approved-by: James Haggerty
Approved-by: Sophronia Koilpillai
2025-03-04 00:25:49 +11:00
Evan Benn
727bfe8101 ramips: mt7621: (APP-3302, PR #289) Add default settings to status LED
Add configuration to artini dts and code to the LED drivers to support
bringing up the status led in the desired pattern and color. Without
this patch the multicolor-led driver briefly turns the led off (uboot
turned it on) before diag.sh runs to turn it back on.

Approved-by: Sophronia Koilpillai
Approved-by: James Haggerty
2025-03-04 00:25:49 +11:00
Evan Benn
9c0c52cd70 ramips: mt7621: (APP-3302, PR #286) Move PWM LED from kmod to kernel builtin
The status LED is now driven by the PWM driver. When the driver is built as
a kmod module, it is loaded after the preinit state is set. This means
the diag.sh script cannot set the color and flashing pattern. Making the
driver built in means the LED can be controlled at preinit stage.

Approved-by: James Haggerty
Approved-by: Sophronia Koilpillai
2025-03-04 00:25:49 +11:00
Evan Benn
beab97c836 dts: (APP-3302, PR #285) Change artini LED 1 (status) to PWM control
Also provide aliases to each LED so that the LED functions can find the
LEDs.

Approved-by: James Haggerty
Approved-by: Sophronia Koilpillai
2025-03-04 00:25:49 +11:00
Morse Micro
2493afda8d target: ramips: add Morse Micro HaLowLink1 target definition
SoC: Mediatek MT7621AT
RAM: 128 MB
Storage: 32 MB NOR flash
Ethernet: 2x 10/100/1000 Mbps WAN, LAN
USB: RTL8152B USB-Ethernet USBLAN
Wireless: 900 MHz: Morse Micro MM6108 up to 23 Mbps
Wireless: 2.4 GHz: Mediatek MT7603 up to 300 Mbps
LEDs: 3x RGB (System, HaLow, 2.4 GHz)

Patch enables hardware flow offloading by default for MT7621 based platforms.
2025-03-04 00:25:03 +11:00
Morse Micro
0a6186fecf target: ramips: add Morse Micro mt76x8 based evaluation kits
Add OpenWrt target definitions to produce images for the EKH03 and EKH04
versions of Morse Micro evaluation kits. Included in this commit are:
 * kernel config changes to enable pstore for ramoops, USB serial devices,
   and other miscellaneous generated changes.
 * a preinit script to mutate the board_name propagated through OpenWrt
 * inittab changes to remap the default serial interface
2024-11-26 10:03:34 +11:00
Morse Micro
80f94905bf target: ramips: add mainline mt7620 mmc driver
The mainline mmc driver offers improvement in CPU performance by
allowing more data utilise DMA. This change resulted in a 3 Mbps
increase in Morse Micro HaLow throughput.

Add the driver by default to the mt76x8 kernel config and the mt7628
device tree.
2024-11-26 10:03:34 +11:00
James Haggerty
f1bdcfcdb6 bcm27xx: (APP-3631, PR #317) custom distroconfig for ekh devices only
Previously, we'd just been modifying the distroconfig.txt for
all RPIs. This has the advantage that we'd pick up any upstream
changes.

However, for SDK users this is potentially annoying, as they
may want their own set of customisations. It's also a bit
strange that a 'normal' RPI build would have our HAT overlay.

This changes it so we have a custom distroconfig.txt for
ekh01 devices only which completely replaces the base
distroconfig.txt.

Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
James Haggerty
72d55dca89 bcm27xx: (APP-3240, PR #280) set ekh01 sysinfo via device tree
We want to use the normal rpi4 device tree, but have OpenWrt
report different model names. To easily use multi-profile builds,
this has to happen somewhere outside the rootfs.

Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Morse Micro
f079262ef4 target: bcm27xx: add Morse Micro Raspberry Pi based evaluation kits
Add OpenWrt target definitions to produce images for the EKH01 versions
of Morse Micro evaluation kits. Included in this commit are:
 * kernel changes to enable by default SPI support, pstore for ramoops,
   USB serial device and the default CPU governor.
 * a preinit script to mutate the board_name propagated through OpenWrt
 * kernel cmdline changes to support a USB serial adapter for console
   access
2024-11-26 10:03:34 +11:00
James Haggerty
e631bcd327 kernel: add missing 'not sets' to kernel 2024-11-26 10:03:34 +11:00
James Haggerty
9c77bb7fd3 bcm27xx: (APP-2271) move morse specific config to distroconfig
config.txt is the 'user' config which is retained on upgrade,
whereas distroconfig is the distro defaults that might change
on upgrade.

This also means we pick up the OpenWrt default of disabling bluetooth
and the miniuart.

Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Evan Benn
a4a85a0c39 Merged in APP-1962-remove-keepd (pull request #138)
keep.d: (APP-1962) Remove config.txt and cmdline from keep.d

* keep.d: (APP-1962) Remove config.txt and cmdline from keep.d

All filenames in keep.d are retained if the user chooses 'retain config'
in an update. There is no way for the update to override this at update
time. We may want to modify the command line or bootloader config in
a future update, and as we are supporting 'retain configs' we must
remove these files from keep.d. This will only affect updates FROM the
image that includes this patch.


Approved-by: Arien Judge
Approved-by: Takura Mapani
2024-11-26 10:03:34 +11:00
James Haggerty
26069d0361 bcm27xx: (APP-1062) make FS large enough to destroy overlay
Otherwise, on upgrade we retain the overlay if the rootfs size is the
same (causing confusing behaviour). This was taken from
https://github.com/openwrt/openwrt/issues/9113#issuecomment-1572846457

However, ensure we only clear the bit at the end of the partition to
ensure we don't generate unnecessarily large images for the EKH01.
See https://github.com/openwrt/openwrt/pull/13793

Approved-by: Milad Mohtashamirad
Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Morse Micro
9f86115725 kernel: bcm27xx: add Morse Micro device tree overlays
For the Raspberry Pi based platforms, we add device tree overlays to
instantiate the appropriate hardware configuration for MM6108.
SPI and SDIO options are available, as well as relevant power save
configuration.

Also add a ramoops overlay.
2024-11-26 10:03:34 +11:00
Morse Micro
e35cd6b6d7 kernel: add patches to kernels required by the Morse Micro driver
MM6108 does not support 1.8V but offers voltage negotiation. Add
required quirk to kernel.

Additionally, issues in kernel 5.x versions of the BCM2835 SPI driver
have been reported, particular regarding CS polarity. The patch rolls
the driver back to 4.19.
2024-11-26 10:03:34 +11:00
James Haggerty
9b6f83e336 linux: (APP-3627, PR #315) add invert ability to LED netdev trigger
When you have an RGB LED with every colour mapped individually,
it's useful to have a different colour for link on vs link off,
particularly in the case where the LED has multiple meanings
(i.e. it's a generic status/power LED as well, so shouldn't just be
turned off in the absence of a link).

This invert code is largely copied from similar code
in other triggers which already support invert.


Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Milad Mohtashamirad
52275ac476 kernel: (APP-2003) libcamera fix dma heap makefile
There's a bug in drivers/dma-buf/heaps/Makefile or /driver/dma-buf/Makefile
that doesn't allow heaps source files to get compiled.
we raised an issue in openwrt:
https://github.com/openwrt/openwrt/issues/13887

Approved-by: Arien Judge
Approved-by: James Haggerty
2024-11-26 10:03:34 +11:00
Milad Mohtashamirad
a25c265ca8 kernel/bcm27xx: add kmods for libcamera support
libcamera requires a number of v4l2 modules without packages
in OpenWrt.

Additionally, add support for the raspberry pi camera variants

APP-2145, APP-2097, APP-2003, APP-2197

Approved-by: James Haggerty
Approved-by: Matthew Forgie
Approved-by: Evan Benn
2024-11-26 10:03:33 +11:00
James Haggerty
e1843c3b6f linux/generic: (APP-3006, PR #247) force dev_coredump on
Sadly, KConfig mechanism for enabling CONFIG_DEV_COREDUMP is for
an (in-tree) driver to do CONFIG_WANT_DEV_COREDUMP.

But because the morse driver is built separately, it has no
way to demand this, and there's no way to manually specify
CONFIG_DEV_COREDUMP (or CONFIG_WANT_DEV_COREDUMP for that
matter). Therefore we hack the kconfig files.


Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2024-11-26 10:03:33 +11:00
Arien Judge
54efcc4234 generic: backport pwm multicolor led driver from 5.19
Backport commits to 5.19 from Sven Schwermer's series [1] adding support for a
leds-pwm-multicolor driver.

[1] https://lore.kernel.org/all/20220407073225.71605-1-sven@svenschwermer.de/

Signed-off-by: Arien Judge <arien.judge@morsemicro.com>
Approved-by: James Haggerty
Approved-by: Evan Benn
2024-11-26 03:41:08 +11:00
Arien Judge
1456ab5519 generic: add pending patchset introducing pwm-gpio driver
Backports Vincent Whitchurch and Stefan Wahrens pwm-gpio series [1] to kernel 5.15.

[1] https://lore.kernel.org/all/20240204220851.4783-1-wahrenst@gmx.net/

Signed-off-by: Arien Judge <arien.judge@morsemicro.com>
Approved-by: James Haggerty
Approved-by: Evan Benn
2024-11-26 03:41:08 +11:00
Fabian Bläse
87fbb5085d ipq40xx: re-add label MAC address for FritzBox 4040
The MAC address of the GMAC is contained inside the CWMP-Account
number on the label.

The label MAC address alias was defined previously, but it has been
removed with the switch to IPQESS / DSA.

Restore the label MAC address alias.

Fixes: 27b441cbaf ("ipq40xx: drop ESSEDMA + AR40xx DTS nodes")
Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit b22d382ae4eaa1af42930115d91855f402314cac)
Signed-off-by: Tom Herbers <mail@tomherbers.de>
Link: https://github.com/openwrt/openwrt/pull/16459
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-23 10:25:05 +02:00
Markus Stockhausen
ace013101c realtek: 5.15: backport VLAN fix
With commit a22d359fa56fe0 VLAN handling was fixed for kernel 6.6.
This restored network connectivity of the devices. For easy testing
backport the fix for 5.15 too.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/16391
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 35e13244aab36958831195a1d2e152aa3ad0ab6c)
Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
2024-09-22 16:26:25 +02:00
Ryan Salsbury
8e75eed617 ath79: fix I2C pins on GL-AR750
Change I2C pin flags to GPIO_ACTIVE_HIGH and change SDA to GPIO1.

On my late production GL-AR750 (purchased 2024):
SCL = GPIO16
SDA = GPIO1

Bug report:
I2C bus doesn't work in GL-AR750
https://github.com/openwrt/openwrt/issues/16319

Signed-off-by: Ryan Salsbury <ryanrs@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16406
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 2e626ae2d2488f2d3708d3aed57eea7a1402f00e)
Signed-off-by: Ryan Salsbury <ryanrs@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16446
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-22 16:07:46 +02:00
Hauke Mehrtens
4d4d260f5b ramips: tp-link er605-v2: Remove sysupgrade-tar image
The sysupgrade-tar image build is not defined for this target, do not
add a build instruction for it. The build system will use the definition
from the dna_valokuitu-plus-ex400 board and the build will fail.

This fixes the build of the ramips target.

Fixes: 665c2154ef ("ramips: add basic support for tp-link er605-v2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 746e894877e5130a7d5227cd90f90dfe18cc274b)
2024-09-22 15:33:11 +02:00
David Bauer
dd4b05ee8a ipq40xx: add PoE passthrough GPIO
Add the GPIO pin of the PoE passthrough switch on the Aruba AP-303H.
Power is activated when the pin is low. It enables a PSE chip, so power
is only supplied to downstream devices when they are 802.3af/at
compliant devices.

Ensure you use a sufficient power supply when chaining a consuming
device after the AP.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit b40cc46cc882ff97f2752e7837173ffc9f884eb9)
2024-09-20 19:52:46 +02:00
Andreas Böhler
4d7ad37891 ramips: mt7621: use lzma-loader for Sercomm NA502s
This fixes a well-known "LZMA ERROR 1" error on Sercomm NA502s, reported
on the OpneWrt forum [0].

[0] https://forum.openwrt.org/t/206640

Signed-off-by: Andreas Böhler <dev@aboehler.at>
(cherry picked from commit 6d89aa29878a93c744e8c752a68bc05d41252cfc)
Link: https://github.com/openwrt/openwrt/pull/16412
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-18 23:04:37 +02:00
Yan Cangang
912acb6c09 filogic: add missing 2.5G PHY LEDs configuration for Zyxel EX5700
configure 2.5G PHY LEDs to:

2500/1000: green with blink on TX/RX
100/10: green+yellow with blink on TX/RX

which is similar to other 1G PHY LEDs, which are:

1000: green with blink on TX/RX
100/10: green+yellow with blink on TX/RX

Fixes: 6cc14bf66aa ("filogic: support Telenor branded ZyXEL EX5700")

Signed-off-by: Yan Cangang <nalanzeyu@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16082
(cherry picked from commit 3de653a0af35c2d6fbc0fd14909f362c6b977e4a)
Link: https://github.com/openwrt/openwrt/pull/16390
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-15 02:03:25 +02:00
Hauke Mehrtens
8e5e62416f kernel: bump 5.15 to 5.15.167
Manually adapted:
   generic/backport-5.15/020-v6.1-05-mm-multi-gen-LRU-groundwork.patch
   ramips/patches-5.15/311-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch

Link: https://github.com/openwrt/openwrt/pull/16366
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-14 16:51:13 +02:00
Hauke Mehrtens
fd6e077ddf kernel: bump 5.15 to 5.15.166
Manually adapted:
   bcm27xx/patches-5.15/950-0030-Revert-Bluetooth-Always-request-for-user-confirmatio.patch

Link: https://github.com/openwrt/openwrt/pull/16366
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-14 16:51:13 +02:00
Hauke Mehrtens
bad01d4806 kernel: bump 5.15 to 5.15.165
Removed because they are upstream:
   generic/pending-5.15/110-v6.3-0001-spidev-Add-Silicon-Labs-EM3581-device-compatible.patch
   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=bff165a3993683daddf3f00563960e7675966f91

   ipq807x/patches-5.15/0004-v5.16-arm64-dts-qcom-msm8996-Move-clock-cells-to-QMP-PHY-c.patch
   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=32f0e52f16d45d743b473659329f93d4a27c68bf

Manually adapted:
   bcm27xx/patches-5.15/950-0040-spi-spidev-Completely-disable-the-spidev-warning.patch
   bcm27xx/patches-5.15/950-0578-spi-spidev-Restore-loading-from-Device-Tree.patch
   generic/pending-5.15/110-v6.3-0002-spidev-Add-Silicon-Labs-SI3210-device-compatible.patch

Adapt kernel configuration for newly added option
CONFIG_ARM64_ERRATUM_3194386.

The leddev_list_lock attribute changed from rwlock_t to spinlock_t in:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=590304b798a3b89e716b6b564f8ad14bc9373d93

Link: https://github.com/openwrt/openwrt/pull/16366
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-14 16:51:13 +02:00
Rafał Miłecki
ee3efefc5e treewide: fixup models names for UniFi U6 series
Ubiquiti has a set of UniFi 802.11ax (Wi-Fi 6) AP devices. All models
include "U6" in their names and also have code names with no special
characters (including spaces).

Examples:
1. U6 Lite (codename U6-Lite)
2. U6 Long-Range (codename U6-LR)
3. U6+ (codename U6-PLUS)
4. U6 Pro (codename U6-Pro)
5. U6 Mesh (codename U6-Mesh)
6. U6 Mesh Pro (codename U6-Mesh-Pro)
7. U6 Enterprise (codename U6-Enterprise)

Use proper full names for those devices. Names in OpenWrt/DTS code may
need updating too but it can be handled later.

Cc: Elbert Mai <code@elbertmai.com>
Cc: Daniel Golle <daniel@makrotopia.org>
Cc: Henrik Riomar <henrik.riomar@gmail.com>
Cc: David Bauer <mail@david-bauer.net>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 74879140a1aa0b8a8c237e0b67e94c3508e2e249)
2024-09-12 14:37:59 +02:00
David Bauer
7447eeac91 ipq40xx: define config-names for Aruba boards
Aruba boards now ship with multiple DTS and image-configurations per
image. Newer apboot revs expect a configuration for their hardware to be
present.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit c7ba5574f52f25334add66c15190b578ac873739)
2024-09-11 17:47:11 +02:00
Jakob Haufe
a07a531329 octeon: ubnt-edgerouter: Disable PCIe
Some devices lock up on PCIe initialization:

[   64.309697] PCIe: Port 0 in endpoint mode, skipping.
[   64.320496] PCIe: Initializing port 1
[   64.325257] PCIe: BIST FAILED for port 1 (0xffffffffffffffff)
(system hangs here)

Given the ER contains no PCIe peripherals, has no way to attach any
and the stock kernel doesn't have PCIe support either, just disable it.

(cherry picked from commit 308630aea6da1b5618d169d6ebf208aaa249ef72)
Signed-off-by: Jakob Haufe <sur5r@sur5r.net>
Link: https://github.com/openwrt/openwrt/pull/16223
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-08-22 11:41:22 +02:00
Tianling Shen
cce5b49de4 mediatek: fix lan/wan macaddr for cmcc rax3000m
The MAC address assigned to lan/wan was reversed on eMMC boards.

Fixes: d3c193525e ("mediatek: add CMCC RAX3000M support")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/15077
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-08-11 19:18:39 +02:00
Tianling Shen
a591f9cd14 mediatek: enable rootwait for cmcc rax3000m emmc version
Sometimes the mmc deivce may come up later than kernel attempts to
mount rootfs, resulting kernel panic. Enable rootwait to fix it.

Reported-by: Yangyu Chen <cyy@cyyself.name>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/15077
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-08-11 19:18:39 +02:00
Tianling Shen
6fadcee50b mediatek: increase phy assert time for jdcloud re-cp-03
According to RTL8221B's datasheet, the PHY requires at least 10ms
for assert and 68ms (recommended) for de-assert. So increase the
assert/de-assert time to 15ms and 68ms respectively.

Fixes: c0c3234e1720 ("mediatek: add support for JDCloud RE-CP-03")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/16106
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit d1954aa5353eca59bb76d860b09a68a01e7ec05a)
2024-08-08 22:07:08 +02:00