Commit Graph

248 Commits

Author SHA1 Message Date
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
Philip Prindeville
23f94aa330 kernel: include CONFIG_KEXEC_SIG in configs
Seeing failure to build because of missing symbols related to provisioning
CONFIG_KEXEC and signed images.  Without this, if you set
CONFIG_KERNEL_KEXEC=y and try to build, target/linux will hang at:

scripts/kconfig/conf  --syncconfig Kconfig
...
kexec system call (KEXEC) [Y/n/?] y
kexec file based system call (KEXEC_FILE) [Y/n/?] y
Verify kernel signature during kexec_file_load() syscall (KEXEC_SIG) [N/y/?] (NEW)

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2022-03-15 08:33:45 +01:00
Tianling Shen
379ff4a41a
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-08 09:55:56 +08:00
msylgj
8dbec6a2fe
r8168: allow build for kernel 5.10 2022-03-05 17:11:46 +08:00
Rui Salvaterra
8235723c78 kernel: 5.10: remove CONFIG_DEVTMPFS{,_MOUNT} from kconfigs
They are required for container support, but are handled in Config-kernel.in.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-03-01 22:57:40 +00:00
Tianling Shen
5fa0c4a823
rockchip: remove default wireless config for Rockpi 4A
This is actually broken.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-01 21:06:04 +08:00
Tianling Shen
a672f0b7e8
rockchip: motorcomm: fix typo error
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-14 00:12:33 +08:00
Tianling Shen
eaad124155
rockchip: remove outdated kernel version check
Since kernel 5.4 was gone, remove them.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-13 21:24:45 +08:00
Tianling Shen
9d64b55c2e
rockchip: add OrangePi R1 Plus LTS support
This board is a fork of OrangePi R1 Plus, with native NIC changed.

Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
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>
2022-02-13 20:34:48 +08:00
Tianling Shen
a59a466d57
rockchip: motorcomm: add yt8531 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-13 20:34:36 +08:00
Tianling Shen
3ca7a5f921
rockchip: motorcomm: move new files to dir
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-13 20:03:34 +08:00
Tianling Shen
1c9c6ec230
rockchip: fix led-data of NanoPi R2C
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-11 02:01:51 +08:00
AmadeusGhost
3a8c6f9067 Merge Official Source 2022-02-09 19:51:52 +08:00
David Bauer
2b583ab8a7 rockchip: disable UHS modes for NanoPi R4S
The NanoPi R4S leaves the SD card in 1.8V signalling when rebooting
while U-Boot requires the card to be in 3.3V mode.

Remove UHS support from the SD controller so the card remains in 3.3V
mode. This reduces transfer speeds but ensures a reboot whether from
userspace or following a kernel panic is always working.

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-01-27 01:44:28 +01:00
Tianling Shen
ff4cbb40f2
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-28 05:23:03 +08:00
David Bauer
e1780de5ce rockchip: remove Kernel 5.4
As v5.10 is the default kernel version now, the files for v5.4 can be
dropped.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-12-27 03:13:36 +01:00
Tianling Shen
c019d2a8c4
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-24 23:40:51 +08:00
Sergey Ryazanov
fa3690f8f1 kernel: 5.10: consolidate mac80211 crypto options
Each of
- CRYPTO_AEAD2
- CRYPTO_AEAD
- CRYPTO_GF128MUL
- CRYPTO_GHASH
- CRYPTO_HASH2
- CRYPTO_HASH
- CRYPTO_MANAGER2
- CRYPTO_MANAGER
- CRYPTO_NULL2

