Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / integrator.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * SoC core Device Tree for the ARM Integrator platforms
4  */
5
6 / {
7         #address-cells = <1>;
8         #size-cells = <1>;
9
10         memory {
11                 device_type = "memory";
12                 reg = <0x0 0x0>;
13         };
14
15         core-module@10000000 {
16                 compatible = "arm,core-module-integrator", "syscon", "simple-mfd";
17                 reg = <0x10000000 0x200>;
18
19                 /* Use core module LED to indicate CPU load */
20                 led@c.0 {
21                         compatible = "register-bit-led";
22                         offset = <0x0c>;
23                         mask = <0x01>;
24                         label = "integrator:core_module";
25                         linux,default-trigger = "cpu0";
26                         default-state = "on";
27                 };
28         };
29
30         ebi@12000000 {
31                 compatible = "arm,external-bus-interface";
32                 reg = <0x12000000 0x100>;
33         };
34
35         timer@13000000 {
36                 reg = <0x13000000 0x100>;
37                 interrupt-parent = <&pic>;
38                 interrupts = <5>;
39         };
40
41         timer@13000100 {
42                 reg = <0x13000100 0x100>;
43                 interrupt-parent = <&pic>;
44                 interrupts = <6>;
45         };
46
47         timer@13000200 {
48                 reg = <0x13000200 0x100>;
49                 interrupt-parent = <&pic>;
50                 interrupts = <7>;
51         };
52
53         pic@14000000 {
54                 compatible = "arm,versatile-fpga-irq";
55                 #interrupt-cells = <1>;
56                 interrupt-controller;
57                 reg = <0x14000000 0x100>;
58                 clear-mask = <0xffffffff>;
59         };
60
61         flash@24000000 {
62                 compatible = "arm,versatile-flash", "cfi-flash";
63                 reg = <0x24000000 0x02000000>;
64                 bank-width = <4>;
65         };
66
67         fpga {
68                 compatible = "simple-bus";
69                 #address-cells = <1>;
70                 #size-cells = <1>;
71                 ranges;
72                 interrupt-parent = <&pic>;
73
74                 /*
75                  * These PrimeCells are in the same locations and using the
76                  * same interrupts in all Integrators, however the silicon
77                  * version deployed is different.
78                  */
79                 rtc@15000000 {
80                         reg = <0x15000000 0x1000>;
81                         interrupts = <8>;
82                 };
83
84                 uart@16000000 {
85                         reg = <0x16000000 0x1000>;
86                         interrupts = <1>;
87                 };
88
89                 uart@17000000 {
90                         reg = <0x17000000 0x1000>;
91                         interrupts = <2>;
92                 };
93
94                 kmi@18000000 {
95                         reg = <0x18000000 0x1000>;
96                         interrupts = <3>;
97                 };
98
99                 kmi@19000000 {
100                         reg = <0x19000000 0x1000>;
101                         interrupts = <4>;
102                 };
103
104                 syscon {
105                         /* Debug registers mapped as syscon */
106                         compatible = "syscon", "simple-mfd";
107                         reg = <0x1a000000 0x10>;
108
109                         led@4.0 {
110                                 compatible = "register-bit-led";
111                                 offset = <0x04>;
112                                 mask = <0x01>;
113                                 label = "integrator:green0";
114                                 linux,default-trigger = "heartbeat";
115                                 default-state = "on";
116                         };
117                         led@4.1 {
118                                 compatible = "register-bit-led";
119                                 offset = <0x04>;
120                                 mask = <0x02>;
121                                 label = "integrator:yellow";
122                                 default-state = "off";
123                         };
124                         led@4.2 {
125                                 compatible = "register-bit-led";
126                                 offset = <0x04>;
127                                 mask = <0x04>;
128                                 label = "integrator:red";
129                                 default-state = "off";
130                         };
131                         led@4.3 {
132                                 compatible = "register-bit-led";
133                                 offset = <0x04>;
134                                 mask = <0x08>;
135                                 label = "integrator:green1";
136                                 default-state = "off";
137                         };
138                 };
139         };
140 };