186 Commits

Author SHA1 Message Date
Tianling Shen
c744089871
rockchip: reduce default CMA size to 16 MB
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-08 21:43:25 +08:00
Tianling Shen
6e54cb5d37
rockchip: add NanoPi R4SE
The FriendlyARM NanoPi R4SE is a minor variant of R4S with a on-board eMMC.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 1ef239173c8728e28ee913a333944c5f78276915)
2023-04-30 20:23:38 +08:00
Tianling Shen
3b5862cf41
bcm27xx: build with automount by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 6bed850e06996ff8218cfced9b592ed3b354bf3b)
2023-04-15 20:03:51 +08:00
Tianling Shen
93e9ad63c9
ipq: build with automount by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-06 03:49:45 +08:00
Tianling Shen
116d3ccfd7
rockchip: fix supported device for firefly roc-rk3328-cc
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit bed2c6c773c945a95bf2444d149defb186666c40)
2023-04-04 20:06:16 +08:00
Tianling Shen
bb19c0e1d8
rockchip: add Firefly ROC-RK3328-CC support
Hardware
--------
RockChip RK3328 ARM64 (4 cores)
4GB DDR4 RAM
1x 1000 Base-T
2 LEDs (POWER / USER)
HDMI 2.0
3.5mm TRRS AV jack
Micro-SD slot
eMMC slot
1x USB 3.0 Port
2x USB 2.0 Port

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit f05de856379977e0f48f9fcd27ec199c1bf5aa74)
2023-04-04 18:52:47 +08:00
Tianling Shen
0681abbcf5
rockchip: rk3328: use 1.45v for 1512MHz overclocking
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 73adb850b0af7c242df1c141dc4b66ec3422cd60)
2023-01-29 20:44:57 +08:00
Tianling Shen
183c8ec778
kernel: bump 5.4 to 5.4.230
Removed upstreamed:
- generic/backport-5.4/702-Revert-net-dsa-b53-Fix-valid-setting-for-MDB-entries.patch

Manually rebased:
- layerscape/patches-5.4/805-display-0002-drm-rockchip-prepare-common-code-for-cdns-and-rk-dpi.patch
- layerscape/patches-5.4/820-usb-0010-MLK-22675-usb-dwc3-host-disable-park-mode.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-01-26 04:27:26 +08:00
AmadeusGhost
17729f6256
rockchip: increase default cma size to 64MB
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9fe5813aa9f95cd49d76eb7f2a7b00b326ae044b)
2023-01-18 23:02:20 +08:00
Tianling Shen
ee211e2fcd
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-13 13:52:38 +08:00
Hauke Mehrtens
079ce0413a kernel: bump 5.4 to 5.4.224
Manually adapted:
 generic/pending-5.4/680-NET-skip-GRO-for-foreign-MAC-addresses.patch
 lantiq/patches-5.4/0028-NET-lantiq-various-etop-fixes.patch

Compile-tested: x86/64
Run-tested: x86/64

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-11-13 01:06:12 +01:00
Tianling Shen
5a3532c584
rockchip: fix assign mac address to nanopi r4s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 35e62c98a3306cbfb0e06c7e455b21e9d6a0a1b2)
2022-09-11 11:36:34 +08:00
David Bauer
dc98f944be
rockchip: ensure NanoPi R4S has unique MAC address
Ensure the MAC address for all NanoPi R4S boards is assigned unique for
each board.

FriendlyElec ship two versions of the R4S: The standard as well as the
enterprise edition with only the enterprise edition including the EEPROM
chip that stores the unique MAC address.

