Commit Graph

702 Commits

Author SHA1 Message Date
Tianling Shen
073c5c9485
rockchip: refresh upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-26 18:26:37 +08:00
Tianling Shen
4f4e8820bd
rockchip: enable OTP NVMEM and RTC HYM8563 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-23 15:33:34 +08:00
Tianling Shen
80c7834062
rockchip: sync rtl8211f patch from lede
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-12 15:32:25 +08:00
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
Tianling Shen
b25025ba48
rockchip: update soc compatible for opi 5
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-26 17:55:15 +08:00
Tianling Shen
32ea24c8cb
rockchip: add OrangePi 5 (Plus) support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-26 17:47:43 +08:00
Tianling Shen
e43d30cd04
rockchip: backport upstream sdhci fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-26 16:14:22 +08:00
Tianling Shen
b4281bd4fb
rockchip: backport poweroff support for rk806
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-26 15:54:24 +08:00
Tianling Shen
a87e404eb8
rockchip: import pending clk patches for rk3588
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-26 14:08:30 +08:00
Tianling Shen
f2395e35a4
rockchip: backport latest upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-26 13:21:23 +08:00
Tianling Shen
3db6161c85
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-20 13:01:37 +08:00
Justin Klaassen
4d49ce1bde rockchip: fix boot from non-MMC devices
Booting from non-MMC devices on Rockchip targets without this
change results in a boot failure:

Model: FriendlyElec NanoPi R5S
Net:   eth0: ethernet@fe2a0000
Hit any key to stop autoboot:  0
** Booting bootflow 'nvme#0.blk#1.bootdev.part_1' with script
** No partition table - mmc 0 **
** No partition table - mmc 0 **
Couldn't find partition mmc 0:1
Can't set block device
Wrong Image Type for bootm command
ERROR -91: Protocol wrong type for socket: can't get kernel image!
Boot failed (err=1)

This change fixes the default boot script for Rockchip targets to
support booting from non-MMC devices such as NVMe or USB drives.

Some targets with only a boot rom (e.g. NanoPi R5S) may require u-boot
to be installed on the eMMC or a MicroSD card in order to boot from
non-MMC devices.

Fixes: #14420
Reviewed-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Justin Klaassen <justin@tidylabs.app>
2024-01-19 21:31:39 +01:00
Tianling Shen
b8ba5564d7
uboot-rockchip: remove redudant NanoPi R4S Enterprise Edition build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-10 19:33:38 +08:00
Tianling Shen
445458316b
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-05 11:05:31 +08:00
Tianling Shen
3645ac8a10 rockchip: configure eth pad driver strength for orangepi r1 plus lts
The default strength is not enough to provide stable connection
under 3.3v LDO voltage.

Fixes: 32d5921b8b ("rockchip: add Orange Pi R1 Plus LTS support")
Fixes: #13117
Fixes: #13759

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-04 22:07:01 +01:00
Tianling Shen
494e7859b8
rockchip: backport latest upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-25 11:19:30 +08:00
Tianling Shen
26d4e9ce2c
kernel: move motorcomm LED hack to generic
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-18 12:23:24 +08:00
Tianling Shen
b26299f319
rockchip: configure pad driver strength for orangepi r1 plus lts
The default strength is not enough to provide stable connection
under 3.3v LDO voltage.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-16 12:02:45 +08:00
Tianling Shen
2e68a7d289
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-16 11:24:07 +08:00
Furong Xu
314af7018a rockchip: make SMP affinity of RTL8152 on XHCI more robust
XHCI bus numbers are assigned dynamically, it may varies among boards,
match the device irq name with regexp, drop the hardcoded name.

Signed-off-by: Furong Xu <xfr@outlook.com>
2023-12-15 18:02:43 +01:00
Tianling Shen
616efa5f15
rockchip: replace coherent pool hack with bootargs
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-14 16:44:44 +08:00
Tianling Shen
64e03c7ca7
rockchip: rk3328: enable dfi on soc dtsi
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-14 16:34:55 +08:00
Tianling Shen
7dbca5869f
rockchip: backport latest rk3588 patches from upstream
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-14 16:15:45 +08:00
Tianling Shen
22616d37fe
kernel: backport pad driver strength cfg support for motorcomm phy
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-13 17:07:17 +08:00
Tianling Shen
84e828e119
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-12-13 12:20:42 +08:00
Furong Xu
1438bc583c rockchip: fix eth1 irq affinity
NanoPi R2S and some other RK3328 boards use RTL8152 as eth1,
which is connected to xhci-hcd:usb1 but not xhci-hcd:usb3

