ec226c2
From 277aa4c25655e8f746f02879d26298772244958a Mon Sep 17 00:00:00 2001
168984b
From: Peter Robinson <pbrobinson@gmail.com>
168984b
Date: Thu, 17 Mar 2016 15:19:04 +0000
168984b
Subject: [PATCH] geekbox v4 patchset
168984b
168984b
---
ec226c2
 Documentation/devicetree/bindings/arm/rockchip.txt |  9 ++++
ec226c2
 arch/arm64/boot/dts/rockchip/Makefile              |  1 +
ec226c2
 arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi       |  2 +-
ec226c2
 .../dts/rockchip/rk3368-geekbox-landingship.dts    | 57 ++++++++++++++++++++++
ec226c2
 arch/arm64/boot/dts/rockchip/rk3368-r88.dts        |  2 +-
ec226c2
 5 files changed, 69 insertions(+), 2 deletions(-)
168984b
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3368-geekbox-landingship.dts
168984b
168984b
diff --git a/Documentation/devicetree/bindings/arm/rockchip.txt b/Documentation/devicetree/bindings/arm/rockchip.txt
ec226c2
index 715d960..7cfadac 100644
168984b
--- a/Documentation/devicetree/bindings/arm/rockchip.txt
168984b
+++ b/Documentation/devicetree/bindings/arm/rockchip.txt
ec226c2
@@ -95,6 +95,15 @@ Rockchip platforms device tree bindings
ec226c2
     Required root node properties:
ec226c2
       - compatible = "mqmaker,miqi", "rockchip,rk3288";
168984b
 
168984b
+- GeekBuying GeekBox:
168984b
+    Required root node properties:
168984b
+      - compatible = "geekbuying,geekbox", "rockchip,rk3368";
168984b
+
168984b
+- GeekBuying Landingship with GeekBox module:
168984b
+    Required root node properties:
168984b
+      - compatible = "geekbuying,geekbox-landingship",
168984b
+		     "geekbuying,geekbox", "rockchip,rk3368";
168984b
+
168984b
 - Rockchip RK3368 evb:
168984b
     Required root node properties:
168984b
       - compatible = "rockchip,rk3368-evb-act8846", "rockchip,rk3368";
168984b
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
ec226c2
index 7037a16..e002ebe 100644
168984b
--- a/arch/arm64/boot/dts/rockchip/Makefile
168984b
+++ b/arch/arm64/boot/dts/rockchip/Makefile
ec226c2
@@ -1,5 +1,6 @@
168984b
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-evb-act8846.dtb
ec226c2
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox.dtb
168984b
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-geekbox-landingship.dtb
168984b
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb
ec226c2
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb.dtb
168984b
 
168984b
diff --git a/arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi b/arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi
ec226c2
index fff8b19..bd4f2cf 100644
168984b
--- a/arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi
168984b
+++ b/arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi
ec226c2
@@ -49,7 +49,7 @@
168984b
 		stdout-path = "serial2:115200n8";
168984b
 	};
168984b
 
168984b
-	memory {
168984b
+	memory@0 {
168984b
 		device_type = "memory";
168984b
 		reg = <0x0 0x0 0x0 0x40000000>;
168984b
 	};
168984b
diff --git a/arch/arm64/boot/dts/rockchip/rk3368-geekbox-landingship.dts b/arch/arm64/boot/dts/rockchip/rk3368-geekbox-landingship.dts
168984b
new file mode 100644
168984b
index 0000000..a28ace9
168984b
--- /dev/null
168984b
+++ b/arch/arm64/boot/dts/rockchip/rk3368-geekbox-landingship.dts
168984b
@@ -0,0 +1,57 @@
168984b
+/*
168984b
+ * Copyright (c) 2016 Andreas Färber
168984b
+ *
168984b
+ * This file is dual-licensed: you can use it either under the terms
168984b
+ * of the GPL or the X11 license, at your option. Note that this dual
168984b
+ * licensing only applies to this file, and not this project as a
168984b
+ * whole.
168984b
+ *
168984b
+ *  a) This file is free software; you can redistribute it and/or
168984b
+ *     modify it under the terms of the GNU General Public License as
168984b
+ *     published by the Free Software Foundation; either version 2 of the
168984b
+ *     License, or (at your option) any later version.
168984b
+ *
168984b
+ *     This file is distributed in the hope that it will be useful,
168984b
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
168984b
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
168984b
+ *     GNU General Public License for more details.
168984b
+ *
168984b
+ * Or, alternatively,
168984b
+ *
168984b
+ *  b) Permission is hereby granted, free of charge, to any person
168984b
+ *     obtaining a copy of this software and associated documentation
168984b
+ *     files (the "Software"), to deal in the Software without
168984b
+ *     restriction, including without limitation the rights to use,
168984b
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
168984b
+ *     sell copies of the Software, and to permit persons to whom the
168984b
+ *     Software is furnished to do so, subject to the following
168984b
+ *     conditions:
168984b
+ *
168984b
+ *     The above copyright notice and this permission notice shall be
168984b
+ *     included in all copies or substantial portions of the Software.
168984b
+ *
168984b
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
168984b
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
168984b
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
168984b
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
168984b
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
168984b
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
168984b
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
168984b
+ *     OTHER DEALINGS IN THE SOFTWARE.
168984b
+ */
168984b
+
168984b
+#include "rk3368-geekbox.dts"
168984b
+
168984b
+/ {
168984b
+	model = "GeekBox on Landingship";
168984b
+	compatible = "geekbuying,geekbox-landingship",
168984b
+		     "geekbuying,geekbox", "rockchip,rk3368";
168984b
+};
168984b
+
168984b
+&i2c1 {
168984b
+	status = "disabled";
168984b
+};
168984b
+
168984b
+&i2c2 {
168984b
+	status = "okay";
168984b
+};
168984b
diff --git a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
ec226c2
index b56b720..5ea68c4 100644
168984b
--- a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
168984b
+++ b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
ec226c2
@@ -52,7 +52,7 @@
168984b
 		stdout-path = "serial2:115200n8";
168984b
 	};
168984b
 
168984b
-	memory {
168984b
+	memory@0 {
168984b
 		device_type = "memory";
168984b
 		reg = <0x0 0x0 0x0 0x40000000>;
168984b
 	};
168984b
-- 
ec226c2
2.5.5
168984b