Commit Graph

717 Commits

Author SHA1 Message Date
CN_SZTL
7b00dea492
target/rockchip: fix define of usb 3.0 2020-07-25 18:37:25 +08:00
CN_SZTL
339a1f7837
target/rockchip: backport more patches
Reference: jayanta525/openwrt-nanopi-r2s.
2020-07-25 18:37:19 +08:00
CN_SZTL
1bd6886d8d
target/rockchip: fix dependency 2020-07-24 03:51:54 +08:00
CN_SZTL
55fe4a0c83
target/rockchip: add missing dependency 2020-07-24 03:24:17 +08:00
CN_SZTL
dbacf55cfa
target/rockchip: rework nanopi-r2s rtl8152 LEDs
Reference: jayanta525/openwrt-nanopi-r2s@d1679edd38.
2020-07-22 03:19:34 +08:00
CN_SZTL
f6c9c32574
target/rockchip: drop iqrbanlance 2020-07-21 13:20:58 +08:00
CN_SZTL
fef63043bc
target/rockchip: enable thermal module 2020-07-20 21:29:16 +08:00
CN_SZTL
27dd0b7813
target/rockchip: add default packages 2020-07-19 21:05:42 +08:00
CN_SZTL
3e0bc7d3ad
target/rockchip: allow higher frequency 2020-07-19 11:51:16 +08:00
CN_SZTL
1b1b4177a1
target/rockchip: enable thermal module 2020-07-19 11:51:10 +08:00
CN_SZTL
ced8e6dbe6
target/rockchip: improve r2s support 2020-07-18 14:24:19 +08:00
David Bauer
886f2043e4 rockchip: add NanoPi R2S support
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.

MAC-address
-----------
The vendor code supports reading a MAC address from an EEPROM connected
via i2c0 of the SoC. The EEPROM (address 0x51) should contain the MAC
address in binary at offset 0xfa. However, my two units didn't come with
such an EEPROM soldered on. The EEPROM should be placed between the SoC
and the GPIO pins on the board. (U10)

Generating rendom MAC addresses works around this issue. Otherwise, all
boards running the same image have identical MAC addresses.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-17 09:57:36 +02:00
David Bauer
7ff03eb0f2 rockchip: allow for multiple boot-scripts
Add support for select a bootscript depending on the device built. This
is necessary, as the FriendlyARM NanoPi R2S needs a different bootcmd in
order to produce output on the debug UART.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-17 09:41:20 +02:00
David Bauer
0485fb3925 rockchip: don't disable timer LED trigger
The timer LED trigger is enabled in all targets (except for lantiq
xway-legacy). It's necessary for the OpenWrt preinit LED pattern to
work.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-13 17:50:53 +02:00
David Bauer
875a04478c rockchip: use downstream GPIO button implementation
Use the OpenWrt netlink GPIO button implementation to forward button
presses to procd. This is necessary to make failsafe-mode access
using a button possible.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-13 17:50:35 +02:00
Adrian Schmutzler
bb39fea11a treewide: simplify inclusion of subtarget image files
Many target use a repetitive if-include scheme for their subtarget
image files, though their names are consistent with the subtarget
names.

This patch removes these redundant conditions and just uses the
variable for the include where the target setup allows it.

For sunxi, this includes a trivial rename of the subtarget image
Makefiles.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-11 01:44:13 +02:00
Tobias Mädel
6a05a85dcb rockchip: add support for Pine64 RockPro64
This adds the new rockchip target and support for RockPro64 RK3399

Flash:    16 MiB SPI NOR
RAM:      2 GiB/4 GiB LPDDR4
SoC:      RK3399
USB:      2x USB 2.0, 1x USB 3.0, 1x USB-C
Ethernet: 1x GbE
PCIe:     PCIe 2.0, 4 lanes
Storage:  eMMC or SD card
Optional SDIO wifi/bt module

The Pine64 RockPro64 is a single-board-computer with a 4x PCIe connector,
6 ARM64 cores (4 little, 2 big), plenty of RAM and storage.

By default the single Gigabit-Ethernet port is configured as the
LAN port.

Installation of the firware is possible by dd'ing the image
to an SD card or the eMMC flash.

Serial: 3v3 1500000 8n1

U-boot is build from the mainline tree and
integrated into the images. Required ATF to build u-boot
is downloaded from a CI build bot.

Signed-off-by: Tobias Mädel <t.maedel@alfeld.de>
Tested-by: Tobias Schramm <t.schramm@manjaro.org>
2020-04-20 16:37:56 +02:00