In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S 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_R4S#Differences_Between_R4S_Standard_Version_.26_R4S_Enterprise_Version

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit b5675f500daff3ef3f904e53a5566aa7dc09b786)
2022-09-10 10:07:52 +08:00
Tianling Shen
d59a2545a9
include: mv luci-app-cpufreq to target profiles
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-05 13:15:39 +08:00
Ronny Kotzschmar
022e6c30c2
rockchip: reliably distribute net interrupts
On the NanoPI R4S it takes an average of 3..5 seconds for the network devices
to appear in '/proc/interrupts'.
Wait up to 10 seconds to ensure that the distribution of the interrupts
really happens.

Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
(cherry picked from commit 9b00e9795660f53caf1f4f5fd932bbbebd2eeeb1)
2022-07-08 12:45:47 +08:00
AmadeusGhost
ed1dbe076e rockchip: fixes pcie eth compatible for r4s
Use the standard pci device binding to fixes this.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
2022-05-18 11:28:13 +08:00
Eneas U de Queiroz
e3d47647ff
rockchip/armv8: enable armv8-CE crypto algorithms
This enables armv8 crypto extensions version of AES, GHASH, and CRC T10
algorithms in the kernel.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit eef8fbec8f63ac0686f87ff5735cab21884fa273)
2022-05-17 21:59:03 +08:00
Tianling Shen
31de1a60dc
rockchip: drm-rockchip: fix Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 6957f13eea1eb8e71c20795a9e0b03de045a7cf9)
2022-05-17 17:19:01 +08:00
David Bauer
768d05d74e
rockchip: disable UHS modes for NanoPi R4S
The NanoPi R4S leaves the SD card in 1.8V signalling when rebooting
while U-Boot requires the card to be in 3.3V mode.

Remove UHS support from the SD controller so the card remains in 3.3V
mode. This reduces transfer speeds but ensures a reboot whether from
userspace or following a kernel panic is always working.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 2b583ab8a74a6bd41f1c9629b3b66ba561d6fceb)
2022-04-24 19:30:36 +08:00
Chukun Pan
df97f43e15
rockchip: move r8152 related patches to generic
These patches can be used on other platforms, so
move it to generic.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
(cherry picked from commit cc2a8c25459f437e82b58b1bb94afd811cbb131f)
2022-04-09 20:20:20 +08:00
Tianling Shen
fc4f1e120d
rockchip: remove default wireless config for Rockpi 4A
This is actually broken.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 5fa0c4a8230dc060a395909c41dea97dc6299520)
2022-03-01 21:06:50 +08:00
Tianling Shen
da8c8d8dd1
rockchip: motorcomm: fix typo error
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit a672f0b7e86cce14131bac0dac1b12123dd922c6)
2022-02-14 00:12:52 +08:00
Tianling Shen
651b6cb2e2
rockchip: add OrangePi R1 Plus LTS support
This board is a fork of OrangePi R1 Plus, with native NIC changed.

Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
USB 2.0 Port

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9d64b55c2e634fc552cda3f8578adc3af08a32ea)
2022-02-13 21:21:36 +08:00
Tianling Shen
831477fdf0
rockchip: motorcomm: add yt8531 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit a59a466d5705a73f352837d0d18045aa6f1f1507)
2022-02-13 21:21:17 +08:00
Tianling Shen
b0216a39d0
rockchip: motorcomm: move new files to dir
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 3ca7a5f921dca7e5330177628cf2be235182f765)
2022-02-13 21:21:04 +08:00
Tianling Shen
b8d4a9217c
rockchip: fix led-data of NanoPi R2C
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 1c9c6ec230646597e4e13a991b0a3637bc2cf937)
2022-02-11 02:05:42 +08:00
AmadeusGhost
fb0a449098
rockchip: hwrng: sync with official develop-4.19 branch
ee89075 hwrng: rockchip: add rk356x support

(cherry picked from commit c7621fb09f47b6cefa794ce10aed3af2c895c955)
2021-10-21 12:27:49 +08:00
AmadeusGhost
c7e3d01f70
rockchip: remove vendor usb3 inno driver files
(cherry picked from commit 4db435509dc90113cabc03a667b974e0445147f6)
2021-10-21 12:26:10 +08:00
AmadeusGhost
8bb0bb391e
kmod-saradc-rockchip: fixes dependencies on 5.10
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 16be2d38b42926569afadae29adb9a8f098fa7f5)
2021-10-20 19:30:05 +08:00
Tianling Shen
e054b4edd2
rockchip: remove rockchip's proprietary usb3 inno driver
It's never used.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit e94abee05060e3fa0a0fbbe057373bb3a2e9c636)
2021-10-20 16:46:06 +08:00
AmadeusGhost
8e519f7e3e
rockchip: rename nanopi2-timing to default-timing
There is nothing device specific about this file.

