diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2016-02-24 00:00:34 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-03-06 20:04:03 +1000 |
commit | 1787653f62af023587a18c0a4da8c9472c2c99ed (patch) | |
tree | 9c08d1e951481ae3c704ad137f41d8a4c5a5a929 | |
parent | a6a32d6b80b218363e1c4dc147af124f55b89033 (diff) | |
download | meta-xilinx-1787653f62af023587a18c0a4da8c9472c2c99ed.tar.gz |
qemuzynq: Rework device tree to use kernel source include
* Rework the qemuzynq.dts device tree to use the kernel source include
'zynq-7000.dtsi'
* Store the new device tree in the device-tree recipe directory
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r-- | conf/machine/qemuzynq.conf | 5 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/qemu/qemuzynq.dts | 87 |
2 files changed, 88 insertions, 4 deletions
diff --git a/conf/machine/qemuzynq.conf b/conf/machine/qemuzynq.conf index 13914392..5c622560 100644 --- a/conf/machine/qemuzynq.conf +++ b/conf/machine/qemuzynq.conf | |||
@@ -11,10 +11,7 @@ EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native" | |||
11 | 11 | ||
12 | SERIAL_CONSOLE = "115200 ttyPS0" | 12 | SERIAL_CONSOLE = "115200 ttyPS0" |
13 | 13 | ||
14 | MACHINE_DEVICETREE := " \ | 14 | MACHINE_DEVICETREE = "qemu/qemuzynq.dts" |
15 | qemu/qemuzynq.dts \ | ||
16 | qemu/qemuzynq-base.dtsi \ | ||
17 | " | ||
18 | 15 | ||
19 | # Use the networking setup from qemuarm | 16 | # Use the networking setup from qemuarm |
20 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" | 17 | FILESOVERRIDES_append_pn-init-ifupdown = ":qemuarm" |
diff --git a/recipes-bsp/device-tree/files/qemu/qemuzynq.dts b/recipes-bsp/device-tree/files/qemu/qemuzynq.dts new file mode 100644 index 00000000..5b242c57 --- /dev/null +++ b/recipes-bsp/device-tree/files/qemu/qemuzynq.dts | |||
@@ -0,0 +1,87 @@ | |||
1 | /dts-v1/; | ||
2 | /include/ "zynq-7000.dtsi" | ||
3 | |||
4 | / { | ||
5 | model = "Zynq A9 QEMU"; | ||
6 | compatible = "qemu,xilinx-zynq-a9", "xlnx,zynq-7000"; | ||
7 | |||
8 | aliases { | ||
9 | ethernet0 = &gem0; | ||
10 | serial0 = &uart1; | ||
11 | }; | ||
12 | |||
13 | memory { | ||
14 | device_type = "memory"; | ||
15 | reg = <0x0 0x40000000>; | ||
16 | }; | ||
17 | |||
18 | chosen { | ||
19 | bootargs = "earlyprintk"; | ||
20 | stdout-path = "serial0:115200n8"; | ||
21 | }; | ||
22 | }; | ||
23 | |||
24 | &amba { | ||
25 | /* Setup a fixed 25 MHz clock (100Mbps) to trick the ethernet driver */ | ||
26 | fixednetclk: clock { | ||
27 | #clock-cells = <0>; | ||
28 | compatible = "fixed-clock"; | ||
29 | clock-frequency = <25000000>; | ||
30 | }; | ||
31 | |||
32 | /* empty defintion for kernels that don't have qspi node */ | ||
33 | qspi: spi@e000d000 { }; | ||
34 | }; | ||
35 | |||
36 | &gem0 { | ||
37 | status = "okay"; | ||
38 | clocks = <&clkc 30>, <&clkc 30>, <&fixednetclk>, <&fixednetclk>, <&clkc 30>; | ||
39 | phy-mode = "rgmii-id"; | ||
40 | phy-handle = <ðernet_phy>; | ||
41 | |||
42 | ethernet_phy: ethernet-phy@23 { | ||
43 | device_type = "ethernet-phy"; | ||
44 | reg = <23>; | ||
45 | }; | ||
46 | }; | ||
47 | |||
48 | &sdhci0 { | ||
49 | status = "okay"; | ||
50 | }; | ||
51 | |||
52 | &uart1 { | ||
53 | status = "okay"; | ||
54 | }; | ||
55 | |||
56 | &qspi { | ||
57 | status = "okay"; | ||
58 | is-dual = <1>; | ||
59 | primary_flash: ps7-qspi@0 { | ||
60 | #address-cells = <1>; | ||
61 | #size-cells = <1>; | ||
62 | compatible = "st,m25p80"; | ||
63 | reg = <0x0>; | ||
64 | spi-max-frequency = <50000000>; | ||
65 | partition@0x00000000 { | ||
66 | label = "boot"; | ||
67 | reg = <0x00000000 0x00500000>; | ||
68 | }; | ||
69 | partition@0x00500000 { | ||
70 | label = "bootenv"; | ||
71 | reg = <0x00500000 0x00020000>; | ||
72 | }; | ||
73 | partition@0x00520000 { | ||
74 | label = "config"; | ||
75 | reg = <0x00520000 0x00020000>; | ||
76 | }; | ||
77 | partition@0x00540000 { | ||
78 | label = "image"; | ||
79 | reg = <0x00540000 0x00a80000>; | ||
80 | }; | ||
81 | partition@0x00fc0000 { | ||
82 | label = "spare"; | ||
83 | reg = <0x00fc0000 0x00000000>; | ||
84 | }; | ||
85 | }; | ||
86 | }; | ||
87 | |||