1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * dts file for Topic XDP (Xilinx Drone Platform)
4 *
5 * (C) Copyright 2016, Topic Embedded Products BV
6 * Mike Looijmans <mike.looijmans@topic.nl>
7 */
8
9/dts-v1/;
10
11#include "zynqmp.dtsi"
12#include "zynqmp-clk-ccf.dtsi"
13#include <dt-bindings/gpio/gpio.h>
14#include <dt-bindings/phy/phy.h>
15
16/ {
17	model = "Topic Miamimp ZynqMP XDP v1r1";
18	compatible = "topic,miamimp-xdp-v1r1", "topic,miamimp-xdp",
19		     "topic,miamimp", "xlnx,zynqmp";
20
21	aliases {
22		gpio0 = &gpio;
23		i2c0 = &i2c0;
24		i2c1 = &i2c1;
25		mmc0 = &sdhci0;
26		mmc1 = &sdhci1;
27		rtc0 = &rtc;
28		serial0 = &uart1;
29		serial1 = &uart0;
30		serial2 = &dcc;
31		spi0 = &qspi;
32		usb0 = &usb0;
33	};
34
35	chosen {
36		bootargs = "earlycon";
37		stdout-path = "serial0:115200n8";
38	};
39
40	memory@0 {
41		device_type = "memory";
42		reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
43	};
44};
45
46&dcc {
47	status = "okay";
48};
49
50&gpio {
51	status = "okay";
52};
53
54&gpu {
55	status = "okay";
56};
57
58&qspi {
59	status = "okay";
60	is-dual = <1>;
61	flash@0 {
62		compatible = "st,m25p80", "n25q256a";
63		m25p,fast-read;
64		reg = <0x0>;
65		spi-tx-bus-width = <1>;
66		spi-rx-bus-width = <4>;
67		spi-max-frequency = <166000000>;
68		#address-cells = <1>;
69		#size-cells = <1>;
70		is-dual = <1>;
71		partition@0 {
72			label = "qspi-boot-bin";
73			reg = <0x00000 0x60000>;
74		};
75		partition@60000 {
76			label = "qspi-u-boot-itb";
77			reg = <0x60000 0x100000>;
78		};
79		partition@160000 {
80			label = "qspi-u-boot-env";
81			reg = <0x160000 0x20000>;
82		};
83		partition@200000 {
84			label = "qspi-rootfs";
85			reg = <0x200000 0x1e00000>;
86		};
87	};
88};
89
90&rtc {
91	status = "okay";
92};
93
94/* eMMC device */
95&sdhci0 {
96	status = "okay";
97	non-removable;
98	disable-wp; /* We don't have a write-protect detection */
99	bus-width = <8>;
100	xlnx,mio-bank = <0>;
101};
102
103/* SD1 with level shifter */
104&sdhci1 {
105	status = "okay";
106	xlnx,mio-bank = <1>;
107	disable-wp; /* We don't have a write-protect detection */
108	bus-width = <4>;
109};
110
111&uart0 {
112	status = "okay";
113};
114
115&uart1 {
116	status = "okay";
117};
118