From 7b500f9a313e625b9ae0245e0c272796d29c3876 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Mon, 15 Jul 2013 13:42:26 +1000 Subject: machine/zc702-zynq7: Add ZC702 support to base layer Signed-off-by: Nathan Rossi --- conf/machine/boards/common/rtc_3.6.cfg | 76 +++++++++++++++++ conf/machine/boards/common/rtc_3.8.cfg | 78 +++++++++++++++++ conf/machine/boards/zc702/zc702-zynq7.dts | 135 ++++++++++++++++++++++++++++++ conf/machine/zc702-zynq7.conf | 27 ++++++ 4 files changed, 316 insertions(+) create mode 100644 conf/machine/boards/common/rtc_3.6.cfg create mode 100644 conf/machine/boards/common/rtc_3.8.cfg create mode 100644 conf/machine/boards/zc702/zc702-zynq7.dts create mode 100644 conf/machine/zc702-zynq7.conf 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 @@ +# Enable the RTC + +CONFIG_RTC_LIB=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_HCTOSYS=y +CONFIG_RTC_HCTOSYS_DEVICE="rtc0" +# CONFIG_RTC_DEBUG is not set + +# +# RTC interfaces +# +CONFIG_RTC_INTF_SYSFS=y +CONFIG_RTC_INTF_PROC=y +CONFIG_RTC_INTF_DEV=y +# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set +# CONFIG_RTC_DRV_TEST is not set + +# +# I2C RTC drivers +# +# CONFIG_RTC_DRV_DS1307 is not set +# CONFIG_RTC_DRV_DS1374 is not set +# CONFIG_RTC_DRV_DS1672 is not set +# CONFIG_RTC_DRV_DS3232 is not set +# CONFIG_RTC_DRV_MAX6900 is not set +# CONFIG_RTC_DRV_RS5C372 is not set +# CONFIG_RTC_DRV_ISL1208 is not set +# CONFIG_RTC_DRV_ISL12022 is not set +# CONFIG_RTC_DRV_X1205 is not set +CONFIG_RTC_DRV_PCF8563=y +# CONFIG_RTC_DRV_PCF8583 is not set +# CONFIG_RTC_DRV_M41T80 is not set +# CONFIG_RTC_DRV_BQ32K is not set +# CONFIG_RTC_DRV_S35390A is not set +# CONFIG_RTC_DRV_FM3130 is not set +# CONFIG_RTC_DRV_RX8581 is not set +# CONFIG_RTC_DRV_RX8025 is not set +# CONFIG_RTC_DRV_EM3027 is not set +# CONFIG_RTC_DRV_RV3029C2 is not set + +# +# SPI RTC drivers +# +# CONFIG_RTC_DRV_M41T93 is not set +# CONFIG_RTC_DRV_M41T94 is not set +# CONFIG_RTC_DRV_DS1305 is not set +# CONFIG_RTC_DRV_DS1390 is not set +# CONFIG_RTC_DRV_MAX6902 is not set +# CONFIG_RTC_DRV_R9701 is not set +# CONFIG_RTC_DRV_RS5C348 is not set +# CONFIG_RTC_DRV_DS3234 is not set +# CONFIG_RTC_DRV_PCF2123 is not set + +# +# Platform RTC drivers +# +# CONFIG_RTC_DRV_CMOS is not set +# CONFIG_RTC_DRV_DS1286 is not set +# CONFIG_RTC_DRV_DS1511 is not set +# CONFIG_RTC_DRV_DS1553 is not set +# CONFIG_RTC_DRV_DS1742 is not set +# CONFIG_RTC_DRV_STK17TA8 is not set +# CONFIG_RTC_DRV_M48T86 is not set +# CONFIG_RTC_DRV_M48T35 is not set +# CONFIG_RTC_DRV_M48T59 is not set +# CONFIG_RTC_DRV_MSM6242 is not set +# CONFIG_RTC_DRV_BQ4802 is not set +# CONFIG_RTC_DRV_RP5C01 is not set +# CONFIG_RTC_DRV_V3020 is not set + +# +# on-CPU RTC drivers +# +# CONFIG_RTC_DRV_PL030 is not set +# CONFIG_RTC_DRV_PL031 is not set + 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 @@ +# Enable the RTC + +CONFIG_RTC_LIB=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_HCTOSYS=y +CONFIG_RTC_HCTOSYS_DEVICE="rtc0" +# CONFIG_RTC_DEBUG is not set + +# +# RTC interfaces +# +CONFIG_RTC_INTF_SYSFS=y +CONFIG_RTC_INTF_PROC=y +CONFIG_RTC_INTF_DEV=y +# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set +# CONFIG_RTC_DRV_TEST is not set + +# +# I2C RTC drivers +# +# CONFIG_RTC_DRV_DS1307 is not set +# CONFIG_RTC_DRV_DS1374 is not set +# CONFIG_RTC_DRV_DS1672 is not set +# CONFIG_RTC_DRV_DS3232 is not set +# CONFIG_RTC_DRV_MAX6900 is not set +# CONFIG_RTC_DRV_RS5C372 is not set +# CONFIG_RTC_DRV_ISL1208 is not set +# CONFIG_RTC_DRV_ISL12022 is not set +# CONFIG_RTC_DRV_X1205 is not set +# CONFIG_RTC_DRV_PCF8523 is not set +CONFIG_RTC_DRV_PCF8563=y +# CONFIG_RTC_DRV_PCF8583 is not set +# CONFIG_RTC_DRV_M41T80 is not set +# CONFIG_RTC_DRV_BQ32K is not set +# CONFIG_RTC_DRV_S35390A is not set +# CONFIG_RTC_DRV_FM3130 is not set +# CONFIG_RTC_DRV_RX8581 is not set +# CONFIG_RTC_DRV_RX8025 is not set +# CONFIG_RTC_DRV_EM3027 is not set +# CONFIG_RTC_DRV_RV3029C2 is not set + +# +# SPI RTC drivers +# +# CONFIG_RTC_DRV_M41T93 is not set +# CONFIG_RTC_DRV_M41T94 is not set +# CONFIG_RTC_DRV_DS1305 is not set +# CONFIG_RTC_DRV_DS1390 is not set +# CONFIG_RTC_DRV_MAX6902 is not set +# CONFIG_RTC_DRV_R9701 is not set +# CONFIG_RTC_DRV_RS5C348 is not set +# CONFIG_RTC_DRV_DS3234 is not set +# CONFIG_RTC_DRV_PCF2123 is not set + +# +# Platform RTC drivers +# +# CONFIG_RTC_DRV_CMOS is not set +# CONFIG_RTC_DRV_DS1286 is not set +# CONFIG_RTC_DRV_DS1511 is not set +# CONFIG_RTC_DRV_DS1553 is not set +# CONFIG_RTC_DRV_DS1742 is not set +# CONFIG_RTC_DRV_STK17TA8 is not set +# CONFIG_RTC_DRV_M48T86 is not set +# CONFIG_RTC_DRV_M48T35 is not set +# CONFIG_RTC_DRV_M48T59 is not set +# CONFIG_RTC_DRV_MSM6242 is not set +# CONFIG_RTC_DRV_BQ4802 is not set +# CONFIG_RTC_DRV_RP5C01 is not set +# CONFIG_RTC_DRV_V3020 is not set +# CONFIG_RTC_DRV_DS2404 is not set + +# +# on-CPU RTC drivers +# +# CONFIG_RTC_DRV_PL030 is not set +# CONFIG_RTC_DRV_PL031 is not set +# 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 @@ +/dts-v1/; +/include/ "zynq-7-base.dtsi" +/ { + model = "Xilinx ZC702"; + chosen { + bootargs = "console=ttyPS0,115200 root=/dev/ram rw earlyprintk"; + linux,stdout-path = "/amba@0/serial@e0001000"; + } ; + ps7_ddr_0: memory@0 { + device_type = "memory"; + reg = < 0x0 0x40000000 >; + } ; + ps7_axi_interconnect_0: amba@0 { + ps7_ethernet_0: ps7-ethernet@e000b000 { + phy-handle = <&phy0>; + phy-mode = "gmii"; + mdio { + phy0: phy@7 { + compatible = "marvell,88e1116r"; + device_type = "ethernet-phy"; + reg = <7>; + } ; + } ; + } ; + ps7_qspi_0: ps7-qspi@e000d000 { + flash@0 { + compatible = "n25q128"; + reg = <0x0>; + spi-max-frequency = <50000000>; + #address-cells = <1>; + #size-cells = <1>; + partition@qspi-fsbl-uboot { + label = "qspi-fsbl-uboot"; + reg = <0x0 0x100000>; + }; + partition@qspi-linux { + label = "qspi-linux"; + reg = <0x100000 0x500000>; + }; + partition@qspi-device-tree { + label = "qspi-device-tree"; + reg = <0x600000 0x20000>; + }; + partition@qspi-rootfs { + label = "qspi-rootfs"; + reg = <0x620000 0x5E0000>; + }; + partition@qspi-bitstream { + label = "qspi-bitstream"; + reg = <0xC00000 0x400000>; + }; + }; + } ; + ps7_i2c_0: ps7-i2c@e0004000 { + /* I2C Switch */ + i2cswitch@74 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x74>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + osc@5d { + compatible = "si570"; + reg = <0x5d>; + factory-fout = <156250000>; + initial-fout = <148500000>; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + eeprom@54 { + compatible = "at,24c08"; + reg = <0x54>; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + gpio@21 { + compatible = "ti,tca6416"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + }; + + i2c@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + rtc@54 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + }; + }; + + i2c@7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + hwmon@52 { + compatible = "pmbus,ucd9248"; + reg = <52>; + }; + hwmon@53 { + compatible = "pmbus,ucd9248"; + reg = <53>; + }; + hwmon@54 { + compatible = "pmbus,ucd9248"; + reg = <54>; + }; + }; + }; + }; + + /* Disabled Devices */ + ps7_sd_1: ps7-sdio@e0101000 { compatible = "invalid"; }; + ps7_uart_0: serial@e0000000 { compatible = "invalid"; }; + ps7_ethernet_1: ps7-ethernet@e000c000 { compatible = "invalid"; }; + ps7_i2c_1: ps7-i2c@e0005000 { compatible = "invalid"; }; + ps7_can_0: ps7-can@e0008000 { compatible = "invalid"; }; + ps7_can_1: ps7-can@e0009000 { compatible = "invalid"; }; + ps7_usb_1: ps7-usb@e0003000 { compatible = "invalid"; }; + } ; +} ; 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 @@ +#@TYPE: Machine +#@NAME: zc702-zynq7 +#@DESCRIPTION: Machine support for ZC702 Evaluation Board. +# +# For details on the Evaluation board: +# http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC702-G.htm +# For documentation and design files for the ZC702: +# 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 +# For the FSBL 'zynq_fsbl_0.elf' refer to UG873 and the associated design files. +# + +PREFERRED_VERSION_linux-xlnx ?= "3.8%" +PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" + +require conf/machine/include/tune-zynq.inc + +# ZC70x machine definition known by Xilinx UBOOT +UBOOT_MACHINE = "zynq_zc70x_config" + +SERIAL_CONSOLE = "115200 ttyPS0" + +MACHINE_DEVICETREE := "${XILINX_BOARDDIR}/zc702/zc702-zynq7.dts" +MACHINE_KCONFIG := " \ + ${XILINX_BOARDDIR}/common/xilinx_zynq_defconfig_${LINUX_VERSION}.cfg \ + ${XILINX_BOARDDIR}/common/rtc_${LINUX_VERSION}.cfg \ + " + -- cgit v1.2.3-54-g00ecf