25643 Commits

Author SHA1 Message Date
padavanonly
c5668fe082 Mediatek:add dual ppe support for mt798x 512RAM devices 2023-12-15 01:15:07 +08:00
coolsnowwolf
a760d1b0cd
mediatek: fix gl mt6000 usb3 power regulator (#188) 2023-12-10 10:35:00 +08:00
developer
e66d976488 [Description]
Fix refcount underflow issue in the pending_work.

If one of the Ethernet interface is down, the pending_work should not
call to mtk_stop() function again to avoid a refcount underflow.

Without this patch, the ETH may experience the kernel panic which
caused by a refcount underflow.

[Release-log]
N/A

Change-Id: I4e1f40640c09372cddad57994da03f70107f133a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8324564
2023-12-08 19:31:17 +08:00
hanwckf
ebf353ff63 Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-12-05 23:14:26 +08:00
potatoigit
72034420c2
mediatek: add BPI-R3MINI-NAND 110M Layout (#185) 2023-12-05 23:06:06 +08:00
Tianling Shen
cbfb74a070
mediatek: add JDCloud RE-CP-03 support (#183)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-05 17:31:06 +08:00
hanwckf
b298e36452 update defconfig 2023-11-23 19:48:01 +08:00
padavanonly
b4316271e8
Mediatek:Fix GL.inet mt2500 hnat port setting (#172) 2023-11-23 18:19:51 +08:00
hanwckf
ea37177e3a mediatek: platform.sh: remove unused mtk_mmc_do_upgrade 2023-11-21 22:25:31 +08:00
padavanonly
850894a6e6 mediatek:correct nums of lan ports 2023-11-21 22:20:20 +08:00
padavanonly
7edbdbbf68 mediatek:add suport for gl-mt6000 and tp-xdr608x 2023-11-21 22:20:20 +08:00
padavanonly
bcd46e3b1d mediatek:add support for rtl8221x 2023-11-21 22:20:20 +08:00
potatoigit
a5c5eef119
mediatek: fix emmc sysupgrade on MT7986 (#169) 2023-11-20 14:48:14 +08:00
padavanonly
1e3e270dca
mediatek:fix netcore n60 lan (#166) 2023-11-20 14:48:06 +08:00
hanwckf
4a1f0eb31b mediatek: fix asr3000 lan order
fix #159
2023-11-16 21:41:12 +08:00
padavanonly
65fb5f0767
mediatek: add support for Netcore N60 (#165)
* add netcore n60 support

* revert to old wifi firmware

---------

Co-authored-by: padavanonly <padavanonly@github.com>
2023-11-16 21:33:32 +08:00
secd4ck
d63a69e0d2
fixed mt7981 platform.sh introduced Tabs by Aabandon (#163) 2023-11-16 18:52:35 +08:00
Aabandon
194443120a
mediatek: add support for Xiaomi AX3000T (#160) 2023-11-15 20:38:11 +08:00
abettmr
ea63ce92bc
asr3000: fix mesh-led gpio 2023-11-15 15:07:20 +08:00
potatoigit
e1b4487fbc
mediatek: fix BPI-R3 EMMC support (#157) 2023-11-11 22:32:43 +08:00
Zy143L
1814465e22
add C8-660(WT9103) 512M Flash && fixs DTS (#155)
* add nradio wt9103 support

* add C8-660(WT9103) 512M Flash && fixs DTS
2023-11-11 21:25:03 +08:00
potatoigit
c915c12f5c mediatek: BPI-R3 EMMC support 2023-11-11 21:24:29 +08:00
potatoigit
38c8c837fc mediatek: initial Banana Pi R3 Mini support 2023-11-11 21:24:29 +08:00
benboguan
358c1fa651
mediatek: fix clt-r30b1 (#148) 2023-10-31 11:28:39 +08:00
hanwckf
e6ea2ba32a mediatek: dts: fix typo 2023-10-26 11:21:06 +08:00
hanwckf
08c62ad2d0 mediatek: fix ct3003, jcg q30 hnat settings 2023-10-26 00:20:43 +08:00
Zy143L
33f15e3224 add nradio wt9103 support 2023-10-25 14:55:22 +08:00
Jan-Niklas Burfeind
90c8c47188
sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2023-10-22 12:44:55 +08:00
Tianling Shen
6f822de5e2 mediatek: initial cmcc a10 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-22 01:24:20 +08:00
Tianling Shen
8d8f0f3ec6 mediatek: update device title for cmcc rax3000m
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-19 17:43:37 +08:00
Tianling Shen
0713c653e7 mediatek: add ABT ASR3000 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-19 17:43:37 +08:00
Tianling Shen
508bcfdfc5 mediatek: fix target features for mt798x
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Tianling Shen
f78d2e13cf mediatek: initial cmcc rax3000m emmc support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
Tianling Shen
586d18ac5b mediatek: create shared dtsi for cmcc rax3000m
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-16 15:00:51 +08:00
hanwckf
bacf9165dc
mediatek: hnat: set ipv6 local out skb with hnat_alg mark
fix #9
2023-10-06 09:17:17 +08:00
hanwckf
dd4312da3b Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-29 01:04:42 +08:00
Tianling Shen
0bd0306b05
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-28 11:02:31 +08:00
Enrico Mioso
7c89acbebf
base-files: add eMMC sysupgrade support
Adds generic support for sysupgrading on eMMC-based devices.

Provide function emmc_do_upgrade and emmc_copy_config to be used in
/lib/upgrade/platform.sh instead of redundantly implementing the same
logic over and over again.
Similar to generic sysupgrade on NAND, use environment variables
CI_KERNPART, CI_ROOTPART and newly introduce CI_DATAPART to indicate
GPT partition names to be used. On devices with more than one MMC
block device, CI_ROOTDEV can be used to specify the MMC device for
partition name lookups.

Also allow to select block devices directly using EMMC_KERN_DEV,
EMMC_ROOT_DEV and EMMC_DATA_DEV, as using GPT partition names is not
always an option (e.g. when forced to use MBR).

To easily handle writing kernel and rootfs make use of sysupgrade.tar
format convention which is also already used for generic NAND support.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
CC: Li Zhang <li.zhang@gl-inet.com>
CC: TruongSinh Tran-Nguyen <i@truongsinh.pro>
(cherry picked from commit 57c1f3f9c5c699cc215bebde772552787c632570)
2023-09-26 15:36:54 +08:00
hanwckf
101adeccce mediatek: rax3000m: add usb-rndis packages 2023-09-25 22:35:22 +08:00
lgs2007m
ebd1ad3d16
mediatek: fix the incorrect network port sequence of CMCC RAX3000M (#123) 2023-09-22 18:00:36 +08:00
ssm1588
bc37b40aaf
mediatek: fix the incorrect network port sequence of the redmi AX6000 (#121) 2023-09-22 01:09:53 +08:00
Jonas Gorski
ac52e2013a x86: geode: fix hwrng register accesses
When the membase and pci_dev pointer were moved to a new struct in priv,
the actual membase users were left untouched, and they started reading
out arbitrary memory behind the struct instead of registers. This
unfortunately turned the RNG into a constant number generator, depending
on the content of what was at that offset.

To fix this, update geode_rng_data_{read,present}() to also get the
membase via amd_geode_priv, and properly read from the right addresses
again.

Closes #13417.

Reported-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Tested-by: Timur I. Davletshin <timur.davletshin@gmail.com>
Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(cherry picked from commit 09d13cd8d87cc50fde67bbe81c6cca4b799b2724)
2023-09-14 11:36:57 +02:00
developer
e01037de5b [Description]
Add spinlock mechanism for mtk_rmw api.
1. When multiple threads operate on the same register resource
which include multiple pins, it will make the register resource
wrong to control. So we add spinlock to avoid this case.

[Release-log]
This patch adds spinlock mechanism to protect mtk_rmw. Without it,
you may suffer from some unexpected problems such as race conidtion
while interrupt occured. And this will lead to pin setting fail.
Hence, we strongly recommand you to merge this patch in your code
base.

Change-Id: I1128dc16cb683b89c2cd9f9138f32552abb00400
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7962757
2023-09-10 00:00:54 +08:00
developer
b4298172e7 [Description]
Change original pinctrl fix-up commit:
https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7007454

Convert patches-5.4 to file-5.4 format to prevent RDKB issue.

[Release-log]
N/A

Change-Id: Id534ae5244c7c52d2c50e468f8208ee1991421c0
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7021354
2023-09-09 23:50:05 +08:00
hanwckf
9f1ba10976 mediatek: fix spi bus width prop name in dts 2023-09-08 15:13:55 +08:00
hanwckf
45329cb67c Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2023-09-03 12:27:26 +08:00
abandon-xyz
5eeadb4ce4
mediatek: KONKA KOMI A31: fix check sysupgrade image failed (#110) 2023-08-31 23:55:39 +08:00
Tianling Shen
949f0dd900
kernel: bump to 5.4.255
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-31 13:13:22 +08:00
hanwckf
9194761ed3 kernel: add gigadevice GD5FxGQxUExxH spi-nand support 2023-08-27 02:08:38 +08:00
hanwckf
826cdd3f76 kernel: backport esmt spi-nand of kernel v6.4 2023-08-26 22:42:17 +08:00