Skip to content

Commit d027db1

Browse files
committed
Merge tag 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC updates from Olof Johansson: "This contains the bulk of new SoC development for this merge window. Two new platforms have been added, the sunxi platforms (Allwinner A1x SoCs) by Maxime Ripard, and a generic Broadcom platform for a new series of ARMv7 platforms from them, where the hope is that we can keep the platform code generic enough to have them all share one mach directory. The new Broadcom platform is contributed by Christian Daudt. Highbank has grown support for Calxeda's next generation of hardware, ECX-2000. clps711x has seen a lot of cleanup from Alexander Shiyan, and he's also taken on maintainership of the platform. Beyond this there has been a bunch of work from a number of people on converting more platforms to IRQ domains, pinctrl conversion, cleanup and general feature enablement across most of the active platforms." Fix up trivial conflicts as per Olof. * tag 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (174 commits) mfd: vexpress-sysreg: Remove LEDs code irqchip: irq-sunxi: Add terminating entry for sunxi_irq_dt_ids clocksource: sunxi_timer: Add terminating entry for sunxi_timer_dt_ids irq: versatile: delete dangling variable ARM: sunxi: add missing include for mdelay() ARM: EXYNOS: Avoid early use of of_machine_is_compatible() ARM: dts: add node for PL330 MDMA1 controller for exynos4 ARM: EXYNOS: Add support for secondary CPU bring-up on Exynos4412 ARM: EXYNOS: add UART3 to DEBUG_LL ports ARM: S3C24XX: Add clkdev entry for camif-upll clock ARM: SAMSUNG: Add s3c24xx/s3c64xx CAMIF GPIO setup helpers ARM: sunxi: Add missing sun4i.dtsi file pinctrl: samsung: Do not initialise statics to 0 ARM i.MX6: remove gate_mask from pllv3 ARM i.MX6: Fix ethernet PLL clocks ARM i.MX6: rename PLLs according to datasheet ARM i.MX6: Add pwm support ARM i.MX51: Add pwm support ARM i.MX53: Add pwm support ARM: mx5: Replace clk_register_clkdev with clock DT lookup ...
2 parents d01e4af + 5faf7cb commit d027db1

270 files changed

Lines changed: 10139 additions & 10616 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/arm/sunxi/README‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ARM Allwinner SoCs
2+
==================
3+
4+
This document lists all the ARM Allwinner SoCs that are currently
5+
supported in mainline by the Linux kernel. This document will also
6+
provide links to documentation and or datasheet for these SoCs.
7+
8+
SunXi family
9+
------------
10+
11+
Flavors:
12+
Allwinner A10 (sun4i)
13+
Datasheet : http://dl.linux-sunxi.org/A10/A10%20Datasheet%20-%20v1.21%20%282012-04-06%29.pdf
14+
15+
Allwinner A13 (sun5i)
16+
Datasheet : http://dl.linux-sunxi.org/A13/A13%20Datasheet%20-%20v1.12%20%282012-03-29%29.pdf
17+
18+
Core: Cortex A8
19+
Linux kernel mach directory: arch/arm/mach-sunxi
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Broadcom BCM11351 device tree bindings
2+
-------------------------------------------
3+
4+
Boards with the bcm281xx SoC family (which includes bcm11130, bcm11140,
5+
bcm11351, bcm28145, bcm28155 SoCs) shall have the following properties:
6+
7+
Required root node property:
8+
9+
compatible = "bcm,bcm11351";
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
Calxeda Highbank Platforms Device Tree Bindings
1+
Calxeda Platforms Device Tree Bindings
22
-----------------------------------------------
33

4-
Boards with Calxeda Cortex-A9 based Highbank SOC shall have the following
5-
properties.
4+
Boards with Calxeda Cortex-A9 based ECX-1000 (Highbank) SOC shall have the
5+
following properties.
66

