Commit Graph

66 Commits

Author SHA1 Message Date
CN_SZTL
10867f5772
rockchip: sync upstream patch 2020-11-29 12:22:40 +08:00
CN_SZTL
951df49a9f
rockchip: enable hwRNG on rk3399 by default 2020-11-29 11:47:25 +08:00
CN_SZTL
8e2237d440
rockchip: drop hwRNG support for NanoPi R2S 2020-11-29 11:34:47 +08:00
AmadeusGhost
6c1e7a613a
rockchip: add definition of hwRNG crypto engine 2020-11-29 11:34:18 +08:00
CN_SZTL
a13fecb3fd
rockchip: move hwRNG driver to files 2020-11-29 11:30:32 +08:00
CN_SZTL
06e24a3570
treewide: remove model name from LED labels 2020-11-22 14:36:13 +08:00
CN_SZTL
1ff12a0a42
Merge Mainline 2020-11-08 14:20:36 +08:00
David Bauer
48a0416a81
rockchip: remove unused config symbols
Remove MDIO and I2C bitbangig support from the kernel.

These functionalities are currently not used by any board in the target.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-11-08 02:06:18 +08:00
Daniel Golle
4171325e19 kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic
Similar to how it was already done for other filesystems' *_FS_XATTR
kernel config symbols, also move CONFIG_F2FS_FS_XATTR=y and
CONFIG_F2FS_STAT_FS=y to target/linux/generic.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-10 17:29:57 +08:00
Paul Spooren
19da4ab536 kernel: clean up XATTR config symbols
Extended attributes are required for overlayfs and have hence been long
ago enabled for jffs2, but should be enabled unconditionally for all
other filesystems which may potentially serve as overlayfs' upper
directory. Previously it was inconsistently added in multiple targets.
Add symbols to generic kernel config and remove all *_XATTR symbols
from target configs.

Signed-off-by: Paul Spooren <mail@aparcar.org>
[keep things as they are for squashfs, improve commit message]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-09 11:29:55 +08:00
David Bauer
6f3e8ab72e
rockchip: fix NanoPi R2S GMAC clock name
This commit fixes the name for the GMAC clock to gmac_clkin, as this is
the name of the clock provided by the rk3328-clk driver.

Without this commit, the GMAC will not work in TX direction.

Suggested-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-10-05 13:32:55 +08:00
Marty Jones
fc806993fd
rockchip: enable WiFi on ROCK Pi 4
Signed-off-by: Marty Jones <mj8263788@gmail.com>
2020-10-04 22:04:36 +08:00
Marty Jones
f67522e532
rockchip: add support for Radxa Rock Pi 4
This adds basic support for Radxa Rock Pi 4

Specification:
  - RAM:      1 GB/ 2 GB/4 GB LPDDR4

  - SoC:      Rockchip RK3399
  - CPU:      64bit hexa core processor
              Dual Cortex-A72, freqency 1.8Ghz
              with quad Cortex-A53, frequency 1.4Ghz
  - USB:      USB 3.0 OTG x1
              hardware switch for host/device switch, upper one
              USB 3.0 HOST x1
              dedicated USB3.0 channel, lower one
              USB 2.0 HOST x2
  - Ethernet: 1x GbE
  - Storage:  eMMC module
              uSD card
              M.2 SSD
  - Wireless: 802.11 ac wifi
              Bluetooth 5.0
              currently not supported

 firmware Installation
 ======================
 gzip -d xxx.img.gz, then dd the .img to SD/eMMC
 ======================

 Device Tested: ROCK PI 4 Model B v1.3

