Commit Graph

91 Commits

Author SHA1 Message Date
Tianling Shen
fbe88f5790
rockchip: use vendor driver for NanoPi R4S
However, mainline driver doesn't work very well on RTL8111
devices, so let's move to vendor driver for better performance.

Signed-off-by: Tianling Shen <cnsztl@gmail.com>
2021-01-09 16:56:45 +08:00
CN_SZTL
1d99824efc
rockchip: improve support for NanoPi R4S
- enable sd ultra-high speeds
- format style

Fixes: cd7fd0c77b ("rockchip: add NanoPi R4S support")

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-01-09 16:46:14 +08:00
CN_SZTL
40079b5a47
rockchip: refresh upstream patch
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-01-08 15:41:41 +08:00
AmadeusGhost
18a097c5f7 Merge Official Source 2021-01-05 21:11:00 +08:00
AmadeusGhost
5b1717efdd rockchip: r2s: fix typo error of the image definition 2021-01-03 23:56:23 +08:00
CN_SZTL
b47dd0e4a3
rockchip: fix typo 2021-01-02 18:20:43 +08:00
CN_SZTL
bcbf8f84e3
rockchip/sunxi: kernel: adjust default coherent_pool to 2MiB
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-01-02 13:30:18 +08:00
CN_SZTL
fb31778a1f
Merge Official Source 2020-12-31 17:37:34 +08:00
CN_SZTL
8049efd7e1
rockchip: nanopi4: add missing headers 2020-12-30 13:05:00 +08:00
Tianling Shen
93512049e6
rockchip: overclock to 2.2/1.8 GHz for NanoPi4 devices
It's stable enough to overclock cpu frequency to 2.2/1.8 GHz,
and for better performance.

Signed-off-by: Tianling Shen <cnsztl@gmail.com>
Co-authored-by: gzelvis <gzelvis@gmail.com>
2020-12-28 22:23:21 +08:00
Tianling Shen
b1c482bfc0
rockchip: fixes re-boot with UHS cards
Some boards have SD card connectors where the power rail cannot be switched
off by the driver. If the card has not been power cycled, it may still be
using 1.8V signaling after a warm re-boot. Bootroms expecting 3.3V signaling
will fail to boot from a UHS card that continue to use 1.8V signaling.

Set initial signal voltage in mmc_power_off() to allow re-boot to function.

This fixes re-boot with UHS cards on Asus Tinker Board (Rockchip RK3288),
same issue have been seen on some Rockchip RK3399 boards.

Backport from https://lore.kernel.org/linux-rockchip/AM3PR03MB09664161A7FA2BD68B2800A7AC620@AM3PR03MB0966.eurprd03.prod.outlook.com/

Signed-off-by: Tianling Shen <cnsztl@gmail.com>
2020-12-28 22:23:09 +08:00
Sungbo Eo
ccf65613da kernel: add disabled PROC_STRIPPED
Otherwise the missing symbol is added to target config for every kernel
config refresh.

While at it, remove the disabled symbol from target configs.

Fixes: 4943bc5cff ("kernel: only strip proc for small flash devices")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-12-27 19:07:42 +01:00
Tianling Shen
259cf3b7e3 rockchip: add NanoPi R4S support
Hardware
--------
RockChip RK3399 ARM64 (6 cores)
1GB DDR3 or 4GB LPDDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
2x USB 3.0 Port

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

Signed-off-by: Tianling Shen <cnsztl@gmail.com>
Co-authored-by: Jensen Huang <jensenhuang@friendlyarm.com>
Signed-off-by: Jensen Huang <jensenhuang@friendlyarm.com>
Co-authored-by: Marty Jones <mj8263788@gmail.com>
Signed-off-by: Marty Jones <mj8263788@gmail.com>
2020-12-27 14:00:31 +08:00
CN_SZTL
ef2b4acf17
Merge Official Source 2020-12-26 12:55:04 +08:00
CN_SZTL
527b6126d7
linux: refresh kernel patches
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-12-26 11:45:32 +08:00
Tianling Shen
aa78b76e08
Merge Official Source 2020-12-25 19:11:13 +08:00
Marty Jones
dafa201b3e rockchip: use USB host by default on rk3399-rock-pi-4
This backport  fix connections errors on the
upper USB3 port of the Radxa ROCK Pi 4 .

