Skip to content

Commit e06f1a9

Browse files
Josh CartwrightMichal Simek
authored andcommitted
ARM: zynq: dts: split up device tree
The purpose of the created zynq-7000.dtsi file is to describe the hardware common to all Zynq 7000-based boards. Also, get rid of the zynq-ep107 device tree, since it is not hardware anyone can purchase. Add a zc702 dts file based on the zynq-7000.dtsi. Add it to the dts/Makefile so it is built with the 'dtbs' target. Signed-off-by: Josh Cartwright <josh.cartwright@ni.com> Acked-by: Michal Simek <michal.simek@xilinx.com>
1 parent aaf5e0b commit e06f1a9

4 files changed

Lines changed: 36 additions & 17 deletions

File tree

‎arch/arm/boot/dts/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,6 @@ dtb-$(CONFIG_ARCH_VEXPRESS) += vexpress-v2p-ca5s.dtb \
103103
dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \
104104
wm8505-ref.dtb \
105105
wm8650-mid.dtb
106+
dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb
106107

107108
endif
Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,16 @@
1010
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111
* GNU General Public License for more details.
1212
*/
13+
/include/ "skeleton.dtsi"
1314

14-
/dts-v1/;
1515
/ {
16-
model = "Xilinx Zynq EP107";
17-
compatible = "xlnx,zynq-ep107";
18-
#address-cells = <1>;
19-
#size-cells = <1>;
20-
interrupt-parent = <&intc>;
21-
22-
memory {
23-
device_type = "memory";
24-
reg = <0x0 0x10000000>;
25-
};
26-
27-
chosen {
28-
bootargs = "console=ttyPS0,9600 root=/dev/ram rw initrd=0x800000,8M earlyprintk";
29-
linux,stdout-path = &uart0;
30-
};
16+
compatible = "xlnx,zynq-7000";
3117

3218
amba {
3319
compatible = "simple-bus";
3420
#address-cells = <1>;
3521
#size-cells = <1>;
22+
interrupt-parent = <&intc>;
3623
ranges;
3724

3825
intc: interrupt-controller@f8f01000 {

‎arch/arm/boot/dts/zynq-zc702.dts‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (C) 2011 Xilinx
3+
* Copyright (C) 2012 National Instruments Corp.
4+
*
5+
* This software is licensed under the terms of the GNU General Public
6+
* License version 2, as published by the Free Software Foundation, and
7+
* may be copied, distributed, and modified under those terms.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*/
14+
/dts-v1/;
15+
/include/ "zynq-7000.dtsi"
16+
17+
/ {
18+
model = "Zynq ZC702 Development Board";
19+
compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000";
20+
21+
memory {
22+
device_type = "memory";
23+
reg = <0x0 0x40000000>;
24+
};
25+
26+
chosen {
27+
bootargs = "console=ttyPS1,115200 earlyprintk";
28+
};
29+
30+
};

‎arch/arm/mach-zynq/common.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ static void __init xilinx_map_io(void)
115115
}
116116

117117
static const char *xilinx_dt_match[] = {
118-
"xlnx,zynq-ep107",
118+
"xlnx,zynq-zc702",
119+
"xlnx,zynq-7000",
119120
NULL
120121
};
121122

0 commit comments

Comments
 (0)