]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
arm: zynq: Add DTs for xilinx platforms
authorMichal Simek <michal.simek@xilinx.com>
Thu, 14 Sep 2017 08:36:03 +0000 (10:36 +0200)
committerMichal Simek <monstr@monstr.eu>
Tue, 3 Oct 2017 15:26:46 +0000 (17:26 +0200)
Add device tree descriptions for Xilinx boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
13 files changed:
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/zynq-7000.dtsi
arch/arm/boot/dts/zynq-afx-nand.dts [new file with mode: 0644]
arch/arm/boot/dts/zynq-afx-nor.dts [new file with mode: 0644]
arch/arm/boot/dts/zynq-cc108.dts [new file with mode: 0644]
arch/arm/boot/dts/zynq-zc702.dts
arch/arm/boot/dts/zynq-zc706.dts
arch/arm/boot/dts/zynq-zc770-xm010.dts [new file with mode: 0644]
arch/arm/boot/dts/zynq-zc770-xm011.dts [new file with mode: 0644]
arch/arm/boot/dts/zynq-zc770-xm012.dts [new file with mode: 0644]
arch/arm/boot/dts/zynq-zc770-xm013.dts [new file with mode: 0644]
arch/arm/boot/dts/zynq-zed.dts
arch/arm/boot/dts/zynq-zybo.dts

index c558ba75cbccf909063e0f4f131f7efdfd28867b..24e908b86987feb3899cca18472f57eea8b307a0 100644 (file)
@@ -897,9 +897,16 @@ dtb-$(CONFIG_ARCH_VT8500) += \
        wm8750-apc8750.dtb \
        wm8850-w70v2.dtb
 dtb-$(CONFIG_ARCH_ZYNQ) += \
+       zynq-afx-nand.dtb \
+       zynq-afx-nor.dtb \
+       zynq-cc108.dtb \
        zynq-parallella.dtb \
        zynq-zc702.dtb \
        zynq-zc706.dtb \
+       zynq-zc770-xm010.dtb \
+       zynq-zc770-xm011.dtb \
+       zynq-zc770-xm012.dtb \
+       zynq-zc770-xm013.dtb \
        zynq-zed.dtb \
        zynq-zybo.dtb
 dtb-$(CONFIG_MACH_ARMADA_370) += \
index bd4f63dead8d48c233d0e8609bb68b42c404fd38..418e41993f33d79fabea7225feaaef28cd7696d0 100644 (file)
@@ -54,8 +54,7 @@
                compatible = "arm,cortex-a9-pmu";
                interrupts = <0 5 4>, <0 6 4>;
                interrupt-parent = <&intc>;
-               reg = <0xf8891000 0x1000>,
-                     <0xf8893000 0x1000>;
+               reg = < 0xf8891000 0x1000 0xf8893000 0x1000 >;
        };
 
        regulator_vccpint: fixedregulator {
@@ -68,6 +67,7 @@
        };
 
        amba: amba {
+               u-boot,dm-pre-reloc;
                compatible = "simple-bus";
                #address-cells = <1>;
                #size-cells = <1>;
                        #size-cells = <0>;
                };
 
