Commit Graph

283 Commits

Author SHA1 Message Date
Tianling Shen
9d6e3e6c02
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-10-08 14:46:37 +08:00
Tomas Lara
2b4f12e55b rockchip: switch to 5.15 kernel
Run tested: NanoPI R4S

Signed-off-by: Tomas Lara <tl849670@gmail.com>
2022-10-02 23:07:50 +02:00
Tomas Lara
c4f0781eae rockchip: refresh kernel 5.15 config
Refreshed using make kernel oldconfig CONFIG TARGET=rockchip .

Signed-off-by: Tomas Lara <tl849670@gmail.com>
2022-10-02 23:07:50 +02:00
Tianling Shen
81f9f50fa4
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-27 17:06:04 +08:00
Tianling Shen
61f0038d46
rockchip: fix MSIX interrupt on R66S
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-25 23:09:28 +08:00
Tianling Shen
1c599c5480
rockchip: enable LAN LED configuration for NanoPi R4S
This enables the LEDs on the LAN interfaces for NanoPi R4S.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-24 23:10:33 +08:00
Hauke Mehrtens
f08f7e88c9 kernel: Move some IOMMU options to generic
This adds some missing IOMMU related options for x86/64 and moves some
of them to generic for all targets.

On x86 IOMMU_DEFAULT_DMA_LAZY is used by default, on all other platforms
IOMMU_DEFAULT_DMA_STRICT is the default. we just follow the default
kernel configuration here.

Fixes: 8fea4a102c ("x86/64: enable IOMMU support")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-09-24 13:49:47 +02:00
Tianling Shen
86e1977c45
rockchip: add NanoPi R4S Enterprise Edition
The only diffrence against the standrard edition is that the enterprise
one has a built-in EEPROM chip which stores a globally unique MAC address.

This patch removed the MAC address hack.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-16 20:18:34 +08:00
Tianling Shen
2a31bd9781
rockchip: fix build pcie3 driver
Fixes: #780

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-15 10:26:06 +08:00
Tianling Shen
a21a326a17
rockchip: refresh patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-11 13:07:58 +08:00
Tianling Shen
91e4a7e087
rockchip: move upstreamed drivers to files-5.15
faedfa5b40f095 arm64: dts: rockchip: Add PCIe v3 nodes to rk3568
2e9bffc4f713db phy: rockchip: Support PCIe v3

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-11 12:31:24 +08:00
Tianling Shen
35e62c98a3
rockchip: fix assign mac address to nanopi r4s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-11 11:36:09 +08:00
Tianling Shen
8dd2b6230d
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-10 10:05:03 +08:00
David Bauer
1588069612 rockchip: add system-LED aliases specific to OpenWrt
Add the aliases sections required to detect LEDs specific to OpenWrt
boot / update indication for the NanoPi R4S.

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-09-10 01:55:54 +02:00
David Bauer
b5675f500d rockchip: ensure NanoPi R4S has unique MAC address
Ensure the MAC address for all NanoPi R4S boards is assigned unique for
each board.

FriendlyElec ship two versions of the R4S: The standard as well as the
enterprise edition with only the enterprise edition including the EEPROM
chip that stores the unique MAC address.

In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S in case the EEPROM chip is not
present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R4S#Differences_Between_R4S_Standard_Version_.26_R4S_Enterprise_Version

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-09-10 01:54:40 +02:00
AmadeusGhost
b88c1bf852
rockchip: backport usb dwc3 fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-03 17:50:12 +08:00
Tianling Shen
c754f2df38
rockchip: remove boardname from LED labels
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-30 10:11:34 +08:00
Tianling Shen
ff939b693d
rockchip: fix vop2 driver build
Fixes: a2f87aaf53 ("rockchip: backport rk3568 support to kernel 5.15")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-27 13:24:07 +08:00
Tianling Shen
d19b403120
rockchip: fastrhino r66s: add vop node
This adds vop node which used by rockchip drm driver and hw acceleration
for encoding/decoding.

Fixes: bd5154ed37 ("rockchip: add Fastrhino R66S support")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-27 12:35:27 +08:00
Tianling Shen
e7f6c2bc81
rockchip: backport reboot support for rk809/rk817
Fixes: bd5154ed37 ("rockchip: add Fastrhino R66S support")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-27 11:56:23 +08:00
Tianling Shen
524bf1eefa
rockchip: modules: fix typo error
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-27 10:40:01 +08:00
Tianling Shen
bd5154ed37
rockchip: add Fastrhino R66S support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
1GB or 2GB LPDDR4 RAM
2x 2500 Base-T
1 LED (Power)
1 Button (Reset)
Micro-SD Slot
2x USB 3.0 Port

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-27 09:48:46 +08:00
Tianling Shen
49e97f6737
rockchip: move some dts to files folder
These dts may be never upstreamed.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-26 14:09:50 +08:00
Tianling Shen
a2f87aaf53
rockchip: backport rk3568 support to kernel 5.15
0. Added rk356x support to existing drivers (PCIe v2 / usb) (upstreamed)
1. Added rk356x dtsi (upstreamed)
2. Added combo phy driver (upstreamed)
3. Added hwRNG support (vendor)
4. Added PCIe v3 driver (under review)
5. Added VOP2 driver (upstreamed)
6. Added 1992 MHz to cpu opp-table (local)

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-08-26 14:09:22 +08:00
ZiMing Mo
7e87cf2080
Merge Mainline
Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
2022-08-17 13:32:28 +08:00
Hauke Mehrtens
ff06edd1f0 kernel: Activate CONFIG_GPIOLIB in generic configuration
All targets expect the malta target already activate the CONFIG_GPIOLIB
option. Move it to generic kernel configuration and also activate it for
malta.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-10 21:36:17 +02:00
Hauke Mehrtens
0e3bafc601 kernel: Activate CONFIG_INPUT_MISC on all targets
CONFIG_INPUT_MISC does not do any changes to the kernel image, it only
shows some extra kernel configuration options.

