Commit Graph

549 Commits

Author SHA1 Message Date
Tianling Shen
86eb3e4b99
rockchip: add even more missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-08 15:19:12 +08:00
Tianling Shen
c3f9efdcd0
rockchip: add more missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-08 13:59:30 +08:00
Tianling Shen
bc7807b661
rockchip: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-08 12:55:43 +08:00
Tianling Shen
3cfe0d1005
rockchip: update target description
We have RK356x and RK3588 support now.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-07 17:28:07 +08:00
Tianling Shen
df6698361d
rockchip: switch to use kernel 6.6
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-07 17:28:07 +08:00
ZiMing Mo
bcc4b0414c
rockchip: refresh Kconfig
Refresh kernel config.

Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
[rebased upon HEAD]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-07 17:28:06 +08:00
Tianling Shen
681786e382
rockchip: reorder patches
Reorder patches after refresh.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-07 17:28:06 +08:00
ZiMing Mo
35dc676ba3
rockchip: refresh patches
Drop upstreamed patches, refresh remaining patches.

Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
[rebased upon HEAD]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-07 17:28:06 +08:00
Tianling Shen
4d5fe0a362
rockchip: move kernel files to 6.6
Move kernel config and patches to kernel 6.6.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-07 17:28:06 +08:00
Tianling Shen
b62a01c747
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-30 21:31:52 +08:00
Tianling Shen
163c3d0bde rockchip: remove redundant 'console' parameter from boot script
ttyS2 is the default console used for all rockchip boards.
The redundant 'console=tty1' parameter now breaks the console due to
recent procd update.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-29 19:34:42 +01:00
Tianling Shen
50e6c8ae8d rockchip: remove 'swiotlb' parameter from boot script
We have hardware IOMMU support and this is totally unnecessary.
The given value is also unreasonable, it's too small and causes
kernel panic in some cases:

[ 5706.856473] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 28672 bytes), total 512 (slots), used 498 (slots)
[ 5706.864451] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 65536 bytes), total 512 (slots), used 464 (slots)

This parameter seems to be added by mistake, so remove it.

Fixes: e35c7ab51f ("rockchip: merge bootscript")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-29 19:34:42 +01:00
Tianling Shen
158e54ce28
rockchip: remove swiotlb parameter from boot script
We have hardware IOMMU support and this is totally unnecessary.
The given value is also unreasonable, it's too small and causes
kernel panic in some cases:

[ 5706.856473] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 28672 bytes), total 512 (slots), used 498 (slots)
[ 5706.864451] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 65536 bytes), total 512 (slots), used 464 (slots)

This parameter seems to be added by mistake, so remove it.

Fixes: 058bdf0396 ("rockchip: lzma compression for kernel")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-26 00:56:04 +08:00
Marius Durbaca
f7c732bf9e rockchip: add Radxa E25 board support
Radxa E25 is a network application carrier board for the Radxa CM3
Industrial (CM3I) SoM, which is based on the Rockchip RK3568 SoC.

It has the following features:

- MicroSD card socket, on board eMMC flash
- 2x 2.5GbE Realtek RTL8125B Ethernet transceiver
- 1x USB Type-C port (Power and Serial console)
- 1x USB 3.0 OTG port
- mini PCIe socket (USB or PCIe)
- ngff PCIe socket (USB or SATA)
- 1x User LED and 16x RGB LEDs
- 26-pin expansion header

Installation:
Uncompress the OpenWrt sysupgrade and write it to a micro SD card or
internal eMMC using dd.

Signed-off-by: Marius Durbaca <mariusd84@gmail.com>
2024-03-23 07:55:43 +01:00
Tianling Shen
a337bdb07d
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-05 11:40:31 +08:00
Tianling Shen
c58a66a9d8
rockchip: backport clk fixes for rk3588
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-03 17:32:08 +08:00
Tianling Shen
0b2803b5dc
rockchip: backport latest dt fixes accepted upstream
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-03 16:55:40 +08:00
Tianling Shen
4d9dbd54fd
rockchip: switch to full version wpad
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-02 19:36:16 +08:00
Tianling Shen
f08b89f121
rockchip: add gic hack for rk356x back
It's not included in rockchip erratum RK3588001.