|:~# cat /proc/interrupts
|           CPU0       CPU1       CPU2       CPU3
| 11:      53449     171813     129595      87823     GICv2  30 Level     arch_timer
| 18:          0          0          0          0     GICv2  94 Level     rockchip_usb2phy
| 19:          0          0          0          0     GICv2  32 Level     ff1f0000.dma-controller
| 20:          0          0          0          0     GICv2  33 Level     ff1f0000.dma-controller
| 21:          4          0          0          0     GICv2  89 Level     ttyS2
| 22:          0          0          0          0     GICv2  43 Level     ff350800.iommu
| 23:          0          0          0          0     GICv2 106 Level     ff360480.iommu
| 24:          0    1417932          0          0     GICv2  56 Level     eth0
| 25:        334          0          0    4422194     GICv2  99 Level     xhci-hcd:usb1
| 26:          0          0          0          0     GICv2  48 Level     ehci_hcd:usb3
| 27:          0          0          0          0     GICv2  49 Level     ohci_hcd:usb2
| 28:       3285          0          0          0     GICv2  69 Level     ff160000.i2c
| 29:          0          0          0          0  rockchip_gpio_irq  24 Level     rk805
| 30:          0          0          0          0     rk805   0 Edge      rk805_pwrkey_fall
| 35:          0          0          0          0     rk805   5 Edge      RTC alarm
| 37:          0          0          0          0     rk805   7 Edge      rk805_pwrkey_rise
| 38:          0          0          0          0     GICv2  90 Level     rockchip_thermal
| 39:          0          0          0          0     GICv2  72 Edge      ff1a0000.watchdog
| 40:       2601          0          0          0     GICv2  44 Level     dw-mci
| 41:          0          0          0          0  rockchip_gpio_irq   0 Edge      keys
|IPI0:      1559       1208        893       1131       Rescheduling interrupts
|[...]

Fix 40-net-smp-affinity to match the correct device irq name.

Signed-off-by: Furong Xu <xfr@outlook.com>
2023-12-12 19:50:43 +01:00
David Bauer
54e52fdacb rockchip: require image metadata
All devices in the rockchip target have appended image-metadata. Enforce
the presence of this metadata to avoid flashing incomplete images.

This is the de-facto standard for almost all OpenWrt targets.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-27 07:54:00 +01:00
Tianling Shen
4e09722a68 rockchip: add NanoPi R5C support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
1GB or 4GB LPDDR4X RAM
2x 2500 Base-T
4 LEDs (LAN / WAN / WIFI / POWER)
1 Button (Reset)
8GB or 32GB eMMC on-board
Micro-SD Slot
M.2 Slot
2x USB 3.0 Port

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>
2023-11-26 19:44:56 +01:00
Tianling Shen
c06a71f0b3 rockchip: add NanoPi R5S support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
2GB or 4GB LPDDR4X RAM
1x 1000 Base-T
2x 2500 Base-T
4 LEDs (LAN1 / LAN2 / WAN / POWER)
8GB eMMC on-board
Micro-SD Slot
M.2 Slot
2x USB 3.0 Port

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