either directly required for mac80211 crypto support, or directly
selected by such options. Support for the mac80211 crypto was enabled in
the generic config since c7182123b9 ("kernel: make cryptoapi support
needed by mac80211 built-in"). So move the above options from the target
configs to the generic config to make it clear why do we need them.

CC: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2021-12-17 16:16:34 +01:00
Sergey Ryazanov
b61ab8f57e kernel: filter out both Clang and LLD versions
Both CLANG_VERSION and LLD_VERISON are autogenerated runtime
configuration options, so add them to the kernel configuration filter
and remove from generic and per-target configs to keep configs clean.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2021-12-17 16:16:34 +01:00
AmadeusGhost
e7d97b0d73
rockchip: 5.10: NanoPi R2S: fixes vcc-rtl8153-regulator
This patch incorrectly puts vcc-rtl8153-regulator at the forefront,
causing probe timeout all the time. This commit backport the upstream
commit https://github.com/torvalds/linux/commit/d49f120 ("arm64: dts:
rockchip: Enable USB3 Ethernet on rk3328 NanoPi R2S") to ensure that
this regulator can be normally supplied.

Before:
  reg-fixed-voltage vcc-rtl8153-regulator: deferred probe timeout,
  ignoring dependency.

After:
  vdd_5v_lan: supplied by vdd_5v

Fixes: d53ae8c ("rockchip: add Kernel 5.10 support")
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 6d407b9ee8)
2021-11-30 00:12:49 +08:00
Tianling Shen
89390604f2
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-01 12:53:08 +08:00
Chukun Pan
cc2a8c2545 rockchip: move r8152 related patches to generic
These patches can be used on other platforms, so
move it to generic.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
2021-10-30 21:17:20 +02:00
AmadeusGhost
93030815a7
rockchip: hwrng: sync with official develop-4.19 branch
ee89075 hwrng: rockchip: add rk356x support

(cherry picked from commit c7621fb09f)
2021-10-21 12:29:52 +08:00
AmadeusGhost
c7f21b8f63
rockchip: remove vendor usb3 inno driver files
(cherry picked from commit 4db435509d)
2021-10-21 12:29:44 +08:00
Tianling Shen
e94abee050
rockchip: remove rockchip's proprietary usb3 inno driver
It's never used.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-20 16:43:54 +08:00
AmadeusGhost
a4fed6919d
kmod-saradc-rockchip: fixes dependencies on 5.10
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 16be2d38b4)
2021-10-20 16:42:12 +08:00
AmadeusGhost
c2d9f084db
kmod-drm-rockchip: fixes dependencies on 5.10
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 05f93afae6)
2021-10-19 11:10:57 +08:00
AmadeusGhost
11f65c6de5
rockchip: rename nanopi2-timing to default-timing
There is nothing device specific about this file.

(cherry picked from commit 375466ae21)
2021-10-19 11:10:52 +08:00
Tianling Shen
188044c6e7
rockchip: refresh Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 13:30:53 +08:00
AmadeusGhost
13f77f6098
kmod-saradc-rockchip: add new package
This driver support for the SARADC found in SoCs
from Rockchip.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 1df20c4d7d)
2021-10-18 13:27:55 +08:00
AmadeusGhost
b72a3b72f4
kmod-drm-lima: rename and enable support for sunxi
This driver can be used on AllWinner h3/h5 and rk3328.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 971af214bc)
2021-10-18 13:27:31 +08:00
AmadeusGhost
01cb99bef5
kmod-drm-rockchip: add missing kconfig
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit cd89cce53d)
2021-10-18 13:26:32 +08:00
Tianling Shen
77fca48d26
rockchip: update patch date
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 13:02:53 +08:00
Tianling Shen
4c139c0588
rockchip: apply overclocking to all devices
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 12:52:48 +08:00
Tianling Shen
cf49626f45
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-12 14:39:40 +08:00
Adrian Schmutzler
91eed5d9fb rockchip: rename "Rock Pi 4" to "Rock Pi 4A"
Kernel has added the different variants of the Rock Pi 4 in commit
b5edb0467370 ("arm64: dts: rockchip: Mark rock-pi-4 as rock-pi-4a
dts"). The former Rock Pi 4 is now Rock Pi 4A.

For compatibility with kernel 5.4, this rename has been held back
so far. Having switched to kernel 5.10 now, we can finally apply
it in our tree as well.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-10-10 00:57:56 +02:00