diff options
author | David Bauer <mail@david-bauer.net> | 2020-07-16 10:08:57 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2020-07-28 15:52:44 +0200 |
commit | b7a9a183fb44f77d9f95c20bcec1db0edea9e206 (patch) | |
tree | c09ed017d25e760ad1f0f6cb56498e8060528362 /target/linux/rockchip/patches-5.4/100-rockchip-use-system-LED-for-OpenWrt.patch | |
parent | b72f7c64a4eb4aa14f3b632dd4ff77a4802c0311 (diff) | |
download | upstream-b7a9a183fb44f77d9f95c20bcec1db0edea9e206.tar.gz upstream-b7a9a183fb44f77d9f95c20bcec1db0edea9e206.tar.bz2 upstream-b7a9a183fb44f77d9f95c20bcec1db0edea9e206.zip |
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>
Diffstat (limited to 'target/linux/rockchip/patches-5.4/100-rockchip-use-system-LED-for-OpenWrt.patch')
-rw-r--r-- | target/linux/rockchip/patches-5.4/100-rockchip-use-system-LED-for-OpenWrt.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/rockchip/patches-5.4/100-rockchip-use-system-LED-for-OpenWrt.patch b/target/linux/rockchip/patches-5.4/100-rockchip-use-system-LED-for-OpenWrt.patch new file mode 100644 index 0000000000..1250dbcd9b --- /dev/null +++ b/target/linux/rockchip/patches-5.4/100-rockchip-use-system-LED-for-OpenWrt.patch @@ -0,0 +1,40 @@ +From 6731d2c9039fbe1ecf21915eab3acee0a999508a Mon Sep 17 00:00:00 2001 +From: David Bauer <mail@david-bauer.net> +Date: Fri, 10 Jul 2020 21:38:20 +0200 +Subject: [PATCH] rockchip: use system LED for OpenWrt + +Use the SYS LED on the casing for showing system status. + +This patch is kept seperate from the NanoPi R2S support patch, as i plan +on submitting the device support upstream. + +Signed-off-by: David Bauer <mail@david-bauer.net> +--- + arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts +@@ -17,6 +17,13 @@ + stdout-path = "serial2:1500000n8"; + }; + ++ aliases { ++ led-boot = &led_sys; ++ led-failsafe = &led_sys; ++ led-running = &led_sys; ++ led-upgrade = &led_sys; ++ }; ++ + gmac_clkin: external-gmac-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; +@@ -67,7 +74,7 @@ + pinctrl-names = "default"; + pinctrl-0 = <&led_pins>; + +- sys { ++ led_sys: sys { + gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; + label = "nanopi-r2s:red:sys"; + }; |