Tested-by: Packet Please <pktpls@systemli.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-26 19:44:56 +01:00
Tianling Shen
4d9059aed9 rockchip: armv8: broaden boardname
Now we have rk356x support :-)

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-26 19:44:56 +01:00
Tianling Shen
4be1e39c4e rockchip: enable drivers for rk356x
Enable all necessary drivers for the rk356x SoCs, including PHY,
SCMI, SPI etc. Also backport 2 upstream patches for sdhci fixes.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-26 19:44:56 +01:00
Tianling Shen
22a9c4b67d rockchip: remove kernel 5.15 patches and config
As we switched to kernel 6.1, these files can go.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-26 19:44:56 +01:00
Tianling Shen
48c9a4b47c rockchip: switch to kernel 6.1
Required by the following rk3568 support.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-26 19:44:56 +01:00
Tianling Shen
dd8972fde3 rockchip: move image generation command to default
It's applicable for all devices so move it to default to reduce
redudant code. Addtionally introduce a new variable `BOOT_SCRIPT`
to allow custom boot script (if necessary).

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-26 19:44:56 +01:00
Tianling Shen
e63193a95d
rockchip: refresh patches
Fixes: #1118

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-26 00:21:01 +08:00
Tianling Shen
f1748b432e
rockchip: update rtw88 package
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-17 20:30:37 +08:00
Tianling Shen
175ad5ee6c
rockchip: fix packet drop issue on orangepi r1 plus lts
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-15 22:06:14 +08:00
Tianling Shen
6b5ec5a5ee
rockchip: motorcomm: simplify redundant code
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-15 20:55:11 +08:00
Tianling Shen
3313bd7e8a
rockchip: add LED configuration for yt8531
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-15 20:24:16 +08:00
Tianling Shen
aac4f084ce
rockchip: backport upstreamed NanoPC T6 dts
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-14 20:06:47 +08:00
Tianling Shen
606df19a72
rockchip: add pwmfan driver for radxa rock5a/b
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-14 17:39:25 +08:00
Tianling Shen
37031fa7fa
rockchip: update upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-11 14:53:15 +08:00
Tianling Shen
31f2c18a35
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-10 13:02:09 +08:00
Rafał Miłecki
3b63208443 treewide: disable CONFIG_SLUB_DEBUG in target configs
From the symbol help message:
> SLUB has extensive debug support features. Disabling these can result
> in significant savings in code size.

There seems to be no need to enable those debugging features for
standard use.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2023-11-09 21:23:01 +01:00
Tianling Shen
6a90306784
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-11-09 14:24:52 +08:00
Rafał Miłecki
7a8424827f rockchip: refresh kernel config
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2023-11-07 13:39:40 +01:00
Islam Mansour
694f77b660
rockchip: configure wlan led for nanopi r5c 2023-10-13 15:45:22 +08:00
Tianling Shen
dd9a0e06a8
rockchip: fix generate mac addr for nanopi r5c/r6s without emmc
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-08 12:18:42 +08:00
Tianling Shen
f1346bf77b
rockchip: refresh upstreamed patches
Fixes: #1080

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-10-07 16:56:13 +08:00
Tianling Shen
e0ab5b6aa8
rockchip: remove Hinlink support
Just ask the vendor for firmware.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-20 11:07:49 +08:00
Jayantajit Gogoi
1b15cb21db rockchip: add support for Radxa ROCK Pi E
This adds support for Radxa ROCK Pi E, rockchip rk3328 board.

Specification:

- CPU: Rockchip RK3328 64-bit Quad-core
- RAM: DDR3 256MB ~ 2GB
- Network:
    1 x 10/100/1000M Ethernet
    1 x 10/100M Ethernet
- Storage:
    1 x MicroSD Slot
    1 x eMMC Module Slot
- USB Host/OTG:
    1 x USB3.0 Type A HOST
    1 x USB2.0 HOST (40-pin pin-header)
- Wireless
    RTL8723DU/RTL8821CU
- Debug Serial:
    1500000 baud at UART2 ( 40-pin pin-header)
- Power Supply:
    Type-C 5V
    Optionally PoE

Installation:
- Write image to SD Card or EMMC with dd
- Boot ROCK Pi E from the SD Card

Signed-off-by: Jayantajit Gogoi <jayanta.gogoi525@gmail.com>
2023-09-05 00:20:51 +05:30
Tianling Shen
2d9efa26e3
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-03 12:12:27 +08:00
Tianling Shen
189ed37695
rockchip: set fixed name for gmac1 on NanoPi R6S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-02 08:45:04 +08:00
Tianling Shen
e4d9899e5e
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-29 09:23:24 +08:00
Antonio Flores
f0138de3e5 rockchip: add support for PINE64 ROCK64
This add support for PINE64 ROCK64, rockchip rk3328 board.