+               qspi: spi@e000d000 {
+                       clock-names = "ref_clk", "pclk";
+                       clocks = <&clkc 10>, <&clkc 43>;
+                       compatible = "xlnx,zynq-qspi-1.0";
+                       status = "disabled";
+                       interrupt-parent = <&intc>;
+                       interrupts = <0 19 4>;
+                       reg = <0xe000d000 0x1000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+               };
+
+               smcc: memory-controller@e000e000 {
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       status = "disabled";
+                       clock-names = "memclk", "aclk";
+                       clocks = <&clkc 11>, <&clkc 44>;
+                       compatible = "arm,pl353-smc-r2p1";
+                       interrupt-parent = <&intc>;
+                       interrupts = <0 18 4>;
+                       ranges ;
+                       reg = <0xe000e000 0x1000>;
+                       nand0: flash@e1000000 {
+                               status = "disabled";
+                               compatible = "arm,pl353-nand-r2p1";
+                               reg = <0xe1000000 0x1000000>;
+                               #address-cells = <0x1>;
+                               #size-cells = <0x1>;
+                       };
+                       nor0: flash@e2000000 {
+                               status = "disabled";
+                               compatible = "cfi-flash";
+                               reg = <0xe2000000 0x2000000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                       };
+               };
+
                gem0: ethernet@e000b000 {
                        compatible = "cdns,zynq-gem", "cdns,gem";
                        reg = <0xe000b000 0x1000>;
                        clkc: clkc@100 {
                                #clock-cells = <1>;
                                compatible = "xlnx,ps7-clkc";
-                               fclk-enable = <0>;
+                               fclk-enable = <0xf>;
                                clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x",
                                                "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x",
                                                "dci", "lqspi", "smc", "pcap", "gem0", "gem1",
 
                devcfg: devcfg@f8007000 {
                        compatible = "xlnx,zynq-devcfg-1.0";
-                       reg = <0xf8007000 0x100>;
                        interrupt-parent = <&intc>;
                        interrupts = <0 8 4>;
-                       clocks = <&clkc 12>;
-                       clock-names = "ref_clk";
+                       reg = <0xf8007000 0x100>;
+                       clocks = <&clkc 12>, <&clkc 15>, <&clkc 16>, <&clkc 17>, <&clkc 18>;
+                       clock-names = "ref_clk", "fclk0", "fclk1", "fclk2", "fclk3";
                        syscon = <&slcr>;
                };
 
diff --git a/arch/arm/boot/dts/zynq-afx-nand.dts b/arch/arm/boot/dts/zynq-afx-nand.dts
new file mode 100644 (file)
index 0000000..cc9db48
--- /dev/null
@@ -0,0 +1,78 @@
+/*
+ * Device Tree Generator version: 1.1
+ *
+ * (C) Copyright 2007-2013 Xilinx, Inc.
+ * (C) Copyright 2007-2013 Michal Simek
+ * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
+ *
+ * Michal SIMEK <monstr@monstr.eu>
+ *
+ * CAUTION: This file is automatically generated by libgen.
+ * Version: Xilinx EDK 14.5 EDK_P.58f
+ *
+ */
+/dts-v1/;
+/include/ "zynq-7000.dtsi"
+
+/ {
+       compatible = "xlnx,zynq-afx-nand", "xlnx,zynq-7000";
+       model = "Xilinx Zynq";
+
+       aliases {
+               serial0 = &uart1;
+       };
+
+       chosen {
+               bootargs = "";
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+};
+
+&smcc {
+       status = "okay";
+       arm,addr25 = <0x0>;
+       arm,nor-chip-sel0 = <0x0>;
+       arm,nor-chip-sel1 = <0x0>;
+       arm,sram-chip-sel0 = <0x0>;
+       arm,sram-chip-sel1 = <0x0>;
+};
+
+&nand0 {
+       status = "okay";
+       arm,nand-cycle-t0 = <0x4>;
+       arm,nand-cycle-t1 = <0x4>;
+       arm,nand-cycle-t2 = <0x1>;
+       arm,nand-cycle-t3 = <0x2>;
+       arm,nand-cycle-t4 = <0x2>;
+       arm,nand-cycle-t5 = <0x2>;
+       arm,nand-cycle-t6 = <0x4>;
+       partition@nand-fsbl-uboot {
+               label = "nand-fsbl-uboot";
+               reg = <0x0 0x100000>;
+       };
+       partition@nand-linux {
+               label = "nand-linux";
+               reg = <0x100000 0x500000>;
+       };
+       partition@nand-device-tree {
+               label = "nand-device-tree";
+               reg = <0x600000 0x20000>;
+       };
+       partition@nand-rootfs {
+               label = "nand-rootfs";
+               reg = <0x620000 0x5E0000>;
+       };
+       partition@nand-bitstream {
+               label = "nand-bitstream";
+               reg = <0xC00000 0x400000>;
+       };
+};
+
+&uart1 {
+       status = "okay";
+};
diff --git a/arch/arm/boot/dts/zynq-afx-nor.dts b/arch/arm/boot/dts/zynq-afx-nor.dts
new file mode 100644 (file)
index 0000000..47f643e
--- /dev/null
@@ -0,0 +1,79 @@
+/*
+ * Device Tree Generator version: 1.1
+ *
+ * (C) Copyright 2007-2013 Xilinx, Inc.
+ * (C) Copyright 2007-2013 Michal Simek
+ * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
+ *
+ * Michal SIMEK <monstr@monstr.eu>
+ *
+ * CAUTION: This file is automatically generated by libgen.
+ * Version: Xilinx EDK 14.5 EDK_P.58f
+ *
+ */
+/dts-v1/;
+/include/ "zynq-7000.dtsi"
+
+/ {
+       compatible = "xlnx,zynq-afx-nor", "xlnx,zynq-7000";
+       model = "Xilinx Zynq";
+
+       aliases {
+               serial0 = &uart1;
+       };
+
+       chosen {
+               bootargs = "";
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+};
+
+&smcc {
+       status = "okay";
+       arm,addr25 = <0x1>;
+       arm,nor-chip-sel0 = <0x1>;
+       arm,nor-chip-sel1 = <0x0>;
+       arm,sram-chip-sel0 = <0x0>;
+       arm,sram-chip-sel1 = <0x0>;
+};
+
+&nor0 {
+       status = "okay";
+       bank-width = <1>;
+       xlnx,sram-cycle-t0 = <0xb>;
+       xlnx,sram-cycle-t1 = <0xb>;
+       xlnx,sram-cycle-t2 = <0x5>;
+       xlnx,sram-cycle-t3 = <0x4>;
+       xlnx,sram-cycle-t4 = <0x3>;
+       xlnx,sram-cycle-t5 = <0x3>;
+       xlnx,sram-cycle-t6 = <0x2>;
+       partition@nor-fsbl-uboot {
+               label = "nor-fsbl-uboot";
+               reg = <0x0 0x100000>;
+       };
+       partition@nor-linux {
+               label = "nor-linux";
+               reg = <0x100000 0x500000>;
+       };
+       partition@nor-device-tree {
+               label = "nor-device-tree";
+               reg = <0x600000 0x20000>;
+       };
+       partition@nor-rootfs {
+               label = "nor-rootfs";
+               reg = <0x620000 0x5E0000>;
+       };
+       partition@nor-bitstream {
+               label = "nor-bitstream";
+               reg = <0xC00000 0x400000>;
+       };
+};
+
+&uart1 {
+       status = "okay";
+};
diff --git a/arch/arm/boot/dts/zynq-cc108.dts b/arch/arm/boot/dts/zynq-cc108.dts
new file mode 100644 (file)
index 0000000..3c55339
--- /dev/null
@@ -0,0 +1,118 @@
+/*
+ * Device Tree Generator version: 1.1
+ *
+ * (C) Copyright 2007-2013 Xilinx, Inc.
+ * (C) Copyright 2007-2013 Michal Simek
+ * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
+ *
+ * Michal SIMEK <monstr@monstr.eu>
+ *
+ * CAUTION: This file is automatically generated by libgen.
+ * Version: Xilinx EDK 14.7 EDK_P.20131013
+ *
+ */
+/dts-v1/;
+/include/ "zynq-7000.dtsi"
+
+/ {
+       compatible = "xlnx,zynq-cc108", "xlnx,zynq-7000";
+       model = "Xilinx Zynq";
+
+       aliases {
+               ethernet0 = &gem0;
+               serial0 = &uart0;
+               spi0 = &qspi;
+       };
+
+       chosen {
+               bootargs = "";
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x20000000>;
+       };
+
+       usb_phy0: phy0 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
+
+       usb_phy1: phy1 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
+};
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy@1 {
+               reg = <1>;
+               device_type = "ethernet-phy";
+       };
+};
+
+&qspi {
+       status = "okay";
+       is-dual = <0>;
+       num-cs = <1>;
+       flash@0 { /* 16 MB */
+               compatible = "n25q128a11";
+               reg = <0x0>;
+               spi-max-frequency = <50000000>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <4>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               partition@0 {
+                       label = "qspi-fsbl-uboot-bs";
+                       reg = <0x0 0x400000>; /* 4MB */
+               };
+               partition@0x400000 {
+                       label = "qspi-linux";
+                       reg = <0x400000 0x400000>; /* 4MB */
+               };
+               partition@0x800000 {
+                       label = "qspi-rootfs";
+                       reg = <0x800000 0x400000>; /* 4MB */
+               };
+               partition@0xc00000 {
+                       label = "qspi-devicetree";
+                       reg = <0xc00000 0x100000>; /* 1MB */
+               };
+               partition@0xd00000 {
+                       label = "qspi-scratch";
+                       reg = <0xd00000 0x200000>; /* 2MB */
+               };
+               partition@0xf00000 {
+                       label = "qspi-uboot-env";
+                       reg = <0xf00000 0x100000>; /* 1MB */
+               };
+       };
+};
+
+&sdhci1 {
+       status = "okay";
+       broken-cd ;
+       wp-inverted ;
+};
+
+&uart0 {
+       status = "okay";
+};
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};
+
+&usb1 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy1>;
+};
index 34e8277fce0d36a875cccb1278a9c016236b53d0..b86b8904bdd50d506a1fde7e217de963660d8edb 100644 (file)
@@ -22,6 +22,8 @@
                ethernet0 = &gem0;
                i2c0 = &i2c0;
                serial0 = &uart1;
+               spi0 = &qspi;
+               mmc0 = &sdhci0;
        };
 
        memory@0 {
                };
        };
 
