aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/berlin2q.dtsi
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@free-electrons.com>2014-04-16 15:18:41 -0400
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-05-19 17:02:18 -0400
commitcedf57fc4f2f67b01b55c11d28820144abe20d17 (patch)
treedfcfa523c2ee46335c2d8ed98d118e321623198d /arch/arm/boot/dts/berlin2q.dtsi
parent0bd4b3461b6d4d562520222cdb70bc826f7a225f (diff)
ARM: dts: berlin: add the BG2Q GPIO nodes
The Marvell Berlin BG2Q has 6 GPIO ports compatible with the snps,dw-apb-gpio driver. This patch adds the corresponding device tree nodes. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Reviewed-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/berlin2q.dtsi')
-rw-r--r--arch/arm/boot/dts/berlin2q.dtsi102
1 files changed, 102 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
index 86d8a2c49f38..52c7d644e492 100644
--- a/arch/arm/boot/dts/berlin2q.dtsi
+++ b/arch/arm/boot/dts/berlin2q.dtsi
@@ -114,6 +114,78 @@
114 ranges = <0 0xe80000 0x10000>; 114 ranges = <0 0xe80000 0x10000>;
115 interrupt-parent = <&aic>; 115 interrupt-parent = <&aic>;
116 116
117 gpio0: gpio@0400 {
118 compatible = "snps,dw-apb-gpio";
119 reg = <0x0400 0x400>;
120 #address-cells = <1>;
121 #size-cells = <0>;
122
123 porta: gpio-port@0 {
124 compatible = "snps,dw-apb-gpio-port";
125 gpio-controller;
126 #gpio-cells = <2>;
127 snps,nr-gpios = <32>;
128 reg = <0>;
129 interrupt-controller;
130 #interrupt-cells = <2>;
131 interrupts = <0>;
132 };
133 };
134
135 gpio1: gpio@0800 {
136 compatible = "snps,dw-apb-gpio";
137 reg = <0x0800 0x400>;
138 #address-cells = <1>;
139 #size-cells = <0>;
140
141 portb: gpio-port@1 {
142 compatible = "snps,dw-apb-gpio-port";
143 gpio-controller;
144 #gpio-cells = <2>;
145 snps,nr-gpios = <32>;
146 reg = <0>;
147 interrupt-controller;
148 #interrupt-cells = <2>;
149 interrupts = <1>;
150 };
151 };
152
153 gpio2: gpio@0c00 {
154 compatible = "snps,dw-apb-gpio";
155 reg = <0x0c00 0x400>;
156 #address-cells = <1>;
157 #size-cells = <0>;
158
159 portc: gpio-port@2 {
160 compatible = "snps,dw-apb-gpio-port";
161 gpio-controller;
162 #gpio-cells = <2>;
163 snps,nr-gpios = <32>;
164 reg = <0>;
165 interrupt-controller;
166 #interrupt-cells = <2>;
167 interrupts = <2>;
168 };
169 };
170
171 gpio3: gpio@1000 {
172 compatible = "snps,dw-apb-gpio";
173 reg = <0x1000 0x400>;
174 #address-cells = <1>;
175 #size-cells = <0>;
176
177 portd: gpio-port@3 {
178 compatible = "snps,dw-apb-gpio-port";
179 gpio-controller;
180 #gpio-cells = <2>;
181 snps,nr-gpios = <32>;
182 reg = <0>;
183 interrupt-controller;
184 #interrupt-cells = <2>;
185 interrupts = <3>;
186 };
187 };
188
117 timer0: timer@2c00 { 189 timer0: timer@2c00 {
118 compatible = "snps,dw-apb-timer"; 190 compatible = "snps,dw-apb-timer";
119 reg = <0x2c00 0x14>; 191 reg = <0x2c00 0x14>;
@@ -186,6 +258,36 @@
186 interrupt-parent = <&gic>; 258 interrupt-parent = <&gic>;
187 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 259 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
188 }; 260 };
261
262 gpio4: gpio@5000 {
263 compatible = "snps,dw-apb-gpio";
264 reg = <0x5000 0x400>;
265 #address-cells = <1>;
266 #size-cells = <0>;
267
268 porte: gpio-port@4 {
269 compatible = "snps,dw-apb-gpio-port";
270 gpio-controller;
271 #gpio-cells = <2>;
272 snps,nr-gpios = <32>;
273 reg = <0>;
274 };
275 };
276
277 gpio5: gpio@c000 {
278 compatible = "snps,dw-apb-gpio";
279 reg = <0xc000 0x400>;
280 #address-cells = <1>;
281 #size-cells = <0>;
282
283 portf: gpio-port@5 {
284 compatible = "snps,dw-apb-gpio-port";
285 gpio-controller;
286 #gpio-cells = <2>;
287 snps,nr-gpios = <32>;
288 reg = <0>;
289 };
290 };
189 }; 291 };
190 292
191 generic-regs@ea0110 { 293 generic-regs@ea0110 {