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