diff options
author | Olof Johansson <olof@lixom.net> | 2014-07-30 15:54:57 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-07-30 15:54:57 -0400 |
commit | 8b510129bad3974dda864466b5d811c6527dab3d (patch) | |
tree | 3e8e4d2870bc3b5c407acff4535339080231e7f0 | |
parent | ae171be4e08b86bb24b3591be49d6e29940abff8 (diff) | |
parent | 6a3246c02e7bcb16a58f3fcee4662a9b36ea80e9 (diff) |
Merge tag 'zynq-dt-for-3.17-3' of git://git.xilinx.com/linux-xlnx into next/dt
Merge "Xilinx Zynq dt changes for v3.17 - third pull request" from Michal
Simek:
arm: Xilinx Zynq dt patches for v3.17 third pull request
- Add Adapteva Parallella board/DT
- Add SPI nodes
- Add CAN nodes
- Clean Zynq description
* tag 'zynq-dt-for-3.17-3' of git://git.xilinx.com/linux-xlnx:
ARM: zynq: DT: Clarify Xilinx Zynq platform
ARM: zynq: DT: Remove DMA from board DTs
ARM: zynq: DT: Add CAN node
ARM: dts: zynq: Add SPI
ARM: dts: zynq: Add DMAC for Parallella
ARM: dts: zynq: Add Parallella device tree
Documentation: devicetree: Adapteva boards
Documentation: devicetree: Adapteva vendor prefix
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | Documentation/devicetree/bindings/arm/adapteva.txt | 7 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/arm/xilinx.txt | 8 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/vendor-prefixes.txt | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/Makefile | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/zynq-7000.dtsi | 66 | ||||
-rw-r--r-- | arch/arm/boot/dts/zynq-parallella.dts | 64 | ||||
-rw-r--r-- | arch/arm/boot/dts/zynq-zc702.dts | 4 |
7 files changed, 148 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/arm/adapteva.txt b/Documentation/devicetree/bindings/arm/adapteva.txt new file mode 100644 index 000000000000..1d8af9e36065 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/adapteva.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | Adapteva Platforms Device Tree Bindings | ||
2 | --------------------------------------- | ||
3 | |||
4 | Parallella board | ||
5 | |||
6 | Required root node properties: | ||
7 | - compatible = "adapteva,parallella"; | ||
diff --git a/Documentation/devicetree/bindings/arm/xilinx.txt b/Documentation/devicetree/bindings/arm/xilinx.txt index 6f1ed830b4f7..1f7995357888 100644 --- a/Documentation/devicetree/bindings/arm/xilinx.txt +++ b/Documentation/devicetree/bindings/arm/xilinx.txt | |||
@@ -1,7 +1,7 @@ | |||
1 | Xilinx Zynq EP107 Emulation Platform board | 1 | Xilinx Zynq Platforms Device Tree Bindings |
2 | 2 | ||
3 | This board is an emulation platform for the Zynq product which is | 3 | Boards with Zynq-7000 SOC based on an ARM Cortex A9 processor |
4 | based on an ARM Cortex A9 processor. | 4 | shall have the following properties. |
5 | 5 | ||
6 | Required root node properties: | 6 | Required root node properties: |
7 | - compatible = "xlnx,zynq-ep107"; | 7 | - compatible = "xlnx,zynq-7000"; |
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 8ad36468234b..4257f3f98c3d 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt | |||
@@ -6,6 +6,7 @@ using them to avoid name-space collisions. | |||
6 | abilis Abilis Systems | 6 | abilis Abilis Systems |
7 | active-semi Active-Semi International Inc | 7 | active-semi Active-Semi International Inc |
8 | ad Avionic Design GmbH | 8 | ad Avionic Design GmbH |
9 | adapteva Adapteva, Inc. | ||
9 | adi Analog Devices, Inc. | 10 | adi Analog Devices, Inc. |
10 | aeroflexgaisler Aeroflex Gaisler AB | 11 | aeroflexgaisler Aeroflex Gaisler AB |
11 | ak Asahi Kasei Corp. | 12 | ak Asahi Kasei Corp. |
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 56751bf0c8ed..0afe09a6bf51 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -458,7 +458,9 @@ dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \ | |||
458 | wm8650-mid.dtb \ | 458 | wm8650-mid.dtb \ |
459 | wm8750-apc8750.dtb \ | 459 | wm8750-apc8750.dtb \ |
460 | wm8850-w70v2.dtb | 460 | wm8850-w70v2.dtb |
461 | dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \ | 461 | dtb-$(CONFIG_ARCH_ZYNQ) += \ |
462 | zynq-parallella.dtb \ | ||
463 | zynq-zc702.dtb \ | ||
462 | zynq-zc706.dtb \ | 464 | zynq-zc706.dtb \ |
463 | zynq-zed.dtb | 465 | zynq-zed.dtb |
464 | dtb-$(CONFIG_MACH_ARMADA_370) += \ | 466 | dtb-$(CONFIG_MACH_ARMADA_370) += \ |
diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi index 366ca6434f54..6cc83d4c6c76 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi | |||
@@ -71,7 +71,31 @@ | |||
71 | interrupts = <0 7 4>; | 71 | interrupts = <0 7 4>; |
72 | interrupt-parent = <&intc>; | 72 | interrupt-parent = <&intc>; |
73 | clocks = <&clkc 12>; | 73 | clocks = <&clkc 12>; |
74 | }; | 74 | }; |
75 | |||
76 | can0: can@e0008000 { | ||
77 | compatible = "xlnx,zynq-can-1.0"; | ||
78 | status = "disabled"; | ||
79 | clocks = <&clkc 19>, <&clkc 36>; | ||
80 | clock-names = "can_clk", "pclk"; | ||
81 | reg = <0xe0008000 0x1000>; | ||
82 | interrupts = <0 28 4>; | ||
83 | interrupt-parent = <&intc>; | ||
84 | tx-fifo-depth = <0x40>; | ||
85 | rx-fifo-depth = <0x40>; | ||
86 | }; | ||
87 | |||
88 | can1: can@e0009000 { | ||
89 | compatible = "xlnx,zynq-can-1.0"; | ||
90 | status = "disabled"; | ||
91 | clocks = <&clkc 20>, <&clkc 37>; | ||
92 | clock-names = "can_clk", "pclk"; | ||
93 | reg = <0xe0009000 0x1000>; | ||
94 | interrupts = <0 51 4>; | ||
95 | interrupt-parent = <&intc>; | ||
96 | tx-fifo-depth = <0x40>; | ||
97 | rx-fifo-depth = <0x40>; | ||
98 | }; | ||
75 | 99 | ||
76 | gpio0: gpio@e000a000 { | 100 | gpio0: gpio@e000a000 { |
77 | compatible = "xlnx,zynq-gpio-1.0"; | 101 | compatible = "xlnx,zynq-gpio-1.0"; |
@@ -140,6 +164,30 @@ | |||
140 | interrupts = <0 50 4>; | 164 | interrupts = <0 50 4>; |
141 | }; | 165 | }; |
142 | 166 | ||
167 | spi0: spi@e0006000 { | ||
168 | compatible = "xlnx,zynq-spi-r1p6"; | ||
169 | reg = <0xe0006000 0x1000>; | ||
170 | status = "disabled"; | ||
171 | interrupt-parent = <&intc>; | ||
172 | interrupts = <0 26 4>; | ||
173 | clocks = <&clkc 25>, <&clkc 34>; | ||
174 | clock-names = "ref_clk", "pclk"; | ||
175 | #address-cells = <1>; | ||
176 | #size-cells = <0>; | ||
177 | }; | ||
178 | |||
179 | spi1: spi@e0007000 { | ||
180 | compatible = "xlnx,zynq-spi-r1p6"; | ||
181 | reg = <0xe0007000 0x1000>; | ||
182 | status = "disabled"; | ||
183 | interrupt-parent = <&intc>; | ||
184 | interrupts = <0 49 4>; | ||
185 | clocks = <&clkc 26>, <&clkc 35>; | ||
186 | clock-names = "ref_clk", "pclk"; | ||
187 | #address-cells = <1>; | ||
188 | #size-cells = <0>; | ||
189 | }; | ||
190 | |||
143 | gem0: ethernet@e000b000 { | 191 | gem0: ethernet@e000b000 { |
144 | compatible = "cdns,gem"; | 192 | compatible = "cdns,gem"; |
145 | reg = <0xe000b000 0x4000>; | 193 | reg = <0xe000b000 0x4000>; |
@@ -204,6 +252,22 @@ | |||
204 | }; | 252 | }; |
205 | }; | 253 | }; |
206 | 254 | ||
255 | dmac_s: dmac@f8003000 { | ||
256 | compatible = "arm,pl330", "arm,primecell"; | ||
257 | reg = <0xf8003000 0x1000>; | ||
258 | interrupt-parent = <&intc>; | ||
259 | interrupts = <0 13 4>, | ||
260 | <0 14 4>, <0 15 4>, | ||
261 | <0 16 4>, <0 17 4>, | ||
262 | <0 40 4>, <0 41 4>, | ||
263 | <0 42 4>, <0 43 4>; | ||
264 | #dma-cells = <1>; | ||
265 | #dma-channels = <8>; | ||
266 | #dma-requests = <4>; | ||
267 | clocks = <&clkc 27>; | ||
268 | clock-names = "apb_pclk"; | ||
269 | }; | ||
270 | |||
207 | devcfg: devcfg@f8007000 { | 271 | devcfg: devcfg@f8007000 { |
208 | compatible = "xlnx,zynq-devcfg-1.0"; | 272 | compatible = "xlnx,zynq-devcfg-1.0"; |
209 | reg = <0xf8007000 0x100>; | 273 | reg = <0xf8007000 0x100>; |
diff --git a/arch/arm/boot/dts/zynq-parallella.dts b/arch/arm/boot/dts/zynq-parallella.dts new file mode 100644 index 000000000000..41afd9da6876 --- /dev/null +++ b/arch/arm/boot/dts/zynq-parallella.dts | |||
@@ -0,0 +1,64 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2014 SUSE LINUX Products GmbH | ||
3 | * | ||
4 | * Derived from zynq-zed.dts: | ||
5 | * | ||
6 | * Copyright (C) 2011 Xilinx | ||
7 | * Copyright (C) 2012 National Instruments Corp. | ||
8 | * Copyright (C) 2013 Xilinx | ||
9 | * | ||
10 | * This software is licensed under the terms of the GNU General Public | ||
11 | * License version 2, as published by the Free Software Foundation, and | ||
12 | * may be copied, distributed, and modified under those terms. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | */ | ||
19 | /dts-v1/; | ||
20 | /include/ "zynq-7000.dtsi" | ||
21 | |||
22 | / { | ||
23 | model = "Adapteva Parallella Board"; | ||
24 | compatible = "adapteva,parallella", "xlnx,zynq-7000"; | ||
25 | |||
26 | memory { | ||
27 | device_type = "memory"; | ||
28 | reg = <0 0x40000000>; | ||
29 | }; | ||
30 | |||
31 | chosen { | ||
32 | bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait"; | ||
33 | linux,stdout-path = "/amba/serial@e0001000"; | ||
34 | }; | ||
35 | }; | ||
36 | |||
37 | &gem0 { | ||
38 | status = "okay"; | ||
39 | phy-mode = "rgmii-id"; | ||
40 | phy-handle = <ðernet_phy>; | ||
41 | #address-cells = <1>; | ||
42 | #size-cells = <0>; | ||
43 | |||
44 | ethernet_phy: ethernet-phy@0 { | ||
45 | /* Marvell 88E1318 */ | ||
46 | compatible = "ethernet-phy-id0141.0e90", | ||
47 | "ethernet-phy-ieee802.3-c22"; | ||
48 | reg = <0>; | ||
49 | marvell,reg-init = <0x3 0x10 0xff00 0x1e>, | ||
50 | <0x3 0x11 0xfff0 0xa>; | ||
51 | }; | ||
52 | }; | ||
53 | |||
54 | &i2c0 { | ||
55 | status = "okay"; | ||
56 | }; | ||
57 | |||
58 | &sdhci1 { | ||
59 | status = "okay"; | ||
60 | }; | ||
61 | |||
62 | &uart1 { | ||
63 | status = "okay"; | ||
64 | }; | ||
diff --git a/arch/arm/boot/dts/zynq-zc702.dts b/arch/arm/boot/dts/zynq-zc702.dts index 5e09cee33d42..835c3089c61c 100644 --- a/arch/arm/boot/dts/zynq-zc702.dts +++ b/arch/arm/boot/dts/zynq-zc702.dts | |||
@@ -29,6 +29,10 @@ | |||
29 | 29 | ||
30 | }; | 30 | }; |
31 | 31 | ||
32 | &can0 { | ||
33 | status = "okay"; | ||
34 | }; | ||
35 | |||
32 | &gem0 { | 36 | &gem0 { |
33 | status = "okay"; | 37 | status = "okay"; |
34 | phy-mode = "rgmii"; | 38 | phy-mode = "rgmii"; |