-       usb_phy0: phy0 {
-               compatible = "usb-nop-xceiv";
+       usb_phy0: phy0@e0002000 {
+               compatible = "ulpi-phy";
                #phy-cells = <0>;
+               reg = <0xe0002000 0x1000>;
+               view-port = <0x0170>;
+               drv-vbus;
        };
 };
 
@@ -94,6 +99,8 @@
        phy-handle = <&ethernet_phy>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_gem0_default>;
+       phy-reset-gpio = <&gpio0 11 0>;
+       phy-reset-active-low;
 
        ethernet_phy: ethernet-phy@7 {
                reg = <7>;
 &i2c0 {
        status = "okay";
        clock-frequency = <400000>;
-       pinctrl-names = "default";
+       pinctrl-names = "default", "gpio";
        pinctrl-0 = <&pinctrl_i2c0_default>;
+       pinctrl-1 = <&pinctrl_i2c0_gpio>;
+       scl-gpios = <&gpio0 50 0>;
+       sda-gpios = <&gpio0 51 0>;
 
        i2cswitch@74 {
                compatible = "nxp,pca9548";
                };
        };
 
+       pinctrl_i2c0_gpio: i2c0-gpio {
+               mux {
+                       groups = "gpio0_50_grp", "gpio0_51_grp";
+                       function = "gpio0";
+               };
+
+               conf {
+                       groups = "gpio0_50_grp", "gpio0_51_grp";
+                       slew-rate = <0>;
+                       io-standard = <1>;
+               };
+       };
+
        pinctrl_sdhci0_default: sdhci0-default {
                mux {
                        groups = "sdio0_2_grp";
        };
 };
 
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+       is-dual = <0>;
+       num-cs = <1>;
+       flash@0 {
+               compatible = "n25q128a11";
+               reg = <0x0>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <4>;
+               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>;
+               };
+       };
+};
+
 &sdhci0 {
+       u-boot,dm-pre-reloc;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sdhci0_default>;
 };
 
 &uart1 {
+       u-boot,dm-pre-reloc;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1_default>;
index 7ebc8c5ae39dce63ce99add3fea8e4eea121d924..d3d29b1af994ec3d7c882b61f15dda7ede46da52 100644 (file)
@@ -22,6 +22,8 @@
                ethernet0 = &gem0;
                i2c0 = &i2c0;
                serial0 = &uart1;
+               spi0 = &qspi;
+               mmc0 = &sdhci0;
        };
 
        memory@0 {
                stdout-path = "serial0:115200n8";
        };
 
