160 Commits

Author SHA1 Message Date
AmadeusGhost
fb0a449098
rockchip: hwrng: sync with official develop-4.19 branch
ee89075 hwrng: rockchip: add rk356x support

(cherry picked from commit c7621fb09f47b6cefa794ce10aed3af2c895c955)
2021-10-21 12:27:49 +08:00
AmadeusGhost
c7e3d01f70
rockchip: remove vendor usb3 inno driver files
(cherry picked from commit 4db435509dc90113cabc03a667b974e0445147f6)
2021-10-21 12:26:10 +08:00
AmadeusGhost
8bb0bb391e
kmod-saradc-rockchip: fixes dependencies on 5.10
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 16be2d38b42926569afadae29adb9a8f098fa7f5)
2021-10-20 19:30:05 +08:00
Tianling Shen
e054b4edd2
rockchip: remove rockchip's proprietary usb3 inno driver
It's never used.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit e94abee05060e3fa0a0fbbe057373bb3a2e9c636)
2021-10-20 16:46:06 +08:00
AmadeusGhost
8e519f7e3e
rockchip: rename nanopi2-timing to default-timing
There is nothing device specific about this file.

(cherry picked from commit 375466ae21b68136aaa2d50a7663abed6443b32b)
2021-10-19 11:10:39 +08:00
Tianling Shen
23cdf6099c
rockchip: refresh Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 13:33:39 +08:00
AmadeusGhost
21b47fc3b8
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 1df20c4d7db513125021fdc29617b8996431c0cd)
2021-10-18 13:32:50 +08:00
AmadeusGhost
9dad34f476
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 971af214bc6652fb5dc67d6a7cd7360cef10ca0e)
2021-10-18 13:32:43 +08:00
AmadeusGhost
280db75708
kmod-drm-rockchip: add missing kconfig
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit cd89cce53dc277249d2bc65cc5f8f3d6eb541bf1)
2021-10-18 13:32:39 +08:00
Tianling Shen
4e0a6718a7
rockchip: update patch date
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 77fca48d267f045e6ea3394bf6a2c7b8621e56fd)
2021-10-18 13:06:34 +08:00
Tianling Shen
4b958c0475
rockchip: apply overclocking to all devices
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 4c139c05881e760185002de234cae8b32e66e7af)
2021-10-18 13:06:03 +08:00
Tianling Shen
e038175a78
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-26 11:44:26 +08:00
David Bauer
5c904bcb37 rockchip: fix broken squashfs sysupgrade
The rockchip platform supports squashfs SD card images. However, the
resulting image is not padded to completely fill the rootfs partition.

Because of that, the f2fs overlay might not be erased, resulting in
uci-defaults not bing executed or the configuration not being erased,
even though drop config was selected.

