Skip to content

Commit 417992d

Browse files
gsmechertmlind
authored andcommitted
ARM: dts: ti81xx: Add dts boilerplate for all GPIO and SPI peripherals
GPIO3/4 and MCSPI2/3/4 are now present. Lightly tested on am3874 platform. Signed-off-by: Graeme Smecher <gsmecher@threespeedlogic.com> [tony@atomide.com: split to apply hwmod and dts changes separately] Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent d27cda2 commit 417992d

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

arch/arm/boot/dts/dm814x.dtsi

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,30 @@
222222
#interrupt-cells = <2>;
223223
};
224224

225+
gpio3: gpio@1ac000 {
226+
compatible = "ti,omap4-gpio";
227+
ti,hwmods = "gpio3";
228+
ti,gpio-always-on;
229+
reg = <0x1ac000 0x2000>;
230+
interrupts = <32>;
231+
gpio-controller;
232+
#gpio-cells = <2>;
233+
interrupt-controller;
234+
#interrupt-cells = <2>;
235+
};
236+
237+
gpio4: gpio@1ae000 {
238+
compatible = "ti,omap4-gpio";
239+
ti,hwmods = "gpio4";
240+
ti,gpio-always-on;
241+
reg = <0x1ae000 0x2000>;
242+
interrupts = <62>;
243+
gpio-controller;
244+
#gpio-cells = <2>;
245+
interrupt-controller;
246+
#interrupt-cells = <2>;
247+
};
248+
225249
i2c2: i2c@2a000 {
226250
compatible = "ti,omap4-i2c";
227251
#address-cells = <1>;
@@ -240,10 +264,48 @@
240264
ti,spi-num-cs = <4>;
241265
ti,hwmods = "mcspi1";
242266
dmas = <&edma 16 0 &edma 17 0
243-
&edma 18 0 &edma 19 0>;
267+
&edma 18 0 &edma 19 0
268+
&edma 20 0 &edma 21 0
269+
&edma 22 0 &edma 23 0>;
270+
271+
dma-names = "tx0", "rx0", "tx1", "rx1",
272+
"tx2", "rx2", "tx3", "rx3";
273+
};
274+
275+
mcspi2: spi@1a0000 {
276+
compatible = "ti,omap4-mcspi";
277+
reg = <0x1a0000 0x1000>;
278+
#address-cells = <1>;
279+
#size-cells = <0>;
280+
interrupts = <125>;
281+
ti,spi-num-cs = <4>;
282+
ti,hwmods = "mcspi2";
283+
dmas = <&edma 42 0 &edma 43 0
284+
&edma 44 0 &edma 45 0>;
244285
dma-names = "tx0", "rx0", "tx1", "rx1";
245286
};
246287

288+
/* Board must configure dmas with edma_xbar for EDMA */
289+
mcspi3: spi@1a2000 {
290+
compatible = "ti,omap4-mcspi";
291+
reg = <0x1a2000 0x1000>;
292+
#address-cells = <1>;
293+
#size-cells = <0>;
294+
interrupts = <126>;
295+
ti,spi-num-cs = <4>;
296+
ti,hwmods = "mcspi3";
297+
};
298+
299+
mcspi4: spi@1a4000 {
300+
compatible = "ti,omap4-mcspi";
301+
reg = <0x1a4000 0x1000>;
302+
#address-cells = <1>;
303+
#size-cells = <0>;
304+
interrupts = <127>;
305+
ti,spi-num-cs = <4>;
306+
ti,hwmods = "mcspi4";
307+
};
308+
247309
timer1: timer@2e000 {
248310
compatible = "ti,dm814-timer";
249311
reg = <0x2e000 0x2000>;

0 commit comments

Comments
 (0)