Commit Graph

581 Commits

Author SHA1 Message Date
Tianling Shen
72ccbed99c
rockchip: fix eth index name for FastRhino R68S
Fixes: #1298
Fixes: 8d4ca61288 ("rockchip: configure ETH LED for FastRhino R66S/R68S")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-18 13:06:46 +08:00
Tianling Shen
f80be246c9
rockchip: configure ETH LED for NanoPi R6C/R6S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-17 19:27:14 +08:00
Tianling Shen
8d4ca61288
rockchip: configure ETH LED for FastRhino R66S/R68S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-17 17:29:25 +08:00
Tianling Shen
cda5cfb9d5
rockchip: remove LED configuration hack for r8169
Upstream now uses standard ETH LED bindings to configure LED registers.
However, we don't use the r8169 driver for rockchip, so simply remove
this outdated hack.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-17 17:28:31 +08:00
Tianling Shen
c9a2cc2a3c
rockchip: remove extra its hack
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-17 16:55:44 +08:00
Tianling Shen
cfe71917c7
rockchip: replace depreacted 'strlcpy' func with 'strscpy'
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-17 16:50:43 +08:00
Tianling Shen
78773bc80c
rockchip: port cpuinfo driver from BSP kernel
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-15 15:46:44 +08:00
Tianling Shen
32779d3e62
rockchip: configure rtl8211f led data for nanopi r6s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-10 19:53:16 +08:00
Tianling Shen
07900bc830
rockchip: fix OF devname configuration for r8169
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-10 19:52:48 +08:00
Tianling Shen
7376941a97
rockchip: pull hwRNG driver from BSP kernel
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-10 14:29:49 +08:00
Tianling Shen
e628dadacf
rockchip: refresh kernel patches
Fixes: #1292
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-07 17:48:07 +08:00
Tianling Shen
44708860a6
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-06 14:33:10 +08:00
Tianling Shen
3c53757c59
rockchip: add missing BOOT_FLOW to bpi-r2 pro
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-06 11:59:01 +08:00
Tianling Shen
c200bf51db
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-05 14:01:19 +08:00
Tianling Shen
307e378458
rockchip: enable GPU for nanopi r6c/s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-05 13:50:46 +08:00
Antonio Flores
4ebcc5375a rockchip: add Bananapi-R2 Pro board support
Hardware spec:

- Rockchip RK3568 Quad-core ARM Cortex-A55 CPU 2GHz
- GPU Mali-G52 1-Core-2EE OpenGL ES3.2 Vu1kn 1.1 OpenCL 2.0
- Memory2G DDR3 SDRAM (option 4G)
- Storage Onboard 16GB eMMC Flash, Micro SD-Card slot, SATA 3.0 Port,SPI flash
- Network 5 x 10/100/1000 Mbit/s Ethernet MT7531
- Display 1 HDMI port, 2 DSI interface(1 DSI can change to LVDS by software)
- Camera 1 CSI camera interface
- Audio Output HDMI & I2S & Speaker & Headphone
- USB port USB 3.0 PORT (x2), micro USB OTG (x1)
- PCIE 1 mini pcie interface & 1 M.2 key-e interface
- Remote IR Receiver (x1)
- GPIO 40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND).
- Switches Reset button, Power button, U-boot button
- LED Power Status
- Power Source 12 volt 2A via DC Power

Installation:

Uncompress the OpenWrt sysupgrade and write image to the SD card using dd (dd if=*.img of=/*)
Boot from the SD card
1-hold down the MaskRom button
2-Connect DC power
3-Wait 5 seconds, release the button.

eMMC Installation:

1-Uncompress the OpenWrt sysupgrade image
2-fash to eMMC
dd if=openwrt-rockchip-armv8-sinovoip_bpi-r2-pro-squashfs-sysupgrade.img of=/dev/mmcblk1
sync
3-remove SD card
reboot

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-05 00:46:48 +02:00
Antonio Flores
298e11e43d rockchip: enable MT7531 and RTC drivers
This patch enable MT7531 switch and RTC drivers for BPI-R2 Pro.

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-05 00:46:48 +02:00
Daniel Golle
d9d7286279 rockchip: add driver for hardware RNG
Rockchip SoCs used to have a random number generator as part of their
crypto device, and support for it has to be added to the corresponding
driver.

Newer Rockchip SoCs like the RK3568 have an independent True Random
Number Generator device. Import pending patchset which adds a driver for
it, include it in Kconfig and enable it in the device tree.

Doing so significantly reduces the time needed to boot devices based on
those SoCs, from about 27 seconds until Ethernet is up and running to
less than 13 seconds with a minimal snapshot image.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-04 13:59:48 +01:00
Tianling Shen
f1ac8ecf1b
rockchip: backport latest rk3588 patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-04 20:36:34 +08:00
Tianling Shen
67317ec075
rockchip: backport panthor GPU driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-04 20:12:02 +08:00
Tianling Shen
8acaa11bfb
Revert "rockchip: pack Hantro VPU driver"
Needs more work.

This reverts commit 57128cc2ef.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-01 20:18:41 +08:00
Tianling Shen
57128cc2ef
rockchip: pack Hantro VPU driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-01 19:41:35 +08:00
Tianling Shen
c87729cbdb
rockchip: backport rk3588 vop2 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-01 16:18:03 +08:00
Tianling Shen
08b6454d66
rockchip: backport Samsung HDMI/eDP Combo PHY driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-01 16:18:00 +08:00
Tianling Shen
4465dc87d8
rockchip: add clk fixes removed by mistake
Fixes: a09aab301f ("rockchip: update rk3588 gate link patches")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-01 14:32:48 +08:00
Tianling Shen
a09aab301f
rockchip: update rk3588 gate link patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-01 14:07:54 +08:00
Tianling Shen
1b53b6d0d2
rockchip: backport latest rk3588 dt patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-01 13:55:23 +08:00
ZiMing Mo
fa454662b8
rockchip: refresh DTS about usbdp
Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
2024-04-27 15:54:33 +08:00
ZiMing Mo
b217eac89e
rockchip: refresh usbdp driver patch
Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
2024-04-27 15:51:59 +08:00
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