(cherry picked from commit 375466ae21b68136aaa2d50a7663abed6443b32b)
2021-10-19 11:10:39 +08:00
Tianling Shen
23cdf6099c
rockchip: refresh Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 13:33:39 +08:00
AmadeusGhost
21b47fc3b8
kmod-saradc-rockchip: add new package
This driver support for the SARADC found in SoCs
from Rockchip.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 1df20c4d7db513125021fdc29617b8996431c0cd)
2021-10-18 13:32:50 +08:00
AmadeusGhost
9dad34f476
kmod-drm-lima: rename and enable support for sunxi
This driver can be used on AllWinner h3/h5 and rk3328.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 971af214bc6652fb5dc67d6a7cd7360cef10ca0e)
2021-10-18 13:32:43 +08:00
AmadeusGhost
280db75708
kmod-drm-rockchip: add missing kconfig
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit cd89cce53dc277249d2bc65cc5f8f3d6eb541bf1)
2021-10-18 13:32:39 +08:00
Tianling Shen
4e0a6718a7
rockchip: update patch date
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 77fca48d267f045e6ea3394bf6a2c7b8621e56fd)
2021-10-18 13:06:34 +08:00
Tianling Shen
4b958c0475
rockchip: apply overclocking to all devices
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 4c139c05881e760185002de234cae8b32e66e7af)
2021-10-18 13:06:03 +08:00
Tianling Shen
e038175a78
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-26 11:44:26 +08:00
David Bauer
5c904bcb37 rockchip: fix broken squashfs sysupgrade
The rockchip platform supports squashfs SD card images. However, the
resulting image is not padded to completely fill the rootfs partition.

Because of that, the f2fs overlay might not be erased, resulting in
uci-defaults not bing executed or the configuration not being erased,
even though drop config was selected.

Modify the image generation process so the image is padded to cover the
entire root filesystem partition.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit b56f7407d999d29c200c8c5880655926ef9874b7)
2021-09-24 12:29:22 +02:00
Tianling Shen
50930de048
target: drop some default packages
Let users to decide build them or not.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 8b51e8c3083e8369236ba385b321074b13a2764e)
2021-09-11 05:10:10 +08:00
Tianling Shen
5dd4013145
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-28 03:11:37 +08:00
David Bauer
378769b555 kernel: bump 5.4 to 5.4.142
Compile-tested: ath79-generic ipq40xx-generic
Run-tested: ipq40xx-generic

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-08-24 19:41:47 +02:00
Ronny Kotzschmar
5cdd4cb868
rockchip: reliably distribute net interrupts
On the NanoPI R4S it takes an average of 3..5 seconds for the network devices
to appear in '/proc/interrupts'.
Wait up to 10 seconds to ensure that the distribution of the interrupts
really happens.

Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit fd65ce6f322cd36be4e58e79581e7b65b28880a4)
2021-08-19 15:59:22 +08:00
QiuSimons
09574e88b9
rockchip: distribute R2C net interrupts
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9ba4de031d51a4d4d9dd39fec26bf4ebf739d4ed)
2021-08-19 15:55:00 +08:00
Tianling Shen
ad4aa8df39
rockchip: nanopi r4s: fix typo error
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ec04bb231fd507240775cd5a964d47ee9157b056)
2021-08-17 19:46:59 +08:00
Tianling Shen
95c4cc89de
rockchip: add Motorcomm PHY driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 83ce2ba131fbc46870d4074a7d4e58e16b4ecbfd)
2021-08-13 03:25:45 +08:00
Tianling Shen
9e0e1f4685
rockchip: add NanoPi R2C support
This board is a fork of NanoPi R2S, with the native NIC changed.

Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
USB 2.0 Port

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-13 03:24:51 +08:00
Tianling Shen
2568299bfe
generic/rockchip: refresh kernel patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ee6815b64ca1a29cb07edbc6dcf07e940087dfbc)
2021-08-13 03:24:26 +08:00
Tianling Shen
faceaec70d
arm-trusted-firmware-rockchip-vendor: rework multiple devices building
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 4262a83d1d0316f45fdcc66595b8fc37fbf875db)
2021-08-12 23:54:42 +08:00
Tianling Shen
7b83d67e7a
uboot-rockchip: use rkbin for nanopi r4s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit a2759b1be2387d357dc08203025d6889b4ab1292)
2021-08-08 20:21:41 +08:00