Signed-off-by: Marty Jones <mj8263788@gmail.com>
2020-12-25 10:38:13 +01:00
John Audia
a282a04538 kernel: bump 5.4 to 5.4.85
All modifications made by update_kernel.sh run in a fresh clone
without any existing toolchains.

Build system: x86_64
Build-tested: ipq806x/R7800, ath79/generic, bcm27xx/bcm2711
Run-tested: ipq806x/R7800

No dmesg regressions, everything functional

Signed-off-by: John Audia <graysky@archlinux.us>
2020-12-22 19:11:50 +01:00
Tianling Shen
83f5e253a2
Revert "rockchip: make sysupgrade image generation reusable"
This reverts commit 6039577c0b.
2020-12-20 12:49:38 +08:00
CN_SZTL
afb40bf883
rockchip: sync upstream patch 2020-11-29 12:22:57 +08:00
CN_SZTL
fdbb8cfd67
rockchip: enable hwRNG on rk3399 by default 2020-11-29 11:47:40 +08:00
CN_SZTL
fced333f1e
rockchip: drop hwRNG support for NanoPi R2S 2020-11-29 11:35:37 +08:00
AmadeusGhost
d025b8515c
rockchip: add definition of hwRNG crypto engine 2020-11-29 11:35:31 +08:00
CN_SZTL
443548bc3e
rockchip: move hwRNG driver to files 2020-11-29 11:35:29 +08:00
CN_SZTL
553860644a
Merge Mainline 2020-11-06 00:13:37 +08:00
David Bauer
6f1b8c652f 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-04 23:58:27 +01:00
David Bauer
3f05b5fda3 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-11-04 23:58:13 +01:00
CN_SZTL
7f2a48dcfa
Merge Mainline 2020-10-10 23:30:13 +08:00
Daniel Golle
5423d9d27e 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-09 23:20:19 +01:00
CN_SZTL
8d4bb53f83
Merge Official Source 2020-10-09 18:14:59 +08:00
Paul Spooren
0f5b5cf730 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 01:49:22 +01:00
David Bauer
30b94c82a9
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:33:11 +08:00
Marty Jones
d3f876fb0d
rockchip: enable WiFi on ROCK Pi 4
Signed-off-by: Marty Jones <mj8263788@gmail.com>
2020-10-04 22:24:17 +08:00
CN_SZTL
0f6392c262
Merge Official Source 2020-10-04 22:23:18 +08:00
Marty Jones
5b5469f87a 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-03 22:51:36 +02:00
David Bauer
4b4bff5070 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:00:49 +02:00
David Bauer
9f907c46bb 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-03 19:00:49 +02:00
David Bauer
1705b28f0a
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 20:01:58 +08:00
David Bauer
0feb88d719
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:04 +08:00
CN_SZTL
f78dd0c781
rockchip: refresh target patches
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-09-30 19:46:43 +08:00
CN_SZTL
26368d3355
Merge Officail Source 2020-09-30 19:25:04 +08:00
David Bauer
18acf62be1 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 00:06:59 +02:00
CN_SZTL
e34524f9d4
rockchip: refresh patches
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-09-29 13:07:07 +08:00
CN_SZTL
4880565939
Merge Official Source 2020-09-29 13:02:45 +08:00
David Bauer
8b4233188d 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-28 17:32:14 +02:00
CN_SZTL
6198520aa9
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:28:23 +08:00
David Bauer
6b4b54a9a8
rockchip: refresh NanoPi R2S patches with upstream feedback 2020-09-13 16:44:47 +08:00
AmadeusGhost
a3fabf5850
rockchip: move the dependency of config to config 2020-08-30 04:29:24 +08:00
wevsty
972133e8c2
rockchip: support hardware random number generator for RK3328 and RK3399
Signed-off-by: wevsty <ty@wevs.org>
2020-08-28 02:54:32 +08:00
CN_SZTL
430706840e
rockchip: add cpu idle state for rk3328
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-25 13:29:38 +08:00