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