* [PATCH 0/3] ARM: dts: sun8i: Add timer/watchdog for A83T and Cubietruck Plus
@ 2016-01-16 16:24 Chen-Yu Tsai
2016-01-16 16:24 ` [PATCH 1/3] ARM: dts: sun8i: Enable timer node for A83T Chen-Yu Tsai
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2016-01-16 16:24 UTC (permalink / raw
To: Maxime Ripard
Cc: Vishnu Patekar, Chen-Yu Tsai, linux-arm-kernel, linux-kernel,
linux-sunxi
Hi Maxime,
This small series adds the timer/watchdog block for A83T, and also a new
board, the A83T/H8 based Cubietruck Plus from Cubietech.
Patch 1 from Vishnu adds the timer device node. This was picked from his
github branch sunxi-a83-wip.
Patch 2 adds the watchdog device node. We get watchdog and reboot support
on the A83T.
Patch 3 adds a basic DTS file for the Cubieteuck Plus.
Chen-Yu Tsai (2):
ARM: dts: sun8i: Add watchdog device node for A83T
ARM: dts: sun8i: Add device tree for Cubietruck Plus
Vishnu Patekar (1):
ARM: dts: sun8i: Enable timer node for A83T
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 65 ++++++++++++++++++++++++
arch/arm/boot/dts/sun8i-a83t.dtsi | 15 ++++++
3 files changed, 81 insertions(+)
create mode 100644 arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
--
2.7.0.rc3
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] ARM: dts: sun8i: Enable timer node for A83T
2016-01-16 16:24 [PATCH 0/3] ARM: dts: sun8i: Add timer/watchdog for A83T and Cubietruck Plus Chen-Yu Tsai
@ 2016-01-16 16:24 ` Chen-Yu Tsai
2016-01-17 12:22 ` Maxime Ripard
2016-01-16 16:24 ` [PATCH 2/3] ARM: dts: sun8i: Add watchdog device " Chen-Yu Tsai
2016-01-16 16:24 ` [PATCH 3/3] ARM: dts: sun8i: Add device tree for Cubietruck Plus Chen-Yu Tsai
2 siblings, 1 reply; 7+ messages in thread
From: Chen-Yu Tsai @ 2016-01-16 16:24 UTC (permalink / raw
To: Maxime Ripard
Cc: Vishnu Patekar, linux-arm-kernel, linux-kernel, linux-sunxi,
Chen-Yu Tsai
From: Vishnu Patekar <vishnupatekar0510@gmail.com>
A83T timer is compatible with that of earlier SOCs.
Just add timer node to enable and re-use it.
Signed-off-by: Vishnu Patekar <vishnupatekar0510@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun8i-a83t.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index bad5df7175b4..08df5598df9c 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -174,6 +174,14 @@
};
};
+ timer@01c20c00 {
+ compatible = "allwinner,sun4i-a10-timer";
+ reg = <0x01c20c00 0xa0>;
+ interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&osc24M>;
+ };
+
uart0: serial@01c28000 {
compatible = "snps,dw-apb-uart";
reg = <0x01c28000 0x400>;
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] ARM: dts: sun8i: Add watchdog device node for A83T
2016-01-16 16:24 [PATCH 0/3] ARM: dts: sun8i: Add timer/watchdog for A83T and Cubietruck Plus Chen-Yu Tsai
2016-01-16 16:24 ` [PATCH 1/3] ARM: dts: sun8i: Enable timer node for A83T Chen-Yu Tsai
@ 2016-01-16 16:24 ` Chen-Yu Tsai
2016-01-17 12:23 ` Maxime Ripard
2016-01-16 16:24 ` [PATCH 3/3] ARM: dts: sun8i: Add device tree for Cubietruck Plus Chen-Yu Tsai
2 siblings, 1 reply; 7+ messages in thread
From: Chen-Yu Tsai @ 2016-01-16 16:24 UTC (permalink / raw
To: Maxime Ripard
Cc: Vishnu Patekar, Chen-Yu Tsai, linux-arm-kernel, linux-kernel,
linux-sunxi
The A83T, like previous Allwinner SoCs, has a watchdog as part of its
timer block. Add a device node for it.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index 08df5598df9c..8d27b6381257 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -182,6 +182,13 @@
clocks = <&osc24M>;
};
+ watchdog@01c20ca0 {
+ compatible = "allwinner,sun6i-a31-wdt";
+ reg = <0x01c20ca0 0x20>;
+ interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&osc24M>;
+ };
+
uart0: serial@01c28000 {
compatible = "snps,dw-apb-uart";
reg = <0x01c28000 0x400>;
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] ARM: dts: sun8i: Add device tree for Cubietruck Plus
2016-01-16 16:24 [PATCH 0/3] ARM: dts: sun8i: Add timer/watchdog for A83T and Cubietruck Plus Chen-Yu Tsai
2016-01-16 16:24 ` [PATCH 1/3] ARM: dts: sun8i: Enable timer node for A83T Chen-Yu Tsai
2016-01-16 16:24 ` [PATCH 2/3] ARM: dts: sun8i: Add watchdog device " Chen-Yu Tsai
@ 2016-01-16 16:24 ` Chen-Yu Tsai
2016-01-17 12:23 ` Maxime Ripard
2 siblings, 1 reply; 7+ messages in thread
From: Chen-Yu Tsai @ 2016-01-16 16:24 UTC (permalink / raw
To: Maxime Ripard
Cc: Vishnu Patekar, Chen-Yu Tsai, linux-arm-kernel, linux-kernel,
linux-sunxi
Cubietruck Plus is a A83T/H8 based development board. The board has
standard DDR3 SDRAM, AXP818 PMIC/codec, SD/MMC, eMMC, USB 2.0 host
via HSIC USB Hub, USB OTG, SATA via USB bridge, gigabit ethernet,
WiFi, headphone out / mic in, and various GPIO headers.
The board also has an EEPROM on i2c0 which holds the MAC address.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 65 ++++++++++++++++++++++++
2 files changed, 66 insertions(+)
create mode 100644 arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 5dbb67b26318..de9b2f1fd272 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -664,6 +664,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
sun8i-a33-q8-tablet.dtb \
sun8i-a33-sinlinx-sina33.dtb \
sun8i-a83t-allwinner-h8homlet-v2.dtb \
+ sun8i-a83t-cubietruck-plus.dtb \
sun8i-h3-orangepi-plus.dtb
dtb-$(CONFIG_MACH_SUN9I) += \
sun9i-a80-optimus.dtb \
diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
new file mode 100644
index 000000000000..88b1e0970b8d
--- /dev/null
+++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2015 Chen-Yu Tsai
+ *
+ * Chen-Yu Tsai <wens@csie.org>
+ *
+ * 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 "sun8i-a83t.dtsi"
+
+/ {
+ model = "Cubietech Cubietruck Plus";
+ compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins_b>;
+ status = "okay";
+};
--
2.7.0.rc3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] ARM: dts: sun8i: Enable timer node for A83T
2016-01-16 16:24 ` [PATCH 1/3] ARM: dts: sun8i: Enable timer node for A83T Chen-Yu Tsai
@ 2016-01-17 12:22 ` Maxime Ripard
0 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2016-01-17 12:22 UTC (permalink / raw
To: Chen-Yu Tsai; +Cc: Vishnu Patekar, linux-arm-kernel, linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 488 bytes --]
Hi,
On Sun, Jan 17, 2016 at 12:24:55AM +0800, Chen-Yu Tsai wrote:
> From: Vishnu Patekar <vishnupatekar0510@gmail.com>
>
> A83T timer is compatible with that of earlier SOCs.
> Just add timer node to enable and re-use it.
>
> Signed-off-by: Vishnu Patekar <vishnupatekar0510@gmail.com>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Applied, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] ARM: dts: sun8i: Add watchdog device node for A83T
2016-01-16 16:24 ` [PATCH 2/3] ARM: dts: sun8i: Add watchdog device " Chen-Yu Tsai
@ 2016-01-17 12:23 ` Maxime Ripard
0 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2016-01-17 12:23 UTC (permalink / raw
To: Chen-Yu Tsai; +Cc: Vishnu Patekar, linux-arm-kernel, linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 370 bytes --]
On Sun, Jan 17, 2016 at 12:24:56AM +0800, Chen-Yu Tsai wrote:
> The A83T, like previous Allwinner SoCs, has a watchdog as part of its
> timer block. Add a device node for it.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Applied, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] ARM: dts: sun8i: Add device tree for Cubietruck Plus
2016-01-16 16:24 ` [PATCH 3/3] ARM: dts: sun8i: Add device tree for Cubietruck Plus Chen-Yu Tsai
@ 2016-01-17 12:23 ` Maxime Ripard
0 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2016-01-17 12:23 UTC (permalink / raw
To: Chen-Yu Tsai; +Cc: Vishnu Patekar, linux-arm-kernel, linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 642 bytes --]
On Sun, Jan 17, 2016 at 12:24:57AM +0800, Chen-Yu Tsai wrote:
> Cubietruck Plus is a A83T/H8 based development board. The board has
> standard DDR3 SDRAM, AXP818 PMIC/codec, SD/MMC, eMMC, USB 2.0 host
> via HSIC USB Hub, USB OTG, SATA via USB bridge, gigabit ethernet,
> WiFi, headphone out / mic in, and various GPIO headers.
>
> The board also has an EEPROM on i2c0 which holds the MAC address.
Time to use the nvmem framework then ;)
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Applied, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-01-17 12:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-16 16:24 [PATCH 0/3] ARM: dts: sun8i: Add timer/watchdog for A83T and Cubietruck Plus Chen-Yu Tsai
2016-01-16 16:24 ` [PATCH 1/3] ARM: dts: sun8i: Enable timer node for A83T Chen-Yu Tsai
2016-01-17 12:22 ` Maxime Ripard
2016-01-16 16:24 ` [PATCH 2/3] ARM: dts: sun8i: Add watchdog device " Chen-Yu Tsai
2016-01-17 12:23 ` Maxime Ripard
2016-01-16 16:24 ` [PATCH 3/3] ARM: dts: sun8i: Add device tree for Cubietruck Plus Chen-Yu Tsai
2016-01-17 12:23 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).