Skip to contentSkip to conversation

Add preliminary support for Banana Pi M2U.

PATCH New Danny Milosavljevic 1 participant 1 message Feb 6, 2017

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

PATCH 1/1 Add preliminary support for Banana Pi M2U.

This adds preliminary support for Banana Pi M2U (and R40).

Unfortunately, I get the following error message in the end:

binman: Device tree 'u-boot.dtb' does not have a 'binman' node Makefile:1091: recipe for target 'u-boot-sunxi-with-spl.bin' failed
make: *** [u-boot-sunxi-with-spl.bin] Error 1

The documentation says that it would also check for "binman" nodes in:

* <CONFIG_SYS_SOC>-u-boot.dtsi
* <CONFIG_SYS_CPU>-u-boot.dtsi
* <CONFIG_SYS_VENDOR>-u-boot.dtsi
* u-boot.dtsi

in that order.

The file "sunxi-u-boot.dtsi" would have contained a binman node.

When I enable debugging I see:

scripts/Makefile.lib:177: u_boot_dtsi_options: ./arch/arm/dts/sunxi-u-boot.dtsi

However:

$ grep -r sunxi-u-bo .
./arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.cmd:cmd_arch/arm/dts/sun8i-r40-bananapi-m2u.dtb := mkdir -p arch/arm/dts/ ; cat arch/arm/dts/sun8i-r40-bananapi-m2u.dts  | sed '/^\/ {$$/{x;s%$$%\#include \"./arch/arm/dts/sunxi-u-boot.dtsi\"%;G;}' | gcc -E -Wp,-MD,arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.d.pre.tmp -nostdinc -I./arch/arm/dts -I./arch/arm/dts/include -Iinclude -I./include -I./arch/arm/include -include ./include/linux/kconfig.h -D__ASSEMBLY__ -undef -D__DTS__ -x assembler-with-cpp -o arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.dts.tmp - ; dtc -O dtb -o arch/arm/dts/sun8i-r40-bananapi-m2u.dtb -b 0 -i arch/arm/dts/  -d arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.d.dtc.tmp arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.dts.tmp ; cat arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.d.pre.tmp arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.d.dtc.tmp > arch/arm/dts/.sun8i-r40-bananapi-m2u.dtb.d

What's up with it?

---
 arch/arm/dts/sun8i-r40-bananapi-m2u.dts |   41 +
 arch/arm/dts/sun8iw11p1-clk.dtsi        |  741 +++++++++++++
 arch/arm/dts/sun8iw11p1-pinctrl.dtsi    |  673 +++++++++++
 arch/arm/dts/sun8iw11p1.dtsi            | 1842 +++++++++++++++++++++++++++++++
 configs/BananapiM2U_defconfig           |   24 +
 5 files changed, 3321 insertions(+)
 create mode 100644 arch/arm/dts/sun8i-r40-bananapi-m2u.dts
 create mode 100644 arch/arm/dts/sun8iw11p1-clk.dtsi
 create mode 100644 arch/arm/dts/sun8iw11p1-pinctrl.dtsi
 create mode 100644 arch/arm/dts/sun8iw11p1.dtsi
 create mode 100644 configs/BananapiM2U_defconfig
arch/arm/dts/sun8i-r40-bananapi-m2u.dts new file +41 -0
new file mode 100644
index 0000000..34ddba0
@@ -0,0 +1,41 @@
+/*
+ * Allwinner Technology CO., Ltd. sun8iw11p1 perf1 sata board.
+ *
+ */
+
+/dts-v1/;
+
+/memreserve/ 0x78000000 0x08000000; /* ion carvout heap revserve  : [0x78000000~0x80000000], size = 128M  */
+
+#include "sun8iw11p1.dtsi"
+
+/{
+        model = "Banana Pi M2 Ultra";
+        compatible = "sinovoip,bpi-m2u", "allwinner,sun8i-r40";
+
+	soc at 01c00000 {
+	};
+
+	ion {
+		carvout{
+			type = <2>;
+			name = "carvout";
+			base = <0x78000000>;
+			size = <0x08000000>;
+		};
+	};
+
+        aliases {
+                serial0 = &uart0;
+        };
+
+        chosen {
+                stdout-path = "serial0:115200n8";
+        };
+};
+
+&uart0 {
+        pinctrl-names = "default";
+        pinctrl-0 = <&uart0_pins_a>;
+        status = "okay";
+};
arch/arm/dts/sun8iw11p1-clk.dtsi new file +741 -0

741 lines not on this page · raw message

arch/arm/dts/sun8iw11p1-pinctrl.dtsi new file +673 -0

673 lines not on this page · raw message

arch/arm/dts/sun8iw11p1.dtsi new file +1842 -0

1,545 lines not on this page · raw message

configs/BananapiM2U_defconfig new file +24 -0
new file mode 100644
index 0000000..5b5944f

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.10.2

Part of the diff is not shown here. View the raw message.