Commit Graph

149 Commits

Author SHA1 Message Date
Lollipop907
ff68c93d9b
rockchip:fix build failure and change network for MPC1903 (#10837)
* Update armv8.mk

* Update 02_network
2023-01-31 12:55:50 +08:00
Lollipop907
b77ab3b9ef rockchip: set network for MPC1903 (#10794) 2023-01-23 22:02:03 +08:00
AmadeusGhost
dd6c384a06 rockchip: increase default cma size to 64MB 2023-01-18 21:00:54 +08:00
AmadeusGhost
7488a31bb6 rockchip: fixes drm module depends
Also refresh kernel config.
Fixes: #10715
2023-01-03 20:10:31 +08:00
AmadeusGhost
c00325af3f rockchip: add support for HINLINK OPC-H66K 2022-12-30 12:56:36 +08:00
AmadeusGhost
c4be33b792 rockchip: force enable rk3568 msi interrupt
Since the interrupt of RK3568 has hardware bug,
we need a workaround to enable msi interrupt.
Without this, the r8125 will not be stable.
2022-12-21 19:30:24 +08:00
AmadeusGhost
e6f5ad32af rockchip: add kernel 6.1 support 2022-12-14 00:10:54 +08:00
AmadeusGhost
b4bbdc1e99 rockchip: correct board name for radxa e25 2022-12-13 23:56:22 +08:00
Kien Truong
e2578b7d82 rockchip: enable watchdog driver
Enable Synopsys DesignWare watchdog driver for rockchip device

Tested on NanoPi R2S

Signed-off-by: Kien Truong <duckientruong@gmail.com>
2022-12-04 23:47:29 +08:00
AmadeusGhost
1f9c2a3e1f rockchip: 5.15: add missing kernel config 2022-11-24 20:05:56 +08:00
coolsnowwolf
fa3d7997cb ipq40xx: add support for GL.iNet GL-A1300 2022-11-10 19:49:49 +08:00
AmadeusGhost
bb0d430546 rockchip: add support for Radxa ROCK Pi E25 2022-11-09 19:38:22 +08:00
John Audia
c6fa37ad45 rockchip: armv8: add CONFIG_ARM64_ERRATUM_1742098
5.15.76 introduces a new symbol that applies Cortex-A72 SoCs so enable it[1].

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/arm64/Kconfig?id=v5.15.76&id2=v5.15.75

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-10-31 19:21:05 +08:00
Hugo Yuan
bc34ef9154
rockchip: Add Rongpin King3399 support (#10292) 2022-10-21 12:47:10 +08:00
coolsnowwolf
8130834aff rockchip: add rockchip-crypto support for rk3568/rk3588 2022-10-19 20:03:59 +08:00
AmadeusGhost
7ff615dafc rockchip: add kernel 6.0 support 2022-10-18 11:15:29 +08:00
AmadeusGhost
ca7f48be37 rockchip: remove kernel 5.19 support
Also removed some bugly drivers.
2022-10-18 10:50:11 +08:00
lean
0e7c277d03 rockchip: fix NanoPi R4SE has unique MAC address when boot from emmc 2022-09-16 02:10:11 +08:00
David Bauer
a5dada15ce 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-15 15:23:34 +08:00
AmadeusGhost
58ccac858b Revert "rockchip: default smp tune on"
This reverts commit 518cd6a5c5.
2022-09-15 15:20:13 +08:00
lean
518cd6a5c5 rockchip: default smp tune on 2022-09-13 17:03:53 +08:00
lean
fb1fce9d28 rockchip: enable hwrng in kernel 5.19 2022-09-03 22:38:37 +08:00
lean
061af71d44 rockchip: add kernel 5.19 support 2022-09-03 22:25:36 +08:00
lean
c06859e50f rockchip: enable hwrng for R66S/R68S 2022-09-02 02:40:00 +08:00
lean
d6f75eefa1 rockchip: add support for firefly station-p2 board 2022-09-02 02:13:41 +08:00
lean
6bf0fbd526 rockchip:fix nanopi-r4s mac address again 2022-09-01 14:55:14 +08:00
AmadeusGhost
b477a0b702 rockchip: add support for FastRhino R66S/R68S
For R68S, flash in as follows:
  dd if=openwrt-rockchip-armv8-fastrhino_r68s-ext4-sysupgrade.img
     of=/dev/mmcblk0
2022-09-01 12:01:21 +08:00
AmadeusGhost
6aaf68d8f5 rockchip: add basic support for HINLINK OPC-H68K 2022-09-01 11:59:31 +08:00
AmadeusGhost
7f8e3bf68c rockchip: add support for EZPRO Mrkaio M68S 2022-09-01 11:57:14 +08:00
AmadeusGhost
8cb632045f rockchip: 5.15: introduce rk3568 support
Due to the missing ATF for normally boot, there are still
a lot of bugs on this platform. At the same time, the GMAC
driver also lacks a part.
2022-09-01 11:43:00 +08:00
AmadeusGhost
22d08ddd3d rockchip: revert to origin defaults
The current target code is too chaotic, the patches are
messy and disorderly, and there are still many duplicate
code. Pack it back to half a year ago.
2022-09-01 11:28:49 +08:00
lean
685a4f1071 mfd: rk808: Add reboot support to rk808.c 2022-08-27 12:22:17 +08:00
lean
93a9f06c4c rockchip: backport rk3568 support to kernel 5.15 from immortalwrt 2022-08-27 00:51:54 +08:00
AmadeusGhost
89cea59694 rockchip: drop all ugly phy hack code
These junk code breaks other phy drivers, just remove it.
2022-08-21 15:18:14 +08:00
骷髅头
2a7ec01066
rockchip:supplement r5s missing symbols (#9975) 2022-08-21 13:48:16 +08:00
lean
d7e1c7befd rockchip: add Radxa ROCK3 Model A board support 2022-08-20 02:22:16 +08:00
lean
619e8ade0c linux-firmware: add RTL8811/8821CU firmware 2022-08-20 02:07:31 +08:00
lean
9a166932f3 mac80211: add rt2x00 5.19 kernel support 2022-08-15 02:36:59 +08:00
littoy
c2f62b1779
rockchip: set rockchip_setup_macs for NanoPi R5S
Co-authored-by: fishg <1423545+fishg@users.noreply.github.com>
2022-08-14 16:37:26 +08:00
coolsnowwolf
dd4bbf675c rockchip: add FriendlyElec NanoPi R5S support 2022-08-14 06:53:39 +00:00
coolsnowwolf
5ca4955cff kernel: remove linux 5.18 support 2022-08-13 09:48:21 +00:00
coolsnowwolf
601c972128 rockchip: reorder r66s/p2 eth ports 2022-08-12 02:38:46 +00:00
coolsnowwolf
0b6bc3b05b rockchip: add smp tune for fastrhino r66s 2022-08-12 02:33:42 +00:00
huangjf
3264f70ca0 rockchip: station-p2: reorder eth 2022-08-11 06:33:54 +00:00
huangjf
797a067e82 rockchip: add support for firefly station-p2 board 2022-08-11 06:33:26 +00:00
coolsnowwolf
595bf71b39 rockchip: add FastRhino R66S support in kernel 5.19 2022-08-10 04:19:14 +00:00
coolsnowwolf
8dbff7b4f8 uboot-rockchip: add rk3568 board support 2022-08-08 09:25:58 +00:00
cuiyf5516
2e53ea6741
rockchip: 5.19: disable ntfs option (#9889) 2022-08-06 00:21:54 +08:00
lean
766e12fcd5 rockchip: add kernel 5.19 support 2022-08-05 12:00:06 +08:00
cuiyf5516
1202e11678
rockchip: 5.18: diable ntfs option (#9875)
Fixes: #9872
2022-08-01 09:59:06 +08:00
lean
c5f12bf7aa rockchip: add crypto-hw-rockchip drivers for RK3328/RK3399 2022-07-18 13:27:05 +08:00
lean
e66a94a8d8 rockchip: refresh Kconfig 2022-07-14 00:41:52 +08:00
lean
006ac00cf4 rockchip: add support for FriendlyElec NanoPi R4SE with 32GB emmc 2022-07-12 21:06:43 +08:00
骷髅头
a46ef13742
rockchip:update 5.18 clk patch (#9724)
* Add files via upload

* Update 900-arm-boot-add-dts-files.patch

* Create rk3399-nanopi4-opp.dtsi

* Create 992-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Rename 992-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch to 901-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Update 901-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Create 902-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch

* Add files via upload

* Update config-5.18

* Add files via upload

* Update rk3328-doornet1.dts

* Update rk3328-orangepi-r1-plus-lts.dts
2022-07-09 18:11:50 +08:00
lean
6182b802e9 rockchip: add RK35xx target description 2022-07-09 13:19:05 +08:00
lean
57af03bad2 rockchip: add RK3568 support in kernel 5.18 2022-07-09 02:39:39 +08:00
Ronny Kotzschmar
628ef82714 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-08 11:50:20 +08:00
lean
69f0ac32c1 rockchip: add generate mac script support for multiple mmcblk devices 2022-06-27 10:04:07 +08:00
google-you-ok?
972c8aed91
kernel:rockchip:phy add JLSemi jl2xxx driver (#9563)
* drv-net-phy-add-JLSemi-jl2xxx-driver

* drv-net-phy-add-JLSemi-jl2xxx-driver

* drv-net-phy-add-JLSemi-jl2xxx-driver

* Enable JL201 config

* Enable JL201 config

* Enable JL201 config

* change default driver

Since the mac80211 driver cannot turn on the wireless, it can only be turned off by default.
2022-06-14 02:23:49 +08:00
AmadeusGhost
5f75284ecd Revert "rockchip: add subtarget rk356x init support"
This reverts commit bbfc031f1c.
This part is identical to armv8 generic, remove redundant code.
2022-05-09 16:29:32 +08:00
lean
bbfc031f1c rockchip: add subtarget rk356x init support 2022-05-06 18:07:24 +08:00
google-you-ok?
608b9d15b6
rockchip:fix nanopi-r4s mac address (#9059)
* Update 02_network

* Update 007-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch

* Update 007-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch

* Update 010-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch
2022-03-14 14:03:39 +08:00
lean
bd965b8708 rockchip: add ondemond gov 2022-03-09 20:46:12 +08:00
lean
038ab6255d rockchip: improver usb wifi detect for Ryan 2022-03-09 19:08:47 +08:00
lean
68da7390fb rockchip: add workaroud for usb wlan up at firstboot 2022-03-01 22:44:19 +08:00
AmadeusGhost
3ff761aa6d Revert "rockchip: fix build rk3328 with kernel 5.15"
This reverts commit 60bd44abab.
Fixes: copied messy commit 2923e80 ("rockchip: add support for
FriendlyARM NanoPi NEO3")
2022-02-28 12:38:06 +08:00
lean
2923e808b2 rockchip: add support for FriendlyARM NanoPi NEO3 2022-02-26 21:03:54 +08:00
AmadeusGhost
2788b735c3 rockchip: add basic kernel 5.15 support 2022-02-24 11:24:27 +08:00
木四水
01042589af
Add Support For OrangePi R1 Plus LTS (#8498) 2021-12-22 23:29:37 +08:00
AmadeusGhost
156a636522 rockchip: apply patches for GuangMiao G4C
Only God knows how to soft reset it.
2021-11-15 13:19:01 +08:00
hejiawencc
7addb7e937
rockchip: add support for Embedfire DoorNet2 (#8226) 2021-11-11 09:26:13 +08:00
lean
0977610352 rockchip: add support for HuaKe GuangMiao G4C by AmadeusGhost 2021-11-08 12:55:54 +08:00
AmadeusGhost
fb8a887bdf rockchip: revert upgrade part change again
Fixes: b1b36c86af
2021-10-15 13:30:47 +08:00
lean
4d7056dd7e rockchip: add missing symbol 2021-10-08 16:42:22 +08:00
lean
b1b36c86af rockchip: add yt85xx eth support for R2C 2021-10-08 16:22:39 +08:00
lean
50d98983c2 rockchip: add NanoPi R2C support 2021-09-23 14:47:55 +08:00
KLT007
52c8a137ac
Added support for DoorNet1 devices (#7834)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Delete 0001-Added-support-for-DoorNet1.patch
2021-09-09 00:42:08 +08:00
AmadeusGhost
1bd237de15
rockchip: revert upgrade part change (#7540) 2021-08-07 15:56:57 +08:00
coolsnowwolf
2e96602901 rockchip: import patch from immortalwrt 2021-08-06 23:05:53 +08:00
lean
72f3ab2009 rockchip: sync upstream 2021-06-16 15:04:58 +08:00
lean
7a50383ab6 add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
AmadeusGhost
ee6fb24811
rockchip: add support for OrangePi R1 Plus (#6620)
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>
2021-03-30 14:03:34 +08:00
lean
f341ef96fe rockchip: add DRM driver for R2S/R4S (Jellyfin HW decode and encode 2021-03-27 15:08:00 +08:00
CN_SZTL
5317abee94
rockchip: nanopi-r4s: refresh latest patches accepted by upstream (#6583)
Link: https://lore.kernel.org/r/20210319051627.814-2-cnsztl@gmail.com
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-23 13:12:59 +08:00
CN_SZTL
757e42d707
rockchip: add execute permission for network setup script (#6566)
Fixes: f4b1b358fe ("rockchip: sync latest codes from ImmortalWrt (#6522)")

Closes: #6534
Closes: #6548
Closes: #6563

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Co-authored-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2021-03-20 01:13:40 +08:00
CN_SZTL
779cf0f600
rockchip: leds: fix boardname for NanoPi R4S (#6535)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-15 13:19:39 +08:00
CN_SZTL
f4b1b358fe
rockchip: sync latest codes from ImmortalWrt (#6522)
uboot:
 - immortalwrt/immortalwrt@7a042afdee uboot-rockchip: fix RockPro64 boot from eMMC
 - immortalwrt/immortalwrt@f450acefb0 uboot-rockchip: update to v2021.01
 - immortalwrt/immortalwrt@5cc1d3df78 rockchip: improve support for NanoPi R4S
 - immortalwrt/immortalwrt@83d3fb9634 uboot-rockchip: add NanoPi R4S support
 - immortalwrt/immortalwrt@3d86ffedd7 uboot-rockchip: update to v2020.10
 - immortalwrt/immortalwrt@fe5fa0c7ab Revert "uboot-rockchip: fix nanopi-r2s failed to boot on some sd cards"

target:
 - immortalwrt/immortalwrt@f67522e532 rockchip: add support for Radxa Rock Pi 4
 - immortalwrt/immortalwrt@cd7fd0c77b rockchip: add NanoPi R4S support
 - immortalwrt/immortalwrt@02395293a2 rockchip: fix SUPPORTED_DEVICES for Radxa ROCK Pi 4
 - immortalwrt/immortalwrt@c7b200b8a2 rockchip: re-order patches
 - immortalwrt/immortalwrt@aee038e773 rockchip: refresh Kconfig
 - immortalwrt/immortalwrt@22061b2880 kernel: enable CONFIG_LEDS_TRIGGER_HEARTBEAT
 - immortalwrt/immortalwrt@b1150de9e4 rockchip: add missing Kconfig symbols
 - immortalwrt/immortalwrt@ab28d07c3b treewide: fix spelling 'seperate' -> 'separate'
 - immortalwrt/immortalwrt@6401fca74d rockchip: use native mac address for NanoPi R4S

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-14 11:52:00 +08:00
AmadeusGhost
5b1838d04d
kernel: bump 5.4 to 5.4.95 (#6340) 2021-02-08 17:13:28 +08:00
lean
2a0b915c53 rockchip: add support for FriendlyARM NanoPi R4S (not stable) 2020-12-21 18:45:26 +08:00
CN_SZTL
37836e0c3d
rockchip: enable hwRNG for rk3399 by default and remove R4S support (#5916)
* Revert "rockchip: add support for NanoPi R4S"

This reverts commit 6edffa8419.

* rockchip: move hwRNG driver to files

* rockchip: drop hwRNG support for NanoPi R2S

* rockchip: enable hwRNG on rk3399 by default

* rockchip: enable hwRNG crypto engine in Kconfig

* rockchip: sync upstream patch

Co-authored-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-12-12 11:33:26 +08:00
lean
6edffa8419 rockchip: add support for NanoPi R4S 2020-12-11 10:33:58 +08:00
6667933
6fac299e61
remove 82_show_temp to resolve r2s start up problems (#5656) 2020-10-13 01:04:11 +08:00
Yangbo
099439f051
show CPU Temperature for NanoPi R2S (#5612)
Co-authored-by: Yangbo Wei <467815891@qq.com>
2020-10-07 23:25:41 +08:00
CN_SZTL
0bfbe98823
Revert "uboot-rockchip: update NanoPi R2S patches" (#5596)
* Revert "uboot-rockchip: update NanoPi R2S patches"

This reverts commit bda6f6572be630bcf9a1c8a429e40d8a53033af5.

This commit breaks the onboard ethernet on some units. Revert it for
now.

Signed-off-by: David Bauer <mail@david-bauer.net>

* 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>

* uboot-rockchip: fix nanopi-r2s failed to boot on some sd cards

Add regulator-boot-on parameters to vcc_sd.
Add startup-delay-us parameters to vcc_sdio.
This will improve the problem that in some SD cards are failing to boot up.

Signed-off-by: Yuan Tao <ty@wevs.org>

* 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>

Co-authored-by: David Bauer <mail@david-bauer.net>
Co-authored-by: Yuan Tao <ty@wevs.org>
2020-10-07 23:22:52 +08:00
CN_SZTL
093cfcf243
target/rockchip: drop ugly hacks (sync with official) (#5218) 2020-07-29 19:02:51 +08:00
coolsnowwolf
1eb3eac387 ramips: fix dts name 2020-07-08 23:03:33 +08:00
BoBppy
f6aacba030
R2S:swap lan and wan (#5028)
R2S的描述是eth1为LAN,eth0为WAN(强迫症xD
2020-07-08 12:23:54 +08:00
coolsnowwolf
c7c02dfae9 rockchip: add support for NanoPi R2S arm64 router board 2020-07-02 23:34:55 +08:00
coolsnowwolf
33abeff31c Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00