Skip to contentSkip to conversation

Add support for RK3288 Tinker board

PATCH In review Eddie Cai 3 participants 5 messages Feb 14, 2017 – Feb 21, 2017

Subsystems (3)
lore
Share & tools
lore

Eddie Cai

author
#0 lore raw

v3 cover Add support for RK3288 Tinker board

This patch set add support for RK3288 Tinker board. Tinker board is a credit card size develop board powered by RK3288.

Eddie Cai (2):
dt-bindings: add Asus Tinker board
ARM: dts: rockchip: add dts for RK3288-Tinker board

 Documentation/devicetree/bindings/arm/rockchip.txt |   3 +
 arch/arm/boot/dts/Makefile                         |   1 +
 arch/arm/boot/dts/rk3288-tinker.dts                | 536 +++++++++++++++++++++
 3 files changed, 540 insertions(+)
 create mode 100644 arch/arm/boot/dts/rk3288-tinker.dts
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH v3 1/2 dt-bindings: add Asus Tinker board

From: Eddie Cai <[email protected]>

Tinker board is a credit card size develop board designed by Asus. Powered by RK3288.

---
 Documentation/devicetree/bindings/arm/rockchip.txt | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.txt +3 -0
index cc4ace6..226ee91 100644
@@ -1,5 +1,8 @@
 Rockchip platforms device tree bindings
 ---------------------------------------
+- Asus Tinker board
+    Required root node properties:
+      - compatible = "asus,rk3288-tinker", "rockchip,rk3288";
 
 - Kylin RK3036 board:
     Required root node properties:
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH v3 2/2 ARM: dts: rockchip: add dts for RK3288-Tinker board

In reply to Eddie Cai

This patch add basic support for RK3288-Tinker board. We can boot in to rootfs with this patch.

---
 arch/arm/boot/dts/Makefile          |   1 +
 arch/arm/boot/dts/rk3288-tinker.dts | 536 ++++++++++++++++++++++++++++++++++++
 2 files changed, 537 insertions(+)
 create mode 100644 arch/arm/boot/dts/rk3288-tinker.dts
arch/arm/boot/dts/Makefile +1 -0
index 01d178a..0dfef24 100644
@@ -679,6 +679,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
 	rk3288-popmetal.dtb \
 	rk3288-r89.dtb \
 	rk3288-rock2-square.dtb \
+	rk3288-tinker.dtb \
 	rk3288-veyron-brain.dtb \
 	rk3288-veyron-jaq.dtb \
 	rk3288-veyron-jerry.dtb \
arch/arm/boot/dts/rk3288-tinker.dts new file +536 -0

536 lines not on this page · raw message

Signature · 1 line
2.7.4
#3 lore raw

Re: [PATCH V3 2/2] ARM: dts: rockchip: add dts for RK3288-Tinker board

Hi Eddie,

Quoted 96 lines · Eddie Cai

This patch add basic support for RK3288-Tinker board. We can boot in to rootfs with this patch.

---
 arch/arm/boot/dts/Makefile          |   1 +
 arch/arm/boot/dts/rk3288-tinker.dts | 536 ++++++++++++++++++++++++++++++++++++
 2 files changed, 537 insertions(+)
 create mode 100644 arch/arm/boot/dts/rk3288-tinker.dts
arch/arm/boot/dts/Makefile +1 -0
index 01d178a..0dfef24 100644
@@ -679,6 +679,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
 	rk3288-popmetal.dtb \
 	rk3288-r89.dtb \
 	rk3288-rock2-square.dtb \
+	rk3288-tinker.dtb \
 	rk3288-veyron-brain.dtb \
 	rk3288-veyron-jaq.dtb \
 	rk3288-veyron-jerry.dtb \
arch/arm/boot/dts/rk3288-tinker.dts new file +68 -0
new file mode 100644
index 0000000..9600d1f
@@ -0,0 +1,536 @@
+/*
+ * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License as
+ *     published by the Free Software Foundation; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/dts-v1/;
+
+#include "rk3288.dtsi"
+#include <dt-bindings/input/input.h>
+
+/ {
+	model = "Rockchip RK3288 Tinker Board";
+	compatible = "asus,rk3288-tinker", "rockchip,rk3288";
+
+	memory {
+		reg = <0x0 0x80000000>;
+		device_type = "memory";
+	};
+
+	ext_gmac: external-gmac-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <125000000>;
+		clock-output-names = "ext_gmac";
+	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		autorepeat;

arch/arm/boot/dts/rk3288-tinker.dts line 78

Quoted 10 lines
arch/arm/boot/dts/rk3288-tinker.dts new file +10 -0
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&pwrbtn>;
+
+		button at 0 {
+			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_POWER>;
+			label = "GPIO Key Power";
+			linux,input-type = <1>;
+			gpio-key,wakeup = <1>;

you should replace this with wakeup-source as specified in Documentation/devicetree/bindings/power/wakeup-source.txt

Regards,
Wadim

maintainer
#4 lore raw
In reply to Eddie Cai

Am Dienstag, 14. Februar 2017, 18:07:29 CET schrieb Eddie Cai:

Quoted 6 lines

This patch set add support for RK3288 Tinker board. Tinker board is a credit card size develop board powered by RK3288.

Eddie Cai (2):
dt-bindings: add Asus Tinker board
ARM: dts: rockchip: add dts for RK3288-Tinker board

applied both, with:
- fixed the wakesource pointed out by Wadim
- reordered some properties

So please double check :-)

Thanks
Heiko