Signed-off-by: Marty Jones <mj8263788@gmail.com>
2020-10-04 21:48:30 +08:00
David Bauer
ef0aaf4440
rockchip: enable Realtek PHY support
The NanoPi R2S features a Realtek Gigabit Ethernet PHY. Enable the
Realtek specific PHY driver to correctly configure internal delays.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-10-03 19:56:29 +08:00
David Bauer
87327f3a7e
rockchip: fix NanoPi R2S PHY ID
Fix the PHY ID for the NanoPi R2S PHY compatible to match the used PHY.
The ID was wrong as I've accidentally picked the wrong upstream patch.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-10-01 23:03:16 +08:00
CN_SZTL
89a879764a
rockchip: refresh target patches
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-09-30 19:46:18 +08:00
David Bauer
f0ca84aa8c
rockchip: rk3328: add compatible to NanoPi R2S ethernet PHY
This adds the compatible property to the NanoPi R2S ethernet PHY node.
Otherwise, the PHY might not be probed, as the PHY ID reads all 0xff
when it is still in reset.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-09-30 19:32:28 +08:00
David Bauer
7b476e86d0
rockchip: refresh NanoPi R2S patches
Update the patches for the NanoPi R2S to the v3 sent (and accepted)
upstream.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-09-29 13:05:50 +08:00
CN_SZTL
dde4cb3f97
rockchip: disable hw RNG by default
The feature brings the low quality of random numbers
with a high usage, so disable it here by default.
2020-09-24 13:27:34 +08:00
David Bauer
bb6caeda30
rockchip: refresh NanoPi R2S patches with upstream feedback 2020-09-13 16:43:32 +08:00
AmadeusGhost
1be70136a5 rockchip: move the dependency of config to config 2020-08-29 12:38:21 +08:00
wevsty
170f467e07
rockchip: support hardware random number generator for RK3328 and RK3399
Signed-off-by: wevsty <ty@wevs.org>
2020-08-28 02:52:59 +08:00
CN_SZTL
20c62b1558
kernel: bump 5.4 to 5.4.61
Resolve conflicted:
 - 011-kbuild-export-SUBARCH.patch
 - 701-net-0262-net-dsa-ocelot-add-tagger-for-Ocelot-Felix-switches.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-27 05:42:59 +08:00
CN_SZTL
d9f8d5195c
rockchip: add cpu idle state for rk3328
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-25 13:14:48 +08:00
CN_SZTL
59ae1d77c8
rockchip: add missing description in patch 2020-08-24 03:18:32 +08:00
CN_SZTL
c01a8ce70f
rockchip: format patches 2020-08-24 03:11:04 +08:00
CN_SZTL
84eb37bcb3
kernel: bump 5.4 to 5.4.59
Resolve conflicted:
- 950-0163-staging-vchiq_arm-Fix-platform-device-unregistration.patch
- 950-0338-staging-vchiq_arm-Unify-the-unload-handling-of-platf.patch
- 801-audio-0005-Revert-ASoC-fsl_sai-Add-support-for-SAI-new-version.patch
- 805-display-0043-gpu-Move-ipu-v3-to-imx-folder.patch

Remove upstreamed:
- 950-0428-staging-vchiq_arm-Add-a-matching-unregister-call.patch
- 0800-spi-lantiq-ssc-Fix-warning-by-using-WQ_MEM_RECLAI.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-20 04:30:19 +08:00
AmadeusGhost
ee6b2fee3a Revert 'treewide: adjust sysupgrade script' 2020-08-19 12:10:43 +08:00
Adrian Schmutzler
d4923e38c5 rockchip: remove useless echo in 40-net-smp-affinity
The command in the $() brackets will already provide the same output.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-18 11:45:57 +08:00
David Bauer
9bdc246315
rockchip: refresh NanoPi R2S patch with upstream feedback
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-17 00:30:41 +08:00
CN_SZTL
32b62283d7
rockchip: format nanopi r2s i2c0 patch
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-15 01:52:38 +08:00
CN_SZTL
faf76aaf01
rockchip: fix patch with upstream changes
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-14 22:08:47 +08:00
David Bauer
a4e214deca
rockchip: refresh NanoPi R2S patch with upstream feedback
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-14 22:03:42 +08:00
AmadeusGhost
715404f8e1 treewide: adjust sysupgrade script 2020-08-14 18:36:30 +08:00
AmadeusGhost
787d71db74 treewide: fix undeclared function about backup in upgrade 2020-08-14 12:28:09 +08:00
Hauke Mehrtens
8d141be934
kernel: Move CONFIG_IONIC to generic kernel config
It is deactivated everywhere, just set this in the generic config.

