diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2016-02-24 16:25:51 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-03-06 20:04:03 +1000 |
commit | f472c57a008df2ab8d941fdbad5d9077343462db (patch) | |
tree | 6ec3142fc07a944863d4bf831b87ba905d5b6551 | |
parent | 925ae9c8ef5843cba89326975572e11f61ccaf32 (diff) | |
download | meta-xilinx-f472c57a008df2ab8d941fdbad5d9077343462db.tar.gz |
microzed-zynq7: Rework device tree to use kernel source include
* Rework the microzed-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>
-rw-r--r-- | conf/machine/boards/microzed/microzed-zynq7-board.dtsi | 76 | ||||
-rw-r--r-- | conf/machine/boards/microzed/microzed-zynq7.dts | 5 | ||||
-rw-r--r-- | conf/machine/microzed-zynq7.conf | 7 | ||||
-rw-r--r-- | recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts | 100 |
4 files changed, 102 insertions, 86 deletions
diff --git a/conf/machine/boards/microzed/microzed-zynq7-board.dtsi b/conf/machine/boards/microzed/microzed-zynq7-board.dtsi deleted file mode 100644 index d56e3e1e..00000000 --- a/conf/machine/boards/microzed/microzed-zynq7-board.dtsi +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | /* | ||
2 | * microZed DTS for generic boot. | ||
3 | */ | ||
4 | |||
5 | / { | ||
6 | model = "Avnet microZed"; | ||
7 | chosen { | ||
8 | bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/ram rw"; | ||
9 | linux,stdout-path = "/axi@0/serial@e0001000"; | ||
10 | } ; | ||
11 | ps7_ddr_0: memory@0 { | ||
12 | device_type = "memory"; | ||
13 | reg = <0x0 0x40000000>; | ||
14 | } ; | ||
15 | ps7_axi_interconnect_0: amba@0 { | ||
16 | ps7_ethernet_0: ps7-ethernet@e000b000 { | ||
17 | phy-handle = <&phy0>; | ||
18 | phy-mode = "rgmii-id"; | ||
19 | phy0: phy@0 { | ||
20 | compatible = "marvell,88e1512"; | ||
21 | device_type = "ethernet-phy"; | ||
22 | reg = <0>; | ||
23 | } ; | ||
24 | } ; | ||
25 | ps7_qspi_0: ps7-qspi@e000d000 { | ||
26 | flash@0 { | ||
27 | compatible = "micron,m25p80", "spansion,s25fl128s", "jedec,spi-nor"; | ||
28 | reg = <0x0>; | ||
29 | spi-max-frequency = <50000000>; | ||
30 | #address-cells = <1>; | ||
31 | #size-cells = <1>; | ||
32 | partition@qspi-fsbl-uboot { | ||
33 | label = "qspi-fsbl-uboot"; | ||
34 | reg = <0x0 0x100000>; | ||
35 | }; | ||
36 | partition@qspi-linux { | ||
37 | label = "qspi-linux"; | ||
38 | reg = <0x100000 0x500000>; | ||
39 | }; | ||
40 | partition@qspi-device-tree { | ||
41 | label = "qspi-device-tree"; | ||
42 | reg = <0x600000 0x20000>; | ||
43 | }; | ||
44 | partition@qspi-rootfs { | ||
45 | label = "qspi-rootfs"; | ||
46 | reg = <0x620000 0x5E0000>; | ||
47 | }; | ||
48 | partition@qspi-bitstream { | ||
49 | label = "qspi-bitstream"; | ||
50 | reg = <0xC00000 0x400000>; | ||
51 | }; | ||
52 | }; | ||
53 | } ; | ||
54 | ps7_usb_0: ps7-usb@e0002000 { | ||
55 | xlnx,phy-reset-gpio = <&ps7_gpio_0 7 0>; /* MIO USB PHY Reset */ | ||
56 | usb-phy = <&usb0_phy>; | ||
57 | } ; | ||
58 | |||
59 | /* Disabled Devices */ | ||
60 | ps7_sd_1: ps7-sdio@e0101000 { compatible = "invalid"; }; | ||
61 | ps7_uart_0: serial@e0000000 { compatible = "invalid"; }; | ||
62 | ps7_ethernet_1: ps7-ethernet@e000c000 { compatible = "invalid"; }; | ||
63 | ps7_i2c_0: ps7-i2c@e0004000 { compatible = "invalid"; }; | ||
64 | ps7_i2c_1: ps7-i2c@e0005000 { compatible = "invalid"; }; | ||
65 | ps7_wdt_0: ps7-wdt@f8005000 { compatible = "invalid"; }; | ||
66 | ps7_can_0: ps7-can@e0008000 { compatible = "invalid"; }; | ||
67 | ps7_can_1: ps7-can@e0009000 { compatible = "invalid"; }; | ||
68 | ps7_usb_1: ps7-usb@e0003000 { compatible = "invalid"; }; | ||
69 | } ; | ||
70 | |||
71 | usb0_phy: usb-phy { | ||
72 | #phy-cells = <0>; | ||
73 | compatible = "usb-nop-xceiv"; | ||
74 | reset-gpios = <&ps7_gpio_0 7 1>; /* MIO 7, GPIO_ACTIVE_LOW */ | ||
75 | } ; | ||
76 | } ; | ||
diff --git a/conf/machine/boards/microzed/microzed-zynq7.dts b/conf/machine/boards/microzed/microzed-zynq7.dts deleted file mode 100644 index 3470e5ad..00000000 --- a/conf/machine/boards/microzed/microzed-zynq7.dts +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | /dts-v1/; | ||
2 | /include/ "zynq7-base.dtsi" | ||
3 | /include/ "microzed-zynq7-board.dtsi" | ||
4 | / { | ||
5 | } ; | ||
diff --git a/conf/machine/microzed-zynq7.conf b/conf/machine/microzed-zynq7.conf index 5182051c..bea7c0a9 100644 --- a/conf/machine/microzed-zynq7.conf +++ b/conf/machine/microzed-zynq7.conf | |||
@@ -8,16 +8,13 @@ require conf/machine/include/machine-xilinx-board.inc | |||
8 | 8 | ||
9 | MACHINE_FEATURES = "ext2 vfat usbhost" | 9 | MACHINE_FEATURES = "ext2 vfat usbhost" |
10 | 10 | ||
11 | # microZed machine definition known by Xilinx UBOOT | 11 | # u-boot configuration |
12 | UBOOT_MACHINE = "zynq_microzed_config" | 12 | UBOOT_MACHINE = "zynq_microzed_config" |
13 | SPL_BINARY = "boot.bin" | 13 | SPL_BINARY = "boot.bin" |
14 | 14 | ||
15 | SERIAL_CONSOLE = "115200 ttyPS0" | 15 | SERIAL_CONSOLE = "115200 ttyPS0" |
16 | 16 | ||
17 | MACHINE_DEVICETREE := " \ | 17 | MACHINE_DEVICETREE = "microzed/microzed-zynq7.dts" |
18 | microzed/microzed-zynq7-board.dtsi \ | ||
19 | microzed/microzed-zynq7.dts \ | ||
20 | " | ||
21 | 18 | ||
22 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" | 19 | IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" |
23 | 20 | ||
diff --git a/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts b/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts new file mode 100644 index 00000000..8edb9329 --- /dev/null +++ b/recipes-bsp/device-tree/files/microzed/microzed-zynq7.dts | |||
@@ -0,0 +1,100 @@ | |||
1 | /dts-v1/; | ||
2 | /include/ "zynq-7000.dtsi" | ||
3 | |||
4 | / { | ||
5 | model = "Avnet microZed"; | ||
6 | compatible = "avnet,microzed", "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 | &sdhci0 { | ||
48 | status = "okay"; | ||
49 | }; | ||
50 | |||
51 | &uart1 { | ||
52 | status = "okay"; | ||
53 | }; | ||
54 | |||
55 | &usb0 { | ||
56 | status = "okay"; | ||
57 | dr_mode = "host"; | ||
58 | usb-phy = <&usb_phy0>; | ||
59 | }; | ||
60 | |||
61 | &qspi { | ||
62 | status = "okay"; | ||
63 | primary_flash: ps7-qspi@0 { | ||
64 | #address-cells = <1>; | ||
65 | #size-cells = <1>; | ||
66 | compatible = "micron,m25p80", "spansion,s25fl128s", "jedec,spi-nor"; | ||
67 | reg = <0x0>; | ||
68 | spi-max-frequency = <50000000>; | ||
69 | /* Example 16M partition table using U-Boot + U-Boot SPL */ | ||
70 | partition@0x0 { | ||
71 | label = "boot"; | ||
72 | reg = <0x0 0xe0000>; | ||
73 | }; | ||
74 | partition@0xe0000 { | ||
75 | label = "ubootenv"; | ||
76 | reg = <0xe0000 0x20000>; | ||
77 | }; | ||
78 | partition@0x100000 { | ||
79 | label = "uboot"; | ||
80 | reg = <0x100000 0x100000>; | ||
81 | }; | ||
82 | partition@0x200000 { | ||
83 | label = "kernel"; | ||
84 | reg = <0x200000 0x4f0000>; | ||
85 | }; | ||
86 | partition@0x6f0000 { | ||
87 | label = "devicetree"; | ||
88 | reg = <0x6f0000 0x10000>; | ||
89 | }; | ||
90 | partition@0x700000 { | ||
91 | label = "rootfs"; | ||
92 | reg = <0x700000 0x400000>; | ||
93 | }; | ||
94 | partition@0xb00000 { | ||
95 | label = "spare"; | ||
96 | reg = <0xb00000 0x500000>; | ||
97 | }; | ||
98 | }; | ||
99 | }; | ||
100 | |||