aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2015-05-10 13:10:03 -0400
committerYoshinori Sato <ysato@users.sourceforge.jp>2015-06-23 00:35:57 -0400
commit38d6bded13084d50b22b6261cc54cdc2364d6ea3 (patch)
tree446d342cd8f840b92407e9bec54bedcdc68e4bb3
parent9354fe8f929896d6801a75d9df111d759ccc084c (diff)
h8300: devicetree source
- h8300h_sim: GDB H8/300H simulator - h8s_sim: GDB H8S simulator - edosk2674: Renesas EDOSK2674R Evalution board Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
-rw-r--r--arch/h8300/boot/dts/Makefile11
-rw-r--r--arch/h8300/boot/dts/edosk2674.dts107
-rw-r--r--arch/h8300/boot/dts/h8300h_sim.dts96
-rw-r--r--arch/h8300/boot/dts/h8s_sim.dts99
4 files changed, 313 insertions, 0 deletions
diff --git a/arch/h8300/boot/dts/Makefile b/arch/h8300/boot/dts/Makefile
new file mode 100644
index 000000000000..bb123fa1a92d
--- /dev/null
+++ b/arch/h8300/boot/dts/Makefile
@@ -0,0 +1,11 @@
1ifneq '$(CONFIG_H8300_BUILTIN_DTB)' '""'
2BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_H8300_BUILTIN_DTB)).dtb.o
3endif
4
5obj-y += $(BUILTIN_DTB)
6
7dtb-$(CONFIG_H8300H_SIM) := h8300h_sim.dtb
8dtb-$(CONFIG_H8S_SIM) := h8s_sim.dtb
9dtb-$(CONFIG_EDOSK2674) := edosk2674.dtb
10
11clean-files := *.dtb.S
diff --git a/arch/h8300/boot/dts/edosk2674.dts b/arch/h8300/boot/dts/edosk2674.dts
new file mode 100644
index 000000000000..dfb5c102f8da
--- /dev/null
+++ b/arch/h8300/boot/dts/edosk2674.dts
@@ -0,0 +1,107 @@
1/dts-v1/;
2/ {
3 compatible = "renesas,edosk2674";
4 #address-cells = <1>;
5 #size-cells = <1>;
6 interrupt-parent = <&h8intc>;
7
8 chosen {
9 bootargs = "console=ttySC2,38400";
10 stdout-path = <&sci2>;
11 };
12 aliases {
13 serial0 = &sci0;
14 serial1 = &sci1;
15 serial2 = &sci2;
16 };
17
18 xclk: oscillator {
19 #clock-cells = <0>;
20 compatible = "fixed-clock";
21 clock-frequency = <33333333>;
22 clock-output-names = "xtal";
23 };
24 pllclk: pllclk {
25 compatible = "renesas,h8s2678-pll-clock";
26 clocks = <&xclk>;
27 #clock-cells = <0>;
28 reg = <0xfee03b 2>, <0xfee045 2>;
29 };
30 core_clk: core_clk {
31 compatible = "renesas,h8300-div-clock";
32 clocks = <&pllclk>;
33 #clock-cells = <0>;
34 reg = <0xfee03b 2>;
35 renesas,width = <3>;
36 };
37 fclk: fclk {
38 compatible = "fixed-factor-clock";
39 clocks = <&core_clk>;
40 #clock-cells = <0>;
41 clock-div = <1>;
42 clock-mult = <1>;
43 };
44
45 memory@400000 {
46 device_type = "memory";
47 reg = <0x400000 0x800000>;
48 };
49
50 cpus {
51 #address-cells = <1>;
52 #size-cells = <0>;
53 cpu@0 {
54 compatible = "renesas,h8300";
55 clock-frequency = <33333333>;
56 };
57 };
58
59 h8intc: interrupt-controller@fffe00 {
60 compatible = "renesas,h8s-intc", "renesas,h8300-intc";
61 #interrupt-cells = <2>;
62 interrupt-controller;
63 reg = <0xfffe00 24>;
64 };
65
66 bsc: memory-controller@fffec0 {
67 compatible = "renesas,h8s-bsc", "renesas,h8300-bsc";
68 reg = <0xfffec0 24>;
69 };
70
71 tpu: timer@ffffe0 {
72 compatible = "renesas,tpu";
73 reg = <0xffffe0 16>, <0xfffff0 12>;
74 clocks = <&fclk>;
75 clock-names = "fck";
76 };
77
78 timer8: timer@ffffb0 {
79 compatible = "renesas,8bit-timer";
80 reg = <0xffffb0 10>;
81 interrupts = <72 0>;
82 clocks = <&fclk>;
83 clock-names = "fck";
84 };
85
86 sci0: serial@ffff78 {
87 compatible = "renesas,sci";
88 reg = <0xffff78 8>;
89 interrupts = <88 0>, <89 0>, <90 0>, <91 0>;
90 clocks = <&fclk>;
91 clock-names = "sci_ick";
92 };
93 sci1: serial@ffff80 {
94 compatible = "renesas,sci";
95 reg = <0xffff80 8>;
96 interrupts = <92 0>, <93 0>, <94 0>, <95 0>;
97 clocks = <&fclk>;
98 clock-names = "sci_ick";
99 };
100 sci2: serial@ffff88 {
101 compatible = "renesas,sci";
102 reg = <0xffff88 8>;
103 interrupts = <96 0>, <97 0>, <98 0>, <99 0>;
104 clocks = <&fclk>;
105 clock-names = "sci_ick";
106 };
107};
diff --git a/arch/h8300/boot/dts/h8300h_sim.dts b/arch/h8300/boot/dts/h8300h_sim.dts
new file mode 100644
index 000000000000..545bfb57af9a
--- /dev/null
+++ b/arch/h8300/boot/dts/h8300h_sim.dts
@@ -0,0 +1,96 @@
1/dts-v1/;
2/ {
3 compatible = "gnu,gdbsim";
4 #address-cells = <1>;
5 #size-cells = <1>;
6 interrupt-parent = <&h8intc>;
7
8 chosen {
9 bootargs = "earlyprintk=h8300-sim";
10 stdout-path = <&sci0>;
11 };
12 aliases {
13 serial0 = &sci0;
14 serial1 = &sci1;
15 };
16
17 xclk: oscillator {
18 #clock-cells = <0>;
19 compatible = "fixed-clock";
20 clock-frequency = <20000000>;
21 clock-output-names = "xtal";
22 };
23 core_clk: core_clk {
24 compatible = "renesas,h8300-div-clock";
25 clocks = <&xclk>;
26 #clock-cells = <0>;
27 reg = <0xfee01b 2>;
28 renesas,width = <2>;
29 };
30 fclk: fclk {
31 compatible = "fixed-factor-clock";
32 clocks = <&core_clk>;
33 #clock-cells = <0>;
34 clock-div = <1>;
35 clock-mult = <1>;
36 };
37
38 memory@400000 {
39 device_type = "memory";
40 reg = <0x400000 0x400000>;
41 };
42
43 cpus {
44 #address-cells = <1>;
45 #size-cells = <0>;
46 cpu@0 {
47 compatible = "renesas,h8300";
48 clock-frequency = <20000000>;
49 };
50 };
51
52 h8intc: interrupt-controller@fee012 {
53 compatible = "renesas,h8300h-intc", "renesas,h8300-intc";
54 #interrupt-cells = <2>;
55 interrupt-controller;
56 reg = <0xfee012 7>;
57 };
58
59 bsc: memory-controller@fee01e {
60 compatible = "renesas,h8300h-bsc", "renesas,h8300-bsc";
61 reg = <0xfee01e 8>;
62 };
63
64 timer8: timer@ffff80 {
65 compatible = "renesas,8bit-timer";
66 reg = <0xffff80 10>;
67 interrupts = <36 0>;
68 clocks = <&fclk>;
69 clock-names = "fck";
70 };
71
72 timer16: timer@ffff68 {
73 compatible = "renesas,16bit-timer";
74 reg = <0xffff68 8>, <0xffff60 8>;
75 interrupts = <24 0>;
76 renesas,channel = <0>;
77 clocks = <&fclk>;
78 clock-names = "fck";
79 };
80
81 sci0: serial@ffffb0 {
82 compatible = "renesas,sci";
83 reg = <0xffffb0 8>;
84 interrupts = <52 0>, <53 0>, <54 0>, <55 0>;
85 clocks = <&fclk>;
86 clock-names = "sci_ick";
87 };
88
89 sci1: serial@ffffb8 {
90 compatible = "renesas,sci";
91 reg = <0xffffb8 8>;
92 interrupts = <56 0>, <57 0>, <58 0>, <59 0>;
93 clocks = <&fclk>;
94 clock-names = "sci_ick";
95 };
96};
diff --git a/arch/h8300/boot/dts/h8s_sim.dts b/arch/h8300/boot/dts/h8s_sim.dts
new file mode 100644
index 000000000000..bcedba5a3ce7
--- /dev/null
+++ b/arch/h8300/boot/dts/h8s_sim.dts
@@ -0,0 +1,99 @@
1/dts-v1/;
2/ {
3 compatible = "gnu,gdbsim";
4 #address-cells = <1>;
5 #size-cells = <1>;
6 interrupt-parent = <&h8intc>;
7
8 chosen {
9 bootargs = "earlyprintk=h8300-sim";
10 stdout-path = <&sci0>;
11 };
12 aliases {
13 serial0 = &sci0;
14 serial1 = &sci1;
15 };
16
17 xclk: oscillator {
18 #clock-cells = <0>;
19 compatible = "fixed-clock";
20 clock-frequency = <33333333>;
21 clock-output-names = "xtal";
22 };
23 pllclk: pllclk {
24 compatible = "renesas,h8s2678-pll-clock";
25 clocks = <&xclk>;
26 #clock-cells = <0>;
27 reg = <0xfee03b 2>, <0xfee045 2>;
28 };
29 core_clk: core_clk {
30 compatible = "renesas,h8300-div-clock";
31 clocks = <&pllclk>;
32 #clock-cells = <0>;
33 reg = <0xfee03b 2>;
34 renesas,width = <3>;
35 };
36 fclk: fclk {
37 compatible = "fixed-factor-clock";
38 clocks = <&core_clk>;
39 #clock-cells = <0>;
40 clock-div = <1>;
41 clock-mult = <1>;
42 };
43
44 memory@400000 {
45 device_type = "memory";
46 reg = <0x400000 0x800000>;
47 };
48
49 cpus {
50 #address-cells = <1>;
51 #size-cells = <0>;
52 cpu@0 {
53 compatible = "renesas,h8300";
54 clock-frequency = <33333333>;
55 };
56 };
57
58 h8intc: interrupt-controller@fffe00 {
59 compatible = "renesas,h8s-intc", "renesas,h8300-intc";
60 #interrupt-cells = <2>;
61 interrupt-controller;
62 reg = <0xfffe00 24>;
63 };
64
65 bsc: memory-controller@fffec0 {
66 compatible = "renesas,h8s-bsc", "renesas,h8300-bsc";
67 reg = <0xfffec0 24>;
68 };
69
70 tpu: timer@ffffe0 {
71 compatible = "renesas,tpu";
72 reg = <0xffffe0 16>, <0xfffff0 12>;
73 clocks = <&fclk>;
74 clock-names = "fck";
75 };
76
77 timer8: timer@ffffb0 {
78 compatible = "renesas,8bit-timer";
79 reg = <0xffffb0 10>;
80 interrupts = <72 0>;
81 clocks = <&fclk>;
82 clock-names = "fck";
83 };
84
85 sci0: serial@ffff78 {
86 compatible = "renesas,sci";
87 reg = <0xffff78 8>;
88 interrupts = <88 0>, <89 0>, <90 0>, <91 0>;
89 clocks = <&fclk>;
90 clock-names = "sci_ick";
91 };
92 sci1: serial@ffff80 {
93 compatible = "renesas,sci";
94 reg = <0xffff80 8>;
95 interrupts = <92 0>, <93 0>, <94 0>, <95 0>;
96 clocks = <&fclk>;
97 clock-names = "sci_ick";
98 };
99};