Acked-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-08-11 18:15:38 +08:00
David Bauer
fe62156c1a
rockchip: use LZMA compressed FIT image for NanoPi R2S
This uses a LZMA compressed U-Boot FIT image for the NanoPi R2S. This
way, the resulting sysupgrade image uses ~1M les space compared to using
an uncompressed kernel.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-05 21:06:26 +08:00
David Bauer
be49374ad9
rockchip: make sysupgrade image generation reusable
This refactors the sysupgrade image generation code to make it reusable
for all devices generating an SD card image.

While at it, move the bootscripts to their own subdirectory.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-05 21:06:11 +08:00
CN_SZTL
0113142456
kernel: bump 5.4 to 5.4.55
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-01 02:15:38 +08:00
CN_SZTL
1cf3fa37d5
rockchip: distribute net interrupts
This adds a hotplug script for distributing interrupts of eth0 and eth1
across different cores. Otherwise the forwarding performance between
eth0 and eth1 is severely affected.

The existing SMP distribution mechanic in OpenWrt can't be used here, as
the actual device IRQ has to be moved to dedicated cores. In case of
eth1, this is in fact the USB3 controller.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 15:13:02 +08:00
David Bauer
3cf47cb176
arm64: dts: rockchip: Add txpbl node for RK3399/RK3328
Some rockchip SoCs like the RK3399 and RK3328 exhibit an issue
where tx checksumming does not work with packets larger than 1498.

The default Programmable Buffer Length for TX in these GMAC's is
not suitable for MTUs higher than 1498. The workaround is to disable
TX offloading with 'ethtool -K eth0 tx off rx off' causing performance
impacts as it disables hardware checksumming.

This patch sets snps,txpbl to 0x4 which is a safe number tested ok for
the most popular MTU value of 1500.

For reference, see https://lkml.org/lkml/2019/4/1/1382.

Signed-off-by: Carlos de Paula <me@carlosedp.com>
Link: https://lore.kernel.org/r/20200218221040.10955-1-me@carlosedp.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 03:46:45 +08:00
David Bauer
a8cc53b33b
fixup! rockchip: add NanoPi R2S support 2020-07-28 03:11:23 +08:00
CN_SZTL
f7411dbc7c
target/rockchip: refresh kernel configs 2020-07-27 21:39:57 +08:00
David Bauer
7573ee64c8
target/rockchip: sync with recently changes from upstream 2020-07-27 20:07:32 +08:00
CN_SZTL
34f761d9c5
target/rockchip: fix define of usb 3.0 2020-07-25 18:35:14 +08:00
CN_SZTL
c2bc3f5e91
target/rockchip: backport more patches
Reference: jayanta525/openwrt-nanopi-r2s.
2020-07-25 17:31:57 +08:00
CN_SZTL
4df558cc5a
target/rockchip: fix dependency 2020-07-24 03:51:17 +08:00
CN_SZTL
4aa6119e75
target/rockchip: add missing dependency 2020-07-24 03:24:00 +08:00
CN_SZTL
69e815a417
kernel: bump 5.4 to 5.4.53
Resolve conflicted:
- 395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
- 641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
- 022-v5.8-mtd-rawnand-brcmnand-correctly-verify-erased-pages.patch
- 024-v5.8-mtd-rawnand-brcmnand-fix-CS0-layout.patch
- 742-v5.5-net-sfp-add-support-for-module-quirks.patch
- 743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:59:36 +08:00
CN_SZTL
b1c13dfe62
target/rockchip: rework nanopi-r2s rtl8152 LEDs
Reference: jayanta525/openwrt-nanopi-r2s@d1679edd38.
2020-07-22 03:18:33 +08:00