Skip to content

Commit 367069f

Browse files
committed
Merge branch 'next/dt' of git://git.linaro.org/people/arnd/arm-soc
* 'next/dt' of git://git.linaro.org/people/arnd/arm-soc: ARM: gic: use module.h instead of export.h ARM: gic: fix irq_alloc_descs handling for sparse irq ARM: gic: add OF based initialization ARM: gic: add irq_domain support irq: support domains with non-zero hwirq base of/irq: introduce of_irq_init ARM: at91: add at91sam9g20 and Calao USB A9G20 DT support ARM: at91: dt: at91sam9g45 family and board device tree files arm/mx5: add device tree support for imx51 babbage arm/mx5: add device tree support for imx53 boards ARM: msm: Add devicetree support for msm8660-surf msm_serial: Add devicetree support msm_serial: Use relative resources for iomem Fix up conflicts in arch/arm/mach-at91/{at91sam9260.c,at91sam9g45.c}
2 parents 81a3c10 + c72dbae commit 367069f

41 files changed

Lines changed: 2461 additions & 101 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
i.MX51 Babbage Board
2+
Required root node properties:
3+
- compatible = "fsl,imx51-babbage", "fsl,imx51";
4+
5+
i.MX53 Automotive Reference Design Board
6+
Required root node properties:
7+
- compatible = "fsl,imx53-ard", "fsl,imx53";
8+
9+
i.MX53 Evaluation Kit
10+
Required root node properties:
11+
- compatible = "fsl,imx53-evk", "fsl,imx53";
12+
13+
i.MX53 Quick Start Board
14+
Required root node properties:
15+
- compatible = "fsl,imx53-qsb", "fsl,imx53";
16+
17+
i.MX53 Smart Mobile Reference Design Board
18+
Required root node properties:
19+
- compatible = "fsl,imx53-smd", "fsl,imx53";
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
* ARM Generic Interrupt Controller
2+
3+
ARM SMP cores are often associated with a GIC, providing per processor
4+
interrupts (PPI), shared processor interrupts (SPI) and software
5+
generated interrupts (SGI).
6+
7+
Primary GIC is attached directly to the CPU and typically has PPIs and SGIs.
8+
Secondary GICs are cascaded into the upward interrupt controller and do not
9+
have PPIs or SGIs.
10+
11+
Main node required properties:
12+
13+
- compatible : should be one of:
14+
"arm,cortex-a9-gic"
15+
"arm,arm11mp-gic"
16+
- interrupt-controller : Identifies the node as an interrupt controller
17+
- #interrupt-cells : Specifies the number of cells needed to encode an
18+
interrupt source. The type shall be a <u32> and the value shall be 3.
19+
20+
The 1st cell is the interrupt type; 0 for SPI interrupts, 1 for PPI
21+
interrupts.
22+
23+
The 2nd cell contains the interrupt number for the interrupt type.
24+
SPI interrupts are in the range [0-987]. PPI interrupts are in the
25+
range [0-15].
26+
27+
The 3rd cell is the flags, encoded as follows:
28+
bits[3:0] trigger type and level flags.
29+
1 = low-to-high edge triggered
30+
2 = high-to-low edge triggered
31+
4 = active high level-sensitive
32+
8 = active low level-sensitive
33+
bits[15:8] PPI interrupt cpu mask. Each bit corresponds to each of
34+
the 8 possible cpus attached to the GIC. A bit set to '1' indicated
35+
the interrupt is wired to that CPU. Only valid for PPI interrupts.
36+
37+
- reg : Specifies base physical address(s) and size of the GIC registers. The
38+
first region is the GIC distributor register base and size. The 2nd region is
39+
the GIC cpu interface register base and size.
40+
41+
Optional
42+
- interrupts : Interrupt source of the parent interrupt controller. Only
43+
present on secondary GICs.
44+
45+
Example:
46+
47+
intc: interrupt-controller@fff11000 {
48+
compatible = "arm,cortex-a9-gic";
49+
#interrupt-cells = <3>;
50+
#address-cells = <1>;
51+
interrupt-controller;
52+
reg = <0xfff11000 0x1000>,
53+
<0xfff10100 0x100>;
54+
};
55+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
* Qualcomm MSM UART
2+
3+
Required properties:
4+
- compatible :
5+
- "qcom,msm-uart", and one of "qcom,msm-hsuart" or
6+
"qcom,msm-lsuart".
7+
- reg : offset and length of the register set for the device
8+
for the hsuart operating in compatible mode, there should be a
9+
second pair describing the gsbi registers.
10+
- interrupts : should contain the uart interrupt.
11+
12+
There are two different UART blocks used in MSM devices,
13+
"qcom,msm-hsuart" and "qcom,msm-lsuart". The msm-serial driver is
14+
able to handle both of these, and matches against the "qcom,msm-uart"
15+
as the compatibility.
16+
17+
The registers for the "qcom,msm-hsuart" device need to specify both
18+
register blocks, even for the common driver.
19+
20+
Example:
21+
22+
uart@19c400000 {
23+
compatible = "qcom,msm-hsuart", "qcom,msm-uart";
24+
reg = <0x19c40000 0x1000>,
25+
<0x19c00000 0x1000>;
26+
interrupts = <195>;
27+
};