Fixes: 3faa54bb9d ("rockchip: replace local gic its hack with upstream solution")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-29 00:30:52 +08:00
Tianling Shen
f7dc31b451
rockchip: replace local rfkill hack with upstream patch
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 23:53:01 +08:00
Tianling Shen
d5615b220b
rockchip: fix regulator order on photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 23:52:36 +08:00
Tianling Shen
22e57892c6
rockchip: adjust usb node for photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 20:54:10 +08:00
Tianling Shen
7790b6994a
rockchip: fix uboot device name for radxa e25
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 15:30:59 +08:00
Tianling Shen
2a55f33355
rockchip: add missing cells properties to photonicat dts
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 13:54:37 +08:00
Tianling Shen
21cf14ec9f
rockchip: add workaround for photonicat's godda*n sdio wifi
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 00:56:24 +08:00
Tianling Shen
f295771158
rockchip: enable wireless support for photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 00:20:10 +08:00
Tianling Shen
80f796076f
rockchip: add Radxa E25 support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
RGB LED
1/2/4/8GB LPDDR4 RAM
2x 2500 Base-T
2/16/32/64/128GB eMMC on-board
M.2 Slot
miniPCIe Slot
Micro-SD Slot
USB 3.0 Port
Type-C PD Power

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 22:03:03 +08:00
Tianling Shen
2613235692
rockchip: rock-3a: move reset properties to gmac node
Resetting via phy node may not work for rk356x.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 21:27:33 +08:00
Tianling Shen
fa2cb0a297
rockchip: remove redundant rng reference in dts files
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 20:42:09 +08:00
Tianling Shen
ffd4b3c3ae
rockchip: enable hwRNG support at SoC level
RK3328 is skipped due to hardware bugs.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 20:36:35 +08:00
Tianling Shen
f5bd84762f
rockchip: backport missing i2s2 device node
Fixes: 70f07967a3 ("rockchip: add ROCK 3A support")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 20:30:05 +08:00
Tianling Shen
70f07967a3
rockchip: add ROCK 3A support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
2/4/8GB LPDDR4 RAM
1000 Base-T
eMMC on-board
M.2 Slot
Micro-SD Slot
HDMI Port
3.5mm Audio Jack
2x USB 3.0 Port
2x USB 2.0 Port
Type-C PD Power

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 19:45:59 +08:00
Tianling Shen
938cf080db
rockchip: add Ariaboard Photonicat support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
2GB or 4GB LPDDR4 RAM
2x 1000 Base-T
QCA1023 Wi-Fi 5 / Bluetooth
16GB or 64GB eMMC on-board
2x M.2 Slot (B+E Key)
Micro-SD Slot
HDMI Port
USB 3.0 Port
7000 mAh Battery
Type-C Power

Note
----
The sdio card QCA1023 is not supported for now due to broken
ath10k-sdio driver.

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 18:41:52 +08:00
Tianling Shen
334baf02c8
rockchip: enable hwRNG for Orange Pi 5/Plus
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 16:38:40 +08:00
Tianling Shen
3faa54bb9d
rockchip: replace local gic its hack with upstream solution
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-27 16:03:35 +08:00
Tianling Shen
5ec6c58738
rockchip: fix device packages for nanopi r4s enterprise edition
In official OpenWrt we use kmod-r8169 driver provided by upstream kernel
instead of kmod-r8168 driver from Realtek.

Fixes: afca1236f3 ("rockchip: add NanoPi R4S Enterprise Edition build")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-25 12:36:02 +08:00
Tianling Shen
d209cb2f4b
rockchip: enable hwRNG support to rk3566
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-24 13:30:46 +08:00
Tianling Shen
acb88c40ea
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-23 23:28:51 +08:00
Tianling Shen
08e249d43c rockchip: remove LED label hack
Now we support parsing the color and function properties.
Ref: e814acc599 ("base-files: support parse DT LED color and function")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-22 17:30:05 +01:00
Marius Durbaca
c22c63bce3 rockchip: add Radxa CM3 IO board support
Hardware
--------
RockChip RK3566 ARM64 (4 cores)
- up to 8GB LPDDR4X
- 1x HDMI,
- 2x MIPI DSI
- 2x MIPI CSI2
- 1x eDP
- 1x PCIe card
- 2x SATA
- 2x USB 2.0 Host
- 1x USB 3.0
- 1x USB 2.0 OTG
- 10/100/1000 Base-T
- microSD slot
- 40-pin GPIO expansion header
- 12V DC

Radxa CM3 needs to mount on top of this IO board in order to create
complete Radxa CM3 IO board platform.

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

Reviewed-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Marius Durbaca <mariusd84@gmail.com>
2024-02-21 13:29:26 +01:00
Tianling Shen
afca1236f3 rockchip: add NanoPi R4S Enterprise Edition build
FriendlyElec renamed the NanoPi R4S board with EEPROM (mac address)
to "enterprise" edition, and it was added as a "new" board in upstream
kernel.

This patch switched to use that upstreamed dts and removed local
EEPROM patch.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-19 20:52:06 +01:00
Tianling Shen
ee914a4af6
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-19 23:48:41 +08:00
Tianling Shen
782266473d rockchip: add NanoPi R2C Plus support
The NanoPi R2C Plus is a small variant of NanoPi R2C with a on-board
eMMC flash (8G) included.

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-19 16:23:32 +01:00
Tianling Shen
cccc428fb4
rockchip: refresh RK3588 USB DP patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-16 16:43:25 +08:00
Tianling Shen
66e530f016
rockchip: backport upstream dts fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-16 16:22:59 +08:00
Tianling Shen
3bc7cfe092
target: add cpufreq to default packages
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-13 14:13:25 +08:00
Tianling Shen
46fd3bd024
rockchip: add more missing LED bindings
Fixes: bdff7b7758 ("rockchip: remove LED label hack")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-13 13:36:04 +08:00
Tianling Shen
79001fd46a
rockchip: add missing LED bindings
Fixes: bdff7b7758 ("rockchip: remove LED label hack")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-12 23:26:54 +08:00
Tianling Shen
bdff7b7758
rockchip: remove LED label hack
Now we support parsing the color and function properties.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-12 19:52:40 +08:00
Tianling Shen
e959958693
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-26 18:43:17 +08:00