Modify the image generation process so the image is padded to cover the
entire root filesystem partition.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit b56f7407d999d29c200c8c5880655926ef9874b7)
2021-09-24 12:29:22 +02:00
Tianling Shen
50930de048
target: drop some default packages
Let users to decide build them or not.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 8b51e8c3083e8369236ba385b321074b13a2764e)
2021-09-11 05:10:10 +08:00
Tianling Shen
5dd4013145
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-28 03:11:37 +08:00
David Bauer
378769b555 kernel: bump 5.4 to 5.4.142
Compile-tested: ath79-generic ipq40xx-generic
Run-tested: ipq40xx-generic

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-08-24 19:41:47 +02:00
Ronny Kotzschmar
5cdd4cb868
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>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit fd65ce6f322cd36be4e58e79581e7b65b28880a4)
2021-08-19 15:59:22 +08:00
QiuSimons
09574e88b9
rockchip: distribute R2C net interrupts
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9ba4de031d51a4d4d9dd39fec26bf4ebf739d4ed)
2021-08-19 15:55:00 +08:00
Tianling Shen
ad4aa8df39
rockchip: nanopi r4s: fix typo error
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ec04bb231fd507240775cd5a964d47ee9157b056)
2021-08-17 19:46:59 +08:00
Tianling Shen
95c4cc89de
rockchip: add Motorcomm PHY driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 83ce2ba131fbc46870d4074a7d4e58e16b4ecbfd)
2021-08-13 03:25:45 +08:00
Tianling Shen
9e0e1f4685
rockchip: add NanoPi R2C support
This board is a fork of NanoPi R2S, with the 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>
2021-08-13 03:24:51 +08:00
Tianling Shen
2568299bfe
generic/rockchip: refresh kernel patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ee6815b64ca1a29cb07edbc6dcf07e940087dfbc)
2021-08-13 03:24:26 +08:00
Tianling Shen
faceaec70d
arm-trusted-firmware-rockchip-vendor: rework multiple devices building
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 4262a83d1d0316f45fdcc66595b8fc37fbf875db)
2021-08-12 23:54:42 +08:00
Tianling Shen
7b83d67e7a
uboot-rockchip: use rkbin for nanopi r4s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit a2759b1be2387d357dc08203025d6889b4ab1292)
2021-08-08 20:21:41 +08:00
Tianling Shen
db629795e4
rockchip: make at24 eeprom driver built-in
This is required by NanoPi R4S.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit d0c9b218df4242619372591555d6741907597b03)
2021-06-14 02:01:47 +08:00
Tianling Shen
58e0c21c94
rockchip: nanopi r4s: read mac address from eeprom
NanoPi R4S has a unique MAC address for the ethernet on board. As the
PCIe NIC doesn't have, just reuse this MAC and flipp the LA bit for it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 99adbe5ffd70995136a3cf12e0700ded7a04a072)
2021-06-12 01:12:10 +08:00
AmadeusGhost
37243c1f1e
rockchip: add OF node for pcie eth on NanoPi R4S
This adds the OF node for the pcie ethernet adapter on the FriendlyARM
NanoPi R4S. Add the correct value for the r8168 driver LED configuration
register to match the blink behavior of the other port on the device.

Run-tested-by: zcracker
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-29 13:38:02 +08:00
Tianling Shen
a4f3455276
rockchip: tweak Kconfig
Adapt for OpenWrt 21.02 branch.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-20 17:59:09 +08:00
Tianling Shen
a58947798d
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-12 02:22:36 +08:00
Hauke Mehrtens
3da861ccca kernel: bump 5.4 to 5.4.111
Refreshed all patches.

The following patches were manually changed:
* 610-netfilter_match_bypass_default_checks.patch
* 611-netfilter_match_bypass_default_table.patch
* 802-can-0002-can-rx-offload-fix-long-lines.patch
* 802-can-0003-can-rx-offload-can_rx_offload_compare-fix-typo.patch
* 802-can-0004-can-rx-offload-can_rx_offload_irq_offload_timestamp-.patch
* 802-can-0005-can-rx-offload-can_rx_offload_reset-remove-no-op-fun.patch
* 802-can-0006-can-rx-offload-Prepare-for-CAN-FD-support.patch
* 802-can-0018-can-flexcan-use-struct-canfd_frame-for-CAN-classic-f.patch

The can-dev.ko model was moved in the upstream kernel.

Compile-tested on: x86/64, armvirt/64, ath79/generic
Runtime-tested on: x86/64, armvirt/64, ath79/generic

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-04-11 17:35:12 +02:00
Aleksander Jan Bajkowski
1663dc7e82 kernel: move some disabled symbols to generic
Move some disabled symbols found in armvirt target to generic.

Signed-off-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
(cherry picked from commit 12e942b1fdda874542e0a4e6ea892969fedab975)
2021-04-11 16:54:22 +02:00
AmadeusGhost
2401d5b4de
rockchip: orangepi-r1-plus: typo fixes
This affects nothing, just correct the format.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-08 22:48:59 +08:00
Tianling Shen
a165d67e64
Revert "rockchip: backport upstream usbdrd3 patches"
This reverts commit fb82562e4568094a221d62784016c23a1171f301.

This is not stable yet, and has some issues when detects USB devices.