Activate it on all targets.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-10 21:36:17 +02:00
Tianling Shen
37d1d43db8
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-08 12:44:26 +08:00
Ronny Kotzschmar
9b00e97956
rockchip: reliably distribute net interrupts
On the NanoPI R4S it takes an average of 3..5 seconds for the network devices
to appear in '/proc/interrupts'.
Wait up to 10 seconds to ensure that the distribution of the interrupts
really happens.

Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
2022-07-07 13:13:26 +02:00
Tianling Shen
16621b0eec
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-06-27 13:36:29 +08:00
Tomasz Maciej Nowak
539e60539a generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM]
This is now built-in, enable so it won't propagate on target configs.

Link: https://lkml.org/lkml/2022/1/3/168
Fixes: 79e7a2552e ("kernel: bump 5.15 to 5.15.44")
Fixes: 0ca93670693b ("kernel: bump 5.10 to 5.10.119")
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(Link to Kernel's commit taht made it built-in,
CRYPTO_LIB_BLAKE2S[_ARM|_X86] as it's selectable, 5.10 backport)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-06-24 17:10:24 +02:00
Tianling Shen
0b6bea5af1
rockchip: fix merge conflict
Fixes: 6e384969c3 ("Merge Official Source")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-06-21 01:24:10 +08:00
ZiMing Mo
6e384969c3
Merge Official Source 2022-06-20 11:33:10 +08:00
Juergen Wurzer
acbe1d4d36 rockchip: add kernel 5.15 as testing
Add kernel 5.15 as testing kernel for the rockchip-armv8 target.

Signed-off-by: Juergen Wurzer <wurzer.juergen@gmail.com>
[squash commits, update commit message]
Signed-off-by: David Bauer <mail@david-bauer.net>
2022-06-18 22:11:26 +02:00
Eneas U de Queiroz
b1346d35e4 rockchip/armv8: enable armv8-CE crypto algorithms
This enables armv8 crypto extensions version of AES, GHASH, and CRC T10
algorithms in the kernel.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-06-04 12:39:01 +02:00
Tianling Shen
ca9bda5da7
rockchip: remove kernel 5.10 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-20 18:51:34 +08:00
Tianling Shen
37d19d850a
rockchip: drm-rockchip: add missing dependency
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-17 20:49:29 +08:00
Tianling Shen
478ef7801e
rockchip: add missing Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-17 19:45:54 +08:00
Tianling Shen
6957f13eea
rockchip: drm-rockchip: fix Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-17 17:17:44 +08:00
Tianling Shen
6640d1257e
rockchip: switch to kernel 5.15
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-17 16:22:17 +08:00
Eneas U de Queiroz
eef8fbec8f
rockchip/armv8: enable armv8-CE crypto algorithms
This enables armv8 crypto extensions version of AES, GHASH, and CRC T10
algorithms in the kernel.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-17 16:12:08 +08:00
AmadeusGhost
af93561f26 rockchip: fixes pcie eth compatible for r4s
Use the standard pci device binding to fixes this.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
2022-05-06 17:41:51 +08:00
Tianling Shen
3dc934f8c1
target: use minimum build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-04-09 00:27:58 +08:00
Lucian Cristian
058bdf0396
rockchip: enable lzma compression for kernel
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-29 23:39:45 +08:00
Tianling Shen
d182815282
rockchip: 5:15: add testing kernel version
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-29 04:32:07 +08:00
Tianling Shen
b45e271e95
rockchip: 5.15: refresh patches
Removed upstream patches:
- 006-v5.13-rockchip-rk3399-Add-support-for-FriendlyARM-NanoPi-R.patch
- 101-dts-rockchip-add-usb3-controller-node-for-RK3328-SoCs.patch
- 102-rockchip-enable-LAN-port-on-NanoPi-R2S.patch
- 104-rockchip-use-USB-host-by-default-on-rk3399-rock-pi-4.patch
- 600-net-phy-Add-driver-for-Motorcomm-YT85xx-PHYs.patch

Manually rebased patches:
- 103-arm64-rockchip-add-OF-node-for-USB-eth-on-NanoPi-R2S.patch
- 203-rockchip-rk3328-Add-support-for-FriendlyARM-NanoPi-R.patch
- 204-rockchip-rk3328-Add-support-for-OrangePi-R1-Plus-LTS.patch

All other patches were automatically refreshed.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-29 04:31:56 +08:00
Tianling Shen
01d390e9c3
rorkchip: 5:15: refresh config
Refreshed Kconfig with `make kernel_oldconfig CONFIG_TARGET=armv8`.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-29 03:14:18 +08:00
Tianling Shen
cd82e1b991
rockchip: 5:15: copy config and patch from 5.10
Copy config and patch from kernel 5.10 to kernel 5.15

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-29 02:43:03 +08:00
hmz007
c4cb6830ea
rockchip: motorcomm: implement generic .handle_interrupt() callback
Signed-off-by: hmz007 <hmz007@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-29 01:15:22 +08:00
Tianling Shen
548267c6bd
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-15 18:49:14 +08:00