aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts
diff options
context:
space:
mode:
authorZhizhou Zhang <zhizhou.zhang@spreadtrum.com>2015-03-10 22:27:08 -0400
committerArnd Bergmann <arnd@arndb.de>2015-03-11 17:59:48 -0400
commitc46388a58664e89526fe7b8af0082b9b5c465568 (patch)
treee7ce18aafd5054a1fbd8507e5d43219f87822d35 /arch/arm64/boot/dts
parent5d1b79d2b2639bb71238e76d73431fada9e38553 (diff)
arm64: dts: Add support for Spreadtrum SC9836 SoC in dts and Makefile
Adds the device tree support for Spreadtrum SC9836 SoC which is based on Sharkl64 platform. Sharkl64 platform contains the common nodes of Spreadtrum's arm64-based SoCs. Signed-off-by: Zhizhou Zhang <zhizhou.zhang@spreadtrum.com> Signed-off-by: Orson Zhai <orson.zhai@spreadtrum.com> Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm64/boot/dts')
-rw-r--r--arch/arm64/boot/dts/Makefile1
-rw-r--r--arch/arm64/boot/dts/sprd/Makefile5
-rw-r--r--arch/arm64/boot/dts/sprd/sc9836-openphone.dts49
-rw-r--r--arch/arm64/boot/dts/sprd/sc9836.dtsi74
-rw-r--r--arch/arm64/boot/dts/sprd/sharkl64.dtsi65
5 files changed, 194 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
index ff088ec6ca5f..e296eb6fc478 100644
--- a/arch/arm64/boot/dts/Makefile
+++ b/arch/arm64/boot/dts/Makefile
@@ -5,6 +5,7 @@ dts-dirs += cavium
5dts-dirs += exynos 5dts-dirs += exynos
6dts-dirs += freescale 6dts-dirs += freescale
7dts-dirs += mediatek 7dts-dirs += mediatek
8dts-dirs += sprd
8dts-dirs += xilinx 9dts-dirs += xilinx
9 10
10subdir-y := $(dts-dirs) 11subdir-y := $(dts-dirs)
diff --git a/arch/arm64/boot/dts/sprd/Makefile b/arch/arm64/boot/dts/sprd/Makefile
new file mode 100644
index 000000000000..b658c5e09b15
--- /dev/null
+++ b/arch/arm64/boot/dts/sprd/Makefile
@@ -0,0 +1,5 @@
1dtb-$(CONFIG_ARCH_SPRD) += sc9836-openphone.dtb
2
3always := $(dtb-y)
4subdir-y := $(dts-dirs)
5clean-files := *.dtb
diff --git a/arch/arm64/boot/dts/sprd/sc9836-openphone.dts b/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
new file mode 100644
index 000000000000..e5657c35cd10
--- /dev/null
+++ b/arch/arm64/boot/dts/sprd/sc9836-openphone.dts
@@ -0,0 +1,49 @@
1/*
2 * Spreadtrum SC9836 openphone board DTS file
3 *
4 * Copyright (C) 2014, Spreadtrum Communications Inc.
5 *
6 * This file is licensed under a dual GPLv2 or X11 license.
7 */
8
9/dts-v1/;
10
11#include "sc9836.dtsi"
12
13/ {
14 model = "Spreadtrum SC9836 Openphone Board";
15
16 compatible = "sprd,sc9836-openphone", "sprd,sc9836";
17
18 aliases {
19 serial0 = &uart0;
20 serial1 = &uart1;
21 serial2 = &uart2;
22 serial3 = &uart3;
23 };
24
25 memory@80000000 {
26 device_type = "memory";
27 reg = <0 0x80000000 0 0x20000000>;
28 };
29
30 chosen {
31 stdout-path = "serial1:115200n8";
32 };
33};
34
35&uart0 {
36 status = "okay";
37};
38
39&uart1 {
40 status = "okay";
41};
42
43&uart2 {
44 status = "okay";
45};
46
47&uart3 {
48 status = "okay";
49};
diff --git a/arch/arm64/boot/dts/sprd/sc9836.dtsi b/arch/arm64/boot/dts/sprd/sc9836.dtsi
new file mode 100644
index 000000000000..f92f1b45f6d6
--- /dev/null
+++ b/arch/arm64/boot/dts/sprd/sc9836.dtsi
@@ -0,0 +1,74 @@
1/*
2 * Spreadtrum SC9836 SoC DTS file
3 *
4 * Copyright (C) 2014, Spreadtrum Communications Inc.
5 *
6 * This file is licensed under a dual GPLv2 or X11 license.
7 */
8
9#include "sharkl64.dtsi"
10#include <dt-bindings/interrupt-controller/arm-gic.h>
11
12/ {
13 compatible = "sprd,sc9836";
14
15 cpus {
16 #address-cells = <2>;
17 #size-cells = <0>;
18
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "arm,cortex-a53", "arm,armv8";
22 reg = <0x0 0x0>;
23 enable-method = "psci";
24 };
25
26 cpu@1 {
27 device_type = "cpu";
28 compatible = "arm,cortex-a53", "arm,armv8";
29 reg = <0x0 0x1>;
30 enable-method = "psci";
31 };
32
33 cpu@2 {
34 device_type = "cpu";
35 compatible = "arm,cortex-a53", "arm,armv8";
36 reg = <0x0 0x2>;
37 enable-method = "psci";
38 };
39
40 cpu@3 {
41 device_type = "cpu";
42 compatible = "arm,cortex-a53", "arm,armv8";
43 reg = <0x0 0x3>;
44 enable-method = "psci";
45 };
46 };
47
48 gic: interrupt-controller@12001000 {
49 compatible = "arm,gic-400";
50 reg = <0 0x12001000 0 0x1000>,
51 <0 0x12002000 0 0x2000>,
52 <0 0x12004000 0 0x2000>,
53 <0 0x12006000 0 0x2000>;
54 #interrupt-cells = <3>;
55 interrupt-controller;
56 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
57 };
58
59 psci {
60 compatible = "arm,psci";
61 method = "smc";
62 cpu_on = <0xc4000003>;
63 cpu_off = <0x84000002>;
64 cpu_suspend = <0xc4000001>;
65 };
66
67 timer {
68 compatible = "arm,armv8-timer";
69 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
70 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
71 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
72 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
73 };
74};
diff --git a/arch/arm64/boot/dts/sprd/sharkl64.dtsi b/arch/arm64/boot/dts/sprd/sharkl64.dtsi
new file mode 100644
index 000000000000..69f64e7fce7c
--- /dev/null
+++ b/arch/arm64/boot/dts/sprd/sharkl64.dtsi
@@ -0,0 +1,65 @@
1/*
2 * Spreadtrum Sharkl64 platform DTS file
3 *
4 * Copyright (C) 2014, Spreadtrum Communications Inc.
5 *
6 * This file is licensed under a dual GPLv2 or X11 license.
7 */
8
9/ {
10 interrupt-parent = <&gic>;
11 #address-cells = <2>;
12 #size-cells = <2>;
13
14 soc {
15 compatible = "simple-bus";
16 #address-cells = <2>;
17 #size-cells = <2>;
18 ranges;
19
20 ap-apb {
21 compatible = "simple-bus";
22 #address-cells = <2>;
23 #size-cells = <2>;
24 ranges;
25
26 uart0: serial@70000000 {
27 compatible = "sprd,sc9836-uart";
28 reg = <0 0x70000000 0 0x100>;
29 interrupts = <0 2 0xf04>;
30 clocks = <&clk26mhz>;
31 status = "disabled";
32 };
33
34 uart1: serial@70100000 {
35 compatible = "sprd,sc9836-uart";
36 reg = <0 0x70100000 0 0x100>;
37 interrupts = <0 3 0xf04>;
38 clocks = <&clk26mhz>;
39 status = "disabled";
40 };
41
42 uart2: serial@70200000 {
43 compatible = "sprd,sc9836-uart";
44 reg = <0 0x70200000 0 0x100>;
45 interrupts = <0 4 0xf04>;
46 clocks = <&clk26mhz>;
47 status = "disabled";
48 };
49
50 uart3: serial@70300000 {
51 compatible = "sprd,sc9836-uart";
52 reg = <0 0x70300000 0 0x100>;
53 interrupts = <0 5 0xf04>;
54 clocks = <&clk26mhz>;
55 status = "disabled";
56 };
57 };
58 };
59
60 clk26mhz: clk26mhz {
61 compatible = "fixed-clock";
62 #clock-cells = <0>;
63 clock-frequency = <26000000>;
64 };
65};