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		i2c0 = &i2c0;
23		i2c1 = &i2c1;
24		mmc0 = &sdhci0;
25		mmc1 = &sdhci1;
26		rtc0 = &rtc;
27		serial0 = &uart1;
28		serial1 = &uart0;
29		serial2 = &dcc;
30		spi0 = &qspi;
31		usb0 = &usb0;
32	};
33
34	chosen {
35		bootargs = "earlycon";
36		stdout-path = "serial0:115200n8";
37	};
38
39	memory@0 {
40		device_type = "memory";
41		reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
42	};
43};
44
45&dcc {
46	status = "okay";
47};
48
49&gpio {
50	status = "okay";
51};
52
53&gpu {
54	status = "okay";
55};
56
57&qspi {
58	status = "okay";
59	is-dual = <1>;
60	flash@0 {
61		compatible = "st,m25p80", "n25q256a", "jedec,spi-nor";
62		m25p,fast-read;
63		reg = <0x0>;
64		spi-tx-bus-width = <1>;
65		spi-rx-bus-width = <4>;
66		spi-max-frequency = <166000000>;
67		#address-cells = <1>;
68		#size-cells = <1>;
69		is-dual = <1>;
70		partition@0 {
71			label = "qspi-boot-bin";
72			reg = <0x00000 0x60000>;
73		};
74		partition@60000 {
75			label = "qspi-u-boot-itb";
76			reg = <0x60000 0x100000>;
77		};
78		partition@160000 {
79			label = "qspi-u-boot-env";
80			reg = <0x160000 0x20000>;
81		};
82		partition@200000 {
83			label = "qspi-rootfs";
84			reg = <0x200000 0x1e00000>;
85		};
86	};
87};
88
89&rtc {
90	status = "okay";
91};
92
93/* eMMC device */
94&sdhci0 {
95	status = "okay";
96	non-removable;
97	disable-wp; /* We don't have a write-protect detection */
98	bus-width = <8>;
99	xlnx,mio-bank = <0>;
100};
101
102/* SD1 with level shifter */
103&sdhci1 {
104	status = "okay";
105	xlnx,mio-bank = <1>;
106	disable-wp; /* We don't have a write-protect detection */
107	bus-width = <4>;
108};
109
110&uart0 {
111	status = "okay";
112};
113
114&uart1 {
115	status = "okay";
116};
117