From cfa8891aec70ef6d91a86a4b5b1ba7a457a26c85 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Wed, 19 Jun 2013 12:10:59 +1000 Subject: 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 --- meta-zc702/recipes-kernel/linux/linux-xlnx.inc | 3 +- .../recipes-kernel/linux/linux-xlnx/zynq-zc702.dts | 135 +++++++++++++++++++++ 2 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 meta-zc702/recipes-kernel/linux/linux-xlnx/zynq-zc702.dts 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:" # meta-xilinx/meta-/kernel-recipes for board specific fragments SRC_URI_append_zc702 += "file://xilinx_zynq_defconfig_${LINUX_VERSION}.cfg" SRC_URI_append_zc702 += "file://rtc_${LINUX_VERSION}.cfg" +SRC_URI_append_zc702 += "file://zynq-zc702.dts" -KERNEL_DEVICETREE_zc702 = "${S}/arch/arm/boot/dts/zynq-zc702.dts" +KERNEL_DEVICETREE_zc702 = "${WORKDIR}/zynq-zc702.dts" 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 @@ +/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"; }; + } ; +} ; -- cgit v1.2.3-54-g00ecf