diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-06-19 12:10:59 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-06-19 14:23:17 +1000 |
commit | cfa8891aec70ef6d91a86a4b5b1ba7a457a26c85 (patch) | |
tree | b4fa7b1122991dd0af3ebdebb19ad369c4e66bbd | |
parent | 454259b0e8d854ec987a6bb6592ea0f2ed2ca2fc (diff) | |
download | meta-xilinx-cfa8891aec70ef6d91a86a4b5b1ba7a457a26c85.tar.gz |
meta-zc702: linux-xlnx: Added DTS file
* Switched to use custom DTS instead of the one in kernel sources
* Use the zynq-7-base.dtsi for definition
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r-- | meta-zc702/recipes-kernel/linux/linux-xlnx.inc | 3 | ||||
-rw-r--r-- | meta-zc702/recipes-kernel/linux/linux-xlnx/zynq-zc702.dts | 135 |
2 files changed, 137 insertions, 1 deletions
diff --git a/meta-zc702/recipes-kernel/linux/linux-xlnx.inc b/meta-zc702/recipes-kernel/linux/linux-xlnx.inc index 17031a7f..d0d7d857 100644 --- a/meta-zc702/recipes-kernel/linux/linux-xlnx.inc +++ b/meta-zc702/recipes-kernel/linux/linux-xlnx.inc | |||
@@ -7,7 +7,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" | |||
7 | # meta-xilinx/meta-<boardlayer>/kernel-recipes for board specific fragments | 7 | # meta-xilinx/meta-<boardlayer>/kernel-recipes for board specific fragments |
8 | SRC_URI_append_zc702 += "file://xilinx_zynq_defconfig_${LINUX_VERSION}.cfg" | 8 | SRC_URI_append_zc702 += "file://xilinx_zynq_defconfig_${LINUX_VERSION}.cfg" |
9 | SRC_URI_append_zc702 += "file://rtc_${LINUX_VERSION}.cfg" | 9 | SRC_URI_append_zc702 += "file://rtc_${LINUX_VERSION}.cfg" |
10 | SRC_URI_append_zc702 += "file://zynq-zc702.dts" | ||
10 | 11 | ||
11 | KERNEL_DEVICETREE_zc702 = "${S}/arch/arm/boot/dts/zynq-zc702.dts" | 12 | KERNEL_DEVICETREE_zc702 = "${WORKDIR}/zynq-zc702.dts" |
12 | 13 | ||
13 | COMPATIBLE_MACHINE_zc702 = "zc702" | 14 | COMPATIBLE_MACHINE_zc702 = "zc702" |
diff --git a/meta-zc702/recipes-kernel/linux/linux-xlnx/zynq-zc702.dts b/meta-zc702/recipes-kernel/linux/linux-xlnx/zynq-zc702.dts new file mode 100644 index 00000000..8a65860c --- /dev/null +++ b/meta-zc702/recipes-kernel/linux/linux-xlnx/zynq-zc702.dts | |||
@@ -0,0 +1,135 @@ | |||
1 | /dts-v1/; | ||
2 | /include/ "zynq-7-base.dtsi" | ||
3 | / { | ||
4 | model = "Xilinx ZC702"; | ||
5 | chosen { | ||
6 | bootargs = "console=ttyPS0,115200 root=/dev/ram rw earlyprintk"; | ||
7 | linux,stdout-path = "/amba@0/serial@e0001000"; | ||
8 | } ; | ||
9 | ps7_ddr_0: memory@0 { | ||
10 | device_type = "memory"; | ||
11 | reg = < 0x0 0x40000000 >; | ||
12 | } ; | ||
13 | ps7_axi_interconnect_0: amba@0 { | ||
14 | ps7_ethernet_0: ps7-ethernet@e000b000 { | ||
15 | phy-handle = <&phy0>; | ||
16 | phy-mode = "gmii"; | ||
17 | mdio { | ||
18 | phy0: phy@7 { | ||
19 | compatible = "marvell,88e1116r"; | ||
20 | device_type = "ethernet-phy"; | ||
21 | reg = <7>; | ||
22 | } ; | ||
23 | } ; | ||
24 | } ; | ||
25 | ps7_qspi_0: ps7-qspi@e000d000 { | ||
26 | flash@0 { | ||
27 | compatible = "n25q128"; | ||
28 | reg = <0x0>; | ||
29 | spi-max-frequency = <50000000>; | ||
30 | #address-cells = <1>; | ||
31 | #size-cells = <1>; | ||
32 | partition@qspi-fsbl-uboot { | ||
33 | label = "qspi-fsbl-uboot"; | ||
34 | reg = <0x0 0x100000>; | ||
35 | }; | ||
36 | partition@qspi-linux { | ||
37 | label = "qspi-linux"; | ||
38 | reg = <0x100000 0x500000>; | ||
39 | }; | ||
40 | partition@qspi-device-tree { | ||
41 | label = "qspi-device-tree"; | ||
42 | reg = <0x600000 0x20000>; | ||
43 | }; | ||
44 | partition@qspi-rootfs { | ||
45 | label = "qspi-rootfs"; | ||
46 | reg = <0x620000 0x5E0000>; | ||
47 | }; | ||
48 | partition@qspi-bitstream { | ||
49 | label = "qspi-bitstream"; | ||
50 | reg = <0xC00000 0x400000>; | ||
51 | }; | ||
52 | }; | ||
53 | } ; | ||
54 | ps7_i2c_0: ps7-i2c@e0004000 { | ||
55 | /* I2C Switch */ | ||
56 | i2cswitch@74 { | ||
57 | compatible = "nxp,pca9548"; | ||
58 | #address-cells = <1>; | ||
59 | #size-cells = <0>; | ||
60 | reg = <0x74>; | ||
61 | |||
62 | i2c@0 { | ||
63 | #address-cells = <1>; | ||
64 | #size-cells = <0>; | ||
65 | reg = <0>; | ||
66 | osc@5d { | ||
67 | compatible = "si570"; | ||
68 | reg = <0x5d>; | ||
69 | factory-fout = <156250000>; | ||
70 | initial-fout = <148500000>; | ||
71 | }; | ||
72 | }; | ||
73 | |||
74 | i2c@2 { | ||
75 | #address-cells = <1>; | ||
76 | #size-cells = <0>; | ||
77 | reg = <2>; | ||
78 | eeprom@54 { | ||
79 | compatible = "at,24c08"; | ||
80 | reg = <0x54>; | ||
81 | }; | ||
82 | }; | ||
83 | |||
84 | i2c@3 { | ||
85 | #address-cells = <1>; | ||
86 | #size-cells = <0>; | ||
87 | reg = <3>; | ||
88 | gpio@21 { | ||
89 | compatible = "ti,tca6416"; | ||
90 | reg = <0x21>; | ||
91 | gpio-controller; | ||
92 | #gpio-cells = <2>; | ||
93 | }; | ||
94 | }; | ||
95 | |||
96 | i2c@4 { | ||
97 | #address-cells = <1>; | ||
98 | #size-cells = <0>; | ||
99 | reg = <4>; | ||
100 | rtc@54 { | ||
101 | compatible = "nxp,pcf8563"; | ||
102 | reg = <0x51>; | ||
103 | }; | ||
104 | }; | ||
105 | |||
106 | i2c@7 { | ||
107 | #address-cells = <1>; | ||
108 | #size-cells = <0>; | ||
109 | reg = <7>; | ||
110 | hwmon@52 { | ||
111 | compatible = "pmbus,ucd9248"; | ||
112 | reg = <52>; | ||
113 | }; | ||
114 | hwmon@53 { | ||
115 | compatible = "pmbus,ucd9248"; | ||
116 | reg = <53>; | ||
117 | }; | ||
118 | hwmon@54 { | ||
119 | compatible = "pmbus,ucd9248"; | ||
120 | reg = <54>; | ||
121 | }; | ||
122 | }; | ||
123 | }; | ||
124 | }; | ||
125 | |||
126 | /* Disabled Devices */ | ||
127 | ps7_sd_1: ps7-sdio@e0101000 { compatible = "invalid"; }; | ||
128 | ps7_uart_0: serial@e0000000 { compatible = "invalid"; }; | ||
129 | ps7_ethernet_1: ps7-ethernet@e000c000 { compatible = "invalid"; }; | ||
130 | ps7_i2c_1: ps7-i2c@e0005000 { compatible = "invalid"; }; | ||
131 | ps7_can_0: ps7-can@e0008000 { compatible = "invalid"; }; | ||
132 | ps7_can_1: ps7-can@e0009000 { compatible = "invalid"; }; | ||
133 | ps7_usb_1: ps7-usb@e0003000 { compatible = "invalid"; }; | ||
134 | } ; | ||
135 | } ; | ||