‎arch/arm/boot/dts/at91sam9g20.dtsi‎

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
/*
2+
* at91sam9g20.dtsi - Device Tree Include file for AT91SAM9G20 family SoC
3+
*
4+
* Copyright (C) 2011 Atmel,
5+
* 2011 Nicolas Ferre <nicolas.ferre@atmel.com>,
6+
* 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
7+
*
8+
* Licensed under GPLv2 or later.
9+
*/
10+
11+
/include/ "skeleton.dtsi"
12+
13+
/ {
14+
model = "Atmel AT91SAM9G20 family SoC";
15+
compatible = "atmel,at91sam9g20";
16+
interrupt-parent = <&aic>;
17+
18+
aliases {
19+
serial0 = &dbgu;
20+
serial1 = &usart0;
21+
serial2 = &usart1;
22+
serial3 = &usart2;
23+
serial4 = &usart3;
24+
serial5 = &usart4;
25+
serial6 = &usart5;
26+
};
27+
cpus {
28+
cpu@0 {
29+
compatible = "arm,arm926ejs";
30+
};
31+
};
32+
33+
memory@20000000 {
34+
reg = <0x20000000 0x08000000>;
35+
};
36+
37+
ahb {
38+
compatible = "simple-bus";
39+
#address-cells = <1>;
40+
#size-cells = <1>;
41+
ranges;
42+
43+
apb {
44+
compatible = "simple-bus";
45+
#address-cells = <1>;
46+
#size-cells = <1>;
47+
ranges;
48+
49+
aic: interrupt-controller@fffff000 {
50+
#interrupt-cells = <1>;
51+
compatible = "atmel,at91rm9200-aic";
52+
interrupt-controller;
53+
interrupt-parent;
54+
reg = <0xfffff000 0x200>;
55+
};
56+
57+
dbgu: serial@fffff200 {
58+
compatible = "atmel,at91sam9260-usart";
59+
reg = <0xfffff200 0x200>;
60+
interrupts = <1>;
61+
status = "disabled";
62+
};
63+
64+
usart0: serial@fffb0000 {
65+
compatible = "atmel,at91sam9260-usart";
66+
reg = <0xfffb0000 0x200>;
67+
interrupts = <6>;
68+
atmel,use-dma-rx;
69+
atmel,use-dma-tx;
70+
status = "disabled";
71+
};
72+
73+
usart1: serial@fffb4000 {
74+
compatible = "atmel,at91sam9260-usart";
75+
reg = <0xfffb4000 0x200>;
76+
interrupts = <7>;
77+
atmel,use-dma-rx;
78+
atmel,use-dma-tx;
79+
status = "disabled";
80+
};
81+
82+
usart2: serial@fffb8000 {
83+
compatible = "atmel,at91sam9260-usart";
84+
reg = <0xfffb8000 0x200>;
85+
interrupts = <8>;
86+
atmel,use-dma-rx;
87+
atmel,use-dma-tx;
88+
status = "disabled";
89+
};
90+
91+
usart3: serial@fffd0000 {
92+
compatible = "atmel,at91sam9260-usart";
93+
reg = <0xfffd0000 0x200>;
94+
interrupts = <23>;
95+
atmel,use-dma-rx;
96+
atmel,use-dma-tx;
97+
status = "disabled";
98+
};
99+
100+
usart4: serial@fffd4000 {
101+
compatible = "atmel,at91sam9260-usart";
102+
reg = <0xfffd4000 0x200>;
103+
interrupts = <24>;
104+
atmel,use-dma-rx;
105+
atmel,use-dma-tx;
106+
status = "disabled";
107+
};
108+
109+
usart5: serial@fffd8000 {
110+
compatible = "atmel,at91sam9260-usart";
111+
reg = <0xfffd8000 0x200>;
112+
interrupts = <25>;
113+
atmel,use-dma-rx;
114+
atmel,use-dma-tx;
115+
status = "disabled";
116+
};
117+
};
118+
};
119+
};

