Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | /include/ "zynq-7000.dtsi" |
| 3 | /include/ "zynq-7000-qspi-dummy.dtsi" |
| 4 | |
| 5 | / { |
| 6 | model = "Zynq A9 QEMU"; |
| 7 | compatible = "qemu,xilinx-zynq-a9", "xlnx,zynq-7000"; |
| 8 | |
| 9 | aliases { |
| 10 | ethernet0 = &gem0; |
| 11 | serial0 = &uart1; |
| 12 | }; |
| 13 | |
| 14 | memory { |
| 15 | device_type = "memory"; |
| 16 | reg = <0x0 0x40000000>; |
| 17 | }; |
| 18 | |
| 19 | chosen { |
| 20 | bootargs = "earlyprintk"; |
| 21 | stdout-path = "serial0:115200n8"; |
| 22 | }; |
| 23 | }; |
| 24 | |
| 25 | &amba { |
| 26 | /* Setup a fixed 25 MHz clock (100Mbps) to trick the ethernet driver */ |
| 27 | fixednetclk: clock { |
| 28 | #clock-cells = <0>; |
| 29 | compatible = "fixed-clock"; |
| 30 | clock-frequency = <25000000>; |
| 31 | }; |
| 32 | }; |
| 33 | |
| 34 | &gem0 { |
| 35 | status = "okay"; |
| 36 | clocks = <&clkc 30>, <&clkc 30>, <&fixednetclk>, <&fixednetclk>, <&clkc 30>; |
| 37 | phy-mode = "rgmii-id"; |
| 38 | phy-handle = <ðernet_phy>; |
| 39 | |
| 40 | ethernet_phy: ethernet-phy@23 { |
| 41 | device_type = "ethernet-phy"; |
| 42 | reg = <23>; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | &sdhci0 { |
| 47 | status = "okay"; |
| 48 | }; |
| 49 | |
| 50 | &uart1 { |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
| 54 | &qspi { |
| 55 | status = "okay"; |
| 56 | is-dual = <1>; |
| 57 | primary_flash: ps7-qspi@0 { |
| 58 | #address-cells = <1>; |
| 59 | #size-cells = <1>; |
| 60 | compatible = "st,m25p80"; |
| 61 | reg = <0x0>; |
| 62 | spi-max-frequency = <50000000>; |
| 63 | partition@0x00000000 { |
| 64 | label = "boot"; |
| 65 | reg = <0x00000000 0x00500000>; |
| 66 | }; |
| 67 | partition@0x00500000 { |
| 68 | label = "bootenv"; |
| 69 | reg = <0x00500000 0x00020000>; |
| 70 | }; |
| 71 | partition@0x00520000 { |
| 72 | label = "config"; |
| 73 | reg = <0x00520000 0x00020000>; |
| 74 | }; |
| 75 | partition@0x00540000 { |
| 76 | label = "image"; |
| 77 | reg = <0x00540000 0x00a80000>; |
| 78 | }; |
| 79 | partition@0x00fc0000 { |
| 80 | label = "spare"; |
| 81 | reg = <0x00fc0000 0x00000000>; |
| 82 | }; |
| 83 | }; |
| 84 | }; |
| 85 | |