-       usb_phy0: phy0 {
-               compatible = "usb-nop-xceiv";
+       usb_phy0: phy0@e0002000 {
+               compatible = "ulpi-phy";
                #phy-cells = <0>;
+               reg = <0xe0002000 0x1000>;
+               view-port = <0x0170>;
+               drv-vbus;
        };
 };
 
        };
 };
 
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+       is-dual = <1>;
+       num-cs = <1>;
+       flash@0 {
+               compatible = "n25q128a11";
+               reg = <0x0>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <4>;
+               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>;
+               };
+       };
+};
+
 &sdhci0 {
+       u-boot,dm-pre-reloc;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sdhci0_default>;
 };
 
 &uart1 {
+       u-boot,dm-pre-reloc;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1_default>;
diff --git a/arch/arm/boot/dts/zynq-zc770-xm010.dts b/arch/arm/boot/dts/zynq-zc770-xm010.dts
new file mode 100644 (file)
index 0000000..0dad37c
--- /dev/null
@@ -0,0 +1,136 @@
+/*
+ * Device Tree Generator version: 1.1
+ *
+ * (C) Copyright 2007-2013 Xilinx, Inc.
+ * (C) Copyright 2007-2013 Michal Simek
+ * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
+ *
+ * Michal SIMEK <monstr@monstr.eu>
+ *
+ * CAUTION: This file is automatically generated by libgen.
+ * Version: Xilinx EDK 14.5 EDK_P.58f
+ *
+ */
+/dts-v1/;
+#include "zynq-7000.dtsi"
+
+/ {
+       compatible = "xlnx,zynq-zc770-xm010", "xlnx,zynq-7000";
+       model = "Xilinx Zynq";
+
+       aliases {
+               ethernet0 = &gem0;
+               i2c0 = &i2c0;
+               serial0 = &uart1;
+               spi0 = &qspi;
+               spi1 = &spi1;
+       };
+
+       chosen {
+               bootargs = "";
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x40000000>;
+       };
+
+       usb_phy0: phy0 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
+};
+
+&can0 {
+       status = "okay";
+};
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy@7 {
+               reg = <7>;
+               device_type = "ethernet-phy";
+       };
+};
+
+&i2c0 {
+       status = "okay";
+       clock-frequency = <400000>;
+
+       m24c02_eeprom@52 {
+               compatible = "at,24c02";
+               reg = <0x52>;
+       };
+
+};
+
+&qspi {
+       status = "okay";
+       is-dual = <0>;
+       num-cs = <1>;
+       flash@0 {
+               compatible = "n25q128a11";
+               reg = <0x0>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <4>;
+               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>;
+               };
+       };
+};
+
+&sdhci0 {
+       status = "okay";
+};
+
+&spi1 {
+       status = "okay";
+       num-cs = <4>;
+       is-decoded-cs = <0>;
+       flash@0 {
+               compatible = "sst25wf080";
+               reg = <1>;
+               spi-max-frequency = <1000000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               partition@test {
+                       label = "spi-flash";
+                       reg = <0x0 0x100000>;
+               };
+       };
+};
+
+&uart1 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};
diff --git a/arch/arm/boot/dts/zynq-zc770-xm011.dts b/arch/arm/boot/dts/zynq-zc770-xm011.dts
new file mode 100644 (file)
index 0000000..002c080
--- /dev/null
@@ -0,0 +1,113 @@
+/*
+ * Device Tree Generator version: 1.1
+ *
+ * (C) Copyright 2007-2013 Xilinx, Inc.
+ * (C) Copyright 2007-2013 Michal Simek
+ * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
+ *
+ * Michal SIMEK <monstr@monstr.eu>
+ *
+ * CAUTION: This file is automatically generated by libgen.
+ * Version: Xilinx EDK 14.5 EDK_P.58f
+ *
+ */
+/dts-v1/;
+#include "zynq-7000.dtsi"
+
+/ {
+       compatible = "xlnx,zynq-zc770-xm011", "xlnx,zynq-7000";
+       model = "Xilinx Zynq";
+
+       aliases {
+               i2c0 = &i2c1;
+               serial0 = &uart1;
+               spi0 = &spi0;
+       };
+
+       chosen {
+               bootargs = "";
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x40000000>;
+       };
+
+       usb_phy1: phy1 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
+};
+
+&can0 {
+       status = "okay";
+};
+
+&i2c1 {
+       status = "okay";
+       clock-frequency = <400000>;
+
+       m24c02_eeprom@52 {
+               compatible = "at,24c02";
+               reg = <0x52>;
+       };
+};
+
+&nand0 {
+       status = "okay";
+       arm,nand-cycle-t0 = <0x4>;
+       arm,nand-cycle-t1 = <0x4>;
+       arm,nand-cycle-t2 = <0x1>;
+       arm,nand-cycle-t3 = <0x2>;
+       arm,nand-cycle-t4 = <0x2>;
+       arm,nand-cycle-t5 = <0x2>;
+       arm,nand-cycle-t6 = <0x4>;
+
+       partition@nand-fsbl-uboot {
+               label = "nand-fsbl-uboot";
+               reg = <0x0 0x100000>;
+       };
+       partition@nand-linux {
+               label = "nand-linux";
+               reg = <0x100000 0x500000>;
+       };
+       partition@nand-device-tree {
+               label = "nand-device-tree";
+               reg = <0x600000 0x20000>;
+       };
+       partition@nand-rootfs {
+               label = "nand-rootfs";
+               reg = <0x620000 0x5E0000>;
+       };
+       partition@nand-bitstream {
+               label = "nand-bitstream";
+               reg = <0xC00000 0x400000>;
+       };
+};
+
+&smcc {
+       status = "okay";
+       arm,addr25 = <0x0>;
+       arm,nor-chip-sel0 = <0x0>;
+       arm,nor-chip-sel1 = <0x0>;
+       arm,sram-chip-sel0 = <0x0>;
+       arm,sram-chip-sel1 = <0x0>;
+};
+
+&spi0 {
+       status = "okay";
+       num-cs = <4>;
+       is-decoded-cs = <0>;
+};
+
+&uart1 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&usb1 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy1>;
+};
diff --git a/arch/arm/boot/dts/zynq-zc770-xm012.dts b/arch/arm/boot/dts/zynq-zc770-xm012.dts
new file mode 100644 (file)
index 0000000..f51df0c
--- /dev/null
@@ -0,0 +1,113 @@
+/*
+ * Device Tree Generator version: 1.1
+ *
+ * (C) Copyright 2007-2013 Xilinx, Inc.
+ * (C) Copyright 2007-2013 Michal Simek
+ * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
+ *
+ * Michal SIMEK <monstr@monstr.eu>
+ *
+ * CAUTION: This file is automatically generated by libgen.
+ * Version: Xilinx EDK 14.5 EDK_P.58f
+ *
+ */
+/dts-v1/;
+#include "zynq-7000.dtsi"
+
+/ {
+       compatible = "xlnx,zynq-zc770-xm012", "xlnx,zynq-7000";
+       model = "Xilinx Zynq";
+
+       aliases {
+               i2c0 = &i2c0;
+               i2c1 = &i2c1;
+               serial0 = &uart1;
+               spi0 = &spi1;
+       };
+
+       chosen {
+               bootargs = "";
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x40000000>;
+       };
+};
+
+&can1 {
+       status = "okay";
+};
+
+&i2c0 {
+       status = "okay";
+       clock-frequency = <400000>;
+
+       m24c02_eeprom@52 {
+               compatible = "at,24c02";
+               reg = <0x52>;
+       };
+};
+
+&i2c1 {
+       status = "okay";
+       clock-frequency = <400000>;
+
+       m24c02_eeprom@52 {
+               compatible = "at,24c02";
+               reg = <0x52>;
+       };
+};
+
+&nor0 {
+       status = "okay";
+       bank-width = <1>;
+       xlnx,sram-cycle-t0 = <0xb>;
+       xlnx,sram-cycle-t1 = <0xb>;
+       xlnx,sram-cycle-t2 = <0x4>;
+       xlnx,sram-cycle-t3 = <0x4>;
+       xlnx,sram-cycle-t4 = <0x3>;
+       xlnx,sram-cycle-t5 = <0x3>;
+       xlnx,sram-cycle-t6 = <0x2>;
+       partition@nor-fsbl-uboot {
+               label = "nor-fsbl-uboot";
+               reg = <0x0 0x100000>;
+       };
+       partition@nor-linux {
+               label = "nor-linux";
+               reg = <0x100000 0x500000>;
+       };
+       partition@nor-device-tree {
+               label = "nor-device-tree";
+               reg = <0x600000 0x20000>;
+       };
+       partition@nor-rootfs {
+               label = "nor-rootfs";
+               reg = <0x620000 0x5E0000>;
+       };
+       partition@nor-bitstream {
+               label = "nor-bitstream";
+               reg = <0xC00000 0x400000>;
+       };
+};
+
+&smcc {
+       status = "okay";
+       arm,addr25 = <0x1>;
+       arm,nor-chip-sel0 = <0x1>;
+       arm,nor-chip-sel1 = <0x0>;
+       arm,sram-chip-sel0 = <0x0>;
+       arm,sram-chip-sel1 = <0x0>;
+};
+
+&spi1 {
+       status = "okay";
+       num-cs = <4>;
+       is-decoded-cs = <0>;
+};
+
+&uart1 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
diff --git a/arch/arm/boot/dts/zynq-zc770-xm013.dts b/arch/arm/boot/dts/zynq-zc770-xm013.dts
new file mode 100644 (file)
index 0000000..9cd72e1
--- /dev/null
@@ -0,0 +1,122 @@
+/*
+ * Device Tree Generator version: 1.1
+ *
+ * (C) Copyright 2007-2013 Xilinx, Inc.
+ * (C) Copyright 2007-2013 Michal Simek
+ * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
+ *
+ * Michal SIMEK <monstr@monstr.eu>
+ *
+ * CAUTION: This file is automatically generated by libgen.
+ * Version: Xilinx EDK 14.5 EDK_P.58f
+ *
+ */
+/dts-v1/;
+#include "zynq-7000.dtsi"
+
+/ {
+       compatible = "xlnx,zynq-zc770-xm013", "xlnx,zynq-7000";
+       model = "Xilinx Zynq";
+
+       aliases {
+               ethernet0 = &gem1;
+               i2c0 = &i2c1;
+               serial0 = &uart0;
+               spi0 = &qspi;
+               spi1 = &spi0;
+       };
+
+       chosen {
+               bootargs = "";
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x40000000>;
+       };
+};
+
+&can1 {
+       status = "okay";
+};
+
+&gem1 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy@7 {
+               reg = <7>;
+               device_type = "ethernet-phy";
+       };
+};
+
+&i2c1 {
+       status = "okay";
+       clock-frequency = <400000>;
+
+       si570: clock-generator@55 {
+               #clock-cells = <0>;
+               compatible = "silabs,si570";
+               temperature-stability = <50>;
+               reg = <0x55>;
+               factory-fout = <156250000>;
+               clock-frequency = <148500000>;
+       };
+};
+
+&qspi {
+       status = "okay";
+       is-dual = <1>;
+       num-cs = <1>;
+       flash@0 {
+               compatible = "n25q128a11";
+               reg = <0x0>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <4>;
+               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>;
+               };
+       };
+};
+
+&spi0 {
+       status = "okay";
+       num-cs = <4>;
+       is-decoded-cs = <0>;
+       eeprom: at25@0 {
+               at25,byte-len = <8192>;
+               at25,addr-mode = <2>;
+               at25,page-size = <32>;
+
+               compatible = "atmel,at25";
+               reg = <2>;
+               spi-max-frequency = <1000000>;
+       };
+};
+
+&uart0 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
index 5e44dc12fd60a5d00a622d079e6776d100de05dd..b242b6ab2390dd3fa09a8d0e83dee6f1d4476728 100644 (file)
@@ -21,6 +21,8 @@
        aliases {
                ethernet0 = &gem0;
                serial0 = &uart1;
+               spi0 = &qspi;
+               mmc0 = &sdhci0;
        };
 
        memory@0 {
                stdout-path = "serial0:115200n8";
        };
 