‎arch/arm/boot/dts/at91sam9g45.dtsi‎

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* at91sam9g45.dtsi - Device Tree Include file for AT91SAM9G45 family SoC
3+
* applies to AT91SAM9G45, AT91SAM9M10,
4+
* AT91SAM9G46, AT91SAM9M11 SoC
5+
*
6+
* Copyright (C) 2011 Atmel,
7+
* 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
8+
*
9+
* Licensed under GPLv2 or later.
10+
*/
11+
12+
/include/ "skeleton.dtsi"
13+
14+
/ {
15+
model = "Atmel AT91SAM9G45 family SoC";
16+
compatible = "atmel,at91sam9g45";
17+
interrupt-parent = <&aic>;
18+
19+
aliases {
20+
serial0 = &dbgu;
21+
serial1 = &usart0;
22+
serial2 = &usart1;
23+
serial3 = &usart2;
24+
serial4 = &usart3;
25+
};
26+
cpus {
27+
cpu@0 {
28+
compatible = "arm,arm926ejs";
29+
};
30+
};
31+
32+
memory@70000000 {
33+
reg = <0x70000000 0x10000000>;
34+
};
35+
36+
ahb {
37+
compatible = "simple-bus";
38+
#address-cells = <1>;
39+
#size-cells = <1>;
40+
ranges;
41+
42+
apb {
43+
compatible = "simple-bus";
44+
#address-cells = <1>;
45+
#size-cells = <1>;
46+
ranges;
47+
48+
aic: interrupt-controller@fffff000 {
49+
#interrupt-cells = <1>;
50+
compatible = "atmel,at91rm9200-aic";
51+
interrupt-controller;
52+
interrupt-parent;
53+
reg = <0xfffff000 0x200>;
54+
};
55+
56+
dma: dma-controller@ffffec00 {
57+
compatible = "atmel,at91sam9g45-dma";
58+
reg = <0xffffec00 0x200>;
59+
interrupts = <21>;
60+
};
61+
62+
dbgu: serial@ffffee00 {
63+
compatible = "atmel,at91sam9260-usart";
64+
reg = <0xffffee00 0x200>;
65+
interrupts = <1>;
66+
status = "disabled";
67+
};
68+
69+
usart0: serial@fff8c000 {
70+
compatible = "atmel,at91sam9260-usart";
71+
reg = <0xfff8c000 0x200>;
72+
interrupts = <7>;
73+
atmel,use-dma-rx;
74+
atmel,use-dma-tx;
75+
status = "disabled";
76+
};
77+
78+
usart1: serial@fff90000 {
79+
compatible = "atmel,at91sam9260-usart";
80+
reg = <0xfff90000 0x200>;
81+
interrupts = <8>;
82+
atmel,use-dma-rx;
83+
atmel,use-dma-tx;
84+
status = "disabled";
85+
};
86+
87+
usart2: serial@fff94000 {
88+
compatible = "atmel,at91sam9260-usart";
89+
reg = <0xfff94000 0x200>;
90+
interrupts = <9>;
91+
atmel,use-dma-rx;
92+
atmel,use-dma-tx;
93+
status = "disabled";
94+
};
95+
96+
usart3: serial@fff98000 {
97+
compatible = "atmel,at91sam9260-usart";
98+
reg = <0xfff98000 0x200>;
99+
interrupts = <10>;
100+
atmel,use-dma-rx;
101+
atmel,use-dma-tx;
102+
status = "disabled";
103+
};
104+
};
105+
};
106+
};
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
3+
*
4+
* Copyright (C) 2011 Atmel,
5+
* 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
6+
*
7+
* Licensed under GPLv2 or later.
8+
*/
9+
/dts-v1/;
10+
/include/ "at91sam9g45.dtsi"
11+
12+
/ {
13+
model = "Atmel AT91SAM9M10G45-EK";
14+
compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
15+
16+
chosen {
17+
bootargs = "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap/uboot/kernel)ro,60M(rootfs),-(data) root=/dev/mtdblock1 rw rootfstype=jffs2";
18+
};
19+
20+
memory@70000000 {
21+
reg = <0x70000000 0x4000000>;
22+
};
23+
24+
ahb {
25+
apb {
26+
dbgu: serial@ffffee00 {
27+
status = "okay";
28+
};
29+
30+
usart1: serial@fff90000 {
31+
status = "okay";
32+
};
33+
};
34+
};
35+
};

0 commit comments

Comments
 (0)