Commit Graph

363 Commits

Author SHA1 Message Date
Daniel Golle
08a9eb94b1 kernel: pick patches for MediaTek Ethernet from linux-next
Pick patches with several fixes and improvements, preparation for
upcoming WED (TX) [1] as well as basic XDP support [2] with MediaTek's
Filogic SoCs to the mtk_eth_soc driver.

Also pick follow-up patch fixing Ethernet on MT7621 [3].

Tested on Bananapi BPi-R3 (MT7986), Bananapi BPi-R64 (MT7622),
Bananapi BPi-R2 (MT7623), MikroTik RouterBoard M11G (MT7621).

[1]: https://patchwork.kernel.org/project/netdevbpf/list/?series=662108&state=*
[2]: https://patchwork.kernel.org/project/netdevbpf/list/?series=675368&state=*
     (the first part of the series adding wed nodes to mt7986a.dtsi was
      applied to the copy of mt7986a.dtsi in our tree)
[3]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=5e69163d3b9931098922b3fc2f8e786af8c1f37e

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-26 16:35:29 +08:00
lovehackintosh
6fc2d00f25
kernel: bump 5.4 to 5.4.214 (#10170)
Manually rebased:
 generic/hack-5.4/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
 ipq806x/patches-5.4/0063-2-tsens-support-configurable-interrupts.patch
 layerscape/patches-5.4/301-arch-0008-arm-add-new-non-shareable-ioremap.patch
 layerscape/patches-5.4/820-usb-0009-usb-dwc3-Add-workaround-for-host-mode-VBUS-glitch-wh.patch
 layerscape/patches-5.4/801-audio-0008-Revert-ASoC-Remove-dev_err-usage-after-platform_get_.patch
 octeon/patches-5.4/700-allocate_interface_by_label.patch

All other patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-09-24 12:09:08 +08:00
AmadeusGhost
8a353822ed Revert "kernel: bump 5.4 to 5.4.211"
This reverts commit 548ac73c5b.
2022-09-19 21:01:08 +08:00
lean
aee55b2e97 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-09-17 17:45:26 +08:00
lean
548ac73c5b kernel: bump 5.4 to 5.4.211 2022-09-17 17:45:16 +08:00
lovehackintosh
4d3f1a6e78
kernel: bump 5.10 to 5.10.143 (#10138)
* kernel: bump 5.10 to 5.10.143

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: refresh 5.10 patches

All patches automatically rebased.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-09-17 17:32:05 +08:00
Daniel Golle
56f5844c81 kernel: mtk_eth_soc: fix hw hash reporting for MT7986
Import patch from Linux 6.0.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-08 14:22:05 +08:00
AmadeusGhost
1e398a0e9f Revert "ramips: disable wlan nat as workaround"
This reverts commit 2d2f20e386.
2022-09-07 02:18:09 +08:00
coolsnowwolf
2d2f20e386
ramips: disable wlan hnat as workaround 2022-09-06 15:35:48 +08:00
AmadeusGhost
39c57aca18 Revert "ramips: mt7621-dts: mux phy0/4 to gmac1"
This reverts commit a28334d8b8.
Closed: #10050, #10053
2022-09-05 23:20:51 +08:00
syb999
a3b880a4e8
ramips: add support for C-Life XG1 [WIFI6] (#10057)
CPU: MediaTek MT7621AT
  Flash: Micron MT29F2G08ABAGAWP 128M
  RAM: 256 M
  WiFi: MT7915 2.4/5 GHz 2T2R
  Ethernet: 10/100/1000 Mbps x3
  LED: Status (red / blue / white / green / purple / cyan)
  USB: 2.0 x 1
  ZigBee/BlueTooth
  USB Audio: iec958 x 1
  Button: Reset
  Power: DC 12V,1.5A

开启ssh方法:
  打开网页:192.168.10.1,用户路由器底面标注的用户名密码完成登陆。
  然后打开网页:http://192.168.10.1/cgi-bin/luci/admin/mtk/console,在命令行中输入以下命令:
  echo -en "root\nroot\n" | passwd
  然后打开网页:http://192.168.10.1/cgi-bin/luci/pti/ssh_open
  即可ssh登陆192.168.10.1,用户名root,密码root

刷入openwrt:

开启ssh后,上传breed-mt7621-xiaomi-r3g.bin到路由器/tmp目录。
然后使用下面命令刷入breed:
mtd -r write /tmp/breed-mt7621-xiaomi-r3g.bin Bootloader
等待机器重启,等1分钟断开电源。
按住C-Life XG1机身正面的圆形IoT按钮(gpio 18),通电就能进入breed刷机.
2022-09-04 18:30:18 +08:00
Daniel Golle
888e3c35a7 kernel: backport generic phylink validate
Backport generic phylink validate series and make use of it for
mtk_eth_soc Ethernet driver as well as mt7530 DSA driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-03 11:22:49 +08:00
padavanonly
b8588061ba ramips: mt7621: fix transparent proxy issue 2022-09-02 11:57:27 +08:00
AmadeusGhost
1ccc3bfd54 ramips: mt7621: fixes dsa hnat support 2022-08-30 12:01:08 +08:00
?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?=
a28334d8b8 ramips: mt7621-dts: mux phy0/4 to gmac1
Mux the MT7530 switch's phy0/4 to the SoC's gmac1 on devices where RGMII2
pins are available. This achieves 2 Gbps total bandwidth to the CPU using
the second RGMII.

The ports called "wan" are muxed where possible. On a minority of devices,
this is not possible. Those cases:

mt7621_ampedwireless_ally-r1900k.dts: lan3
mt7621_ubnt_edgerouter-x.dts: eth0
mt7621_gnubee_gb-pc1.dts: ethblue
mt7621_linksys_re6500.dts: lan1
mt7621_netgear_wac104.dts: lan4
mt7621_tplink_eap235-wall-v1.dts: lan0
mt7621_tplink_eap615-wall-v1.dts: lan0
mt7621_ubnt_usw-flex.dts: lan1

The "wan" port is just what the vendor designated on the board/plastic
chasis of the device. On a technical level, there is no difference between
a lan and wan port on MT7621AT, MT7621DAT and MT7621ST SoCs. Prefer
connecting to WAN via the port described above for these devices to benefit
the feature brought with this patch.

mt7621_d-team_newifi-d2.dts cannot benefit this feature, although it looks
like it should, because the rgmii2 pins are wired to unused components.

Tested on a range of devices documented on the GitHub PR.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-08-30 11:48:07 +08:00
Arınç ÜNAL
9483e6d8a9 ramips: mt7621-dts: do not claim rgmii2 group as gpio for certain devices
These devices do not use rgmii2 as gpio, therefore remove rgmii2 pin group
from state-default. Remove overwriting the ethernet node for these devices.

Move claiming the rgmii2 group from mt7621_zyxel_nwa-ax.dtsi to
mt7621_zyxel_nwa50ax.dts as it's only the latter using rgmii2 pins as gpio.

Remove duplicate ethernet overwrite from mt7621_tplink_archer-x6-v3.dtsi.

Claim rgmii2 group as gpio on mt7621_bolt_arion.dts as it uses an rgmii2
pin, 26, as gpio.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-08-30 11:47:15 +08:00
Arınç ÜNAL
a9d71837e9 ramips: fix GB-PC1 and GB-PC2 device support
Change switch port labels to ethblack & ethblue.
Change lan1 & lan2 LEDs to ethblack_act & ethblue_act and fix GPIO pins.
Add the external phy with ethyellow label on the GB-PC2 devicetree.
Do not claim rgmii2 as gpio, it's used for ethernet with rgmii2 function.
Enable ICPlus PHY driver for IP1001 which GB-PC2 has got.
Update interface name and change netdev function.
Enable lzma compression to make up for the increased size of the kernel.
Make spi flash bindings on par with mainline Linux to fix read errors.

Tested on GB-PC2 by Petr.

Tested-by: Petr Louda <petr.louda@outlook.cz>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-08-30 11:46:22 +08:00
David Bauer
29706161e3 ramips: fix missing NVMEM subsystem
MAC address retrieval was switched to more generic upstream (5.13) NVMEM
based solution in commit 06bb4a5018cd ("ramips: convert mtd-mac-address
to nvmem implementation") , but NVMEM subsystem wasn't enabled in the
kernel, so fix it now.

Fixes: 06bb4a5018cd ("ramips: convert mtd-mac-address to nvmem implementation")
Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [commit message]
2022-08-30 11:45:06 +08:00
aodzip
3302e26e94 ramips/mt7621: Add HATLab GateBoard-One Support
Signed-off-by: Aodzip <aodzip@gmail.com>
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2022-08-28 15:50:27 +08:00
lovehackintosh
ec3a9bd8ac
kernel: bump 5.15 to 5.15.63 (#9999)
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-08-26 13:11:25 +08:00
Reto Schneider
1463a9598f ramips: mt7628: fix memory controller reset bit
According to MediaTek MT7688 Datasheet v1.4, as well as the MT7628
counterpart, the memory controller reset bit (MC_RST) is 10, not 20.
Reset bit 20 is used for for UART 2 (UART2_RST).

Please note: Due to the lack of hardware, I was not able to test this
change.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2022-08-10 11:05:05 +08:00
Jiaxun Yang
665970a97d ramips: mt7530: Implement set_port_link
set_port_link is required by swconfig to setup link mode.
Here we implemented set_port_link by touching MII PHY registers.
For autoneg enabled case, we set advertise registers to let
autoneg reach the target mode and then retrigger autoneg. For
non autoneg case, we set BMCR register to force PHY enter
desired mode.

This patch have been tested on both MT7620 and MT7621.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
2022-08-09 11:21:28 +08:00
Beginner
a735627a66
kernel: bump 5.10 to 5.10.134 (#9868)
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Co-authored-by: John Audia <therealgraysky@proton.me>
2022-07-31 13:25:41 +08:00
benihi
94306d3827
ramips: 5.4: fix build error (#9849)
- modify "mt7621_nand.c" newlines to "LF"

- add "mt7621_nand.c" patches for kernel 5.4
2022-07-28 13:46:25 +08:00
lovehackintosh
70bf186a84
ramips: 5.4: fixes nand patches (#9848)
Fixes: #9847
2022-07-28 10:05:40 +08:00
lovehackintosh
d677e6a664
ramips: move mt7621_nand driver to files and sync with upstream (#9844) 2022-07-27 23:51:19 +08:00
aakkll
8852b7bb51
kernel: bump 5.15 to 5.15.56 (#9816)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-22 18:13:08 +08:00
lean
b8a02059f4 ramips: disable MT7621 overclock 2022-07-11 17:17:23 +08:00
lean
31dacf9899 ramips: fix wifi issue with hnatv1 2022-07-10 15:48:26 +08:00
aakkll
54ed3a93f8
kernel: bump 5.15 to 5.15.53 (#9715)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-09 02:43:26 +08:00
lean
b01b487f95 ramips: disabled whnat as workaround 2022-07-08 15:59:41 +08:00
lean
22dbef3fbb Revert "Revert "ramips: improve MT7621 clock""
This reverts commit ac5f5dcd28.
2022-07-08 14:30:07 +08:00
lean
ef8b8224b9 ramips: fix mi cr660x wan mac 2022-07-08 13:23:25 +08:00
lean
00522a1d86 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-07-08 12:44:50 +08:00
AmadeusGhost
ac5f5dcd28 Revert "ramips: improve MT7621 clock"
This reverts commit 003eb67e86.
This may cause some devices to fail to boot, close: #9711
2022-07-08 11:26:41 +08:00
lean
82118ca885 ramips: add Mediatek EIP93 Crypto driver for MT7621 2022-07-08 11:07:52 +08:00
lean
4e0fd76789 ramips: mi cr660x: switch to new hnat driver 2022-07-08 03:45:37 +08:00
lean
003eb67e86 ramips: improve MT7621 clock 2022-07-08 01:18:08 +08:00
Hauke Mehrtens
5adf0dcafc kernel: bump 5.4 to 5.4.203
Merged upstream:
 bcm27xx/patches-5.4/950-1014-Revert-mailbox-avoid-timer-start-from-callback.patch
 generic/backport-5.4/080-wireguard-0021-crypto-blake2s-generic-C-library-implementation-and-.patch

Manually adapted:
 layerscape/patches-5.4/801-audio-0005-Revert-ASoC-fsl_sai-Add-support-for-SAI-new-version.patch
 oxnas/patches-5.4/100-oxnas-clk-plla-pllb.patch

Compile-tested: lantiq/xrx200
Run-tested: lantiq/xrx200

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-07-07 16:02:32 +08:00
Beginner
ddc2b246d7
kernel: bump 5.10 to 5.10.125 (#9656)
* kernel: bump 5.10 to 5.10.121

Manually rebased:
    oxnas/patches-5.10/100-oxnas-clk-plla-pllb.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.122

All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.123

No patches required a rebase, just updated checksum.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.124

All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.125

All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

Co-authored-by: John Audia <therealgraysky@proton.me>
2022-06-27 17:02:35 +08:00
aakkll
6adba088c0
kernel: bump 5.15 to 5.15.50 (#9649) 2022-06-26 13:56:24 +08:00
Arınç ÜNAL
5d8d544aa9 ramips: mt7621-dts: fix claiming rgmii2 pin group for EdgeRouter X SFP
For a TX->TX connected external phy to transmit/receive data, the rgmii2
pin group needs to be claimed with gpio function, at least for EdgeRouter X
SFP. We already claim the pin group under the pinctrl node with gpio
function on the gpio node on mt7621_ubnt_edgerouter-x.dtsi.

However, we should claim a pin group under its consumer node. It's the
ethernet node in this case, which we already claim the rgmii2 pin group
under it on mt7621.dtsi. Therefore, set the function as gpio on the rgmii2
node for EdgeRouter X SFP and get rid of claiming the rgmii2 pin group
under the pinctrl node. With this change, we also get to remove a
definition from mt7621_ubnt_edgerouter-x.dtsi which is specific to
EdgeRouter X SFP.

This change is tested on an EdgeRouter X SFP.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-06-25 16:35:12 +08:00
aakkll
04d870e468
kernel: bump 5.15 to 5.15.49 (#9633)
* kernel: bump 5.15 to 5.15.49

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

* kernel: 5.15: x86-64: enable CONFIG_SLS
2022-06-23 13:27:11 +08:00
José Hwong
a0cac9a6d1
kernel: bump 5.4 to 5.4.199 (#9601)
Removed:
target/linux/bcm27xx/patches-5.4/950-1014-Revert-mailbox-avoid-timer-start-from-callback.patch [1]

[1]6d8b9f574b

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-06-18 00:30:30 +08:00
AmadeusGhost
8c76a6f498 ramips: mt7621/network: drop mtwifi hack 2022-06-18 00:16:36 +08:00
AmadeusGhost
d41530dba8 ramips: jcg q20: drop ubootmod version 2022-06-18 00:13:26 +08:00
AmadeusGhost
c78af7bc21 ramips: jcg y2: switch to new hnat driver 2022-06-18 00:12:35 +08:00
AmadeusGhost
f46c60443c ramips: mi ac2100: switch to new hnat driver 2022-06-18 00:11:39 +08:00
AmadeusGhost
0eed36f2ea ramips: gehua ghl: switch to new hnat driver 2022-06-18 00:09:13 +08:00
AmadeusGhost
b31fe9b0f6 ramips: c5/k2p: switch to new hnat driver 2022-06-18 00:08:10 +08:00