summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2013-07-15 13:42:26 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2013-07-15 13:42:26 +1000
commit7b500f9a313e625b9ae0245e0c272796d29c3876 (patch)
treefff7f9653e38113c6d01766d4529797e2827087c
parent5ff9663f0e3eb2f4137f3aaee52f452b028ef470 (diff)
downloadmeta-xilinx-7b500f9a313e625b9ae0245e0c272796d29c3876.tar.gz
machine/zc702-zynq7: Add ZC702 support to base layer
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r--conf/machine/boards/common/rtc_3.6.cfg76
-rw-r--r--conf/machine/boards/common/rtc_3.8.cfg78
-rw-r--r--conf/machine/boards/zc702/zc702-zynq7.dts135
-rw-r--r--conf/machine/zc702-zynq7.conf27
4 files changed, 316 insertions, 0 deletions
diff --git a/conf/machine/boards/common/rtc_3.6.cfg b/conf/machine/boards/common/rtc_3.6.cfg
new file mode 100644
index 00000000..78dfaf17
--- /dev/null
+++ b/conf/machine/boards/common/rtc_3.6.cfg
@@ -0,0 +1,76 @@
1# Enable the RTC
2
3CONFIG_RTC_LIB=y
4CONFIG_RTC_CLASS=y
5CONFIG_RTC_HCTOSYS=y
6CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
7# CONFIG_RTC_DEBUG is not set
8
9#
10# RTC interfaces
11#
12CONFIG_RTC_INTF_SYSFS=y
13CONFIG_RTC_INTF_PROC=y
14CONFIG_RTC_INTF_DEV=y
15# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
16# CONFIG_RTC_DRV_TEST is not set
17
18#
19# I2C RTC drivers
20#
21# CONFIG_RTC_DRV_DS1307 is not set
22# CONFIG_RTC_DRV_DS1374 is not set
23# CONFIG_RTC_DRV_DS1672 is not set
24# CONFIG_RTC_DRV_DS3232 is not set
25# CONFIG_RTC_DRV_MAX6900 is not set
26# CONFIG_RTC_DRV_RS5C372 is not set
27# CONFIG_RTC_DRV_ISL1208 is not set
28# CONFIG_RTC_DRV_ISL12022 is not set
29# CONFIG_RTC_DRV_X1205 is not set
30CONFIG_RTC_DRV_PCF8563=y
31# CONFIG_RTC_DRV_PCF8583 is not set
32# CONFIG_RTC_DRV_M41T80 is not set
33# CONFIG_RTC_DRV_BQ32K is not set
34# CONFIG_RTC_DRV_S35390A is not set
35# CONFIG_RTC_DRV_FM3130 is not set
36# CONFIG_RTC_DRV_RX8581 is not set
37# CONFIG_RTC_DRV_RX8025 is not set
38# CONFIG_RTC_DRV_EM3027 is not set
39# CONFIG_RTC_DRV_RV3029C2 is not set
40
41#
42# SPI RTC drivers
43#
44# CONFIG_RTC_DRV_M41T93 is not set
45# CONFIG_RTC_DRV_M41T94 is not set
46# CONFIG_RTC_DRV_DS1305 is not set
47# CONFIG_RTC_DRV_DS1390 is not set
48# CONFIG_RTC_DRV_MAX6902 is not set
49# CONFIG_RTC_DRV_R9701 is not set
50# CONFIG_RTC_DRV_RS5C348 is not set
51# CONFIG_RTC_DRV_DS3234 is not set
52# CONFIG_RTC_DRV_PCF2123 is not set
53
54#
55# Platform RTC drivers
56#
57# CONFIG_RTC_DRV_CMOS is not set
58# CONFIG_RTC_DRV_DS1286 is not set
59# CONFIG_RTC_DRV_DS1511 is not set
60# CONFIG_RTC_DRV_DS1553 is not set
61# CONFIG_RTC_DRV_DS1742 is not set
62# CONFIG_RTC_DRV_STK17TA8 is not set
63# CONFIG_RTC_DRV_M48T86 is not set
64# CONFIG_RTC_DRV_M48T35 is not set
65# CONFIG_RTC_DRV_M48T59 is not set
66# CONFIG_RTC_DRV_MSM6242 is not set
67# CONFIG_RTC_DRV_BQ4802 is not set
68# CONFIG_RTC_DRV_RP5C01 is not set
69# CONFIG_RTC_DRV_V3020 is not set
70
71#
72# on-CPU RTC drivers
73#
74# CONFIG_RTC_DRV_PL030 is not set
75# CONFIG_RTC_DRV_PL031 is not set
76
diff --git a/conf/machine/boards/common/rtc_3.8.cfg b/conf/machine/boards/common/rtc_3.8.cfg
new file mode 100644
index 00000000..f584f793
--- /dev/null
+++ b/conf/machine/boards/common/rtc_3.8.cfg
@@ -0,0 +1,78 @@
1# Enable the RTC
2
3CONFIG_RTC_LIB=y
4CONFIG_RTC_CLASS=y
5CONFIG_RTC_HCTOSYS=y
6CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
7# CONFIG_RTC_DEBUG is not set
8
9#
10# RTC interfaces
11#
12CONFIG_RTC_INTF_SYSFS=y
13CONFIG_RTC_INTF_PROC=y
14CONFIG_RTC_INTF_DEV=y
15# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
16# CONFIG_RTC_DRV_TEST is not set
17
18#
19# I2C RTC drivers
20#
21# CONFIG_RTC_DRV_DS1307 is not set
22# CONFIG_RTC_DRV_DS1374 is not set
23# CONFIG_RTC_DRV_DS1672 is not set
24# CONFIG_RTC_DRV_DS3232 is not set
25# CONFIG_RTC_DRV_MAX6900 is not set
26# CONFIG_RTC_DRV_RS5C372 is not set
27# CONFIG_RTC_DRV_ISL1208 is not set
28# CONFIG_RTC_DRV_ISL12022 is not set
29# CONFIG_RTC_DRV_X1205 is not set
30# CONFIG_RTC_DRV_PCF8523 is not set
31CONFIG_RTC_DRV_PCF8563=y
32# CONFIG_RTC_DRV_PCF8583 is not set
33# CONFIG_RTC_DRV_M41T80 is not set
34# CONFIG_RTC_DRV_BQ32K is not set
35# CONFIG_RTC_DRV_S35390A is not set
36# CONFIG_RTC_DRV_FM3130 is not set
37# CONFIG_RTC_DRV_RX8581 is not set
38# CONFIG_RTC_DRV_RX8025 is not set
39# CONFIG_RTC_DRV_EM3027 is not set
40# CONFIG_RTC_DRV_RV3029C2 is not set
41
42#
43# SPI RTC drivers
44#
45# CONFIG_RTC_DRV_M41T93 is not set
46# CONFIG_RTC_DRV_M41T94 is not set
47# CONFIG_RTC_DRV_DS1305 is not set
48# CONFIG_RTC_DRV_DS1390 is not set
49# CONFIG_RTC_DRV_MAX6902 is not set
50# CONFIG_RTC_DRV_R9701 is not set
51# CONFIG_RTC_DRV_RS5C348 is not set
52# CONFIG_RTC_DRV_DS3234 is not set
53# CONFIG_RTC_DRV_PCF2123 is not set
54
55#
56# Platform RTC drivers
57#
58# CONFIG_RTC_DRV_CMOS is not set
59# CONFIG_RTC_DRV_DS1286 is not set
60# CONFIG_RTC_DRV_DS1511 is not set
61# CONFIG_RTC_DRV_DS1553 is not set
62# CONFIG_RTC_DRV_DS1742 is not set
63# CONFIG_RTC_DRV_STK17TA8 is not set
64# CONFIG_RTC_DRV_M48T86 is not set
65# CONFIG_RTC_DRV_M48T35 is not set
66# CONFIG_RTC_DRV_M48T59 is not set
67# CONFIG_RTC_DRV_MSM6242 is not set
68# CONFIG_RTC_DRV_BQ4802 is not set
69# CONFIG_RTC_DRV_RP5C01 is not set
70# CONFIG_RTC_DRV_V3020 is not set
71# CONFIG_RTC_DRV_DS2404 is not set
72
73#
74# on-CPU RTC drivers
75#
76# CONFIG_RTC_DRV_PL030 is not set
77# CONFIG_RTC_DRV_PL031 is not set
78# CONFIG_RTC_DRV_SNVS is not set \ No newline at end of file
diff --git a/conf/machine/boards/zc702/zc702-zynq7.dts b/conf/machine/boards/zc702/zc702-zynq7.dts
new file mode 100644
index 00000000..8a65860c
--- /dev/null
+++ b/conf/machine/boards/zc702/zc702-zynq7.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} ;
diff --git a/conf/machine/zc702-zynq7.conf b/conf/machine/zc702-zynq7.conf
new file mode 100644
index 00000000..674b252b
--- /dev/null
+++ b/conf/machine/zc702-zynq7.conf
@@ -0,0 +1,27 @@
1#@TYPE: Machine
2#@NAME: zc702-zynq7
3#@DESCRIPTION: Machine support for ZC702 Evaluation Board.
4#
5# For details on the Evaluation board:
6# http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC702-G.htm
7# For documentation and design files for the ZC702:
8# http://www.xilinx.com/support/index.html/content/xilinx/en/supportNav/boards_and_kits/zynq-7000_soc_boards_and_kits/zynq-7000_soc_zc702_evaluation_kit.html
9# For the FSBL 'zynq_fsbl_0.elf' refer to UG873 and the associated design files.
10#
11
12PREFERRED_VERSION_linux-xlnx ?= "3.8%"
13PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%"
14
15require conf/machine/include/tune-zynq.inc
16
17# ZC70x machine definition known by Xilinx UBOOT
18UBOOT_MACHINE = "zynq_zc70x_config"
19
20SERIAL_CONSOLE = "115200 ttyPS0"
21
22MACHINE_DEVICETREE := "${XILINX_BOARDDIR}/zc702/zc702-zynq7.dts"
23MACHINE_KCONFIG := " \
24 ${XILINX_BOARDDIR}/common/xilinx_zynq_defconfig_${LINUX_VERSION}.cfg \
25 ${XILINX_BOARDDIR}/common/rtc_${LINUX_VERSION}.cfg \
26 "
27