Commit Graph

181 Commits

Author SHA1 Message Date
coolsnowwolf
b743ccd20c kernel: bump 5.15 to 5.15.173 2024-11-18 15:13:42 +08:00
Tianling Shen
8061c8b8f9
mediatek: add support for OpenEmbed SOM7981 (#12524)
* kernel: crypto: add atmel i2c hw accelerator support

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* kernel: add led act/polarity select for rtl8221 phy

Signed-off-by: Tianling Shen <cnsztl@gmail.com>

* mediatek: add support for OpenEmbed SOM7981

Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: 256 MiB SPI-NAND
  RAM: 0.5/1 GB DDR4
  Ethernet: 1x 1GbE, 1x 2.5GbE (RTL8221B)
  WiFi: MediaTek MT7976C
  USB: 1x M.2 B-Key
  GPIO: 26-Pin header
  UART: 6 GND, 8 TX, 10 RX (in Pin header)
  Button: Reset

Installation:
The board comes with a third-party custom OpenWrt image, you can upload
sysupgrade image via LuCI directly WITHOUT keeping configurations.

Or power on the board with pressing reset button for 5 second, then visit
http://192.168.1.1 and upload -factory.bin firmware.

Signed-off-by: Tianling Shen <cnsztl@gmail.com>

---------

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
2024-10-08 19:42:37 +08:00
Beginner
8cf859bf01
kernel: bump 5.15 to 5.15.162 (#12317) 2024-07-08 14:57:44 +08:00
Beginner
330337a644
kernel: bump 5.15 to 5.15.161 (#12243) 2024-06-16 22:41:02 +08:00
Christian Marangi
fb661b4744 generic: backport initial LEDs hw control support
Backport initial LEDs hw control support. Currently this is limited to
only rx/tx and link events for the netdev trigger but the API got
accepted and the additional modes are working on and will be backported
later.

Refresh every patch and add the additional config flag for QCA8K new
LEDs support.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-16 17:16:13 +08:00
Daniel Golle
fb42176cd1 generic: sync MediaTek Ethernet driver with upstream
Import commits from upstream Linux replacing some downstream patches.
Move accepted patches from pending-{5.15,6.1} to backport-{5.15,6.1}.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-13 22:20:05 +08:00
Daniel Golle
a07fca99cb kernel: serial: 8250_mtk: track busclk state to avoid bus error
UARTs not used as boot console are currently broken on some MediaTek
targets due to register access depending on the bus clock being enabled.
Add patch to make sure this dependency is always met.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-11 22:52:17 +08:00
Beginner
19e494cfe7
kernel: bump 5.15 to 5.15.159 (#12166) 2024-05-18 06:30:07 +08:00
coolsnowwolf
1b3612a289 kernel: bump 5.15 to 5.15.158 2024-05-07 10:13:18 +08:00
coolsnowwolf
524107deb5 Revert "kernel: bump 5.15 to 5.15.158 (#12126)"
This reverts commit 0f35cfbb60.
2024-05-05 14:25:14 +08:00
Beginner
0f35cfbb60
kernel: bump 5.15 to 5.15.158 (#12126) 2024-05-04 10:10:03 +08:00
Beginner
87d7c07cfa
kernel: bump 5.15 to 5.15.157 (#12108) 2024-05-01 20:00:14 +08:00
aiamadeus
54bb95de0f target: add some missing patches 2024-04-30 20:19:35 +08:00
Beginner
849b8c3dbc
kernel: bump 5.15 to 5.15.156 (#12082) 2024-04-20 00:10:53 +08:00
Beginner
fd8808e403
kernel: bump 5.15 to 5.15.155 (#12076) 2024-04-15 10:10:29 +08:00
Beginner
7727540c1c
kernel: bump 5.15 to 5.15.153 (#12048) 2024-04-04 15:00:40 +08:00
Florian Eckert
05c7666b4d tools: add tmon package
Add the 'tmon' packages. This is as a tool to help visualize,
tune, and test the complex thermal subsystem.

We get a compile warning for the tool that the printf format does not
fit. This commit contains a patch that fixes this warning. This patch
has also been sent upstream to the Linux kernel [1].

Links:
[1] https://lore.kernel.org/all/20231204141335.2798194-1-fe@dev.tdt.de/

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-02 21:56:25 +08:00
Beginner
5f3d8d4647
kernel: bump 5.15 to 5.15.152 (#12005) 2024-03-17 15:20:10 +08:00
Beginner
2923d86419
kernel: bump 5.15 to 5.15.151 (#11958) 2024-03-08 10:18:19 +08:00
Beginner
d75705cfc4
kernel: bump 5.15 to 5.15.150 (#11938) 2024-03-03 00:10:26 +08:00
Beginner
5945bf489f
kernel: bump 5.15 to 5.15.149 (#11915) 2024-02-25 00:10:19 +08:00
Beginner
edb87675dd
kernel: bump 5.15 to 5.15.148 (#11832) 2024-01-27 08:01:24 +08:00
John Audia
03b416d21f kernel: bump 5.15 to 5.15.147
Manually rebased:
	generic/backport-5.15/005-v5.17-01-Kbuild-use-Wdeclaration-after-statement.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-01-18 11:05:16 +08:00
Chen Minqiang
93fc272fcb kernel: ksmbd: only v2 leases handle the directory
This backport a fix for ksmbd.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2024-01-18 10:56:14 +08:00
Beginner
60707924cc
kernel: bump 5.15 to 5.15.144 (#11728)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2023-12-22 15:47:09 +08:00
Beginner-Go
b36db4e355 kernel: refresh 5.15 patches (#11715) 2023-12-18 22:25:24 +08:00
coolsnowwolf
67dcd38678 kernel: bump 5.15 to 5.15.143 2023-12-17 15:38:17 +08:00
Beginner
3358c91e43
kernel: bump 5.15 to 5.15.142 (#11709) 2023-12-16 12:02:58 +08:00
Daniel Golle
16a099f5d6 mediatek: sync MT7988 USXGMII with SDK driver
The USXGMII driver in SDK was heavily refactored, some bugs have been
fixed and it has switched to use phylink_pcs. Follow up with changes
in SDK driver and sync our on-top-of-mainline driver with the SDK
driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-24 23:22:37 +08:00
Daniel Golle
36fccf085d generic: mt7530: backport support for the MT7988 built-in switch
Backport commits adding support for the MT7988 built-in switch to the
mt7530 driver.

This change results in the Kconfig symbol NET_DSA_MT7530 to be extended
by NET_DSA_MT7530_MDIO (everything formally covered by NET_DSA_MT7530)
and NET_DSA_MT7530_MMIO (a new driver for the MMIO-connected built-in
switch of the MT7988 SoC).

Select NET_DSA_MT7530_MDIO for all targets previously selecting
NET_DSA_MT7530, with the exception of mediatek/filogic which also
selects NET_DSA_MT7530_MMIO.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-21 22:32:40 +08:00
Daniel Golle
40e94fc5fd generic: add support for MediaTek NETSYS v3
In order to support Ethernet on the MT7988 SoC add support for NETSYS v3
as well as new paths and USXGMII SerDes to the mtk_eth_soc driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-21 22:20:37 +08:00
aakkll
d8ad8adc3b
kernel: bump 5.15 to 5.15.138 (#11658)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-13 17:47:28 +08:00
David Bauer
39b2d130e5 generic: mt7530: enable PHY configuration using OF
The MT753x switches provide a switch-internal MDIO bus for the embedded
PHYs.

Register a OF sub-node on the switch OF-node for this internal MDIO bus.
This allows to configure the embedded PHYs using device-tree.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:54:04 +08:00
coolsnowwolf
7af4aa447c kernel: bump 5.15 to 5.15.136 2023-10-21 10:24:44 +08:00
John Audia
21c3e8e4a1 kernel: bump 5.15 to 5.15.135
All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-10-20 23:03:30 +08:00
coolsnowwolf
e9ca86b670 generic: fix up backport of interconnect teach in kernel 5.15 2023-10-03 12:03:55 +08:00
lean
77abd0b975 filogic: add support for GL.iNet GL-MT6000 support 2023-09-08 16:33:49 +08:00
aiamadeus
2abe7192ff generic: add more usb modem support 2023-07-31 22:06:00 +08:00
Daniel Golle
697ea1d8fc generic: net: phy: realtek: detect early version of RTL8221B
Early versions (?) of the RTL8221B PHY cannot be identified in a regular
Clause-45 bus scan as the PHY doesn't report the implemented MMDs
correctly but returns 0 instead.
Implement custom identify function using the PKGID instead of iterating
over the implemented MMDs to work-around this problem.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:27:14 +08:00
Daniel Golle
e0fd382892 kernel: net: phy: realtek: fix NULL pointer dereference
The previous attempt to replace an open coded paged read in the RealTek
Ethernet PHY driver was too naive and resulted in breaking the r8169
PCIe Ethernet driver which also makes use of the RealTek Ethernet PHY
driver.
Fix this by instead of using the (not yet populated) paged operations
rather use rtl821x_write_page and protect the whole paged read operation
using the MDIO bus mutex.

Fixes: 998b973157 ("kernel: net: phy: realtek: improve RealTek 2.5G PHY driver")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:26:18 +08:00
Daniel Golle
664b181256 kernel: net: phy: realtek: improve RealTek 2.5G PHY driver
* use interface mode switching only when operating in C45 mode
   Linux prevents switching the interface mode when using C22 MDIO,
   hence use rate-adapter mode in case the PHY controlled via C22.

 * use phy_read_paged where appropriate

 * use existing generic inline functions to handle 10GbE advertisements
   instead of redundantly defining register macros in realtek.c which
   are not actually vendor-specific.

 * make sure 10GbE advertisement is valid, preventing false-positive
   warning "Downshift occurred from negotiated speed 2.5Gbps to actual
   speed 1Gbps, check cabling!" with some link-partners using 1G mode.

 * Support Link Down Power Saving Mode (ALDPS)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:25:18 +08:00
Daniel Golle
06158f1c7a generic: disable SGMII in-band AN for RealTek 2.5G PHYs
MAC drivers don't use SGMII in-band autonegotiation unless told to do so
in device tree using 'managed = "in-band-status"'. When using MDIO to
access a PHY, in-band-status is unneeded as we have link-status via
MDIO. Switch off SGMII in-band autonegotiation using magic values.

Reported-by: Chen Minqiang <ptpt52@gmail.com>
Reported-by: Yevhen Kolomeiko <jarvis2709@gmail.com>
Tested-by: Yevhen Kolomeiko <jarvis2709@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:24:18 +08:00
Daniel Golle
b238fdb0b6 generic: use genphy_soft_reset for RealTek 2.5G PHYs
Some vendor bootloaders do weird things with those PHYs which result in
link modes being reported wrongly. Start from a clean sheet by resetting
the PHY.

Reported-by: Yevhen Kolomeiko <jarvis2709@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:23:20 +08:00
Felix Fietkau
a1429324e3 kernel: fix mtk_eth_soc flow accounting for MT7986
This was accidentally dropped when MT7981 support was added

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-06-19 23:15:14 +08:00
Felix Fietkau
17f02fb364 kernel: fix mtk_eth_soc throughput regressions on gigabit PHY ports
Fixes issues on MT7621 and MT7623 switch ports, and PHY ports on all SoC

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-06-19 23:14:37 +08:00
Daniel Golle
120e04cd5e generic: mtk_eth_soc: switch to external PCS driver
Backport patch to make use of the new PCS driver in mtk_eth_soc.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:55:13 +08:00
Daniel Golle
93e24c37dd generic: mtk_eth_soc: allow setting MDIO clock frequency
Backport patch allowing to set the MDIO bus clock frequency.
By default the MDIO bus clock runs on 2.5 MHz, allow increasing it
up to 25 MHz.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:52:46 +08:00
Daniel Golle
83bdbba5bc generic: backport support for MT7981 Ethernet
Backport support for the MT7981 SoC to mtk_eth_soc.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:09:00 +08:00
Daniel Golle
9c394de00d generic: replace mtk_sgmii patches with versions accepted upstream
Replace patches for MediaTek Ethernet driver SGMII/SerDes unit with
their corresponding upstream patches. Not all of the patches in our
tree went upstream as-is, some are slightly different implementations,
and they require the phylink_pcs helpers now made available.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:05:15 +08:00
Linhui Liu
a8788c3123
kernel: bump 5.15 to 5.15.116 (#11299) 2023-06-12 11:05:43 +08:00