Specifications:

 4 x ARM Cortex A53 cores @ 1.5 GHz
 ARM Mali 450 MP2 GPU
 LPDDR3 RAM (up to 4GB)
 Gigabit Ethernet
 Micro SD Slot
 eMMC module slot
 SPI Flash 128Mbit
 4K digital video out
 2x USB 2.0 Host
 1x USB 3.0 Host
 PI-2 bus
 PI-P5+ bus
 IR R/X port
 Real Time Clock (RTC) port
 Power Over Ethernet (POE) (when using optional HAT module)
 A/V jack
 Power, Reset and Recovery buttons
 3.5mm barrel power (5V 3A) port

To install write image to the sd using dd (dd if=*.img of=/*)

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2023-08-27 19:20:11 +02:00
Tianling Shen
df4507d339
rockchip: refactor yt8521 LED configuration using OF
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-23 17:24:52 +08:00
Tianling Shen
06900b328d
rockchip: add LED configuration for Hinlink H68K/H69K
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-23 13:24:42 +08:00
Tianling Shen
0a4d4cc209
rockchip: add LED configuration for Mrkaio M68S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-23 13:23:17 +08:00
Tianling Shen
6f7eddb42c
rockchip: add LED configuration for NanoPi R5S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-23 13:20:42 +08:00
Tianling Shen
7564d4123a
rockchip: add LED configuration for FastRhino R68S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-23 12:45:07 +08:00
AmadeusGhost
1289211440
rockchip: add LED configuration from OF for rtl8211f 2023-08-23 12:44:41 +08:00
Tianling Shen
3711ed503b
rockchip: fix pcie address for fastrhino r68s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-20 18:04:27 +08:00
Tianling Shen
77763dd129
rockchip: re-order eth ports for fastrhino r68s
eth0 <-> eth1
eth2 <-> eth3

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-20 17:31:47 +08:00
Tianling Shen
9353f90342
rockchip: stmmac: add devname configuration from OF
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-20 15:14:37 +08:00
Tianling Shen
a947097954
rockchip: set fixed mac addr for h6xk
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-13 06:49:34 +08:00
Tianling Shen
977ac5e603
rockchip: refresh kernel patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-12 15:41:34 +08:00
Tianling Shen
7ce74cfbc2
rockchip: add Hilink OPC-H6XK support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-12 15:23:40 +08:00
Tianling Shen
0621dc232d
rockchip: lower mmc speed for rock 5a/5b
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-10 17:43:01 +08:00
Tianling Shen
45d361aedd
rockchip: add Rock 5A support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-10 17:42:48 +08:00
Tianling Shen
56613c1d91
rockchip: remove outdated version switch
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-09 15:20:57 +08:00
Tianling Shen
ed2528ba75
rockchip: lower mmc speed for nanopc t6
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-08 11:24:26 +08:00
Tianling Shen
1f0b2735a0
rockchip: enable rockchip 3588001 erratum workaround for rk3588s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-07 01:47:59 +08:00
Tianling Shen
7fdd320512
rockchip: add NanoPC T6 support
Hardware
--------
RockChip RK3588 ARM64 (8 cores)
4/8/16GB LPDDR4X RAM
2x 2500 Base-T (PCIe, rtl8125b)
2 LEDs (POWER / WAN)
32/64/256GB eMMC on-board
Micro-SD Slot
USB 2.0 Port
Headphone
USB 3.0
USB PD 2.0
M.2 M-Key
M.2 E-Key
DC Jack 12V

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-07 01:21:34 +08:00
Tianling Shen
5cafe51ad8
rockchip: update nanopi r6s dt
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-07 01:15:34 +08:00
Tianling Shen
04b1bf934c
rockchip: revert rk3588 clk patches
This causes clk driver panic.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-07 01:14:30 +08:00
Tianling Shen
bca580a383
rockchip: backport latest rk3588 patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-08-06 09:32:20 +08:00
Tianling Shen
60e6e250cb
rockchip: refreshed rk3588 patchset
- Added PCIe3/USB3 support for Rock 5B
- Updated sdmmc properties for Rock 5A/5B

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-27 04:20:37 +08:00
Lu jicong
06d5c773fa rockchip: enable wifi support for NanoPC T4
wifi module: AP6356S (BCM4356) SDIO

Signed-off-by: Lu jicong <jiconglu58@gmail.com>
2023-07-26 12:15:20 +02:00
Lu jicong
ac9a2d6a35 rockchip: add FriendlyARM NanoPC T4 support
Hardware
--------
RockChip RK3399 ARM64 (6 cores)
4GB LPDDR3 RAM
1x 1000 Base-T
1 GPIO LED (status)
HDMI 2.0
3.5mm TRRS AV jack
Micro-SD slot
16GB eMMC
1x USB 3.0 Port
2x USB 2.0 Port
1x USB Type-C Port
1x M.2 PCI-E Port
AP6356S (BCM4356) SDIO WiFi & Bluetooth adapter
--------
Note: AP6356S is not supported yet due to the lack of firmware and NVRAM

Signed-off-by: Lu jicong <jiconglu58@gmail.com>
2023-07-26 12:15:20 +02:00
Tianling Shen
ccbebe8a3b
rockchip: add wireless firmware to nanopi t4
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-23 19:33:07 +08:00
Lu jicong
4689114669
rockchip: add FriendlyARM NanoPC T4 support
Hardware
--------
RockChip RK3399 ARM64 (6 cores)
4GB LPDDR3 RAM
1x 1000 Base-T
1 GPIO LED (status)
HDMI 2.0
3.5mm TRRS AV jack
Micro-SD slot
16GB eMMC
1x USB 3.0 Port
2x USB 2.0 Port
1x USB Type-C Port
1x M.2 PCI-E Port
AP6356S (BCM4356) SDIO WiFi & Bluetooth adapter
--------
Note: AP6356S is not supported yet due to the lack of firmware and NVRAM

Signed-off-by: Lu jicong <jiconglu58@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-23 19:03:00 +08:00
Tianling Shen
ba871510ef
rockchip: add NanoPi R6C support
Hardware
--------
RockChip RK3588S ARM64 (8 cores)
4/8GB LPDDR4X RAM
1000 Base-T (native, rtl8211f)
2500 Base-T (PCIe, rtl8125b)
4 LEDs (SYS / WAN / LAN / USER)
2 Button (GPIO Reset, MaskROM)
32GB eMMC on-board
Micro-SD Slot
USB 3.0 Port
USB 2.0 Port
HDMI 2.1
USB Type C PD 5/9/12/20V

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-15 17:31:44 +08:00
Tianling Shen
cdd8d41166
rockchip: refresh rk3588 patchset
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-15 16:28:21 +08:00
Tianling Shen
d8b07e76b3
rockchip: exchange power and user LEDs for station p2
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-14 22:05:07 +08:00
Tianling Shen
8c751d42c0
rockchip: add missing network setup for station p2
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-14 21:56:03 +08:00
Tianling Shen
4194e38ac5
rockchip: add Station P2 support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
2/4/8GB LPDDR4 RAM
2x 1000 Base-T
Bluetooth 5.0
Dual-band Wi-Fi6
2 LEDs (POWER / USER)
32/64/128GB eMMC on-board
Micro-SD Slot
M.2 Slot
SATA 3.0 interfaces
HDMI 2.0
Headphone
2x USB 2.0 Port
USB 3.0 Port
DC 12V

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-12 21:41:12 +08:00
Tianling Shen
74c3699c02
rockchip: re-enable wifi for rockpi 4a
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-12 21:10:36 +08:00
Tianling Shen
816b7f95f0
rockchip: add Rock 5B support
Hardware
--------
RockChip RK3588 ARM64 (8 cores)
4/8/16GB LPDDR4X RAM
2500 Base-T (PCIe, rtl8125b)
RGB LED
8/16/32/64/128GB eMMC on-board
Micro-SD Slot
USB 2.0 Port
Headphone
USB PD 2.0 12/15/20V

Install
--------
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>
2023-07-12 19:14:17 +08:00
Tianling Shen
5acf2d56af
rockchip: refresh rk3588 patchset
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-12 17:20:57 +08:00
Tianling Shen
dec8c4080e
rockchip: refresh LED patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-10 17:07:58 +08:00
Tianling Shen
68fd8e92b2
rockchip: refresh kernel patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-07-08 16:27:26 +08:00
Tianling Shen
c3c09cd994
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-26 00:34:16 +08:00
Stefan Kalscheuer
b308bd50ef kernel: migrate FORCE_MAX_ZONEORDER to ARCH_FORCE_MAX_ORDER for 6.1
The flag FORCE_MAX_ZONEORDER was renamed to ARCH_FORCE_MAX_ORDER in
Kernel 6.1 [1]. Rename the flag in generic Kconfig and remove it from
target configs.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0192445cb2f7ed1cd7a95a0fc8c7645480baba25

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
2023-06-25 11:26:50 +02:00
Tianling Shen
31497457df
rockchip: enable scmi sensors
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-20 16:13:05 +08:00
Tianling Shen
b6d8a0e65e
rockchip: add Rock Pi E support
Hardware
--------
RockChip RK3328 ARM64 (4 cores)
up to 4GB DDR3 RAM
100 Base-T
1000 Base-T
LED (status)
ADC button
Micro-SD slot
eMMC slot
USB 3.0 Port
Type-C power

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-17 15:18:36 +08:00
Tianling Shen
44832c677b
rockchip: refresh upstreamed rk3588 patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-17 14:37:25 +08:00
Tianling Shen
d312f12b1a rockchip: fix setup network config for nanopi r2c
Without it the WAN port won't be initialized properly.

Fixes: 8f578c15b3 ("rockchip: add NanoPi R2C support")
Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-17 12:20:10 +02:00
AmadeusGhost
7be1e397c7
rockchip: backport mmc fixes from kernel 6.4
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-08 18:08:45 +08:00
Tianling Shen
dae139a209
rockchip: refresh upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-08 18:08:41 +08:00
Tianling Shen
459ed9762c
rockchip: refresh rk3588 clk/iio patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-04 17:32:33 +08:00
Tianling Shen
95d86d92c9
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-02 19:52:24 +08:00
Hauke Mehrtens
16a20512d8
kernel: Set CONFIG_FRAME_WARN depending on target
This set the CONFIG_FRAME_WARN option depending on some target settings.
It will use the default from the upstream kernel and not the hard coded
value of 1024 now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-06-02 11:19:32 +02:00
Tianling Shen
6a9aea21ed
rockchip: nanopi r6s: fix boot from eMMC
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-02 15:48:35 +08:00
Tianling Shen
32d5921b8b rockchip: add Orange Pi R1 Plus LTS support
The OrangePi R1 Plus LTS is a minor variant of OrangePi R1 Plus with
the on-board NIC chip changed from rtl8211e to yt8531c, and otherwise
identical to OrangePi R1 Plus.

Tested-by: Volkan Yetik <no3iverson@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-31 21:41:46 +02:00
Tianling Shen
ab641efe69 rockchip: add Orange Pi R1 Plus support
Orange Pi R1 Plus is a Rockchip RK3328 based SBC by Xunlong.

This device is similar to the NanoPi R2S, and has a 16MB
SPI NOR (mx25l12805d). The reset button is changed to
directly reset the power supply, another detail is that
both network ports have independent MAC addresses.

Note: booting from SPI is currently unsupported, you have to install
the image on a SD card.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-31 21:41:46 +02:00
Tianling Shen
56f71b89d7 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-30 12:29:22 +08:00
Tianling Shen
086b42c3cb rockchip: enable testing kernel version with 6.1 version
Enable testing kernel version with 6.1 kernel version.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 19:44:31 +02:00
Tianling Shen
9daae7942d rockchip: 6.1: refresh config and add missing symbols
Refresh config for kernel 6.1 and add missing symbols

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 19:44:30 +02:00
Tianling Shen
f31192bf15 rockchip: 6.1: refresh kernel patches
Refresh kernel patches for version 6.1.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 19:44:28 +02:00
Tianling Shen
bb73ff25c3 rockchip: 6.1: copy patches, config from 5.15
Copy patches and config from 5.15 kernel version.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 19:44:26 +02:00
Tianling Shen
e6a0be1ac5 rockchip: fix panic when probe rockchip-cpufreq driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 17:30:31 +08:00
Tianling Shen
81d0182d18 rockchip: add GuangMiao G4C support
This board was designed as a clone of NanoPi R4S. However, it didn't
follow the spec and changed the power-supply system massively, and
because of it there's no way to soft reset this board currently.
For reboot, you must cut off the power and reengage it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 16:22:22 +08:00
Tianling Shen
d723634721 rockchip: add NanoPi R6S support
Hardware
--------
RockChip RK3588S ARM64 (8 cores)
8GB LPDDR4X RAM
1x 1000 Base-T (native, rtl8211f)
2x 2500 Base-T (PCIe, rtl8125b)
4 LEDs (SYS / WAN / LAN1 / LAN2)
2 Button (GPIO Reset, MaskROM)
32GB eMMC on-board
Micro-SD Slot
USB 3.0 Port
USB 2.0 Port
2x HDMI 2.1
IR receiver
USB Type C PD 5/9/12/20V

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 15:34:35 +08:00
Tianling Shen
208f54d497 rockchip: groundwork for rk3588 support - part 2
Backport all pending patches for rk3588 support.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 15:34:35 +08:00
Tianling Shen
f30f934bad rockchip: groundwork for rk3588 support - part 1
Backport all upstreamed patches for rk3588 support.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 15:34:35 +08:00
Tianling Shen
8af9097be9 rockchip: remove kernel 5.15 files
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 15:34:35 +08:00
Tianling Shen
84037ac884 rockchip: fix kernel dependencies
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 13:51:08 +08:00
Tianling Shen
e72521cbac rockchip: switch to kernel 6.1
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-29 12:38:41 +08:00
Tianling Shen
7f8ce9648c rockchip: fix drm dependencies
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-26 12:24:28 +08:00
Tianling Shen
2cb3d63d11 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-25 14:47:13 +08:00
Tianling Shen
6ac5d62e78 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-24 14:01:53 +08:00
Tony Ambardar
c2d194a34e kernel: enable (ARM|ARM64)_MODULE_PLTS in generic config
This allows loading modules with large memory requirements, recently needed
while testing on armvirt/32. Past forum discussions [1] and bug reports [2]
also raised this and the ipq806x target already set it in response [3].
Given this increases kernel image size by only ~1KB, is generally useful on
multi-platform kernels, and enabled by default on upstream arm32 Linux, add
it to the generic config.

The setting has similar utility on arm64, is a requirement for KASLR, and
already enabled on most OpenWrt aarch64 targets, so pull this into the
top-level generic config.

[1]: https://forum.openwrt.org/t/vmap-allocation-for-size-442368-failed-use-vmalloc-size-to-increase-size/34545/7
[2]: https://github.com/openwrt/openwrt/issues/8282
[3]: f81e148eb6 ("ipq806x: update 4.19 kernel config").

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2023-05-23 05:49:46 -07:00
Tianling Shen
84f102eab3 rockchip: 6.1: sort patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 14:32:57 +08:00
Tianling Shen
269d0d9d98 rockchip: enable testing kernel version with 6.1 version
Enable testing kernel version with 6.1 kernel version.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 13:53:35 +08:00
Tianling Shen
1bd7864942 rockchip: 6.1: refresh config and add missing symbols
Refresh config for kernel 6.1 and add missing symbols

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 13:53:22 +08:00
Tianling Shen
58da242f09 rockchip: 6.1: refresh kernel patches
Refresh kernel patches for version 6.1.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 13:11:35 +08:00
Tianling Shen
496436c0e0 rockchip: 6.1: copy patches, config from 5.15
Copy patches and config from 5.15 kernel version.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 12:48:31 +08:00
AmadeusGhost
452eb0f5ce rockchip: fix DRM dependencies for kernel 6.1
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 12:44:05 +08:00
Tianling Shen
88cac18bd6 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-21 20:13:18 +08:00
Tianling Shen
2ca84c2453 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-19 11:51:16 +08:00
Tianling Shen
8f578c15b3 rockchip: add NanoPi R2C support
The NanoPi R2C is a minor variant of NanoPi R2S with the on-board NIC
chip changed from rtl8211e to yt8521s, and otherwise identical to R2S.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
64afcbad3d kernel: backport Motorcomm YT8521/YT8531 support
It will be used on NanoPi R2C and OrangePi R1 Plus LTS board.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
afff2feb28 rockchip: move UBOOT_DEVICE_NAME to default
Simplify variable usage.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
e35c7ab51f rockchip: merge bootscript
The bootscript for nanopi r2s/r4s only changes the serial address, so
make it auto detected in mmc bootscript rather than creating more
(redudant) files.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
6f17513f18
rockchip: replace local files with upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-14 11:41:26 +08:00
Tianling Shen
b032812ea1
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-13 18:00:41 +08:00
Tianling Shen
027348c3b2
rockchip: refresh kernel config
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-13 13:47:58 +08:00
Nick Hainke
1d3e71bd97
treewide: remove files for building 5.10 kernel
All targets are bumped to 5.15. Remove the old 5.10 patches, configs
and files using:

  find target/linux -iname '*-5.10' -exec rm -r {} \;

Further, remove the 5.10 include.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-05-12 13:02:43 +02:00
Tianling Shen
76ae895eb4
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-12 11:15:51 +08:00
Tianling Shen
650f5eacd4
default-settings: add luci to dependency
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 23:33:42 +08:00
Tianling Shen
46e4e2aadb
rockchip: setup network config for nanopi r2c plus
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 21:13:03 +08:00
Tianling Shen
dfdf755703
rockchip: simplify redudant commands
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 20:58:14 +08:00
Tianling Shen
a93967ec0b
rockchip: add NanoPi R2C Plus
The FriendlyARM NanoPi R2C Plus is a minor variant of R2C with a
on-board 8G eMMC flash.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 20:29:51 +08:00
Tianling Shen
b0e869501a rockchip: disable UHS speed for ROC-RK3328-CC
The previously stated speed of sdr-104 in is too high for the hardware
to reliably communicate with some fast SD cards.
Rockchip boards have a common bug when operating uhs speed, which will
hang the system during a soft reboot.

To be on the safe side, lower the speed to workaround.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-09 13:30:22 +08:00
Tianling Shen
395de5103a rockchip: enable rk805 pinctrl driver
This is required for ROC-RK3328-CC to light up the LED-s which are
connected to rk805's gpio.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-09 13:30:22 +08:00
Tianling Shen
a7d6cf0bb3 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

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-09 13:30:22 +08:00
Tianling Shen
700b72c21a
uboot-rockchip: remove dtc hack patch
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-08 18:51:26 +08:00
Tianling Shen
c03f9317ef
rockchip: backport upstreamed fastrhino patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-07 19:33:09 +08:00
Tianling Shen
963553fef9
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-05 19:43:20 +08:00
Tianling Shen
db6b56b795
r8125: read devname configuration from OF
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-04 20:33:09 +08:00
Tony Ambardar
3d66f55161 kernel: improve handling of CONFIG_IO_URING
Kernel setting CONFIG_IO_URING supports high-performance I/O for file
access and servers, generally for more performant platforms, and adds
~45 KB to kernel sizes. The need for this on less "beefy" devices is
questionable, as is the size cost considering many platforms have kernel
size limits which require tricky repartitioning if outgrown. The size
cost is also large relative to the ~180 KB bump expected between major
OpenWRT kernel releases.

No OpenWrt packages have hard dependencies on this; samba4 and mariadb
can take advantage if available (+KERNEL_IO_URING:liburing) but
otherwise build and work fine.

Since CONFIG_IO_URING is already managed via the KERNEL_IO_URING setting
in Config-kernel.in (default Y), remove it from those target configs
which unconditionally enable it, and update the defaults to enable it
conditionally only on more powerful 64-bit x86 and arm devices. It may
still be manually enabled as needed for high-performance custom builds.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2023-05-03 10:26:17 -07:00