Skip to contentSkip to conversation

arm64: dts: realtek: Add bpi-w2 board support and its RTD1296 SoC

PATCH In review Aleix Roca Nonell 1 participant 1 message Jul 7, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/6 arm64: dts: realtek: Add bpi-w2 board support and its RTD1296 SoC

Add basic device tree description for the Bannana Pi W2 (bpi-w2) and its SoC. The board should be able to boot up to a ram based rootfs.

The only information available on the memreserve areas are the macro names holing the addresses in the original source code:

- 0x00000000 0x00100000 - apparently used to fix an undefined bug
- 0x02600000 0x00c00000 - ION_AUDIO_HEAP
- 0x03200000 0x0b800000 - ION_MEDIA_HEAP 1
- 0x10000000 0x00014000 - ACPU_IDMEM
- 0x14200000 0x09200000 - ION_MEDIA_HEAP 2

The CPUs still lack the enable-method property "rtk-spin-table" as previously noted in [1].

[1] - commit 72a7786c0a0d65 ("ARM64: dts: Add Realtek RTD1295 and Zidoo X9S")

---
 arch/arm64/boot/dts/realtek/Makefile          |  1 +
 .../dts/realtek/rtd1296-bananapi-bpi-w2.dts   | 27 +++++++
 arch/arm64/boot/dts/realtek/rtd1296.dtsi      | 77 +++++++++++++++++++
 3 files changed, 105 insertions(+)
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-bananapi-bpi-w2.dts
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi
arch/arm64/boot/dts/realtek/Makefile +1 -0
index 90c897ac3f7a..c1a6654e7d5b 100644
@@ -2,3 +2,4 @@
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-mele-v9.dtb
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-probox2-ava.dtb
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb
+dtb-$(CONFIG_ARCH_REALTEK) += rtd1296-bananapi-bpi-w2.dtb
arch/arm64/boot/dts/realtek/rtd1296-bananapi-bpi-w2.dts new file +27 -0
new file mode 100644
index 000000000000..1a81b9f2c3c3
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/dts-v1/;
+
+#include "rtd1296.dtsi"
+
+/ {
+	model = "Banana Pi BPI-W2";
+	compatible = "bananapi,bpi-w2", "realtek,rtd1296";
+
+	chosen {
+		bootargs = "earlycon=uart8250,mmio32,0x98007800";
+	};
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0 0x80000000>; /* 2048 MB */
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
arch/arm64/boot/dts/realtek/rtd1296.dtsi new file +77 -0

77 lines not on this page · raw message

Signature · 1 line
2.21.0