Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
9d3c13519This file is pinned to the selected release. Download the original to open it in your design tool.
/*
* MicroZed Device Tree
* Version 1.0
*
* Copyright (C) 2014-2015 H.Poetzl
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version
* 2 of the License, or (at your option) any later version.
*
* http://devicetree.org/Device_Tree_Usage
* Power_ePAPR_APPROVED_v1.1.pdf
*
* scripts/dtc/dtc -I dts -O dtb -o devicetree.dtb devicetree.dts
*
*/
/dts-v1/; /* version */
/* memory res. */
/ { /* device tree */
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,zynq-7000", "xlnx,zynq-zed";
model = "Xilinx Zynq ZED";
aliases { /* aliases */
ethernet0 = &ps7_ethernet_0;
serial0 = &ps7_uart_1;
serial1 = &ps7_uart_0;
spi0 = &ps7_qspi_0;
};
chosen { /* defaults */
bootargs = "console=ttyPS0,115200 root=/dev/ram rw earlyprintk";
linux,stdout-path = "/axi@0/serial@e0001000";
};
cpus { /* ps7 cores */
#address-cells = <1>;
#cpus = <0x2>;
#size-cells = <0>;
ps7_cortexa9_0: cpu@0 { /* first core */
compatible = "xlnx,ps7-cortexa9-1.00.a", "arm,cortex-a9";
bus-handle = <&ps7_axi_interconnect_0>;
interrupt-handle = <&ps7_scugic_0>;
device_type = "cpu";
model = "ps7_cortexa9,1.00.a";
timebase-frequency = <333333343>;
clock-frequency = <666666687>;
d-cache-line-size = <0x20>;
d-cache-size = <0x8000>;
i-cache-line-size = <0x20>;
i-cache-size = <0x8000>;
xlnx,cpu-1x-clk-freq-hz = <0x69f6bcb>;
xlnx,cpu-clk-freq-hz = <0x27bc86bf>;
reg = <0>;
};
ps7_cortexa9_1: cpu@1 { /* second core */
compatible = "xlnx,ps7-cortexa9-1.00.a", "arm,cortex-a9";
bus-handle = <&ps7_axi_interconnect_0>;
interrupt-handle = <&ps7_scugic_0>;
device_type = "cpu";
model = "ps7_cortexa9,1.00.a";
timebase-frequency = <333333343>;
clock-frequency = < 666666687 >;
d-cache-line-size = <0x20>;
d-cache-size = <0x8000>;
i-cache-line-size = <0x20>;
i-cache-size = <0x8000>;
xlnx,cpu-1x-clk-freq-hz = <0x69f6bcb>;
xlnx,cpu-clk-freq-hz = <0x27bc86bf>;
reg = <1>;
};
};
pmu {
compatible = "arm,cortex-a9-pmu";
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 5 4 >, < 0 6 4 >;
reg = < 0xf8891000 0x1000 >, < 0xf8893000 0x1000 >;
reg-names = "cpu0", "cpu1";
};
ps7_ddr_0: memory@0 { /* memory */
device_type = "memory";
reg = < 0x0 0x20000000 >;
};
ps7_axi_interconnect_0: axi@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,ps7-axi-interconnect-1.00.a", "simple-bus";
ranges;
ps7_slcr_0: ps7-slcr@f8000000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,ps7-slcr-1.00.a", "xlnx,zynq-slcr", "syscon";
reg = < 0xf8000000 0x1000 >;
ranges;
clkc: clkc@100 {
#clock-cells = <1>;
compatible = "xlnx,ps7-clkc";
clock-output-names = "armpll", "ddrpll", "iopll",
"cpu_6or4x", "cpu_3or2x", "cpu_2x", "cpu_1x",
"ddr2x", "ddr3x", "dci", "lqspi", "smc", "pcap",
"gem0", "gem1", "fclk0", "fclk1", "fclk2", "fclk3",
"can0", "can1", "sdio0", "sdio1", "uart0", "uart1",
"spi0", "spi1", "dma", "usb0_aper", "usb1_aper",
"gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper",
"spi0_aper", "spi1_aper", "can0_aper", "can1_aper",
"i2c0_aper", "i2c1_aper", "uart0_aper", "uart1_aper",
"gpio_aper", "lqspi_aper", "smc_aper",
"swdt", "dbg_trc", "dbg_apb";
reg = <0x100 0x100>;
fclk-enable = <0xf>;
ps-clk-frequency = <33333333>;
};
};
ps7_scugic_0: ps7-scugic@f8f01000 {
compatible = "xlnx,ps7-scugic-1.00.a", "arm,cortex-a9-gic", "arm,gic";
#address-cells = <2>;
#interrupt-cells = <3>;
#size-cells = <1>;
interrupt-controller;
num_cpus = <2>;
num_interrupts = <96>;
linux,phandle = <0x1>;
// phandle = <0x1>;
reg = < 0xf8f01000 0x1000 >, < 0xf8f00100 0x100 >;
};
ps7_scutimer_0: ps7-scutimer@f8f00600 {
compatible = "xlnx,ps7-scutimer-1.00.a", "arm,cortex-a9-twd-timer";
clocks = <&clkc 4>;
// clock-frequency = <333333343>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 1 13 0x301 >;
reg = < 0xf8f00600 0x20 >;
};
ps7_scuwdt_0: ps7-scuwdt@f8f00620 { /* System Watchdog Timer */
compatible = "xlnx,ps7-scuwdt-1.00.a", "arm,cortex-a9-twd-wdt";
clocks = <&clkc 4>;
// clock-frequency = <333333343>;
device_type = "watchdog";
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 1 14 0x301 >;
reg = < 0xf8f00620 0xe0 >;
};
ps7_ttc_0: ps7-ttc@f8001000 { /* Tripe Timer Counters */
compatible = "xlnx,ps7-ttc-1.00.a", "cdns,ttc";
clocks = <&clkc 6>;
interrupt-names = "ttc0", "ttc1", "ttc2";
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 10 4 >, < 0 11 4 >, < 0 12 4 >;
reg = < 0xf8001000 0x1000 >;
};
ps7_ttc_1: ps7-ttc@f8002000 {
compatible = "xlnx,ps7-ttc-1.00.a", "cdns,ttc";
clocks = <&clkc 6>;
interrupt-names = "ttc0", "ttc1", "ttc2";
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 37 4 >, < 0 38 4 >, < 0 39 4 >;
reg = < 0xf8002000 0x1000 >;
};
ps7_pl310_0: ps7-pl310@f8f02000 { /* Cache controller */
compatible = "xlnx,ps7-pl310-1.00.a", "arm,pl310-cache";
arm,data-latency = < 3 2 2 >;
arm,tag-latency = < 2 2 2 >;
cache-level = <2>;
cache-unified;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 2 4 >;
reg = < 0xf8f02000 0x1000 >;
};
ps7_dma_s: ps7-dma@f8003000 {
#dma-cells = <1>;
#dma-channels = <8>;
#dma-requests = <4>;
arm,primecell-periphid = <0x41330>;
compatible = "xlnx,ps7-dma-1.00.a", "arm,primecell", "arm,pl330";
clocks = <&clkc 27>;
clock-names = "apb_pclk";
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 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 >;
interrupt-names = "abort", "dma0", "dma1", "dma2", "dma3",
"dma4", "dma5", "dma6", "dma7";
reg = < 0xf8003000 0x1000 >;
};
ps7_dma_ns: ps7-dma@f8004000 {
#dma-cells = <1>;
#dma-channels = <8>;
#dma-requests = <4>;
arm,primecell-periphid = <0x41330>;
compatible = "xlnx,ps7-dma-1.00.a", "arm,pl330";
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 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 >;
reg = < 0xf8004000 0x1000 >;
};
ps7_wdt_0: ps7-wdt@f8005000 {
device_type = "watchdog";
compatible = "xlnx,ps7-wdt-1.00.a";
clocks = <&clkc 45>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 9 4 >;
reset = <0>;
timeout = <10>;
reg = < 0xf8005000 0x1000 >;
};
ps7_ddrc_0: ps7-ddrc@f8006000 { /* DDR Memory Controller */
compatible = "xlnx,zynq-ddrc-1.0";
reg = < 0xf8006000 0x1000 >;
xlnx,has-ecc = <0x0>;
};
ps7_dev_cfg_0: ps7-dev-cfg@f8007000 {
compatible = "xlnx,zynq-devcfg-1.0";
clock-names = "ref_clk", "fclk0", "fclk1", "fclk2", "fclk3";
clocks = <&clkc 12>, <&clkc 15>, <&clkc 16>,
<&clkc 17>, <&clkc 18>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 8 4 >;
reg = < 0xf8007000 0x100 >;
};
ps7_xadc: ps7-xadc@f8007100 {
compatible = "xlnx,zynq-xadc-1.00.a";
clocks = <&clkc 12>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 7 4 >;
reg = < 0xf8007100 0x20 >;
};
ps7_afi_0: ps7-afi@f8008000 {
compatible = "xlnx,ps7-afi-1.00.a";
reg = < 0xf8008000 0x1000 >;
};
ps7_afi_1: ps7-afi@f8009000 {
compatible = "xlnx,ps7-afi-1.00.a";
reg = < 0xf8009000 0x1000 >;
};
ps7_afi_2: ps7-afi@f800a000 {
compatible = "xlnx,ps7-afi-1.00.a";
reg = < 0xf800a000 0x1000 >;
};
ps7_afi_3: ps7-afi@f800b000 {
compatible = "xlnx,ps7-afi-1.00.a";
reg = < 0xf800b000 0x1000 >;
};
ps7_ocmc_0: ps7-ocmc@f800c000 {
compatible = "xlnx,zynq-ocmc-1.0";
interrupt-parent = <&ps7_scugic_0>;
interrupts = <0 3 4>;
reg = <0xf800c000 0x1000>;
};
ps7_qspi_linear_0: ps7-qspi-linear@fc000000 {
compatible = "xlnx,ps7-qspi-linear-1.00.a";
clock-names = "ref_clk", "aper_clk";
clocks = <&clkc 10>, <&clkc 43>;
reg = < 0xfc000000 0x1000000 >;
};
ps7_ram_0: ps7-ram@0 {
compatible = "xlnx,ps7-ram-1.00.a", "xlnx,ps7-ocm";
interrupt-parent = <&ps7_scugic_0>;
interrupts = <0 3 4>;
reg = < 0xfffc0000 0x40000 >;
};
ps7_uart_0: serial@e0000000 {
device_type = "serial";
compatible = "xlnx,ps7-uart-1.00.a", "xlnx,xuartps";
// clock-names = "ref_clk", "aper_clk";
clock-names = "uart_clk", "pclk";
clocks = <&clkc 23>, <&clkc 40>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 27 4 >;
current-speed = <115200>;
clock-frequency = <100000000>;
// xlnx,has-modem = <0x0>;
xlnx,uart-clk-freq-hz = <0x5f5e100>;
port-number = <0>;
reg = < 0xe0000000 0x1000 >;
};
ps7_uart_1: serial@e0001000 {
device_type = "serial";
compatible = "xlnx,ps7-uart-1.00.a", "xlnx,xuartps";
// clock-names = "ref_clk", "aper_clk";
clock-names = "uart_clk", "pclk";
clocks = <&clkc 24>, <&clkc 41>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 50 4 >;
current-speed = <115200>;
// xlnx,has-modem = <0x0>;
// xlnx,uart-clk-freq-hz = <0x2faf080>;
port-number = <1>;
reg = < 0xe0001000 0x1000 >;
};
ps7_usb_0: ps7-usb@e0002000 {
compatible = "xlnx,ps7-usb-1.00.a";
clocks = <&clkc 28>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 21 4 >;
dr_mode = "host";
phy_type = "ulpi";
// xlnx,usb-reset = <0xffffffff>;
reg = < 0xe0002000 0x1000 >;
};
/* ps7_usb_1: ps7-usb@e0003000 {
compatible = "xlnx,ps7-usb-1.00.a";
clocks = <&clkc 29>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 44 4 >;
dr_mode = "host";
phy_type = "ulpi";
// xlnx,usb-reset = <0xffffffff>;
reg = < 0xe0003000 0x1000 >;
}; */
ps7_i2c_0: ps7-i2c@e0004000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "cdns,i2c-r1p10";
bus-id = <0>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 25 4 >;
clocks = <&clkc 38>;
clock-frequency = <250000>;
reg = < 0xe0004000 0x1000 >;
};
ps7_i2c_1: ps7-i2c@e0005000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "cdns,i2c-r1p10";
bus-id = <1>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 48 4 >;
clocks = <&clkc 39>;
clock-frequency = <250000>;
reg = < 0xe0005000 0x1000 >;
};
ps7_spi_0: ps7-spi@e0006000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "cdns,spi-r1p6";
clock-names = "ref_clk", "pclk";
clocks = <&clkc 25>, <&clkc 34>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 26 4 >;
bus-num = <0>;
num-cs = <4>;
is-decoded-cs = <0>;
speed-hz = <166666666>;
reg = < 0xe0006000 0x1000 >;
eeprom: at25@0 {
compatible = "atmel,at25";
at25,byte-len = <8192>;
at25,addr-mode = <2>;
at25,page-size = <32>;
reg = <2>;
spi-max-frequency = <1000000>;
};
};
ps7_spi_1: ps7-spi@e0007000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "cdns,spi-r1p6";
clock-names = "ref_clk", "pclk";
clocks = <&clkc 26>, <&clkc 35>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 49 4 >;
bus-num = <1>;
num-cs = <4>;
is-decoded-cs = <0>;
speed-hz = <166666666>;
reg = < 0xe0007000 0x1000 >;
};
/* ps7_can_0: ps7-can@e0008000 {
compatible = "xlnx,ps7-can-1.00.a";
clock-names = "ref_clk", "aper_clk";
clocks = <&clkc 20>, <&clkc 37>;
reg = < 0xe0008000 0x1000 >;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 28 4 >;
}; */
/* ps7_can_1: ps7-can@e0009000 {
compatible = "xlnx,ps7-can-1.00.a";
clock-names = "ref_clk", "aper_clk";
clocks = <&clkc 21>, <&clkc 38>;
reg = < 0xe0009000 0x1000 >;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 51 4 >;
}; */
ps7_gpio_0: ps7-gpio@e000a000 {
#gpio-cells = <2>;
compatible = "xlnx,zynq-gpio-1.0";
clocks = <&clkc 42>;
emio-gpio-width = <64>;
gpio-controller ;
gpio-mask-high = <0x0>;
gpio-mask-low = <0x5600>;
gpio-base = <0>;
reg = < 0xe000a000 0x1000 >;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 20 4 >;
gpio-number-forward;
};
ps7_ethernet_0: ps7-ethernet@e000b000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "xlnx,ps7-ethernet-1.00.a";
clock-names = "ref_clk", "aper_clk";
clocks = <&clkc 13>, <&clkc 30>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 22 4 >;
local-mac-address = [ 00 0a 35 00 00 00 ];
phy-handle = <&phy0>;
phy-mode = "rgmii-id";
xlnx,enet-clk-freq-hz = <0x7735940>;
xlnx,enet-reset = <0xffffffff>;
xlnx,enet-slcr-1000mbps-div0 = <0x8>;
xlnx,enet-slcr-1000mbps-div1 = <0x1>;
xlnx,enet-slcr-100mbps-div0 = <0x8>;
xlnx,enet-slcr-100mbps-div1 = <0x5>;
xlnx,enet-slcr-10mbps-div0 = <0x8>;
xlnx,enet-slcr-10mbps-div1 = <0x32>;
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
xlnx,ptp-enet-clock = <111111115>;
reg = < 0xe000b000 0x1000 >;
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: phy@0 {
compatible = "marvell,88e1510";
device_type = "ethernet-phy";
reg = <0>;
marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0xa>;
};
};
};
/* ps7_ethernet_1: ps7-ethernet@e000c000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "xlnx,ps7-ethernet-1.00.a";
clock-names = "ref_clk", "aper_clk";
clocks = <&clkc 14>, <&clkc 31>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 45 1 >;
local-mac-address = [ 00 0a 35 00 00 01 ];
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
xlnx,ptp-enet-clock = <111111115>;
reg = < 0xe000c000 0x1000 >;
mdio {
#address-cells = <1>;
#size-cells = <0>;
};
}; */
ps7_qspi_0: ps7-qspi@e000d000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "xlnx,ps7-qspi-1.00.a,xlnx,zynq-qspi-1.0";
clock-names = "ref_clk", "aper_clk";
clocks = <&clkc 10>, <&clkc 43>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 19 4 >;
// bus-num = <2>;
status = "okay";
is-dual = <0>;
num-chip-select = <1>;
speed-hz = <200000000>;
reg = < 0xe000d000 0x1000 >;
flash@0 {
compatible = "n25q128";
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>;
};
};
};
ps7_sd_0: ps7-sdio@e0100000 { /* SD/SDIO */
compatible = "xlnx,ps7-sdio-1.00.a", "generic-sdhci", "arasan,sdhci-8.9a";
clock-names = "clk_xin", "clk_ahb";
clocks = <&clkc 21>, <&clkc 32>;
clock-frequency = <50000000>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 24 4 >;
xlnx,has-cd = <0x1>;
xlnx,has-power = <0x0>;
xlnx,has-wp = <0x1>;
xlnx,sdio-clk-freq-hz = <0x2faf080>;
reg = < 0xe0100000 0x1000 >;
};
ps7_sd_1: ps7-sdio@e0101000 {
compatible = "xlnx,ps7-sdio-1.00.a", "generic-sdhci", "arasan,sdhci-8.9a";
clock-names = "clk_xin", "clk_ahb";
clocks = <&clkc 22>, <&clkc 33>;
clock-frequency = <50000000>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = < 0 47 4 >;
/* broken-cd = <0x1>; */
xlnx,has-cd = <0x0>;
xlnx,has-power = <0x0>;
xlnx,has-wp = <0x0>;
xlnx,sdio-clk-freq-hz = <0x2faf080>;
reg = < 0xe0101000 0x1000 >;
};
ps7_iop_bus_config_0: ps7-iop-bus-config@e0200000 {
compatible = "xlnx,ps7-iop-bus-config-1.00.a";
reg = < 0xe0200000 0x1000 >;
};
zed_i2c_gpio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "i2c-gpio";
bus-id = <2>;
gpios = <
&ps7_gpio_0 9 0 /* sda */
&ps7_gpio_0 0 0 /* scl */ >;
/* i2c-gpio,sda-open-drain; */
/* i2c-gpio,scl-open-drain; */
/* i2c-gpio,delay-us = <5>; /* ~100 kHz */
i2c-gpio,delay-us = <10>; /* ~50 kHz */
/*
mcp23018@20 {
#gpio-cells = <2>;
gpio-controller ;
compatible = "microchip,mcp23017";
reg = <0x20>;
};
mcp23018@21 {
#gpio-cells = <2>;
gpio-controller ;
compatible = "microchip,mcp23017";
reg = <0x21>;
};
mcp23018@22 {
#gpio-cells = <2>;
gpio-controller ;
compatible = "microchip,mcp23017";
reg = <0x22>;
};
mcp23018@23 {
#gpio-cells = <2>;
gpio-controller ;
compatible = "microchip,mcp23017";
reg = <0x23>;
}; */
lm75@4f {
#gpio-cells = <2>;
compatible = "national,lm75";
reg = <0x4f>;
};
};
};
};