Signed-off-by: Tianling Shen <cnsztl@gmail.com>
2021-04-06 19:57:56 +08:00
Tianling Shen
fb82562e45
rockchip: backport upstream usbdrd3 patches
Link: https://lore.kernel.org/linux-rockchip/20210205114011.10381-1-jbx6244@gmail.com/
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-05 15:22:42 +08:00
Tianling Shen
bb8c2bb5b0
rockchip: nanopi-r4s: fix patch offset
Fixes: #343

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-04 14:10:37 +08:00
QiuSimons
d76dbc7aaa
rockchip: nanopi-r4s: adjust cpu-voltage table
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-04 01:41:46 +08:00
CN_SZTL
a9c065e5f3 Revert "rockchip: use LZMA compressed FIT image for NanoPi R2S"
This reverts commit 0f57324f48378f1028e22f8e03a3c18f2bb50077.
Prepare for the upcoming kernel 5.10 support.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-04-01 23:22:31 +08:00
QiuSimons
9053a3a80f
rockchip: nanopi-r4s: fix read macaddr from Ethernet
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-01 19:45:58 +08:00
AmadeusGhost
6dd803c563
rockchip: add support for OrangePi R1 Plus
Hardware Specification:
  CPU: RockChip RK3328 (4 cores)
  RAM: 1GB DDR4
  Ethernet: 2x 1000 Base-T
  Flash: SPI-NOR 16 MB (mx25l12835f)
  LED: SYS, LAN, WAN
  MicroSD Slot x 1
  Button: Reset
  USB:1x 2.0
  Serial1: 13 Pin pin-header
  Serial2: 3 Pin debug port
  Type-C: for power input
  Power Supply: DC 5V/2A

Installation:
  Write the image to SD Card with dd.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-29 23:36:35 +08:00
Lucian Cristian
19635714dc
rockchip: add drm and lima gpu driver
Pack the drivers needed for enabling the drm and gpu driver
for rk3328 and rk3399. Fix: #304

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
[rebase commit, apply review recommendations]
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-29 23:29:27 +08:00
Tianling Shen
9e0dcde6e5
rockchip: nanopi-r4s: fix read mac address
The valid mac address only exists on ETH1.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-28 21:28:25 +08:00
Tianling Shen
672f787186
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-28 11:25:14 +08:00
Hauke Mehrtens
112d1052ac kernel: Deactivate CONFIG_VFIO in generic kernel config
Instead of deactivating this in every target config, deactivate it once
in the generic kernel config. I was asked for this config option in a
x86 64 build in OpenWrt 21.02.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 7d6553c72edada262ada8dbe871243c35400573d)
2021-03-27 16:26:56 +01:00
Tianling Shen
d12253ff2a
rockchip: nanopi-r4s: refresh latest patches accepted by upstream
Link: https://lore.kernel.org/r/20210319051627.814-2-cnsztl@gmail.com
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-22 19:57:13 +08:00
Tianling Shen
0b7eadd0f2
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-16 23:58:41 +08:00
Tianling Shen
0ee152a77b
target/rockchip: rockpi4: fix typo err
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-13 01:44:00 +08:00
Tianling Shen
e26c0c7b31
Revert "rockchip: rk3328: refresh usb3 nodes"
This reverts commit 4126a5f695546744423b1015bda643b333cc6bc0.

We found some issues with the usb3 inno driver, however it's good enough
to use generic usb3 driver for R2S, so revert it here and wait for fixes.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(backported from 44cbe50f174c3f6470ee3270d8106041fb31b2d9)
2021-03-10 00:56:13 +08:00
Tianling Shen
4126a5f695
rockchip: rk3328: refresh usb3 nodes
Reference:
- e93adaa8e9

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-09 01:06:00 +08:00
Tianling Shen
08dc06016f
rockchip: introduce vendor USB3 inno driver
Reference: faa767a9d0

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-09 01:05:16 +08:00
AmadeusGhost
c62f23eeac
rockchip/image: update note for pine64-bin
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-08 12:23:23 +08:00