diff options
| author | Nathan Rossi <nathan@nathanrossi.com> | 2016-02-24 16:28:03 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-03-06 20:04:03 +1000 |
| commit | c8772c1ae9e79950b110d4b258cfa5c03b046339 (patch) | |
| tree | 546c391c89d9eb5081de8d296ee0e72677524f10 /recipes-bsp/device-tree | |
| parent | f472c57a008df2ab8d941fdbad5d9077343462db (diff) | |
| download | meta-xilinx-c8772c1ae9e79950b110d4b258cfa5c03b046339.tar.gz | |
picozed-zynq7: Rework device tree to use kernel source include
* Rework the picozed-zynq7.dts device tree to use the kernel source
include 'zynq-7000.dtsi'
* Store the new device tree in the device-tree recipe directory
* Remove existing device tree from conf/machine/boards
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'recipes-bsp/device-tree')
| -rw-r--r-- | recipes-bsp/device-tree/files/picozed/picozed-zynq7.dts | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/recipes-bsp/device-tree/files/picozed/picozed-zynq7.dts b/recipes-bsp/device-tree/files/picozed/picozed-zynq7.dts new file mode 100644 index 00000000..a7817cf0 --- /dev/null +++ b/recipes-bsp/device-tree/files/picozed/picozed-zynq7.dts | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | /dts-v1/; | ||
| 2 | /include/ "zynq-7000.dtsi" | ||
| 3 | |||
| 4 | / { | ||
| 5 | model = "Avnet picoZed"; | ||
| 6 | compatible = "avnet,picozed", "xlnx,zynq-7000"; | ||
| 7 | |||
| 8 | aliases { | ||
| 9 | ethernet0 = &gem0; | ||
| 10 | serial0 = &uart1; | ||
| 11 | }; | ||
| 12 | |||
| 13 | memory { | ||
| 14 | device_type = "memory"; | ||
| 15 | reg = <0x0 0x40000000>; | ||
| 16 | }; | ||
| 17 | |||
| 18 | chosen { | ||
| 19 | bootargs = "earlyprintk"; | ||
| 20 | stdout-path = "serial0:115200n8"; | ||
| 21 | }; | ||
| 22 | |||
| 23 | usb_phy0: phy0 { | ||
| 24 | compatible = "usb-nop-xceiv"; | ||
| 25 | #phy-cells = <0>; | ||
| 26 | reset-gpios = <&gpio0 7 1>; /* MIO 7, GPIO_ACTIVE_LOW */ | ||
| 27 | }; | ||
| 28 | }; | ||
| 29 | |||
| 30 | &amba { | ||
| 31 | /* empty defintion for kernels that don't have qspi node */ | ||
| 32 | qspi: spi@e000d000 { }; | ||
| 33 | }; | ||
| 34 | |||
| 35 | &gem0 { | ||
| 36 | status = "okay"; | ||
| 37 | phy-mode = "rgmii-id"; | ||
| 38 | phy-handle = <ðernet_phy>; | ||
| 39 | |||
| 40 | ethernet_phy: ethernet-phy@0 { | ||
| 41 | compatible = "marvell,88e1512"; | ||
| 42 | device_type = "ethernet-phy"; | ||
| 43 | reg = <0>; | ||
| 44 | }; | ||
| 45 | }; | ||
| 46 | |||
| 47 | &sdhci1 { | ||
| 48 | status = "okay"; | ||
| 49 | /* SD1 is onnected to a non-removable eMMC flash device */ | ||
| 50 | non-removable; | ||
| 51 | }; | ||
| 52 | |||
| 53 | &uart1 { | ||
| 54 | status = "okay"; | ||
| 55 | }; | ||
| 56 | |||
| 57 | &usb0 { | ||
| 58 | status = "okay"; | ||
| 59 | dr_mode = "host"; | ||
| 60 | usb-phy = <&usb_phy0>; | ||
| 61 | }; | ||
| 62 | |||
| 63 | &qspi { | ||
| 64 | status = "okay"; | ||
| 65 | primary_flash: ps7-qspi@0 { | ||
| 66 | #address-cells = <1>; | ||
| 67 | #size-cells = <1>; | ||
| 68 | compatible = "micron,m25p80", "spansion,s25fl128s", "jedec,spi-nor"; | ||
| 69 | reg = <0x0>; | ||
| 70 | spi-max-frequency = <50000000>; | ||
| 71 | /* Example 16M partition table using U-Boot + U-Boot SPL */ | ||
| 72 | partition@0x0 { | ||
| 73 | label = "boot"; | ||
| 74 | reg = <0x0 0xe0000>; | ||
| 75 | }; | ||
| 76 | partition@0xe0000 { | ||
| 77 | label = "ubootenv"; | ||
| 78 | reg = <0xe0000 0x20000>; | ||
| 79 | }; | ||
| 80 | partition@0x100000 { | ||
| 81 | label = "uboot"; | ||
| 82 | reg = <0x100000 0x100000>; | ||
| 83 | }; | ||
| 84 | partition@0x200000 { | ||
| 85 | label = "kernel"; | ||
| 86 | reg = <0x200000 0x4f0000>; | ||
| 87 | }; | ||
| 88 | partition@0x6f0000 { | ||
| 89 | label = "devicetree"; | ||
| 90 | reg = <0x6f0000 0x10000>; | ||
| 91 | }; | ||
| 92 | partition@0x700000 { | ||
| 93 | label = "rootfs"; | ||
| 94 | reg = <0x700000 0x400000>; | ||
| 95 | }; | ||
| 96 | partition@0xb00000 { | ||
| 97 | label = "spare"; | ||
| 98 | reg = <0xb00000 0x500000>; | ||
| 99 | }; | ||
| 100 | }; | ||
| 101 | }; | ||
| 102 | |||
