rockchip: add Rock Pi E support

Hardware
--------
RockChip RK3328 ARM64 (4 cores)
up to 4GB DDR3 RAM
100 Base-T
1000 Base-T
LED (status)
ADC button
Micro-SD slot
eMMC slot
USB 3.0 Port
Type-C power

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-06-17 15:18:36 +08:00
parent 4459de8c79
commit b6d8a0e65e
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
5 changed files with 68 additions and 1 deletions

View File

@ -14,6 +14,7 @@ rockchip_setup_interfaces()
friendlyarm,nanopi-r4s|\
friendlyarm,nanopi-r4se|\
friendlyarm,nanopi-r4s-enterprise|\
radxa,rockpi-e|\
xunlong,orangepi-r1-plus|\
xunlong,orangepi-r1-plus-lts)
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'

View File

@ -38,6 +38,7 @@ lunzn,fastrhino-r66s)
friendlyarm,nanopi-r2c|\
friendlyarm,nanopi-r2c-plus|\
friendlyarm,nanopi-r2s|\
radxa,rockpi-e|\
xunlong,orangepi-r1-plus|\
xunlong,orangepi-r1-plus-lts)
set_interface_core 2 "eth0"

View File

@ -105,7 +105,6 @@ define Device/friendlyarm_nanopi-r6s
endef
TARGET_DEVICES += friendlyarm_nanopi-r6s
define Device/huake_guangmiao-g4c
DEVICE_VENDOR := Huake-Cloud
DEVICE_MODEL := GuangMiao G4C
@ -152,6 +151,15 @@ define Device/radxa_rock-pi-4a
endef
TARGET_DEVICES += radxa_rock-pi-4a
define Device/radxa_rock-pi-e
DEVICE_VENDOR := Radxa
DEVICE_MODEL := ROCK Pi E
SOC := rk3328
SUPPORTED_DEVICES := radxa,rockpi-e
BOOT_FLOW := pine64-bin
endef
TARGET_DEVICES += radxa_rock-pi-e
define Device/xunlong_orangepi-r1-plus
DEVICE_VENDOR := Xunlong
DEVICE_MODEL := Orange Pi R1 Plus

View File

@ -114,6 +114,29 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
};
user_led: led-1 {
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
@@ -23,6 +23,11 @@
aliases {
mmc0 = &sdmmc;
mmc1 = &emmc;
+
+ led-boot = &status_led;
+ led-failsafe = &status_led;
+ led-running = &status_led;
+ led-upgrade = &status_led;
};
chosen {
@@ -55,7 +60,7 @@
pinctrl-0 = <&led_pin>;
pinctrl-names = "default";
- led-0 {
+ status_led: led-0 {
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
@@ -19,6 +19,13 @@

View File

@ -201,3 +201,37 @@ Signed-off-by: hmz007 <hmz007@gmail.com>
regulator-min-microvolt = <712500>;
regulator-max-microvolt = <1450000>;
regulator-always-on;
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
@@ -134,6 +134,15 @@
cpu-supply = <&vdd_arm>;
};
+&dfi {
+ status = "okay";
+};
+
+&dmc {
+ center-supply = <&vdd_log>;
+ status = "okay";
+};
+
&emmc {
bus-width = <8>;
cap-mmc-highspeed;
@@ -214,6 +223,7 @@
regulator-name = "vdd_log";
regulator-always-on;
regulator-boot-on;
+ regulator-init-microvolt = <1075000>;
regulator-min-microvolt = <712500>;
regulator-max-microvolt = <1450000>;
regulator-ramp-delay = <12500>;
@@ -228,6 +238,7 @@
regulator-name = "vdd_arm";
regulator-always-on;
regulator-boot-on;
+ regulator-init-microvolt = <1225000>;
regulator-min-microvolt = <712500>;
regulator-max-microvolt = <1450000>;
regulator-ramp-delay = <12500>;