Fix Xtuple value generation

Remove space in from of and above Xtuple values.
This change just bring up consistency with other values
in DTS.

-               interrupts = < 0 5 4 0 6 4 >;
-               reg = < 0xf8891000 0x1000 0xf8893000 0x1000 >;
+               interrupts = <0 5 4 0 6 4>;
+               reg = <0xf8891000 0x1000 0xf8893000 0x1000>;

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

Aliases can direct order is spi bus naming.
And also remove bus-num property from spi node.

For example:
        aliases {
                ethernet0 = &ps7_ethernet_0;
                serial0 = &ps7_uart_1;
+               spi0 = &ps7_qspi_0;
        } ;
                ps7_qspi_0: ps7-qspi@e000d000 {
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       bus-num = <0>;
                        compatible = "xlnx,ps7-qspi-1.00.a";
                        interrupt-parent = <&ps7_scugic_0>;

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Generate proper size for devcfg device

BSP generate xadc node separately that's why
dev_cfg need to have smaller reg size.
ps7_dev_cfg_0: ps7-dev-cfg@f8007000 {
        compatible = "xlnx,ps7-dev-cfg-1.00.a";
        interrupt-parent = <&ps7_scugic_0>;
        interrupts = < 0 8 4 >;
        reg = < 0xf8007000 0x100 >;
} ;

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Remove linux,phandle and handle from gic node

No reason to specify these values.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Generate AXI bram nodes

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Clean ps7_scutimer generation

ip_tree was generated twice. Keep just one generation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ps7_pl310/xadc: Use standard name for saving ip_tree

s/tree/ip_tree/

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Extend stringtuple print usage

Add only 4 string elements to one line.
This prevent long line generation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Add support for new common clock framework

Generate new clocks and clock-names properties
for all ps7 ips.
Introduce new labelreftuble type to simplify CCF
generation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
ps7_i2c: Do not generate input-clk

Remove input-clk generation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
ps7_ethernet: Do not generate enet-slcr-*mbps-div? values

Do it globally in default_parameters procedure.

Example:
-                       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>;

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Use "arm,cortex-a9" compatible string

Do not add fancy model string and add
correct compatible string defined in dts binding.

Based on the linux binding reg should be hex not int.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Do not generate zc770 compatible string

Generate just xlnx,zynq-7000 which is used in mainline.

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

Keep bus-id in ps7_i2c node because it is used by the driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Add support for interrupt-names specification

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Add support for axi traffic generator

The part of this support is option to specify irq names
which are required by axi traffic generator binding and driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Remove already setup values in default IP case

name and type are setup in the start of gener_slave function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
cortexa9: Use incr instead of expr for increasing cpu number

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Do not generate speed-hz for ps_spi and ps_qspi

It is not used anywhere.

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