Commit Graph

611 Commits

Author SHA1 Message Date
Tianling Shen
c352e9438d
rockchip: fix syntax error in station p2 wifi patch
Fixes: dee8b8f2e2 ("rockchip: enable wifi and bt for firefly station p2")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-26 22:24:53 +08:00
Tianling Shen
dee8b8f2e2
rockchip: enable wifi and bt for firefly station p2
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-26 21:40:09 +08:00
Tianling Shen
992e9ec072
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-22 23:01:52 +08:00
FUKAUMI Naoki
669470384e rockchip: make SATA(AHCI) really work on Radxa E25
kmod-ahci-dwc is required to use SATA(AHCI) on Radxa E25.

Fixes: f7c732bf9e ("rockchip: add Radxa E25 board support")
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Link: https://github.com/openwrt/openwrt/pull/15923
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-21 18:22:24 +02:00
Tianling Shen
10f9bf6a8c
rockchip: backport latest panthor fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-15 14:38:10 +08:00
FUKAUMI Naoki
88d9095ca5 rockchip: stop "heartbeat" LED for Radxa CM3I(E25)
stop "heartbeat" which happens before OpenWrt controls LED. instead,
just turn LED on.

Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Link: https://github.com/openwrt/openwrt/pull/15913
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-07-12 09:49:20 +02:00
Tianling Shen
e7571a6be7
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-12 00:52:09 +08:00
Tianling Shen
9088d3267b
rockchip: add ArmSoM Sige7 support
This board is also as known as Bananapi BPi-M7.

Hardware
--------
RockChip RK3588 ARM64 (8 cores)
8/16/32GB LPDDR4/LPDDR4x RAM
2x 2500 Base-T (PCIe, rtl8125b)
AP6275P Wi-Fi 6 / Bluetooth 5
2 LEDs (RED / GREEN)
16GB/32GB/64GB/128GB eMMC on-board
Micro-SD Slot
HDMI Port
USB 2.0 Port
USB 3.0 Port
USB Type-C 3.0 Port
M.2 M-Key
40-Pin Header
USB PD 2.0 9/12/15V Power

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>
2024-07-11 22:27:06 +08:00
Tianling Shen
f307402ffa
rockchip: fix vendor name for bpi r2-pro
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-11 21:09:53 +08:00
Tianling Shen
86b4b39f83
rockchip: disable hwrng for rk3588 by default
It's not working with current clk driver.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-11 20:47:14 +08:00
Tianling Shen
97ca0819e9
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-10 19:16:17 +08:00
Tianling Shen
7a96d36188 rockchip: fix baudrate for Radxa E25
According to the documentation[1], the serial baudrate of E25 is
115.2 Kbps, and setting it to 1.5 Mbps will cause onboard CH340B
USB-UART chip unstable.

Since mainline TPL is yet available, download patched TPL binary
from Radxa.

1. https://wiki.radxa.com/Rock3/CM/CM3I/E25/getting_started

Fixes: https://github.com/openwrt/openwrt/issues/15814
Fixes: f7c732bf9e ("rockchip: add Radxa E25 board support")
Tested-by: FUKAUMI Naoki <naoki@radxa.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/15870
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-07-10 09:46:19 +02:00
Tianling Shen
456ad0e4f8
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-06 15:00:48 +08:00
FUKAUMI Naoki
1664e506ac uboot-rockchip: use u-boot-rockchip.bin
use u-boot-rockchip.bin to copy SPL/TPL/U-Boot to the image.

since binman was used in mainline u-boot for rockchip, we can use
u-boot-rockchip.bin instead of idbloader.img and u-boot.itb.

Reviewed-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Link: https://github.com/openwrt/openwrt/pull/15815
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-07-04 19:26:00 +02:00
Tianling Shen
a3ac91322e
rockchip: fix reset pcie
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-04 18:07:28 +08:00
Tianling Shen
4b9cf965ff
rockchip: reorder board patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-27 02:38:36 +08:00
Tianling Shen
095f52b437
rockchip: backport upstreamed cpufreq support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-26 21:32:44 +08:00
Tianling Shen
7f2199ef6b
rockchip: remove useless evb patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-26 20:35:38 +08:00
Tianling Shen
b87d4bf502
pcat-manager: mark as broken
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-26 20:17:44 +08:00
Tianling Shen
5e63e0a0a3
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-17 16:21:53 +08:00
Milinda Brantini
c95ed79787 rockchip: Add cache information to the SoC dtsi for RK356x
Fix cacheinfo: Unable to detect cache hierarchy for CPU 0.

Signed-off-by: Milinda Brantini <C_A_T_T_E_R_Y@outlook.com>
2024-06-16 21:59:11 +02:00
Tianling Shen
75942eaaab
rockchip: enable log output for hdmi
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-04 22:13:07 +08:00
Tianling Shen
e7fbc901f1
rockchip: configure ETH LED for NanoPi R5C/R5S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-18 14:04:36 +08:00
Tianling Shen
82a4875114
rockchip: configure ETH LED for NanoPC T6
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-18 13:26:44 +08:00
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
0341a06f1f rockchip: switch to kernel 6.6
Switch to Linux kernel version 6.6 and drop configs, files and patches
for Linux 6.1.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-05-09 10:43:37 +02: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
Antonio Flores
ce4da3cf41 rockchip: add kernel 6.6 as testing kernel
Add kernel 6.6 as testing kernel

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-07 00:17:12 +02:00
Antonio Flores
83edd39db6 rockchip: refresh config 6.6
Refresh config 6.6 (make kernel_oldconfig).

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-07 00:17:12 +02:00
Antonio Flores
728db5ec05 rockchip: refresh 6.6 patches
Refresh kernel 6.6 patches.
Removed backpored patches.

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-07 00:17:12 +02:00
Antonio Flores
dcd2367349 kernel/rockchip: Restore kernel files for v6.1
This is an automatically generated commit which aids following Kernel patch history,
as git will see the move and copy as a rename thus defeating the purpose.

See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html
for the original discussion.

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-07 00:17:12 +02:00
Antonio Flores
ddfd526140 kernel/rockchip: Create kernel files for v6.6 (from v6.1)
This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-07 00:17:12 +02: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