77
Required root node properties:
88
- compatible = "calxeda,highbank";
9+
10+
11+
Boards with Calxeda Cortex-A15 based ECX-2000 SOC shall have the following
12+
properties.
13+
14+
Required root node properties:
15+
- compatible = "calxeda,ecx-2000";
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
ARM Versatile Express system registers
2+
--------------------------------------
3+
4+
This is a system control registers block, providing multiple low level
5+
platform functions like board detection and identification, software
6+
interrupt generation, MMC and NOR Flash control etc.
7+
8+
Required node properties:
9+
- compatible value : = "arm,vexpress,sysreg";
10+
- reg : physical base address and the size of the registers window
11+
- gpio-controller : specifies that the node is a GPIO controller
12+
- #gpio-cells : size of the GPIO specifier, should be 2:
13+
- first cell is the pseudo-GPIO line number:
14+
0 - MMC CARDIN
15+
1 - MMC WPROT
16+
2 - NOR FLASH WPn
17+
- second cell can take standard GPIO flags (currently ignored).
18+
19+
Example:
20+
v2m_sysreg: sysreg@10000000 {
21+
compatible = "arm,vexpress-sysreg";
22+
reg = <0x10000000 0x1000>;
23+
gpio-controller;
24+
#gpio-cells = <2>;
25+
};
26+
27+
This block also can also act a bridge to the platform's configuration
28+
bus via "system control" interface, addressing devices with site number,
29+
position in the board stack, config controller, function and device
30+
numbers - see motherboard's TRM for more details.
31+
32+
The node describing a config device must refer to the sysreg node via
33+
"arm,vexpress,config-bridge" phandle (can be also defined in the node's
34+
parent) and relies on the board topology properties - see main vexpress
35+
node documentation for more details. It must must also define the
36+
following property:
37+
- arm,vexpress-sysreg,func : must contain two cells:
38+
- first cell defines function number (eg. 1 for clock generator,
39+
2 for voltage regulators etc.)
40+
- device number (eg. osc 0, osc 1 etc.)
41+
42+
Example:
43+
mcc {
44+
arm,vexpress,config-bridge = <&v2m_sysreg>;
45+
46+
osc@0 {
47+
compatible = "arm,vexpress-osc";
48+
arm,vexpress-sysreg,func = <1 0>;
49+
};
50+
};

‎Documentation/devicetree/bindings/arm/vexpress.txt‎

Lines changed: 88 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ the motherboard file using a /include/ directive. As the motherboard
1111
can be initialized in one of two different configurations ("memory
1212
maps"), care must be taken to include the correct one.
1313

14+
15+
Root node
16+
---------
17+
1418
Required properties in the root node:
1519
- compatible value:
1620
compatible = "arm,vexpress,<model>", "arm,vexpress";
@@ -45,6 +49,10 @@ Optional properties in the root node:
4549
- Coretile Express A9x4 (V2P-CA9) HBI-0225:
4650
arm,hbi = <0x225>;
4751

52+
53+
CPU nodes
54+
---------
55+
4856
Top-level standard "cpus" node is required. It must contain a node
4957
with device_type = "cpu" property for every available core, eg.:
5058

@@ -59,6 +67,52 @@ with device_type = "cpu" property for every available core, eg.:
5967
};
6068
};
6169

