Add support for generating DTS from Vivado

This patch ensure that only C_ parameters are generated.
Vivado add also parameters without C_ prefix which
can be ignored.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Add support for generating DTS from Vivado - Microblaze

Support new mig_7series memory controller,
axi_crossbar bus and renamed axi_ethernet_buffer IP.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
DTS: Do not add addition "ranges" to axi/xps_epc

It already uses compound slave to generate empty "ranges" property to
axi/xps_epc. Should not add one more empty "ranges".

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Extend compatible string for all zynq board "xlnx,zynq-7000"

Follow compatible string in the mainline kernel
and also keep backward compatibility with older DTSes.

/dts-v1/;
/ {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "xlnx,zynq-zc770", "xlnx,zynq-7000";
	...
} ;

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Update headers for 2013

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Fix ps emac IRQ sensitivity

PS emac IRQ 54 and 77 are level sensitive.
TRM was wrong about it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Fix interrupt list for ps7_core_partity

There was collision between core parity IRQ NO
and pl310.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Use mainline cdns,ttc string

Generate cdns,ttc compatibility string which
is used in the mainline Linux kernel.

Generated node:
ps7_ttc_0: ps7-ttc@f8001000 {
        compatible = "xlnx,ps7-ttc-1.00.a", "cdns,ttc";
        interrupt-parent = <&ps7_scugic_0>;
        interrupts = < 0 10 4 0 11 4 0 12 4 >;
        reg = < 0xf8001000 0x1000 >;
} ;

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
emacps: Fixed gmii2rgmii converter issue with ip instance parameters

Modified the logic to identify the instance based on the unique
prefix for emacps (ENET0/1)

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Do not generate several memory nodes in root

When system contains more than one memory controller
all of them were generated to DTS root which is incorrect.
Find out the first controller based on this order
in get_first_mem_controller().

PetaLinux flow is not affected because memory node
is chosen in high level BSP and pass to device-tree BSP.
This patch change behavior also when memory node is not selected.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>