Hi,
I cannot generate a correct DTS for my tests.
I am working with Microzed 7020 and my project consists of PS only.
My dts file is
/dts-v1/;
/ {
t#address-cells = <1>;
t#size-cells = <1>;
tcompatible = "xlnx,zynq-7000";
tmodel = "Xilinx Zynq";
taliases {
ttethernet0 = &ps7_ethernet_0;
ttserial0 = &ps7_uart_1;
ttspi0 = &ps7_qspi_0;
t} ;
tchosen {
ttbootargs = "console=ttyUSB0,115200 root=/dev/ram rw ip=:::::eth0:dhcp earlyprintk";
ttlinux,stdout-path = "/amba@0/serial@e0001000";
t} ;
tcpus {
tt#address-cells = <1>;
tt#size-cells = <0>;
ttps7_cortexa9_0: cpu@0 {
tttbus-handle = <&ps7_axi_interconnect_0>;
tttclock-latency = <1000>;
tttclocks = <&clkc 3>;
tttcompatible = "arm,cortex-a9";
tttdevice_type = "cpu";
tttinterrupt-handle = <&ps7_scugic_0>;
tttoperating-points = <666667 1000000 333334 1000000 222223 1000000>;
tttreg = <0x0>;
tt} ;
ttps7_cortexa9_1: cpu@1 {
tttbus-handle = <&ps7_axi_interconnect_0>;
tttclocks = <&clkc 3>;
tttcompatible = "arm,cortex-a9";
tttdevice_type = "cpu";
tttinterrupt-handle = <&ps7_scugic_0>;
tttreg = <0x1>;
tt} ;
t} ;
tpmu {
ttcompatible = "arm,cortex-a9-pmu";
ttinterrupt-parent = <&ps7_scugic_0>;
ttinterrupts = <0 5 4>, <0 6 4>;
ttreg = <0xf8891000 0x1000>, <0xf8893000 0x1000>;
ttreg-names = "cpu0", "cpu1";
t} ;
tps7_ddr_0: memory@0 {
ttdevice_type = "memory";
ttreg = <0x0 0x40000000>;
t} ;
tps7_axi_interconnect_0: amba@0 {
tt#address-cells = <1>;
tt#size-cells = <1>;
ttcompatible = "xlnx,ps7-axi-interconnect-1.00.a", "simple-bus";
ttranges ;
ttps7_afi_0: ps7-afi@f8008000 {
tttcompatible = "xlnx,ps7-afi-1.00.a";
tttreg = <0xf8008000 0x1000>;
tt} ;
ttps7_afi_1: ps7-afi@f8009000 {
tttcompatible = "xlnx,ps7-afi-1.00.a";
tttreg = <0xf8009000 0x1000>;
tt} ;
ttps7_afi_2: ps7-afi@f800a000 {
tttcompatible = "xlnx,ps7-afi-1.00.a";
tttreg = <0xf800a000 0x1000>;
tt} ;
ttps7_afi_3: ps7-afi@f800b000 {
tttcompatible = "xlnx,ps7-afi-1.00.a";
tttreg = <0xf800b000 0x1000>;
tt} ;
ttps7_clockc_0: ps7-clockc@0 {
tttcompatible = "xlnx,ps7-clockc-1.00.a";
tttxlnx,has-modem = <0x0>;
tttxlnx,input-crystal-freq-hz = <0x1f78a40>;
tt} ;
ttps7_ddrc_0: ps7-ddrc@f8006000 {
tttcompatible = "xlnx,zynq-ddrc-1.0";
tttreg = <0xf8006000 0x1000>;
tttxlnx,has-ecc = <0x0>;
tt} ;
ttps7_dev_cfg_0: ps7-dev-cfg@f8007000 {
tttclock-names = "ref_clk", "fclk0", "fclk1", "fclk2", "fclk3";
tttclocks = <&clkc 12>, <&clkc 15>, <&clkc 16>, <&clkc 17>, <&clkc 18>;
tttcompatible = "xlnx,zynq-devcfg-1.0";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 8 4>;
tttreg = <0xf8007000 0x100>;
tt} ;
ttps7_dma_s: ps7-dma@f8003000 {
ttt#dma-cells = <1>;
ttt#dma-channels = <8>;
ttt#dma-requests = <4>;
tttclock-names = "apb_pclk";
tttclocks = <&clkc 27>;
tttcompatible = "arm,primecell", "arm,pl330";
tttinterrupt-names = "abort", "dma0", "dma1", "dma2", "dma3",
tttt"dma4", "dma5", "dma6", "dma7";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 13 4>, <0 14 4>, <0 15 4>, <0 16 4>, <0 17 4>, <0 40 4>, <0 41 4>, <0 42 4>, <0 43 4>;
tttreg = <0xf8003000 0x1000>;
tt} ;
ttps7_ethernet_0: ps7-ethernet@e000b000 {
ttt#address-cells = <1>;
ttt#size-cells = <0>;
tttclock-names = "ref_clk", "aper_clk";
tttclocks = <&clkc 13>, <&clkc 30>;
tttcompatible = "xlnx,ps7-ethernet-1.00.a";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 22 4>;
tttlocal-mac-address = [00 0a 35 00 00 00];
tttphy-handle = <&phy0>;
tttphy-mode = "rgmii-id";
tttreg = <0xe000b000 0x1000>;
tttxlnx,eth-mode = <0x1>;
tttxlnx,has-mdio = <0x1>;
tttxlnx,ptp-enet-clock = <110000000>;
tttmdio {
tttt#address-cells = <1>;
tttt#size-cells = <0>;
ttttphy0: phy@7 {
tttttcompatible = "marvell,88e1116r";
tttttdevice_type = "ethernet-phy";
tttttreg = <7>;
tttt} ;
ttt} ;
tt} ;
ttps7_globaltimer_0: ps7-globaltimer@f8f00200 {
tttclocks = <&clkc 4>;
tttcompatible = "arm,cortex-a9-global-timer";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <1 11 0x301>;
tttreg = <0xf8f00200 0x100>;
tt} ;
ttps7_gpio_0: ps7-gpio@e000a000 {
ttt#gpio-cells = <2>;
tttclocks = <&clkc 42>;
tttcompatible = "xlnx,zynq-gpio-1.0";
tttemio-gpio-width = <64>;
tttgpio-controller ;
tttgpio-mask-high = <0x0>;
tttgpio-mask-low = <0x5600>;
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 20 4>;
tttreg = <0xe000a000 0x1000>;
tt} ;
ttps7_iop_bus_config_0: ps7-iop-bus-config@e0200000 {
tttcompatible = "xlnx,ps7-iop-bus-config-1.00.a";
tttreg = <0xe0200000 0x1000>;
tt} ;
ttps7_ocmc_0: ps7-ocmc@f800c000 {
tttcompatible = "xlnx,zynq-ocmc-1.0";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 3 4>;
tttreg = <0xf800c000 0x1000>;
tt} ;
ttps7_pl310_0: ps7-pl310@f8f02000 {
tttarm,data-latency = <3 2 2>;
tttarm,tag-latency = <2 2 2>;
tttcache-level = <2>;
tttcache-unified ;
tttcompatible = "arm,pl310-cache";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 2 4>;
tttreg = <0xf8f02000 0x1000>;
tt} ;
ttps7_pmu_0: ps7-pmu@f8891000 {
ttt#address-cells = <1>;
ttt#size-cells = <1>;
tttcompatible = "xlnx,ps7-pmu-1.00.a";
tttranges = <0xf8891000 0xf8891000 0x1000 0xf8893000 0xf8893000 0x1000>;
tt} ;
ttps7_qspi_0: ps7-qspi@e000d000 {
tttclock-names = "ref_clk", "aper_clk";
tttclocks = <&clkc 10>, <&clkc 43>;
tttcompatible = "xlnx,zynq-qspi-1.0";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 19 4>;
tttis-dual = <0>;
tttnum-chip-select = <1>;
tttreg = <0xe000d000 0x1000>;
tttxlnx,fb-clk = <0x1>;
tttxlnx,qspi-mode = <0x0>;
tt} ;
ttps7_qspi_linear_0: ps7-qspi-linear@fc000000 {
tttclock-names = "ref_clk", "aper_clk";
tttclocks = <&clkc 10>, <&clkc 43>;
tttcompatible = "xlnx,ps7-qspi-linear-1.00.a";
tttreg = <0xfc000000 0x1000000>;
tt} ;
ttps7_scugic_0: ps7-scugic@f8f01000 {
ttt#address-cells = <2>;
ttt#interrupt-cells = <3>;
ttt#size-cells = <1>;
tttcompatible = "arm,cortex-a9-gic", "arm,gic";
tttinterrupt-controller ;
tttnum_cpus = <2>;
tttnum_interrupts = <96>;
tttreg = <0xf8f01000 0x1000>, <0xf8f00100 0x100>;
tt} ;
ttps7_scutimer_0: ps7-scutimer@f8f00600 {
tttclocks = <&clkc 4>;
tttcompatible = "arm,cortex-a9-twd-timer";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <1 13 0x301>;
tttreg = <0xf8f00600 0x20>;
tt} ;
ttps7_scuwdt_0: ps7-scuwdt@f8f00620 {
tttclocks = <&clkc 4>;
tttcompatible = "xlnx,ps7-scuwdt-1.00.a";
tttdevice_type = "watchdog";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <1 14 0x301>;
tttreg = <0xf8f00620 0xe0>;
tt} ;
ttps7_sd_0: ps7-sdio@e0100000 {
tttclock-frequency = <51000000>;
tttclock-names = "clk_xin", "clk_ahb";
tttclocks = <&clkc 21>, <&clkc 32>;
tttcompatible = "arasan,sdhci-8.9a";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 24 4>;
tttreg = <0xe0100000 0x1000>;
tttxlnx,has-cd = <0x1>;
tttxlnx,has-power = <0x0>;
tttxlnx,has-wp = <0x1>;
tt} ;
ttps7_slcr_0: ps7-slcr@f8000000 {
ttt#address-cells = <1>;
ttt#size-cells = <1>;
tttcompatible = "xlnx,zynq-slcr", "syscon";
tttranges ;
tttreg = <0xf8000000 0x1000>;
tttclkc: clkc@100 {
tttt#clock-cells = <1>;
ttttclock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x",
ttttt"cpu_2x", "cpu_1x", "ddr2x", "ddr3x", "dci",
ttttt"lqspi", "smc", "pcap", "gem0", "gem1",
ttttt"fclk0", "fclk1", "fclk2", "fclk3", "can0",
ttttt"can1", "sdio0", "sdio1", "uart0", "uart1",
ttttt"spi0", "spi1", "dma", "usb0_aper", "usb1_aper",
ttttt"gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper", "spi0_aper",
ttttt"spi1_aper", "can0_aper", "can1_aper", "i2c0_aper", "i2c1_aper",
ttttt"uart0_aper", "uart1_aper", "gpio_aper", "lqspi_aper", "smc_aper",
ttttt"swdt", "dbg_trc", "dbg_apb";
ttttcompatible = "xlnx,ps7-clkc";
ttttfclk-enable = <0xf>;
ttttps-clk-frequency = <33333333>;
ttttreg = <0x100 0x100>;
ttt} ;
tt} ;
ttps7_ttc_0: ps7-ttc@f8001000 {
tttclocks = <&clkc 6>;
tttcompatible = "cdns,ttc";
tttinterrupt-names = "ttc0", "ttc1", "ttc2";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 10 4>, <0 11 4>, <0 12 4>;
tttreg = <0xf8001000 0x1000>;
tt} ;
ttps7_uart_1: serial@e0001000 {
tttclock-names = "ref_clk", "aper_clk";
tttclocks = <&clkc 24>, <&clkc 41>;
tttcompatible = "xlnx,xuartps";
tttcurrent-speed = <115200>;
tttdevice_type = "serial";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 50 4>;
tttport-number = <0>;
tttreg = <0xe0001000 0x1000>;
tttxlnx,has-modem = <0x0>;
tt} ;
ttps7_usb_0: ps7-usb@e0002000 {
tttclocks = <&clkc 28>;
tttcompatible = "xlnx,ps7-usb-1.00.a", "xlnx,zynq-usb-1.00.a";
tttdr_mode = "host";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 21 4>;
tttphy_type = "ulpi";
tttreg = <0xe0002000 0x1000>;
tttusb-reset = <&ps7_gpio_0 7 0>;
tt} ;
ttps7_xadc: ps7-xadc@f8007100 {
tttclocks = <&clkc 12>;
tttcompatible = "xlnx,zynq-xadc-1.00.a";
tttinterrupt-parent = <&ps7_scugic_0>;
tttinterrupts = <0 7 4>;
tttreg = <0xf8007100 0x20>;
tt} ;
t} ;
} ;
and the boot crashes here
## Booting kernel from Legacy Image at 02080000 ...
Image Name: Linux-3.18.0-xilinx-06187-gb1d65
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3453304 Bytes = 3.3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name:
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5309954 Bytes = 5.1 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
Booting using the fdt blob at 0x2000000
Loading Kernel Image ... OK
Loading Ramdisk to 1faef000, end 1ffff602 ... OK
Loading Device Tree to 1faea000, end 1faeec04 ... OK
Starting kernel ...
What am I doing wrong?
Thanks in advance,
Max