70+
71+
Configuration infrastructure
72+
----------------------------
73+
74+
The platform has an elaborated configuration system, consisting of
75+
microcontrollers residing on the mother- and daughterboards known
76+
as Motherboard/Daughterboard Configuration Controller (MCC and DCC).
77+
The controllers are responsible for the platform initialization
78+
(reset generation, flash programming, FPGA bitfiles loading etc.)
79+
but also control clock generators, voltage regulators, gather
80+
environmental data like temperature, power consumption etc. Even
81+
the video output switch (FPGA) is controlled that way.
82+
83+
Nodes describing devices controlled by this infrastructure should
84+
point at the bridge device node:
85+
- bridge phandle:
86+
arm,vexpress,config-bridge = <phandle>;
87+
This property can be also defined in a parent node (eg. for a DCC)
88+
and is effective for all children.
89+
90+
91+
Platform topology
92+
-----------------
93+
94+
As Versatile Express can be configured in number of physically
95+
different setups, the device tree should describe platform topology.
96+
Root node and main motherboard node must define the following
97+
property, describing physical location of the children nodes:
98+
- site number:
99+
arm,vexpress,site = <number>;
100+
where 0 means motherboard, 1 or 2 are daugtherboard sites,
101+
0xf means "master" site (site containing main CPU tile)
102+
- when daughterboards are stacked on one site, their position
103+
in the stack be be described with:
104+
arm,vexpress,position = <number>;
105+
- when describing tiles consisting more than one DCC, its number
106+
can be described with:
107+
arm,vexpress,dcc = <number>;
108+
109+
Any of the numbers above defaults to zero if not defined in
110+
the node or any of its parent.
111+
112+
113+
Motherboard
114+
-----------
115+
62116
The motherboard description file provides a single "motherboard" node
63117
using 2 address cells corresponding to the Static Memory Bus used
64118
between the motherboard and the tile. The first cell defines the Chip
@@ -87,22 +141,30 @@ can be used to obtain required phandle in the tile's "aliases" node:
87141
- SP804 timers:
88142
v2m_timer01 and v2m_timer23
89143

90-
Current Linux implementation requires a "arm,v2m_timer" alias
91-
pointing at one of the motherboard's SP804 timers, if it is to be
92-
used as the system timer. This alias should be defined in the
93-
motherboard files.
144+
The tile description should define a "smb" node, describing the
145+
Static Memory Bus between the tile and motherboard. It must define
146+
the following properties:
147+
- "simple-bus" compatible value (to ensure creation of the children)
148+
compatible = "simple-bus";
149+
- mapping of the SMB CS/offset addresses into main address space:
150+
#address-cells = <2>;
151+
#size-cells = <1>;
152+
ranges = <...>;
153+
- interrupts mapping:
154+
#interrupt-cells = <1>;
155+
interrupt-map-mask = <0 0 63>;
156+
interrupt-map = <...>;
94157

95-
The tile description must define "ranges", "interrupt-map-mask" and
96-
"interrupt-map" properties to translate the motherboard's address
97-
and interrupt space into one used by the tile's processor.
98158

99-
Abbreviated example:
159+
Example of a VE tile description (simplified)
160+
---------------------------------------------
100161

101162
/dts-v1/;
102163

103164
/ {
104165
model = "V2P-CA5s";
105166
arm,hbi = <0x225>;
167+
arm,vexpress,site = <0xf>;
106168
compatible = "arm,vexpress-v2p-ca5s", "arm,vexpress";
107169
interrupt-parent = <&gic>;
108170
#address-cells = <1>;
@@ -134,13 +196,29 @@ Abbreviated example:
134196
<0x2c000100 0x100>;
135197
};
136198

137-
motherboard {
199+
dcc {
200+
compatible = "simple-bus";
201+
arm,vexpress,config-bridge = <&v2m_sysreg>;
202+
203+
osc@0 {
204+
compatible = "arm,vexpress-osc";
205+
};
206+
};
207+
208+
smb {
209+
compatible = "simple-bus";
210+
211+
#address-cells = <2>;
212+
#size-cells = <1>;
138213
/* CS0 is visible at 0x08000000 */
139214
ranges = <0 0 0x08000000 0x04000000>;
215+
216+
#interrupt-cells = <1>;
140217
interrupt-map-mask = <0 0 63>;
141218
/* Active high IRQ 0 is connected to GIC's SPI0 */
142219
interrupt-map = <0 0 0 &gic 0 0 4>;
220+
221+
/include/ "vexpress-v2m-rs1.dtsi"
143222
};
144223
};
145224

146-
/include/ "vexpress-v2m-rs1.dtsi"

0 commit comments

Comments
 (0)