// SPDX-License-Identifier: GPL-2.0
/*
 * dts file for Xilinx ZynqMP R5
 *
 * (C) Copyright 2018, Xilinx, Inc.
 *
 * Michal Simek <michal.simek@amd.com>
 */

/dts-v1/;

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "xlnx,zynqmp-r5";
	model = "Xilinx ZynqMP R5";

	cpus {
		#address-cells = <0x1>;
		#size-cells = <0x0>;

		cpu@0 {
			compatible = "arm,cortex-r5";
			device_type = "cpu";
			reg = <0>;
		};
	};

	aliases {
		serial0 = &uart1;
	};

	memory@0 {
		device_type = "memory";
		reg = <0x00000000 0x20000000>;
	};

	chosen {
		bootargs = "";
		stdout-path = "serial0:115200n8";
	};

	clk100: clk100 {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <100000000>;
		bootph-all;
	};

	amba {
		bootph-all;
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		ttc0: timer@ff110000 {
			compatible = "cdns,ttc";
			status = "okay";
			reg = <0xff110000 0x1000>;
			timer-width = <32>;
			clocks = <&clk100>;
		};

		uart1: serial@ff010000 {
			bootph-all;
			compatible = "cdns,uart-r1p12", "xlnx,xuartps";
			reg = <0xff010000 0x1000>;
			clock-names = "uart_clk", "pclk";
			clocks = <&clk100 &clk100>;
		};
	};
};