-       usb_phy0: phy0 {
-               compatible = "usb-nop-xceiv";
+       usb_phy0: phy0@e0002000 {
+               compatible = "ulpi-phy";
                #phy-cells = <0>;
+               reg = <0xe0002000 0x1000>;
+               view-port = <0x0170>;
+               drv-vbus;
        };
 };
 
        };
 };
 
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+       is-dual = <0>;
+       num-cs = <1>;
+       flash@0 {
+               compatible = "n25q128a11";
+               reg = <0x0>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <4>;
+               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>;
+               };
+       };
+};
+
 &sdhci0 {
+       u-boot,dm-pre-reloc;
        status = "okay";
 };
 
 &uart1 {
+       u-boot,dm-pre-reloc;
        status = "okay";
 };
 
index e40cafc5ee5b638c7371709d51241bc5d8a1c5fe..b89e245ed5f503fa1328679fc9bba38b0fe0355f 100644 (file)
@@ -21,6 +21,8 @@
        aliases {
                ethernet0 = &gem0;
                serial0 = &uart1;
+               spi0 = &qspi;
+               mmc0 = &sdhci0;
        };
 
        memory@0 {
        };
 };
 
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
 &sdhci0 {
+       u-boot,dm-pre-reloc;
        status = "okay";
 };
 
 &uart1 {
+       u-boot,dm-pre-reloc;
        status = "okay";
 };