mirror of
https://github.com/armbian/build.git
synced 2025-08-14 15:16:58 +02:00
* Introducing Rockchip rk322x SoC support Main features: - Legacy kernel flavour based upon stable v2.x rk3288 Rockchip branch (https://github.com/rockchip-linux/kernel/tree/stable-4.4-rk3288-linux-v2.x) - Current kernel flavour based on mainline 5.6.y kernel - Mainline u-boot (v2020.04) - Single generic tv box target (rk322x-box) which boots on all the known tv boxes - Hardware devices (eMMC/NAND, led wiring configuration, SoC variant selection) modulation done by user at runtime via device tree overlays - a script (rk322x-config) is provided for autodetection and simple configuration by inexperienced users; - Bits added to armbian-hardware-optimization to set affinity for irq handlers - rk322x-box targets already added to targets.conf for automatic image creation * Removed disabled patches * Restored mysteriously removed comment character
73 lines
1.3 KiB
Diff
73 lines
1.3 KiB
Diff
diff --git a/arch/arm/dts/rk322x-box.dts b/arch/arm/dts/rk322x-box.dts
|
|
new file mode 100755
|
|
index 00000000..eb47f976
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/rk322x-box.dts
|
|
@@ -0,0 +1,66 @@
|
|
+// SPDX-License-Identifier: GPL-2.0+ OR X11
|
|
+/*
|
|
+ * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
|
|
+ */
|
|
+
|
|
+/dts-v1/;
|
|
+
|
|
+#include "rk322x-generic-tvbox.dtsi"
|
|
+
|
|
+/ {
|
|
+ model = "Generic Rockchip rk322x TV Box board";
|
|
+ compatible = "rockchip,rk322x-box";
|
|
+
|
|
+};
|
|
+
|
|
+&leds {
|
|
+
|
|
+ /*
|
|
+ Alternative led: some boards which have main led wired
|
|
+ as ACTIVE_LOW will not show anything during boot, thus
|
|
+ we put this gpio led as ACTIVE_HIGH, so at least one
|
|
+ may give some hint during boot.
|
|
+ Schematics say that this pin is connected to I2C0 data
|
|
+ bus, which is usually unused on rk322x boards
|
|
+ */
|
|
+
|
|
+ alt {
|
|
+ label = "alternative";
|
|
+ gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
|
|
+ default-state = "on";
|
|
+ };
|
|
+
|
|
+};
|
|
+
|
|
+&gmac {
|
|
+
|
|
+ tx_delay = < 0x26 >; // Default is 0x30, but original dts proposes 0x26
|
|
+ rx_delay = < 0x11 >; // Default is 0x10, but original dts proposes 0x11
|
|
+ status = "okay";
|
|
+
|
|
+};
|
|
+
|
|
+&emmc {
|
|
+
|
|
+ status = "okay";
|
|
+
|
|
+};
|
|
+
|
|
+&sdmmc {
|
|
+
|
|
+ status = "okay";
|
|
+
|
|
+};
|
|
+
|
|
+&pinctrl {
|
|
+
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&gpio_leds>;
|
|
+
|
|
+ gpio {
|
|
+ gpio_leds: gpio-leds {
|
|
+ rockchip,pins = <3 21 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+};
|